/*
 * Green Croatia Properties — front end.
 *
 * Scoped under .gcp so nothing here can reach the rest of the theme. Colours
 * and type are the approved accommodation design: paper, forest green, a
 * terracotta accent, Fraunces for display and Figtree for everything else.
 * Fonts are referenced, not loaded, so a site already serving them is not
 * made to fetch them twice; the fallbacks are deliberate.
 */

/* The search form is a shortcode and can be dropped on any page, where it is
   not wrapped in .gcp — so the tokens have to be declared on it too, or every
   var() below it resolves to nothing and the button loses its background. */
.gcp,
.gcp-search {
	--gcp-paper: #FBFAF7;
	--gcp-forest: #163026;
	--gcp-green: #2F5D4A;
	--gcp-green-soft: #EEF2EE;
	--gcp-accent: #A85A2C;
	--gcp-accent-dark: #7F4320;
	--gcp-accent-soft: #F6EDE5;
	--gcp-muted: #4C5D54;
	--gcp-ink: #28443A;
	--gcp-line: #E2DFD6;
	--gcp-line-soft: #ECEAE2;
	--gcp-edge: #D5D2C8;
	--gcp-display: Fraunces, "Iowan Old Style", Georgia, serif;
	--gcp-ui: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;

	background: var(--gcp-paper);
	color: var(--gcp-forest);
	font-family: var(--gcp-ui);
	font-size: 16px;
	line-height: 1.6;
}

.gcp *,
.gcp *::before,
.gcp *::after { box-sizing: border-box; }

.gcp a { color: var(--gcp-accent); }
.gcp a:hover,
.gcp a:focus { color: var(--gcp-accent-dark); }

.gcp-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px 72px;
}

.gcp-muted { color: var(--gcp-muted); }
.gcp-sub { margin: 0 0 20px; font-size: 15.5px; }
.gcp-strong { font-weight: 600; color: var(--gcp-forest); }
.gcp-r { text-align: right; }

.gcp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- breadcrumb ---------- */

.gcp-crumbs {
	padding: 22px 0 0;
	font-size: 13.5px;
	color: var(--gcp-muted);
}

.gcp-crumbs a { color: var(--gcp-muted); text-decoration: none; }
.gcp-crumbs a:hover { text-decoration: underline; }
.gcp-crumbs span[aria-hidden] { margin: 0 8px; color: #AFB7AF; }
.gcp-crumbs-here { color: var(--gcp-forest); }

/* ---------- title ---------- */

.gcp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 24px;
	padding: 18px 0 24px;
}

.gcp-head-main { flex: 999 1 460px; min-width: 0; }
.gcp-head-archive { padding-top: 32px; }

.gcp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.gcp-tag {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gcp-green);
	background: var(--gcp-green-soft);
	padding: 6px 11px;
	border-radius: 5px;
}

.gcp-title {
	margin: 0;
	font-family: var(--gcp-display);
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.04;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--gcp-forest);
}

.gcp-title-archive { font-size: clamp(30px, 4vw, 44px); }

.gcp-place {
	margin: 14px 0 0;
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 16px;
	color: var(--gcp-muted);
}

.gcp-place svg { flex: none; }

/* ---------- hero mosaic ---------- */

.gcp-hero {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: 246px 246px;
	gap: 10px;
	border-radius: 14px;
	overflow: hidden;
}

.gcp-hero-cell { margin: 0; background: #D4DAD2; grid-column: span 2; }
.gcp-hero-cell.is-lead { grid-column: span 2; grid-row: span 2; }
.gcp-hero-cell:nth-child(3),
.gcp-hero-cell:nth-child(4) { grid-column: span 1; }

.gcp-hero-cell img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* One photo should fill the row rather than leave a gap. */
.gcp-hero-cell:only-child { grid-column: span 4; grid-row: span 2; }

.gcp-hero-all {
	position: absolute;
	right: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--gcp-paper);
	color: var(--gcp-forest);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	padding: 11px 17px;
	border-radius: 7px;
	border: 1px solid var(--gcp-edge);
}

.gcp-hero-all:hover { color: var(--gcp-forest); background: #fff; }

/* ---------- two columns ---------- */

.gcp-body {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	padding: 52px 0 0;
	align-items: flex-start;
}

.gcp-col { flex: 999 1 560px; min-width: 0; }
.gcp-aside { flex: 1 1 356px; position: sticky; top: 24px; }

.gcp-sec { padding: 36px 0 40px; border-bottom: 1px solid var(--gcp-line); }
.gcp-sec:first-child { padding-top: 0; }
.gcp-last { border-bottom: 0; padding-bottom: 8px; }

.gcp-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 20px;
}

