/* Uses the Poonkt theme's colours and fonts when present. */
.pk-page {
	--pk-forest: var(--forest, #03392d);
	--pk-gold: var(--gold, #dbaf58);
	--pk-cream: var(--cream, #faf6f2);
	--pk-sand: var(--sand, #efe8df);
	--pk-ink: var(--ink, #141a17);
	--pk-muted: var(--muted, #4f5a54);
	--pk-serif: var(--serif, Georgia, serif);
	--pk-gutter: var(--gutter, clamp(16px, 5vw, 64px));
	--pk-wide: var(--wide, 1240px);
	padding: 0;
}
.pk-page *, .pk-page *::before, .pk-page *::after { box-sizing: border-box; }

.pk-hero { background: var(--pk-forest); color: #fff; padding: clamp(36px, 6vw, 72px) var(--pk-gutter) 72px; }
.pk-hero__inner { max-width: var(--pk-wide); margin: 0 auto; }
.pk-hero h1 { margin: 0; color: #fff; font-family: var(--pk-serif); font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.08; }

.pk-layout {
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	gap: 32px;
	max-width: calc(var(--pk-wide) + 2 * var(--pk-gutter));
	margin: 0 auto;
	padding: 32px var(--pk-gutter) var(--section, 72px);
	scroll-margin-top: 16px;
}

/* Search bar: the theme's form, moved into the hero. */
.pk-page .poonkt-search {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.25fr 1.35fr 1.1fr auto;
	align-items: stretch;
	margin: 28px 0 -112px;
	padding: 14px;
	background: #fff;
	color: var(--pk-ink);
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(3, 57, 45, .16);
}
.pk-page .poonkt-search__field { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 18px; border-right: 1px solid var(--pk-sand); }
.pk-page .poonkt-search__field:nth-child(3) { border-right: 0; }
.pk-page .poonkt-search label { display: block; flex: 1; min-width: 0; }
.pk-page .poonkt-search label span { display: block; margin-bottom: 2px; font-size: .76rem; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.pk-page .poonkt-search select, .pk-page .poonkt-search input { width: 100%; min-width: 0; padding: 2px 0; border: 0; background: none; color: var(--pk-muted); font: 400 .92rem/1.4 inherit; font-family: inherit; }
.pk-page .poonkt-search__submit { align-self: center; min-height: 52px; margin-left: 16px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--pk-forest); color: #fff; font: 500 .97rem/1.2 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; }
.pk-hero { margin-bottom: 72px; }
.pk-layout { padding-top: 0; }

/* Filters */
.pk-filters { align-self: start; background: #fff; border-radius: 6px; }
.pk-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--pk-sand); }
.pk-filters__head h2 { margin: 0; font-family: var(--pk-serif); font-size: 1.35rem; color: var(--pk-ink); }
.pk-filters__close, .pk-filters__foot, .pk-filters-open { display: none; }
.pk-link { padding: 0; border: 0; background: none; color: var(--pk-forest); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.pk-group { border-bottom: 1px solid var(--pk-sand); }
.pk-group:last-child { border-bottom: 0; }
.pk-group summary { padding: 13px 18px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.pk-group__body { display: grid; gap: 2px; padding: 0 18px 14px; }
.pk-opt { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: .92rem; cursor: pointer; }
.pk-opt input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--pk-forest); }
.pk-opt__label { flex: 1; min-width: 0; }
.pk-opt__count { color: var(--pk-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.pk-opt.is-off { opacity: .45; cursor: default; }
.pk-hint { margin: 4px 0 0; color: var(--pk-muted); font-size: .8rem; line-height: 1.35; }
.pk-range { grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-dist { gap: 10px; }
.pk-range label span, .pk-dist label span { display: block; margin-bottom: 3px; font-size: .8rem; }
.pk-range input, .pk-dist select, .pk-sort select { width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid #c9c3ba; border-radius: 4px; background: #fff; color: var(--pk-ink); font: inherit; font-size: .92rem; }

/* Results */
.pk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.pk-count { flex: 1 1 auto; margin: 0; font-weight: 600; }
.pk-sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; white-space: nowrap; }
.pk-sort select { width: auto; }
.pk-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.pk-active[hidden] { display: none; }
.pk-chip { min-height: 32px; padding: 4px 12px; border: 1px solid var(--pk-forest); border-radius: 16px; background: #fff; color: var(--pk-forest); font: inherit; font-size: .84rem; cursor: pointer; }
.pk-chip:hover { background: var(--pk-sand); }
.pk-notice { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--pk-gold); background: #fff; font-size: .92rem; }
.pk-notice[hidden] { display: none; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px 18px; transition: opacity .15s; }
.pk-grid[hidden], .pk-empty[hidden], .pk-card[hidden] { display: none; }
.is-loading .pk-grid { opacity: .5; }

.pk-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 6px; background: #fff; transition: box-shadow .15s; }
.pk-card:hover { box-shadow: 0 8px 24px rgba(3, 57, 45, .13); }
.pk-card__media { position: relative; display: block; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pk-sand); }
.pk-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.pk-card__badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 3px; background: var(--pk-gold); color: var(--pk-forest); font-size: .78rem; font-weight: 600; }
.pk-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.pk-card__place { margin: 0; color: var(--pk-muted); font-size: .84rem; }
.pk-card__stars { color: var(--gold-2, #a87f2f); letter-spacing: .04em; }
.pk-card__title { margin: 0; font-family: var(--pk-serif); font-size: 1.32rem; line-height: 1.16; }
.pk-card__title a { color: var(--pk-ink); text-decoration: none; }
.pk-card__title a:hover { color: var(--pk-forest); text-decoration: underline; }
.pk-card__facts { margin: 0; font-size: .86rem; }
.pk-card__chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; padding: 0; list-style: none; }
.pk-card__chips li { padding: 2px 8px; border-radius: 3px; background: var(--pk-sand); font-size: .76rem; }
.pk-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.pk-price { margin: 0; line-height: 1.25; }
.pk-price strong { font-family: var(--pk-serif); font-size: 1.4rem; font-weight: 600; }
.pk-price__from, .pk-price__unit { color: var(--pk-muted); font-size: .8rem; }
.pk-price__total { display: block; color: var(--pk-muted); font-size: .78rem; }
.pk-card__cta { flex: none; padding: 8px 14px; border-radius: 4px; background: var(--pk-forest); color: #fff; font-size: .88rem; font-weight: 500; text-decoration: none; }
.pk-card__cta:hover { background: var(--forest-2, #0a4a3b); color: #fff; }
.pk-empty { padding: 40px 24px; border-radius: 6px; background: #fff; text-align: center; }
.pk-empty h2 { font-family: var(--pk-serif); font-size: 1.6rem; }
.pk-empty .button-forest { border: 0; }

/* Property page */
.pk-single__head { max-width: var(--pk-wide); margin: 0 auto; padding: 28px var(--pk-gutter) 16px; }
.pk-single__head h1 { margin: 6px 0; font-family: var(--pk-serif); font-size: clamp(2rem, 4vw, 3.2rem); }
.pk-gallery { display: flex; gap: 8px; max-width: calc(var(--pk-wide) + 2 * var(--pk-gutter)); margin: 0 auto; padding: 0 var(--pk-gutter); overflow-x: auto; scroll-snap-type: x proximity; }
.pk-gallery img { flex: 0 0 auto; width: auto; height: clamp(240px, 42vw, 460px); max-width: 88vw; border-radius: 4px; object-fit: cover; scroll-snap-align: start; }
.pk-single__cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; max-width: var(--pk-wide); margin: 0 auto; padding: 32px var(--pk-gutter) var(--section, 72px); }
.pk-single__sub { margin: 24px 0 8px; font-family: var(--pk-serif); font-size: 1.3rem; }
.pk-single__side { align-self: start; padding: 22px; border-radius: 6px; background: #fff; }

/* View switch */
.pk-views { display: inline-flex; overflow: hidden; border: 1px solid var(--pk-forest); border-radius: 4px; }
.pk-views button { min-height: 40px; padding: 6px 16px; border: 0; background: #fff; color: var(--pk-forest); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pk-views button[aria-pressed="true"] { background: var(--pk-forest); color: #fff; }

/* Map */
.pk-mapview { position: relative; height: min(76vh, 760px); min-height: 440px; overflow: hidden; border-radius: 6px; background: #e9e5dc; }
.pk-mapview[hidden], .pk-map-pop[hidden], .pk-map-note[hidden] { display: none; }
.pk-map-holder { width: 100%; height: 100%; }
.pk-map { position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9e5dc; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.pk-map--cooperative { touch-action: pan-y; }
.pk-map.is-dragging { cursor: grabbing; }
.pk-map:focus-visible { outline: 2px solid var(--gold-2, #a87f2f); outline-offset: -2px; }
.pk-map__tiles, .pk-map__markers { position: absolute; inset: 0; }
.pk-map__tiles img { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; opacity: 0; transition: opacity .2s; pointer-events: none; }
.pk-map__tiles img.is-loaded { opacity: 1; }
.pk-marker { position: absolute; top: 0; left: 0; z-index: 1; margin: 0; padding: 5px 10px; border: 0; border-radius: 16px; background: #fff; color: var(--pk-ink); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer; }
.pk-marker::after { content: ""; position: absolute; left: 50%; bottom: -5px; z-index: -1; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); }
.pk-marker:hover, .pk-marker.is-selected { z-index: 3; background: var(--pk-forest); color: #fff; }
.pk-marker:focus-visible { z-index: 3; outline: 2px solid var(--pk-gold); outline-offset: 2px; }
.pk-marker--group { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--pk-forest); color: #fff; font-size: 15px; }
.pk-marker--pin { width: 24px; height: 24px; padding: 0; border: 4px solid #fff; border-radius: 50%; background: var(--pk-forest); }
.pk-marker--group::after, .pk-marker--pin::after { display: none; }
.pk-marker--group:hover, .pk-marker--group.is-selected { background: var(--gold-2, #a87f2f); }
.pk-map__zoom { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; box-shadow: 0 1px 5px rgba(0, 0, 0, .3); }
.pk-map__zoom button { width: 40px; height: 40px; padding: 0; border: 0; border-bottom: 1px solid #e3ded5; background: #fff; color: var(--pk-ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.pk-map__zoom button:last-child { border-bottom: 0; }
.pk-map__attr { position: absolute; right: 0; bottom: 0; z-index: 4; padding: 2px 6px; background: rgba(255, 255, 255, .85); color: #333; font-size: 11px; }
.pk-map__attr a { color: inherit; }
.pk-map-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 24px; background: var(--pk-sand); text-align: center; }
.pk-map-consent p { max-width: 440px; margin: 0; }
.pk-map-consent .button-forest { border: 0; }
.pk-map-pop { position: absolute; right: 12px; bottom: 26px; left: 12px; z-index: 6; display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; pointer-events: none; }
.pk-map-pop > * { pointer-events: auto; }
.pk-pop { display: grid; flex: 0 0 min(360px, calc(100% - 48px)); grid-template-columns: 118px minmax(0, 1fr); height: 116px; overflow: hidden; border-radius: 6px; background: #fff; color: var(--pk-ink); text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.pk-pop img { width: 100%; height: 100%; max-width: none; object-fit: cover; background: var(--pk-sand); }
.pk-pop__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; }
.pk-pop__place { color: var(--pk-muted); font-size: .78rem; }
.pk-pop__title { display: -webkit-box; overflow: hidden; font-family: var(--pk-serif); font-size: 1.08rem; line-height: 1.2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pk-pop .pk-price { margin-top: auto; }
.pk-pop .pk-price strong { font-size: 1.15rem; }
.pk-pop:hover .pk-pop__title { color: var(--pk-forest); text-decoration: underline; }
.pk-map-pop__close { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--pk-ink); font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.pk-map-note { margin: 10px 0 0; }
.pk-single-map { height: 340px; overflow: hidden; border-radius: 6px; background: #e9e5dc; }
.pk-directions { margin-top: 8px; }
.pk-book { display: grid; gap: 10px; margin: 18px 0 8px; }
.pk-book__button { width: 100%; border: 0; }
.pk-book__stay { margin: 0; padding: 10px 12px; border-left: 3px solid var(--pk-gold); background: var(--pk-cream); font-size: .9rem; }
.pk-book__stay[hidden] { display: none; }
.pk-book.is-free .pk-book__stay { border-color: var(--pk-forest); }
.pk-book.is-taken .pk-book__stay { border-color: #a43b2a; }
.pk-book .pk-hint { margin: 0; }

.pk-page :focus-visible { outline: 2px solid var(--gold-2, #a87f2f); outline-offset: 2px; }

@media (max-width: 1040px) {
	.pk-page .poonkt-search { grid-template-columns: 1fr 1.4fr 1.1fr; row-gap: 12px; margin-bottom: -150px; }
	.pk-page .poonkt-search__submit { grid-column: 1 / -1; width: 100%; margin: 0; }
	.pk-hero { margin-bottom: 110px; }
}
@media (max-width: 860px) {
	.pk-layout { grid-template-columns: minmax(0, 1fr); }
	.pk-filters { position: fixed; z-index: 100000; inset: 0; align-self: stretch; justify-self: stretch; display: none; flex-direction: column; border-radius: 0; }
	.pk-filters.is-open { display: flex; }
	.pk-filters__form { flex: 1; min-height: 0; overflow-y: auto; }
	.pk-filters__close { display: block; width: 44px; height: 44px; margin: -8px -10px -8px 0; padding: 0; border: 0; background: none; color: var(--pk-ink); font-size: 28px; line-height: 1; cursor: pointer; }
	.pk-filters__head .pk-link { margin-left: auto; }
	.pk-filters__foot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pk-sand); }
	.pk-filters__show { width: 100%; min-height: 48px; border: 0; }
	.pk-filters__show::after { display: none; }
	.pk-filters-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--pk-forest); border-radius: 4px; background: #fff; color: var(--pk-forest); font: inherit; font-weight: 600; cursor: pointer; }
	.pk-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
	.pk-filters-open { justify-self: start; }
	.pk-views { justify-self: end; }
	.pk-sort { margin-left: 0; }
	.pk-mapview { height: calc(100svh - 150px); min-height: 380px; }
	.pk-single__cols { grid-template-columns: minmax(0, 1fr); }
	html.pk-lock { overflow: hidden; }
}
@media (max-width: 640px) {
	.pk-page .poonkt-search { display: block; margin-bottom: -40px; padding: 6px 8px 14px; }
	.pk-page .poonkt-search__field { padding: 12px 8px; border-right: 0; border-bottom: 1px solid var(--pk-sand); }
	.pk-page .poonkt-search__submit { width: 100%; margin: 14px 0 0; }
	.pk-hero { padding-bottom: 8px; margin-bottom: 64px; }
}
@media (max-width: 480px) {
	.pk-pop { grid-template-columns: 96px minmax(0, 1fr); }
	.pk-sort span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pk-grid, .pk-card, .pk-map__tiles img { transition: none; }
}
