/**
 * Clubfinder page
 */
body.page-id-1688 header {
	background-color: rgb(108 97 120 / 70%);
}

body.page-id-1688 main > .row_wrap:first-child {
	padding-top: 0 !important;
}

#clubfinder-wrapper .wp-block-greyd-maps {
	position: relative;
	height: 90vh;
}

.wp-block-columns.row_xxxl .wp-block-greyd-maps {
	margin-left: calc(-1 * var(--gutter)) !important;
	margin-right: calc(-1 * var(--gutter)) !important;
}

@media (min-width: 768px) {
	#clubfinder-wrapper .wp-block-greyd-places {
		position: absolute;
		top: 220px;
		bottom: 40px;
		border-radius: 0 8px 8px 0;
		left: 0;
		/* height: 80%; */
		overflow: auto;
		width: calc(300px + 20vw);
		padding: 40px;
		background-color: rgb(255 255 255 / 90%);
	}
}

@media (max-width: 767.5px) {
	#clubfinder-wrapper .wp-block-greyd-maps {
		height: 70vh;
	}

	#clubfinder-wrapper .wp-block-greyd-places {
		position: relative;
		max-width: 94vw;
		padding: 0 1em 2em;
		/* max-height: 1000px; */
		overflow: auto;
		margin-top: -3em;
	}
}

.wp-block-greyd-maps,
.wp-block-greyd-places {
	--gap: calc(var(--gutter) * 2);
}

/**
 * Homepage
 */
#clubfinder-absolute-wrapper {
	position: relative;
	z-index: 10;
}
#clubfinder-absolute-wrapper .places-search-result {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: min( 90vh, 1000px );
	margin-top: 1em;
	background-color: rgb(255 255 255);
	overflow: auto;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 20px 0 #0000004D;
	display: none;
}

#clubfinder-absolute-wrapper .places-search-result ._close {
	position: absolute;
    top: 0;
    right: 0;
    /* padding: 10px; */
    cursor: pointer;
    background-color: var(--color61);
    color: #fff;
    display: flex;
    height: 30px;
    width: 30px;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 13px;
}
#clubfinder-absolute-wrapper .places-search-result ._close::before {
	content: '×';
}





/**
 * Search
 */
.wp-block-greyd-places .places-search {
	display: flex;
	box-shadow: 0 4px 20px 0 #0000004D;
	border-radius: 100px;
	margin-bottom: 1.5em;
}

.wp-block-greyd-places .places-search input {
	margin: 0 !important;
	border-radius: 100px;
}

.wp-block-greyd-places .places-search-input {
	color: var(--color61, #282d33);
	background-color: var(--color62, #fff);
}

.wp-block-greyd-places .places-search-live {
	width: auto;
	background-color: var(--color62, #fff) !important;
	color: var(--color11);
	border: 0;
	font-weight: 900;
	font-size: 2.0em;
	line-height: 0 !important;
	padding-left: 5px;
	padding-right: 5px;
	/* border-radius: 100px; */
	cursor: pointer;
}

.wp-block-greyd-places .places-search-find {
	width: auto;
	/* border-radius: 100px; */
	cursor: pointer;
}

.wp-block-greyd-places input:first-child:not(:last-child) {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right-width: 0;
}

.wp-block-greyd-places input:not(:last-child):not(:first-child) {
	border-radius: 0;
	border-left-width: 0;
	border-right-width: 0;
}

.wp-block-greyd-places input:last-child:not(:first-child) {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	border-left-width: 0;
}


/**
 * Results
 */
.wp-block-greyd-places .places-search-result {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	margin: 0 0 var(--gap);
}

.wp-block-greyd-places .places-search-result .places-search-more {
	font-size: 22px;
	font-weight: 600;
	text-align: center;
	order: 1;
	cursor: pointer;
}


/**
 * Info Box
 */

/* header */
.clubfinder-content .clubfinder-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.clubfinder-content .clubfinder-button {
	padding: 5px !important;
	width: auto;
}

.clubfinder-content .clubfinder-button > span {
	font-size: 200%;
}

/* content */
.clubfinder-content p,
.clubfinder-content h6,
.clubfinder-content .button {
	margin: 0 !important;
}

.clubfinder-content {
	color: var(--color61, #282d33);
	background-color: var(--color51, #f9e2c9);
	border-radius: 8px;
	padding: var(--gap);
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
}

.clubfinder-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gutter);
}
.clubfinder-content .pill {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #690a33;
	border-radius: 100px;
	padding: 3px 12px 0;
	height: 40px;
}

.clubfinder-content .pill svg {
	margin-top: -6px;
}

.clubfinder-content .clubfinder-link {
	color: #fff;
	text-decoration: underline;
	text-align: center;
    transform: translateY(5px);
}
.clubfinder-content .clubfinder-link:hover {
	color: #fff;
	text-decoration: none;
}







/**
 * Map
 */
.wp-block-greyd-maps {
	height: 666px;
}

.wp-block-greyd-maps .infoBox {
	/* height: 146px; */
	height: 182px;
	width: 280px;
}

.wp-block-greyd-maps .infoBox > img:first-child {
	display: none;
}

.wp-block-greyd-maps .infoBox .clubfinder-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wp-block-greyd-maps .infoBox .clubfinder-content {
	color: #fff;
	background-color: #DA1B5E;
	box-shadow: 0 0 25px -5px rgba(0, 0, 0, 0.2);
	font-size: 16px;
}

.wp-block-greyd-maps .infoBox .clubfinder-content > p {
	height: 40px;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wp-block-greyd-maps .infoBox .clubfinder-content p,
.wp-block-greyd-maps .infoBox .clubfinder-content h6 {
	color: #fff;
}

.wp-block-greyd-maps .infoBox .clubfinder-content .clubfinder-header .clubfinder-close {
	position: absolute;
	top: 0;
	right: 0;
	color: #fff !important;
	width: 22px;
	padding: 5px !important;
	width: auto;
}

.wp-block-greyd-maps .infoBox:after {
	content: '';
	position: absolute;
	/* left: -6px;
	top: 75px;
	border: 5px solid transparent;
	border-right-color: #DA1B5E;
	border-right-width: 6px;
	border-left-width: 0; */
	left: calc(50% - 8px);
	bottom: -12px;
	border: 8px solid transparent;
	border-top-color: #DA1B5E;
	border-top-width: 12px;
	border-bottom-width: 0;
}

/**
 * Navigation backdrop
 */
.wp-block-greyd-maps::after {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 190px;
	background: linear-gradient(180deg, rgb(40,45,51,1) 10%, rgb(40,45,51,0) 100%);
}
@media (max-width: 1279px) {
	.wp-block-greyd-maps::after {
		height: 80px;
		background: linear-gradient(180deg, rgb(40,45,51,.7) 0%, rgb(40,45,51,0) 100%);
	}
}


/**
 * Editor dummy
 */
/* [data-type="greyd/places"] .wp-block-greyd-places {
	height: 53px;
	background: skyblue;
	border: 2px solid darkolivegreen;
} */

[data-type="greyd/maps"] .wp-block-greyd-maps {
	/* height: 333px; */
	background: lightblue;
	/* border: 2px solid darkolivegreen; */
}

[data-type="greyd/maps"] .wp-block-greyd-maps.loading_locations::before {
	content: 'loading locations ...';
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.5em;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}