.gcp-sec-head .gcp-h2 { margin-right: auto; margin-bottom: 0; }

.gcp-h2 {
	margin: 0 0 22px;
	font-family: var(--gcp-display);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--gcp-forest);
}

/* ---------- lede ---------- */

.gcp-lede { padding-top: 0; padding-bottom: 40px; }

.gcp-lede-text {
	margin: 0;
	font-family: var(--gcp-display);
	font-size: 25px;
	line-height: 1.52;
	font-weight: 400;
	color: #1D3A2D;
}

/* ---------- basics ---------- */

.gcp-basics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

.gcp-basic {
	border: 1px solid var(--gcp-line);
	border-radius: 10px;
	padding: 18px 18px 16px;
	background: #fff;
}

.gcp-basic svg { color: var(--gcp-green); margin-bottom: 11px; display: block; }

.gcp-basic-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gcp-muted);
}

.gcp-basic-value { font-size: 19px; font-weight: 600; margin-top: 5px; }

/* ---------- amenities ---------- */

.gcp-amen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px 44px;
}

.gcp-amen-h3 {
	margin: 0 0 13px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gcp-green);
}

.gcp-amen-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gcp-amen-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--gcp-ink);
}

.gcp-amen-list svg { color: var(--gcp-green); flex: none; margin-top: 2px; }

/* ---------- gallery ---------- */

.gcp-grid3 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.gcp-shot { margin: 0; }

.gcp-shot a { display: block; }

.gcp-shot img {
	display: block;
	width: 100%;
	height: 162px;
	object-fit: cover;
	border-radius: 9px;
	background: #D4DAD2;
}

.gcp-shot figcaption { margin-top: 7px; font-size: 12.5px; color: var(--gcp-muted); }

/* ---------- map ---------- */

.gcp-map {
	height: 320px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--gcp-line);
	background: #E8EBE4;
}

.gcp-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.gcp-minimap { width: 100%; height: 100%; }

.gcp-minimap.is-failed {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* The single-property pin. A plain dot rather than a price bubble: on the
   property's own page the price is already on the page, and the point is
   approximate, so a soft halo reads more honestly than a sharp teardrop. */
.gcp-pin-single { width: auto !important; height: auto !important; }

.gcp-pin-dot {
	display: block;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	background: var(--gcp-green, #2F5D4A);
	border: 3px solid #fff;
	box-shadow: 0 0 0 7px rgba(47, 93, 74, .22), 0 2px 6px rgba(0, 0, 0, .3);
}

.gcp-map-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; }

.gcp-map-link { margin: 6px 0 0; font-size: 14px; }

/* ---------- price list ---------- */

.gcp-rates { width: 100%; border-collapse: collapse; font-size: 15.5px; }

.gcp-rates th[scope="col"] {
	text-align: left;
	padding: 0 12px 12px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gcp-muted);
	border-bottom: 1.5px solid var(--gcp-edge);
}

.gcp-rates th[scope="col"].gcp-r { text-align: right; }

.gcp-rates tbody th {
	text-align: left;
	padding: 15px 12px 15px 0;
	font-weight: 600;
	color: var(--gcp-forest);
	border-bottom: 1px solid var(--gcp-line-soft);
}

.gcp-rates td {
	padding: 15px 12px;
	color: var(--gcp-muted);
	border-bottom: 1px solid var(--gcp-line-soft);
}

.gcp-note {
	margin-top: 22px;
	background: var(--gcp-green-soft);
	border-radius: 10px;
	padding: 18px 20px;
}

.gcp-note-h {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gcp-green);
}

.gcp-note ul {
	margin: 0;
	padding-left: 19px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--gcp-ink);
}

/* ---------- long description ---------- */

.gcp-prose { font-size: 16.5px; line-height: 1.78; color: var(--gcp-ink); max-width: 68ch; }
.gcp-prose > :first-child { margin-top: 0; }

.gcp-prose h2,
.gcp-prose h3 {
	font-family: var(--gcp-display);
	font-weight: 600;
	color: var(--gcp-forest);
	margin: 28px 0 10px;
}

.gcp-prose h2 { font-size: 23px; }
.gcp-prose h3 { font-size: 20px; }
.gcp-prose p { margin: 0 0 18px; }

/* ---------- enquiry card ---------- */

.gcp-card {
	border: 1px solid var(--gcp-edge);
	border-radius: 13px;
	background: #fff;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(22, 48, 38, 0.05);
}

