/*
 * PR Rentals — Properties archive.
 *
 * Themes the Guesty Direct Booking plugin Explorer output to match Final Design / Properties.
 * The booking plugin renders the live grid, filters, search and map and emits the
 * theme's .prr-* classes (same contract as the card grids); this file styles
 * them. Brand values are theme.json tokens via var(--wp--preset|custom--*);
 * only structural geometry uses literal px. Cards reuse patterns.css.
 */

.prr-archive {
	padding-inline: 28px;
	padding-bottom: 64px;
}

/* ============================================================
   RESULTS HEADER
   ============================================================ */
.prr-results {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 26px 0 18px;
}
.prr-results__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ocean);
}
.prr-results__sub {
	margin: 7px 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--slate);
}
.prr-results__controls {
	display: flex;
	align-items: center;
	gap: 12px;
}
.prr-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ocean);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.18s ease;
}
.prr-sort:hover {
	border-color: var(--wp--preset--color--ocean);
}
.prr-sort svg {
	width: 15px;
	height: 15px;
	stroke: var(--wp--preset--color--ocean);
}
.prr-sort svg:last-child {
	width: 13px;
	height: 13px;
	stroke: var(--wp--preset--color--slate);
	transition: transform 0.15s ease;
}
.prr-sort-wrap {
	position: relative;
}
.prr-sort-wrap > summary {
	list-style: none;
}
.prr-sort-wrap > summary::-webkit-details-marker {
	display: none;
}
.prr-sort__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 220px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: var(--wp--custom--radius--input);
	box-shadow: 0 12px 32px rgba(12, 58, 91, 0.16);
	padding: 6px;
	z-index: 20;
	margin: 0;
	list-style: none;
}
.prr-sort__opt {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--wp--preset--color--ocean);
	text-decoration: none;
}
.prr-sort__opt:hover {
	background: var(--wp--preset--color--sand);
}
.prr-sort__opt.is-active {
	font-weight: 700;
}
.prr-sort-wrap[open] .prr-sort svg:last-child {
	transform: rotate(180deg);
}
.prr-viewtoggle {
	display: flex;
	padding: 3px;
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--white);
}
.prr-viewtoggle__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.prr-viewtoggle__btn svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
}
.prr-viewtoggle__btn.is-active {
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
}

/* ============================================================
   EXPLORER LAYOUT (sidebar + content)
   ============================================================ */
.prr-explorer__layout {
	display: grid;
	grid-template-columns: 288px 1fr;
	gap: 32px;
	align-items: start;
}
.prr-explorer__content {
	min-width: 0;
}
.prr-explorer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* View toggle: map replaces the grid. */
.prr-explorer.is-map .prr-explorer__grid {
	display: none;
}
.prr-explorer.is-map .prr-map {
	display: block;
}

/* ============================================================
   FILTER SIDEBAR (the filter-control contract)
   ============================================================ */
.prr-filters {
	position: sticky;
	top: 84px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	padding: 24px 22px;
	box-shadow: var(--wp--preset--shadow--card);
}
.prr-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}
.prr-filters__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
}
.prr-filters__clear {
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--wp--preset--color--slate);
	text-decoration: underline;
}
.prr-filter-group {
	padding: 22px 0;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.prr-filter-group:first-of-type {
	padding-top: 0;
}
.prr-filter-group--last {
	padding-bottom: 0;
	border-bottom: none;
}
.prr-filter-group__label {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--charcoal);
}

/* Dual-thumb price range slider (two overlaid range inputs; only the thumbs are
   interactive so both handles are draggable). Drives the Min/Max number inputs. */
.prr-range-slider {
	position: relative;
	height: 26px;
	margin-bottom: 14px;
}
.prr-range-slider__rail,
.prr-range-slider__fill {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	border-radius: 999px;
}
.prr-range-slider__rail {
	left: 0;
	right: 0;
	background: var(--wp--preset--color--border-warm);
}
.prr-range-slider__fill {
	background: var(--wp--preset--color--ocean);
}
.prr-range-slider__input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	pointer-events: none; /* thumbs re-enable below so both handles are grabbable */
	-webkit-appearance: none;
	appearance: none;
}
.prr-range-slider__input::-webkit-slider-runnable-track {
	background: transparent;
	height: 100%;
	border: none;
}
.prr-range-slider__input::-moz-range-track {
	background: transparent;
}
.prr-range-slider__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	/* Center the 18px thumb on the full-height (26px) track: (26 - 18) / 2. */
	margin-top: 4px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ocean);
	box-shadow: 0 1px 4px rgba(12, 58, 91, 0.25);
	cursor: pointer;
}
.prr-range-slider__input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ocean);
	box-shadow: 0 1px 4px rgba(12, 58, 91, 0.25);
	cursor: pointer;
}
.prr-range-slider__input:focus-visible::-webkit-slider-thumb {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}
.prr-range-slider__input:focus-visible::-moz-range-thumb {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}
.prr-range__to {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--slate-faint);
}