.gcp-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }

.gcp-price-value {
	font-family: var(--gcp-display);
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--gcp-forest);
}

.gcp-card-facts { margin: 6px 0 20px; font-size: 13.5px; color: var(--gcp-muted); }

.gcp-label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gcp-muted);
	margin: 12px 0 6px;
}

.gcp-select {
	width: 100%;
	border: 1px solid var(--gcp-edge);
	border-radius: 7px;
	padding: 11px 12px;
	font-family: var(--gcp-ui);
	font-size: 15px;
	color: var(--gcp-forest);
	background: var(--gcp-paper);
}

.gcp-btn {
	width: 100%;
	border-radius: 8px;
	font-family: var(--gcp-ui);
	font-weight: 600;
	cursor: pointer;
}

.gcp-btn-primary {
	margin-top: 18px;
	background: var(--gcp-accent);
	color: #fff;
	border: none;
	padding: 15px;
	font-size: 16px;
}

.gcp-btn-primary:hover { background: var(--gcp-accent-dark); }

.gcp-fineprint {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--gcp-muted);
	text-align: center;
}

.gcp-synced {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--gcp-line-soft);
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--gcp-muted);
}

.gcp-synced svg { color: var(--gcp-green); flex: none; }

/* ---------- calendar ---------- */

/* The calendar is script-driven, so an empty box is never shown: without
   JavaScript the card falls back to the enquiry form on its own. */
.gcp-cal:not(.is-ready),
.gcp-cal:not(.is-ready) + .gcp-cal-status { display: none; }

.gcp-cal {
	border: 1px solid var(--gcp-line);
	border-radius: 10px;
	padding: 14px 14px 12px;
	background: var(--gcp-paper);
}

.gcp-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.gcp-cal-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--gcp-edge);
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	color: var(--gcp-forest);
	padding: 0;
}

.gcp-cal-arrow[disabled] { opacity: 0.35; cursor: default; }
.gcp-cal-month { font-size: 14.5px; font-weight: 600; }

.gcp-cal-week,
.gcp-cal-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
}

.gcp-cal-week { margin-bottom: 5px; }

.gcp-cal-week span {
	text-align: center;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--gcp-muted);
}

.gcp-day {
	aspect-ratio: 1;
	border: 1px solid var(--gcp-edge);
	background: #fff;
	border-radius: 6px;
	font-family: var(--gcp-ui);
	font-size: 13px;
	font-weight: 500;
	color: var(--gcp-forest);
	cursor: pointer;
	padding: 0;
}

.gcp-day:hover:not([disabled]) { border-color: var(--gcp-green); }

.gcp-day[disabled] {
	background: #EDEBE4;
	border-color: transparent;
	color: #9AA69D;
	cursor: default;
	text-decoration: line-through;
}

.gcp-day.is-picked,
.gcp-day.is-edge {
	background: var(--gcp-accent);
	border-color: var(--gcp-accent);
	color: #fff;
	font-weight: 600;
}

.gcp-day.is-between {
	background: var(--gcp-accent-soft);
	border-color: var(--gcp-accent-soft);
	color: var(--gcp-accent-dark);
}

.gcp-cal-key {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 11px;
	font-size: 11px;
	color: var(--gcp-muted);
}

.gcp-cal-key span { display: flex; align-items: center; gap: 5px; }

.gcp-cal-key i {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	display: block;
}