/* Price Min/Max fields — currency inputs styled to the theme */
.prr-range__inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}
.prr-range__field {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--white);
	transition: border-color 0.15s ease;
}
.prr-range__field:hover {
	border-color: var(--wp--preset--color--ocean);
}
.prr-range__field:focus-within {
	border-color: var(--wp--preset--color--ocean);
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}
.prr-range__field-label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	white-space: nowrap;
}
.prr-range__number {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: none;
	background: none;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
	-moz-appearance: textfield;
	appearance: textfield;
}
.prr-range__number:focus {
	outline: none;
}
.prr-range__number::-webkit-outer-spin-button,
.prr-range__number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.prr-range__number::placeholder {
	color: var(--wp--preset--color--slate-faint);
	font-weight: 500;
}

/* Dedicated dates + guests search bar (reuses the home pill styling). On the
   cream archive background a lighter shadow reads better than the hero's. */
.prr-search-pill--bar {
	margin-bottom: 22px;
	box-shadow: var(--wp--preset--shadow--card);
}
/* Compact variant — the properties-page bar is smaller than the home hero pill. */
.prr-search-pill--bar .prr-search-seg {
	padding: 8px 18px;
}
.prr-search-pill--bar .prr-search-seg__text {
	gap: 1px;
}
.prr-search-pill--bar .prr-search-seg__label {
	font-size: 10px;
}
.prr-search-pill--bar .prr-search-seg svg {
	width: 18px;
	height: 18px;
}
.prr-search-pill--bar {
	padding: 5px 5px 5px 8px;
}
.prr-search-pill--bar .prr-search-seg__value,
.prr-search-pill--bar .prr-daterange__trigger {
	font-size: 14px;
}
.prr-search-pill--bar .prr-search-btn {
	padding: 11px 24px;
	font-size: 15px;
}
/* Shorter divider only on desktop (vertical line); on mobile the shared rule
   turns it into a 1px horizontal rule — don't override that into a tall block. */
@media ( min-width: 861px ) {
	.prr-search-pill--bar .prr-search-div {
		height: 26px;
	}
}

/* Chips */
.prr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.prr-chip {
	padding: 9px 14px;
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: 8px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}
.prr-chip:hover {
	border-color: var(--wp--preset--color--ocean);
}
.prr-chip.is-active {
	background: var(--wp--preset--color--ocean);
	border-color: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
}

/* Checkboxes */
.prr-check {
	display: flex;
	align-items: center;
	gap: 11px;
	cursor: pointer;
}
.prr-check--gap {
	margin-bottom: 13px;
}
.prr-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--ocean);
	flex-shrink: 0;
}
.prr-check span {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--charcoal);
}

/* ============================================================
   MAP + PRICE PINS
   ============================================================ */
.prr-map {
	position: relative;
	height: 720px;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--card);
	/* Contain Leaflet's internal z-indexes (panes/controls reach 1000) so the map
	   never paints over the mobile nav overlay or sticky header. */
	z-index: 0;
	isolation: isolate;
}
.prr-map__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.prr-map__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 58, 91, 0.06), rgba(12, 58, 91, 0.12));
}
.prr-pin {
	position: absolute;
	transform: translate(-50%, -50%);
	padding: 9px 13px;
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ocean);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(12, 58, 91, 0.22);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.prr-pin:hover {
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
	transform: translate(-50%, -50%) scale(1.08);
}
.prr-pin--active {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ocean);
	box-shadow: 0 6px 16px rgba(12, 58, 91, 0.28);
	z-index: 5;
}
.prr-pin--active:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ocean);
}

/* -------------------------------------------------------
   LEAFLET divIcon price/count pins (.prr-mappin)
   ------------------------------------------------------- */
.prr-mappin {
	display: inline-block;
	padding: 8px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--border-warm);
	color: var(--wp--preset--color--ocean);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(12, 58, 91, 0.22);
	transform: translate(-50%, -50%);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.prr-mappin:hover {
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--ocean);
	transform: translate(-50%, -50%) scale(1.08);
}
.prr-mappin--group {
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--ocean);
}
.prr-mappin--group:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ocean);
	border-color: var(--wp--preset--color--gold);
}
.prr-mappin--active {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ocean);
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 6px 18px rgba(12, 58, 91, 0.3);
	z-index: 9;
}