.gcp-cal-key i.is-free { background: #fff; border: 1px solid var(--gcp-edge); }
.gcp-cal-key i.is-booked { background: #EDEBE4; }
.gcp-cal-key i.is-picked { background: var(--gcp-accent); }

.gcp-cal-status {
	margin: 12px 0 0;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--gcp-muted);
	min-height: 1.4em;
}

.gcp-cal-status.is-warning { color: var(--gcp-accent-dark); }
.gcp-cal-status.is-good { color: var(--gcp-green); }

/* ---------- search form ---------- */

/* One continuous bar rather than four boxed inputs: on a hero photograph a row
   of separate fields reads as a form to fill in, where a single instrument
   reads as something to use. Segments are divided by hairlines and light up on
   hover, so the structure is still legible. */

.gcp-search {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0 0 28px;
	padding: 6px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	font-family: var(--gcp-ui);
	box-shadow: 0 1px 2px rgba(22, 48, 38, 0.10), 0 12px 34px rgba(22, 48, 38, 0.18);
}

.gcp-search *,
.gcp-search *::before,
.gcp-search *::after { box-sizing: border-box; }

.gcp-search-field {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.gcp-search-field:hover,
.gcp-search-field:focus-within { background: var(--gcp-green-soft); }

.gcp-search-field + .gcp-search-field::before {
	content: "";
	position: absolute;
	left: 0;
	top: 24%;
	bottom: 24%;
	width: 1px;
	background: var(--gcp-line);
	transition: opacity 0.15s ease;
}

/* Hide the rule on either side of the segment being used, so the highlight
   reads as one rounded block rather than a block with a line through it. */
.gcp-search-field:hover::before,
.gcp-search-field:focus-within::before,
.gcp-search-field:hover + .gcp-search-field::before,
.gcp-search-field:focus-within + .gcp-search-field::before { opacity: 0; }

.gcp-search label {
	display: block;
	margin: 0 0 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gcp-green);
}

.gcp-search input,
.gcp-search select {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	color: var(--gcp-forest);
	appearance: none;
	-webkit-appearance: none;
}

.gcp-search input:focus,
.gcp-search select:focus { outline: none; }

.gcp-search select {
	padding-right: 1.4em;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23163026' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.1em center;
}

.gcp-search-submit {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding-left: 6px;
}

.gcp-search-submit .gcp-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	width: auto;
	height: 54px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--gcp-green);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.gcp-search-submit .gcp-btn-primary:hover { background: var(--gcp-forest); }

.gcp-search-submit .gcp-btn-primary:focus-visible {
	outline: 2px solid var(--gcp-forest);
	outline-offset: 3px;
}

/* Below the point where four segments stop fitting, the bar becomes a stack of
   full-width rows and the pill becomes a card. */
@media (max-width: 860px) {
	.gcp-search {
		flex-wrap: wrap;
		border-radius: 18px;
		padding: 8px;
	}

	.gcp-search-field {
		flex: 1 1 calc(50% - 1px);
		border-radius: 12px;
		padding: 11px 16px;
	}

	.gcp-search-field + .gcp-search-field::before { display: none; }
	.gcp-search-field { border-top: 1px solid var(--gcp-line); }
	.gcp-search-field:nth-child(-n+2) { border-top: 0; }

	.gcp-search-submit {
		flex: 1 1 100%;
		padding: 8px 0 0;
	}

	.gcp-search-submit .gcp-btn-primary { width: 100%; }
}

@media (max-width: 520px) {
	.gcp-search-field { flex: 1 1 100%; }
	.gcp-search-field:nth-child(2) { border-top: 1px solid var(--gcp-line); }
}

.gcp-search.is-compact {
	flex-wrap: wrap;
	border-radius: 18px;
}

.gcp-search.is-compact .gcp-search-field {
	flex: 1 1 100%;
	border-radius: 12px;
}

.gcp-search.is-compact .gcp-search-field + .gcp-search-field::before { display: none; }
.gcp-search.is-compact .gcp-search-submit { flex: 1 1 100%; padding: 8px 0 0; }
.gcp-search.is-compact .gcp-search-submit .gcp-btn-primary { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.gcp-search-field,
	.gcp-search-field + .gcp-search-field::before,
	.gcp-search-submit .gcp-btn-primary { transition: none; }
}

.gcp-results-count { margin: 0 0 22px; font-size: 15px; color: var(--gcp-muted); }

.gcp-empty {
	border: 1px solid var(--gcp-line);
	border-radius: 12px;
	background: #fff;
	padding: 28px 30px;
	max-width: 60ch;
}

.gcp-empty p:first-child {
	margin: 0 0 10px;
	font-family: var(--gcp-display);
	font-size: 22px;
	font-weight: 600;
}

.gcp-empty p { margin: 0 0 12px; }
.gcp-empty p:last-child { margin-bottom: 0; }

/* ---------- enquiry form ---------- */

.gcp-input {
	width: 100%;
	border: 1px solid var(--gcp-edge);
	border-radius: 7px;
	padding: 11px 12px;
	font-family: var(--gcp-ui);
	font-size: 15px;
	color: var(--gcp-forest);
	background: var(--gcp-paper);
}

textarea.gcp-input { resize: vertical; min-height: 72px; }

/* Off-screen rather than display:none, so a bot that skips hidden fields
   still fills it, which is the whole point of the trap. */
.gcp-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gcp-flash {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14.5px;
	line-height: 1.5;
}

.gcp-flash.is-good { background: var(--gcp-green-soft); color: #1B4132; }
.gcp-flash.is-warning { background: var(--gcp-accent-soft); color: var(--gcp-accent-dark); }

/* ---------- archive cards ---------- */

.gcp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.gcp-card-item {
	border: 1px solid var(--gcp-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.gcp-card-shot { display: block; background: #D4DAD2; }

.gcp-card-shot img,
.gcp-card-noshot {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.gcp-card-text { padding: 18px 20px 22px; }

.gcp-card-title {
	margin: 0 0 6px;
	font-family: var(--gcp-display);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.gcp-card-title a { color: var(--gcp-forest); text-decoration: none; }
.gcp-card-title a:hover { color: var(--gcp-accent-dark); }
.gcp-card-place { margin: 0 0 8px; font-size: 14px; color: var(--gcp-muted); }
.gcp-card-price { margin: 10px 0 0; font-size: 15px; color: var(--gcp-muted); }
.gcp-card-price strong { color: var(--gcp-forest); }

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
	.gcp-aside { position: static; }
	.gcp-body { gap: 40px; padding-top: 36px; }
}

@media (max-width: 640px) {
	.gcp-shell { padding: 0 16px 56px; }

	.gcp-hero {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: 200px 120px;
		gap: 6px;
	}

	.gcp-hero-cell.is-lead { grid-column: span 2; grid-row: span 1; }
	.gcp-hero-cell:nth-child(2) { grid-column: span 2; display: none; }
	.gcp-hero-cell:nth-child(3),
	.gcp-hero-cell:nth-child(4) { grid-column: span 1; }
	.gcp-hero-all { right: 10px; bottom: 10px; padding: 9px 13px; font-size: 13.5px; }

	.gcp-lede-text { font-size: 21px; }
	.gcp-h2 { font-size: 23px; }
	.gcp-sec { padding: 28px 0 30px; }

	.gcp-rates { font-size: 14.5px; }
	.gcp-rates td,
	.gcp-rates tbody th { padding: 12px 8px 12px 0; }
}

/* ---------------------------------------------------------------------------
   Property map
   --------------------------------------------------------------------------- */

.gcp-map-panel {
	margin: 0 0 28px;
}

.gcp-map-toggle {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .7em 1.1em;
	border: 1px solid var(--gcp-line, #e2e0dc);
	border-radius: 999px;
	background: var(--gcp-surface, #fff);
	color: inherit;
	font: inherit;
	font-weight: 600;
	font-size: .9rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.gcp-map-toggle:hover {
	border-color: currentColor;
}

.gcp-map-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.gcp-map-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 .45em;
	border-radius: 999px;
	background: rgba(0, 0, 0, .08);
	font-size: .78em;
	font-weight: 700;
}

.gcp-map-canvas {
	height: clamp(320px, 52vh, 560px);
	margin-top: 14px;
	border-radius: 14px;
	overflow: hidden;
	background: #e8e6e1;
}

.gcp-map-canvas.is-loading::after,
.gcp-map-canvas.is-failed::after {
	content: "";
	display: block;
	height: 100%;
}

.gcp-map-canvas.is-failed {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Price bubbles. A divIcon has no size of its own, so the bubble sets it and
   the marker is nudged up by half its height to sit on the point. */
.gcp-pin {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	transform-origin: 50% 100%;
}

.gcp-pin-bubble {
	display: inline-block;
	transform: translate(-50%, -100%);
	padding: .4em .7em;
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 12px rgba(0, 0, 0, .18);
	transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.gcp-pin:hover .gcp-pin-bubble,
.gcp-pin.is-active .gcp-pin-bubble,
.gcp-pin.leaflet-marker-active .gcp-pin-bubble {
	background: #1a1a1a;
	color: #fff;
}

.gcp-card-item.is-active {
	box-shadow: 0 0 0 2px currentColor;
	border-radius: 14px;
}

/* The card inside a pin's popup. */
.gcp-pin-popup .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
}

.gcp-pin-popup .leaflet-popup-content {
	margin: 0;
	width: auto !important;
}

.gcp-pin-shot {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.gcp-pin-body {
	display: flex;
	flex-direction: column;
	gap: .2em;
	padding: .75em .85em .9em;
}

.gcp-pin-title {
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.25;
	text-decoration: none;
	color: inherit;
}

.gcp-pin-title:hover {
	text-decoration: underline;
}

.gcp-pin-place,
.gcp-pin-facts {
	font-size: .8rem;
	opacity: .72;
}

.gcp-pin-price {
	margin-top: .3em;
	font-weight: 700;
	font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
	.gcp-map-toggle,
	.gcp-pin-bubble {
		transition: none;
	}
}