/* -------------------------------------------------------
   LEAFLET popup wrapper — zero Leaflet chrome padding
   ------------------------------------------------------- */
.prr-leaflet-popup-wrapper .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(12, 58, 91, 0.26);
	border: none;
}
.prr-leaflet-popup-wrapper .leaflet-popup-content {
	margin: 0;
	width: 280px !important;
}
.prr-leaflet-popup-wrapper .leaflet-popup-tip-container {
	display: none;
}

/* -------------------------------------------------------
   Leaflet property-card popup (.prr-map-leaflet-popup)
   ------------------------------------------------------- */
.prr-map-leaflet-popup {
	font-family: var(--wp--preset--font-family--inter);
}

/* Single-unit and multi-unit: shared card style */
.prr-map-leaflet-popup__card {
	display: flex;
	flex-direction: column;
}

.prr-map-leaflet-popup__img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

/* Photo slider (single-unit popup with >1 photo) */
.prr-map-leaflet-popup__media {
	position: relative;
}
.prr-mapslider {
	overflow: hidden;
}
.prr-mapslider__track {
	display: flex;
	transition: transform 0.3s ease;
}
.prr-mapslider__track .prr-map-leaflet-popup__img {
	flex: 0 0 100%;
	width: 100%;
}
.prr-mapslider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wp--preset--color--ocean);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(12, 58, 91, 0.22);
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease;
	z-index: 3;
}
.prr-map-leaflet-popup__media:hover .prr-mapslider__nav,
.prr-mapslider__nav:focus-visible {
	opacity: 1;
}
.prr-mapslider__nav:hover {
	background: var(--wp--preset--color--white);
}
.prr-mapslider__nav svg {
	width: 15px;
	height: 15px;
}
.prr-mapslider__nav--prev {
	left: 8px;
}
.prr-mapslider__nav--next {
	right: 8px;
}
.prr-mapslider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	justify-content: center;
	gap: 5px;
	z-index: 3;
}
.prr-mapslider__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.prr-mapslider__dot.is-active {
	background: var(--wp--preset--color--white);
	transform: scale(1.25);
}

.prr-map-leaflet-popup__body {
	padding: 12px 14px 14px;
}

.prr-map-leaflet-popup__title {
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--ocean);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.prr-map-leaflet-popup__meta {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wp--preset--color--slate);
}

.prr-map-leaflet-popup__price {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 400;
	color: var(--wp--preset--color--charcoal);
	display: flex;
	align-items: baseline;
	gap: 3px;
}
.prr-map-leaflet-popup__price strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--ocean);
}
.prr-map-leaflet-popup__unit {
	font-size: 12px;
	font-weight: 400;
	color: var(--wp--preset--color--slate);
}

.prr-map-leaflet-popup__link {
	display: block;
	width: 100%;
	padding: 9px 16px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ocean);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	box-shadow: var(--wp--preset--shadow--button);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}
.prr-map-leaflet-popup__link:hover {
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
}

/* Group variant */
.prr-map-leaflet-popup--group .prr-map-leaflet-popup__group-heading {
	margin: 0;
	padding: 12px 14px 10px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
	border-bottom: 1px solid var(--wp--preset--color--divider);
}

.prr-map-leaflet-popup--group .prr-map-leaflet-popup__list {
	max-height: 320px;
	overflow-y: auto;
}

/* Group list: each unit is a clickable row (thumb · body · chevron). */
.prr-map-leaflet-popup__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--wp--preset--color--divider);
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}
.prr-map-leaflet-popup__item:last-child {
	border-bottom: none;
}
.prr-map-leaflet-popup__item:hover {
	background: var(--wp--preset--color--sand);
}
.prr-map-leaflet-popup__item .prr-map-leaflet-popup__img {
	width: 72px;
	height: 72px;
	flex: none;
	border-radius: 10px;
}
.prr-map-leaflet-popup__item .prr-map-leaflet-popup__body {
	flex: 1;
	min-width: 0;
	padding: 0;
}
.prr-map-leaflet-popup__item .prr-map-leaflet-popup__title {
	font-size: 13px;
	margin-bottom: 2px;
}
.prr-map-leaflet-popup__item .prr-map-leaflet-popup__meta {
	margin-bottom: 4px;
}
.prr-map-leaflet-popup__item .prr-map-leaflet-popup__price {
	margin: 0;
}
.prr-map-leaflet-popup__item .prr-map-leaflet-popup__price strong {
	font-size: 13.5px;
}
.prr-map-leaflet-popup__chev {
	flex: none;
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--slate-faint);
}
.prr-map-leaflet-popup__chev svg {
	width: 16px;
	height: 16px;
}
.prr-map-leaflet-popup__item:hover .prr-map-leaflet-popup__chev {
	color: var(--wp--preset--color--ocean);
}

/* Leaflet close button — styled chip over the image */
.prr-leaflet-popup-wrapper .leaflet-popup-close-button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: var(--wp--preset--color--charcoal);
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(12, 58, 91, 0.18);
	z-index: 10;
}

/* Highlighted popup card over the map */
.prr-map-popup {
	position: absolute;
	bottom: 20px;
	left: 20px;
	width: 280px;
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(12, 58, 91, 0.26);
}
.prr-map-popup__media {
	position: relative;
	height: 140px;
}
.prr-map-popup__media .prr-card__img {
	height: 100%;
}
.prr-map-popup__body {
	padding: 13px 15px 15px;
}
.prr-map-popup__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	color: var(--wp--preset--color--charcoal);
}
.prr-map-popup__rating svg {
	width: 12px;
	height: 12px;
	fill: var(--wp--preset--color--gold);
}

/* Shared .prr-btn-outline / .prr-btn-solid live in patterns.css (global). */

/* ============================================================
   MOBILE: control bar + filter bottom sheet
   ============================================================ */
.prr-explorer__bar {
	display: none;
	gap: 8px;
	margin-bottom: 18px;
}
.prr-explorer__barbtn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: 9px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ocean);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.prr-explorer__barbtn svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
}
.prr-explorer__barbtn--map {
	flex: 0 0 auto;
	background: var(--wp--preset--color--ocean);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--ocean);
}

.prr-sheet[hidden] {
	display: none;
}
.prr-sheet {
	position: fixed;
	inset: 0;
	z-index: 120;
}
.prr-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 42, 67, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.prr-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -20px 50px rgba(8, 42, 67, 0.22);
	transform: translateY(100%);
	transition: transform 0.28s ease;
}
.prr-sheet.is-open .prr-sheet__backdrop {
	opacity: 1;
}
.prr-sheet.is-open .prr-sheet__panel {
	transform: translateY(0);
}
.prr-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.prr-sheet__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--ocean);
}
.prr-sheet__close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: -10px;
	background: none;
	border: none;
	color: var(--wp--preset--color--ocean);
	cursor: pointer;
}
.prr-sheet__close svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
}
.prr-sheet__body {
	overflow-y: auto;
	padding: 4px 20px 20px;
}
/* Inside the sheet the sidebar is plain (no card chrome / sticky). */
.prr-sheet__body .prr-filters {
	position: static;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}
.prr-sheet__body .prr-filters__head {
	display: none;
}

/* ============================================================
   FOCUS STATES
   ============================================================ */
.prr-sort:focus-visible,
.prr-viewtoggle__btn:focus-visible,
.prr-chip:focus-visible,
.prr-filters__clear:focus-visible,
.prr-pin:focus-visible,
.prr-btn-outline:focus-visible,
.prr-btn-solid:focus-visible,
.prr-explorer__barbtn:focus-visible,
.prr-sheet__close:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	/* Sidebar moves into the bottom sheet; show the mobile control bar. */
	.prr-explorer__layout {
		grid-template-columns: 1fr;
	}
	/* The sidebar filters live inside a <form class="prr-filters__form"> wrapper,
	   so hide the form (the aside is not a direct child of the layout). */
	.prr-explorer__layout > .prr-filters__form {
		display: none;
	}
	.prr-explorer__bar {
		display: flex;
	}
	/* Sort + view toggle live in the mobile bar, not the results header. */
	.prr-results__controls {
		display: none;
	}
}
@media (max-width: 600px) {
	.prr-archive {
		padding-inline: 18px;
	}
	.prr-explorer__grid {
		grid-template-columns: 1fr;
	}
	.prr-map {
		height: 70vh;
	}
	.prr-map-popup {
		left: 12px;
		right: 12px;
		width: auto;
	}
}
@media (prefers-reduced-motion: reduce) {
	.prr-sheet__panel,
	.prr-sheet__backdrop,
	.prr-pin,
	.prr-chip {
		transition: none;
	}
}
