

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}

.leaflet-tile::selection {
	background: transparent;
}

.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}

.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}


.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}

.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: none;
	display: inline-block;
	position: absolute;
	}




.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; 
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}




.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}




.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}


.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; 
	pointer-events: auto;
	}



.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}



.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}




.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}



.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}




.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: none;
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: none;
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}


.leaflet-default-icon-path { 
	background-image: none;
	}




.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}




.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}




.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}




.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}



.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}



@media print {
	
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}


/* Layout concept: the homepage works like one app. Search sits on the harbour photo, the whole
   county is one live map with lenses (stays, food, days out, beaches, walks, places, parishes),
   and places to stay open in a full screen finder over the page, so nobody loses their place.
   Brutalist chrome from the live site: 3px ink borders, hard offset shadows, brand colours. */
:root {
  color-scheme: light;
  --ink: #0b0d12;
  --paper: #ffffff;
  --wash: #effcfd;
  --muted: #475063;
  --soft: #e8ecf2;
  --deep: #062a3a;
  --deep-ink: #e8fbff;
  --cyan: #00f0ff;
  --pink: #ff3399;
  --yellow: #ffd700;
  --green: #00ff66;
  --orange: #ff9000;
  --purple: #cc99ff;
  --focus: #ff3399;
  /* map */
  --sea: #c6ecf7;
  --sea-line: #a9dfee;
  --land: #fffdf3;
  --booking: #1f5fd6;
  --wq-ex: #00b6d6;
  --wq-good: #11c26a;
  --wq-suf: #ff9000;
  --wq-unk: #ffffff;
  --walk: #8f5bff;
  --walk-in: #1fbf74;
  --food: #ff3399;
  --fun: #12c95f;
  /* type: Inter only (AGENTS.md hard rule), max 800 */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --t-xs: 0.78rem; --t-sm: 0.9rem; --t-md: 1rem; --t-lg: 1.2rem;
  --t-xl: clamp(1.4rem, 2.4vw, 1.9rem);
  --t-2xl: clamp(1.9rem, 4vw, 2.75rem);
  --t-hero: clamp(2.4rem, 6.4vw, 4.75rem);
  --b: 3px solid var(--ink);
  --b2: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--t-md); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* readable type rule: never above 800. A bare <b> inside an 800 parent would compute to 900 */
b, strong { font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--wash { background: var(--wash); border-block: var(--b); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--t-2xl); max-width: 24ch; }
.section-head p { color: var(--muted); max-width: 56ch; margin-top: 8px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; border-bottom: 3px solid var(--cyan); padding-bottom: 2px; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-size: inherit; color: inherit; padding-inline: 0; }
.link-arrow:hover { border-bottom-color: var(--pink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 var(--t-md)/1.1 var(--font); text-decoration: none; cursor: pointer; padding: 13px 18px; border: var(--b); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; text-align: center; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn--sm { padding: 9px 12px; font-size: var(--t-sm); box-shadow: 2px 2px 0 var(--ink); }
.btn--pink { background: var(--pink); }
.btn--yellow { background: var(--yellow); }
.btn--cyan { background: var(--cyan); }
.btn--green { background: var(--green); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--cyan); }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip { font: 600 var(--t-sm)/1 var(--font); padding: 9px 12px; border: var(--b2); border-radius: 999px; background: var(--paper); text-decoration: none; cursor: pointer; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: var(--yellow); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip .n { font-variant-numeric: tabular-nums; opacity: .75; font-weight: 700; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--cyan); border-bottom: 5px solid var(--ink); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo__mark { width: 38px; height: 38px; border: var(--b); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink); flex: none; }
.logo__mark svg { width: 38px; height: 38px; }
.logo small { font-weight: 600; font-size: 0.95rem; }
.nav { display: flex; gap: 2px; margin-left: 8px; white-space: nowrap; }
.nav a, .nav button { text-decoration: none; font: 700 var(--t-sm)/1 var(--font); padding: 9px 12px; border-radius: 999px; border: 2px solid transparent; background: none; cursor: pointer; color: var(--ink); }
.nav a:hover, .nav button:hover { border-color: var(--ink); background: var(--paper); }
.top__act { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.top__act .btn { padding: 10px 14px; font-size: var(--t-sm); white-space: nowrap; }
.burger { display: none; }
@media (max-width: 1240px) { .nav { display: none; } .burger { display: inline-flex; } }
@media (max-width: 600px) { .top__act .btn--hide-sm { display: none; } .logo small { display: none; } .desk__form .not-stay:not(.field--wide) { display: none; } .hero__lead { font-size: var(--t-md); } }
@media (max-width: 380px) { .top__act .btn:not(.burger) .ico { display: none; } }
.drawer { background: var(--paper); border-bottom: var(--b); }
/* Safety net for the breakpoint the burger disappears at (the JS also closes it). */
@media (min-width: 1241px) { .drawer { display: none; } }
.drawer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding-block: 16px; }
.drawer a, .drawer button { font: 700 var(--t-md)/1.2 var(--font); text-decoration: none; padding: 12px 14px; border: var(--b2); border-radius: var(--r-sm); background: var(--sc, var(--paper)); text-align: left; cursor: pointer; color: var(--ink); }
.ribbon { background: var(--ink); color: var(--paper); font-size: var(--t-sm); }
.ribbon .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; }
.ribbon b { color: var(--yellow); }
.ribbon button { color: var(--cyan); font: 700 var(--t-sm)/1 var(--font); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 4px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--deep); color: var(--paper); isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,42,58,.12) 0%, rgba(6,42,58,.32) 40%, rgba(6,42,58,.9) 100%); }
.hero__in { padding-block: clamp(48px, 8vw, 108px) 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); border: var(--b); border-radius: 999px; padding: 6px 14px; width: fit-content; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: var(--t-hero); max-width: 14ch; letter-spacing: -0.025em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--pink) 62%, var(--pink) 92%, transparent 92%); padding-inline: 4px; }
.hero__lead { font-size: var(--t-lg); max-width: 50ch; color: #f1fbff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.desk { background: var(--paper); color: var(--ink); border: var(--b); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink); max-width: 1040px; position: relative; min-width: 0; --subj: var(--cyan); }
.tabs { display: flex; gap: 6px; padding: 10px 10px 0; overflow-x: auto; scrollbar-width: none; border-bottom: var(--b); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 700 var(--t-sm)/1 var(--font); padding: 12px 14px 13px; cursor: pointer; border: var(--b); border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--soft); color: var(--ink); display: inline-flex; align-items: center; gap: 7px; position: relative; top: 3px; }
.tab .ico { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--tab, var(--cyan)); padding-bottom: 16px; }
.desk__form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; padding: 16px; align-items: end; }
.desk__form.is-stay { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .7fr) auto; }
.field { display: grid; gap: 6px; min-width: 0; position: relative; }
.field label { font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { width: 100%; font: 500 var(--t-md)/1.2 var(--font); color: var(--ink); background: var(--paper); padding: 13px 12px; border: var(--b); border-radius: var(--r-sm); min-width: 0; }
.field input::placeholder { color: #6b7385; }
.field__x { position: absolute; right: 28px; bottom: 10px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: #eef1f5; color: var(--ink); cursor: pointer; }
.field__x:hover { background: var(--ink); color: #fff; }
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 4px var(--subj, var(--cyan)); }
.desk__go { padding: 14px 24px; font-size: 1.05rem; background: var(--subj, var(--cyan)); }
.stay-only { display: none; }
.is-stay .stay-only { display: grid; }
.is-stay .not-stay { display: none; }
.desk__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 16px 16px; }
.desk__foot > span { font-size: var(--t-sm); color: var(--muted); font-weight: 600; margin-right: 4px; }
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 16px 16px; padding: 12px 14px; border: var(--b2); border-radius: var(--r-sm); background: var(--yellow); }
.resume b { font-weight: 800; }
.resume span { font-size: var(--t-sm); }
.resume .btn { margin-left: auto; }
.resume__x { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: var(--paper); color: var(--ink); border: var(--b2); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.resume__x:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.resume__x:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
@media (max-width: 860px) { .desk__form, .desk__form.is-stay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .desk__form .field--wide, .desk__go { grid-column: 1 / -1; } }
@media (max-width: 860px) { .desk__form:not(.is-stay) .field { grid-column: 1 / -1; } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--paper); border: var(--b); border-radius: var(--r-sm); box-shadow: var(--shadow); max-height: 420px; overflow: auto; padding: 6px; }
.suggest .grp { font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.suggest button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; font: 500 var(--t-md)/1.25 var(--font); color: var(--ink); }
.suggest button[aria-selected="true"], .suggest button:hover { background: var(--wash); }
.suggest .sub { color: var(--muted); font-size: var(--t-sm); }
.suggest .kind { margin-left: auto; font-size: var(--t-xs); font-weight: 700; padding: 3px 8px; border: var(--b2); border-radius: 999px; background: var(--k, var(--soft)); white-space: nowrap; }
.suggest mark { background: var(--yellow); color: var(--ink); padding: 0 1px; }
.suggest .empty { padding: 12px; color: var(--muted); font-size: var(--t-sm); }
.toast { margin: 0 16px 16px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: var(--r-sm); font-size: var(--t-sm); background: var(--wash); overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: var(--t-sm); color: #e3f6fb; }
.facts b { color: var(--paper); font-variant-numeric: tabular-nums; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--paper); background: var(--green); }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { --c: var(--cyan); position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-height: 168px; padding: 18px; border: var(--b); border-radius: var(--r); background: var(--paper); text-decoration: none; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease, background .14s ease; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.cat::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); border: var(--b); transition: transform .2s ease; }
.cat:hover { transform: translate(-2px, -3px); box-shadow: 8px 8px 0 var(--ink); background: var(--c); }
.cat:hover::after { transform: scale(1.6); background: var(--paper); opacity: .35; }
.cat__ico { width: 46px; height: 46px; border: var(--b); border-radius: 12px; background: var(--c); display: grid; place-items: center; position: relative; z-index: 1; }
.cat h3 { font-size: 1.28rem; position: relative; z-index: 1; }
.cat p { color: var(--muted); font-size: var(--t-sm); position: relative; z-index: 1; max-width: 28ch; }
.cat:hover p { color: var(--ink); }
.cat__n { font-size: var(--t-xs); font-weight: 700; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.cat--big { grid-column: span 2; grid-row: span 2; min-height: 352px; background: var(--yellow); --c: var(--paper); }
.cat--big h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cat--big p { font-size: var(--t-md); color: var(--ink); max-width: 36ch; }
.cat--big:hover { background: var(--yellow); }
.cat--big .types { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; align-self: end; }
.cat--big .types span { font-size: var(--t-sm); font-weight: 700; background: var(--paper); border: var(--b2); border-radius: 999px; padding: 6px 10px; }
.cat--big .go { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 800; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); width: fit-content; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat--big { grid-column: span 2; grid-row: auto; min-height: 250px; } }
@media (max-width: 420px) { .cats { gap: 12px; } .cat { min-height: 140px; padding: 14px; } .cat h3 { font-size: 1.08rem; } .cat p { display: none; } .cat--big p { display: block; } }

/* ---------- shared panel helpers (stay finder, cards) ---------- */
.mctl { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; z-index: 2; }
.mctl button { width: 42px; height: 42px; display: grid; place-items: center; background: var(--paper); border: var(--b); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; font: 800 1.2rem/1 var(--font); color: var(--ink); padding: 0; }
.mctl button:hover { background: var(--yellow); }
.mlegend { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(255,255,255,.94); border: var(--b2); border-radius: 10px; padding: 8px 10px; font-size: var(--t-xs); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 24px); }
.mlegend span { display: inline-flex; align-items: center; gap: 6px; }
.mlegend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; flex: none; }
.mlegend i.dia { border-radius: 2px; transform: rotate(45deg); width: 10px; height: 10px; }
.mlegend i.sq { border-radius: 3px; }
.mhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; font-size: var(--t-sm); font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .2s ease; text-align: center; }
.mhint.on { opacity: .92; }
.mlabel { font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv div { border: var(--b2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.kv dt, .kv .k { font-size: var(--t-xs); color: var(--muted); font-weight: 700; }
.kv dd, .kv .v { margin: 0; font-weight: 700; font-size: var(--t-sm); overflow-wrap: anywhere; }
.kv .yes { color: #087a3c; }
.kv .no { color: #8a2b2b; }
.kv .unk { color: var(--muted); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.near { display: grid; gap: 6px; }
.near button, .near a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: var(--b2); border-radius: 10px; background: var(--paper); font: 600 var(--t-sm)/1.25 var(--font); text-decoration: none; cursor: pointer; color: var(--ink); text-align: left; }
.near button:hover, .near a:hover { background: var(--wash); }
.near small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wq { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: var(--t-sm); }
.wq i { width: 12px; height: 12px; border: 2px solid var(--ink); transform: rotate(45deg); border-radius: 2px; background: var(--wc); }

/* ---------- Cornwall, mapped ----------
   The LOOK is the live explorer (explorer-map.css, duchy-explorer.css): tab strip with
   per-tab accents, Leaflet on light tiles, parish fills from the explorer palette, type
   coloured dots, sidebar with a coloured head band. v5 only changes the INTERACTION. */
.mapped { background: linear-gradient(180deg, #effcfd 0%, #ffffff 100%); border-block: var(--b); }
.xtabs { display: flex; margin: 0; background: #fff; border: var(--b); border-radius: 12px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.xtab { appearance: none; flex: 1 1 0; min-width: 0; border: 0; border-right: 2px solid rgba(15, 23, 42, .12); min-height: 50px; padding: 10px 4px; font: 800 clamp(.68rem, 1.8vw, .86rem)/1.15 var(--font); letter-spacing: .02em; text-transform: uppercase; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--mode-accent) 28%, #fff); color: var(--mode-fg); transition: background .14s, box-shadow .14s; }
.xtab:last-child { border-right: 0; }
.xtab:hover { background: color-mix(in srgb, var(--mode-accent) 55%, #fff); }
.xtab[aria-selected="true"] { background: var(--mode-accent); box-shadow: inset 0 -5px 0 var(--ink); }
.xtab--parishes { --mode-accent: #5dd9d0; --mode-fg: #0f4038; }
.xtab--settlements { --mode-accent: #c4a8f0; --mode-fg: #2d1f4a; }
.xtab--beaches { --mode-accent: #5baeff; --mode-fg: #0f2d5c; }
.xtab--walks { --mode-accent: #5ed991; --mode-fg: #0f3d24; }
.xtab .n { font-weight: 600; opacity: .7; margin-left: 4px; }
@media (max-width: 520px) { .xtab .n { display: none; } }

.x5 { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 370px); border: var(--b); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 3px 3px 0 var(--ink); height: min(78vh, 720px); min-height: 560px; }
.x5-stage { position: relative; min-width: 0; min-height: 0; isolation: isolate; }
.x5-map { position: absolute; inset: 0; background: #c2c8ca; }
.x5-map.no-tiles, .sf-map.no-tiles { background: #c2c8ca; }
.leaflet-container, .leaflet-container .maplibregl-map { font-family: var(--font); }   /* MapLibre CSS loads later and sets Helvetica Neue */
.x5-map.leaflet-container, .sf-map.leaflet-container { background: #c2c8ca; }  /* Positron water */
[data-basemap="osm"].leaflet-container { background: #aad3df; }  /* OSM water, fallback only */
.leaflet-tooltip { font: 700 12px/1.2 var(--font); border: 2px solid var(--ink); border-radius: 6px; box-shadow: none; padding: 4px 7px; }
.x5-float { position: absolute; left: 14px; top: 14px; z-index: 1100; max-width: min(320px, calc(100% - 170px)); background: rgba(255, 255, 255, .82); border: 2px solid rgba(0, 0, 0, .45); padding: .7rem .9rem; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: grid; gap: 2px; pointer-events: none; }
.x5-float .k { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.x5-float strong { font-size: 1.3rem; font-weight: 800; line-height: 1.15; }
.x5-float span:last-child { font-size: .82rem; color: #1e293b; }
.x5-ctl { position: absolute; right: 12px; top: 66px; z-index: 1100; display: grid; gap: 0; border: var(--b); border-radius: 10px; overflow: hidden; background: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.x5-ctl button { width: 42px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; border: 0; border-bottom: 1px solid #2b313d; cursor: pointer; font: 800 1.15rem/1 var(--font); padding: 0; }
.x5-ctl button:last-child { border-bottom: 0; }
.x5-ctl button:hover { background: #1f2633; }
.x5-ctl .ico { width: 20px; height: 20px; }
.x5-also { position: absolute; left: 14px; bottom: 26px; z-index: 1100; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: calc(100% - 28px); background: rgba(255, 255, 255, .94); border: var(--b2); border-radius: 12px; padding: 6px 8px; }
.x5-also > span { font-size: var(--t-xs); font-weight: 800; padding-inline: 4px 2px; }
.x5-also .chip { padding: 7px 10px; font-size: var(--t-xs); gap: 6px; }
.x5-also .chip i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--oc); }
.x5-also .chip .n { font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; }
.x5-also .chip[aria-pressed="true"] { background: var(--oc); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.x5-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1150; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: var(--t-sm); font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .2s; text-align: center; }
.x5-hint.on { opacity: .92; }
.x5-open, .x5-close, .x5-sheetbtn { display: none; }
.x5-nomap { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; }

.x5-side { border-left: var(--b); display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; min-width: 0; background: #fff; }
.x5-side__head { background: var(--vband, #5dd9d0); color: var(--vfg, #0f4038); padding: 14px 16px 14px; display: grid; gap: 6px; border-bottom: var(--b2); transition: background .2s; }
.x5-side__head h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; }
.x5-side__head p { font-size: .85rem; }
.x5-search { position: relative; margin-top: 4px; }
.x5-search input { width: 100%; font: 500 var(--t-md)/1.2 var(--font); padding: 11px 12px 11px 36px; border: var(--b2); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b0d12' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; color: var(--ink); }
.x5-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .7); }
.x5-search .suggest { z-index: 1200; max-height: 360px; }
.x5-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 8px 16px; border-bottom: 2px solid var(--soft); font-size: .84rem; min-height: 38px; background: #fafbfc; }
.x5-crumbs button { font: 700 .84rem/1.2 var(--font); background: none; border: 0; padding: 3px 2px; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.x5-crumbs button:hover { color: #0b5cad; }
.x5-crumbs .sep { color: var(--muted); }
.x5-crumbs [aria-current] { font-weight: 800; }
.x5-body { overflow: auto; padding: 14px 16px 20px; display: grid; gap: 14px; align-content: start; min-height: 0; }
.xlab { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tf button { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 2px solid #cbd5e1; border-radius: 4px; background: #fff; font: 700 .85rem/1.15 var(--font); color: #64748b; cursor: pointer; text-align: left; }
.tf button[aria-pressed="true"] { border: 3px solid var(--ink); color: var(--ink); padding: 7px 9px; }
.tf i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tc); background: #fff; flex: none; }
.tf button[aria-pressed="true"] i { background: var(--tc); }
.tf .n { margin-left: auto; border: 2px solid currentColor; padding: 0 5px; font-size: .74rem; font-variant-numeric: tabular-nums; }
.xstats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.xstats div { border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; text-align: center; display: grid; gap: 2px; }
.xstats b { font-size: 1.5rem; font-weight: 800; color: #1e2a5a; font-variant-numeric: tabular-nums; line-height: 1.1; }
.xstats span { font-size: .78rem; color: #475569; }
.towns { display: flex; flex-wrap: wrap; gap: 6px; }
.towns button { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem/1 var(--font); padding: 7px 9px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); }
.towns button:hover { background: var(--yellow); }
.towns i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); border: 1.5px solid var(--ink); }
.xlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.xlist button { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 8px 9px; border: 2px solid transparent; border-radius: 9px; background: none; cursor: pointer; font: 600 .88rem/1.25 var(--font); color: var(--ink); }
.xlist button:hover, .xlist button:focus-visible { border-color: var(--ink); background: var(--wash); }
.xlist i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--dc); }
.xlist i.dia { border-radius: 2px; transform: rotate(45deg); width: 10px; height: 10px; }
.xlist .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xlist small { color: var(--muted); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wqk { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; font-weight: 700; }
.wqk span { display: inline-flex; align-items: center; gap: 6px; }
.wqk i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); background: var(--wc); }
.xf { display: flex; flex-wrap: wrap; gap: 6px; }
.xf .chip { padding: 7px 10px; font-size: var(--t-xs); }
.xc { display: grid; gap: 12px; }
.xc__eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.xc h4 { font-size: 1.4rem; line-height: 1.15; }
.xc__sub { font-size: .88rem; color: var(--muted); font-weight: 600; }
.xact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.xact .btn { padding: 10px 10px; font-size: .86rem; box-shadow: 2px 2px 0 var(--ink); min-height: 44px; justify-content: center; text-align: center; white-space: nowrap; }
.xact .btn .ico { width: 18px; height: 18px; }
.xact .is-on { background: var(--pink); }
/* Convention: an arrow means the button leaves this view and opens a page. */
.xact .btn--page::after { content: "\2197"; margin-left: 6px; font-weight: 800; }
.xviews { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; font-weight: 700; }
.xviews button { font: 700 .8rem/1 var(--font); padding: 7px 10px; border: 2px solid var(--ink); border-radius: 999px; background: color-mix(in srgb, var(--mode-accent) 35%, #fff); cursor: pointer; color: var(--ink); }
.xviews button[aria-current="true"] { background: var(--mode-accent); box-shadow: inset 0 -3px 0 var(--ink); }
.plinks { line-height: 1.9; }
.plinks button, .plinks span { font: 700 .9rem/1.3 var(--font); background: none; border: 0; padding: 0; margin-right: .7em; cursor: pointer; color: var(--pc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.plinks span { cursor: default; text-decoration: none; font-weight: 600; }
.bfacts { display: grid; gap: 0; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.bfacts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; font-size: .88rem; border-bottom: 1px solid var(--soft); }
.bfacts div:last-child { border-bottom: 0; }
.bfacts dt { font-weight: 700; color: var(--muted); }
.bfacts dd { margin: 0; font-weight: 700; text-align: right; }
.wqbadge { display: inline-flex; width: fit-content; color: #fff; font-weight: 800; font-size: .82rem; padding: 5px 10px; border-radius: 6px; background: var(--wc); border: 2px solid var(--ink); }
.wqbadge.dark { color: var(--ink); }

@media (max-width: 1023px) {
  .x5 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px auto; height: auto; min-height: 0; }
  .x5-side { border-left: 0; border-top: var(--b); }
  .x5-body { max-height: 560px; }
  .x5-open { display: inline-flex; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1100; box-shadow: var(--shadow-sm); }
  .x5-also { bottom: 72px; }
  .x5:not(.is-full) .x5-ctl, .x5:not(.is-full) .x5-also, .x5:not(.is-full) .x5-float { display: none; }
  .x5-open { white-space: nowrap; }
  .x5:not(.is-full) .x5-map { cursor: pointer; }
  .x5.is-full { position: fixed; inset: 0; z-index: 95; margin: 0; border: 0; border-radius: 0; box-shadow: none; grid-template-rows: minmax(0, 1fr) auto; height: auto; }
  .x5.is-full .x5-open { display: none; }
  /* Full map: the round close button owns the exit; hide the stage pill so they cannot stack. */
  .x5.is-full .x5-exit { display: none; }
  .x5.is-full .x5-close { display: grid; place-items: center; position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 1150; width: 46px; height: 46px; border-radius: 50%; border: var(--b); background: var(--yellow); font: 800 1.5rem/1 var(--font); cursor: pointer; box-shadow: var(--shadow-sm); color: var(--ink); }
  .x5.is-full .x5-ctl { top: calc(70px + env(safe-area-inset-top, 0px)); }
  .x5.is-full .x5-float { top: calc(12px + env(safe-area-inset-top, 0px)); max-width: calc(100% - 80px); }
  .x5.is-full .x5-also { bottom: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 5px 6px; }
  .x5.is-full .x5-also > span { display: none; }
  .x5.is-full .x5-also .chip { flex: none; }
  .x5.is-full .x5-side { max-height: 44vh; grid-template-rows: auto auto auto minmax(0, 1fr); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 0 rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .x5.is-full.sheet-tall .x5-side { max-height: 82vh; }
  .x5.is-full .x5-sheetbtn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-bottom: 2px solid var(--soft); background: #fff; font: 800 .8rem/1 var(--font); cursor: pointer; color: var(--ink); }
  .x5.is-full .x5-sheetbtn::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: #cbd5e1; }
  .x5.is-full .x5-body { max-height: none; }
  .x5.is-full .x5-side__head { padding: 10px 14px; }
  .x5.is-full .x5-side__head p { display: none; }
  /* the four lenses stay switchable in full screen: the live tab strip pins above the map, left of the close button */
  html.map-full-open .xtabs { position: fixed; z-index: 96; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; right: 70px; margin: 0; box-shadow: 2px 2px 0 var(--ink); }
  html.map-full-open .xtab { min-height: 46px; padding: 6px 2px; }
  .x5.is-full .x5-float { top: calc(66px + env(safe-area-inset-top, 0px)); padding: .4rem .65rem; max-width: calc(100% - 92px); }
  .x5.is-full .x5-float.is-county, .x5.is-full .x5-float .k { display: none; }
  .x5.is-full .x5-float strong { font-size: 1.02rem; }
  .x5.is-full .x5-float span:last-child { font-size: .74rem; }
  /* list pulled up: the map is a strip, so its buttons step aside instead of spilling onto the list */
  .x5.is-full.sheet-tall .x5-ctl, .x5.is-full.sheet-tall .x5-also, .x5.is-full.sheet-tall .x5-float { display: none; }
}
/* narrow phones: mixed case so "Settlements" fits its tab instead of being cut off */
@media (max-width: 520px) { .xtab { text-transform: none; letter-spacing: 0; font-size: clamp(.64rem, 3vw, .8rem); } }
html.map-full-open { overflow: hidden; }
html.map-full-open .dock, html.map-full-open .mock-flag { display: none; }

/* stay finder map pins (same as /plan/: navy numbered pins, Booking.com blue ring, saved pink) */
.leaflet-marker-icon.spin-wrap { background: none; border: 0; }

.mapped__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.mapped__foot span { color: var(--muted); font-size: var(--t-sm); }

/* ---------- iconic eight ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px 22px; margin-inline: -6px; scrollbar-width: thin; }
.icard { scroll-snap-align: start; display: grid; grid-template-rows: 170px auto; border: var(--b); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.icard__art { position: relative; border-bottom: var(--b); background: var(--art, var(--cyan)); display: grid; place-items: end start; padding: 14px; overflow: hidden; }
.icard__art .big { position: absolute; right: -8px; bottom: -30px; font-size: 7rem; font-weight: 800; line-height: 1; color: rgba(11,13,18,.12); letter-spacing: -0.04em; }
.badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 800; background: var(--paper); border: var(--b2); border-radius: 999px; padding: 5px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge .star { color: #c98a00; }
.icard__body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.icard__area { font-size: var(--t-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.icard h3 { font-size: 1.2rem; }
.icard h3 a { text-decoration: none; }
.icard h3 a:hover { text-decoration: underline; }
.icard p { font-size: var(--t-sm); color: var(--muted); }
.icard .acts { margin-top: 4px; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 46px; height: 46px; padding: 0; }

/* ---------- plan band ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.pcard { background: var(--paper); color: var(--ink); border: var(--b); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pcard h3 { font-size: var(--t-xl); }
.pcard p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--t-sm); font-weight: 600; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border: var(--b2); border-radius: 50%; display: grid; place-items: center; background: var(--green); font-weight: 800; }
.jack__head { display: flex; align-items: center; gap: 12px; }
.jack__ava { width: 48px; height: 48px; border: var(--b); border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; flex: none; }
.chat { display: grid; gap: 10px; background: var(--wash); border: var(--b2); border-radius: var(--r-sm); padding: 12px; }
.bubble { padding: 10px 12px; border: var(--b2); border-radius: 12px; font-size: var(--t-sm); max-width: 90%; }
.bubble--me { justify-self: end; background: var(--cyan); border-bottom-right-radius: 4px; }
.bubble--jack { background: var(--paper); border-bottom-left-radius: 4px; }
.chat__tag { font-size: var(--t-xs); font-weight: 700; color: var(--muted); }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ask input { font: 500 var(--t-sm)/1.2 var(--font); padding: 12px; border: var(--b); border-radius: var(--r-sm); min-width: 0; }
.stay-types { display: grid; gap: 10px; }
.stay-type { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: var(--b2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.stay-type:hover { background: var(--yellow); }
.stay-type .i { width: 44px; height: 44px; border: var(--b2); border-radius: 10px; background: var(--yellow); display: grid; place-items: center; }
.stay-type b { display: block; }
.stay-type small { color: var(--muted); font-variant-numeric: tabular-nums; }
.stay-type .go { font-weight: 800; }
.bk { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- gems, who, trust ---------- */
.gems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gem { display: grid; gap: 8px; padding: 18px; border: var(--b); border-radius: var(--r); background: var(--paper); align-content: start; text-align: left; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow-sm); }
.gem:hover { background: var(--wash); }
.gem .tag { width: fit-content; font-size: var(--t-xs); font-weight: 800; padding: 4px 9px; border: var(--b2); border-radius: 999px; background: var(--green); }
.gem h3 { font-size: 1.15rem; }
.gem p { font-size: var(--t-sm); color: var(--muted); }
.gem .where { font-size: var(--t-xs); font-weight: 700; }
@media (max-width: 860px) { .gems { grid-template-columns: minmax(0, 1fr); } }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.who a { display: grid; gap: 10px; align-content: start; padding: 24px; border: var(--b); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); background: var(--paper); transition: transform .14s ease; }
.who a:hover { transform: translate(-2px, -2px); }
.who h3 { font-size: 1.35rem; }
.who p { color: var(--muted); font-size: var(--t-sm); }
.who .go { font-weight: 800; margin-top: 6px; }
.who a:nth-child(1) { border-top: 12px solid var(--cyan); }
.who a:nth-child(2) { border-top: 12px solid var(--green); }
.who a:nth-child(3) { border-top: 12px solid var(--pink); }
@media (max-width: 860px) { .who { grid-template-columns: minmax(0, 1fr); } }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--b); border-radius: var(--r); overflow: hidden; margin-top: 28px; background: var(--paper); }
.trust div { padding: 18px 20px; display: grid; gap: 4px; }
.trust div + div { border-left: var(--b); }
.trust b { font-size: 1.05rem; }
.trust span { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 760px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust div + div { border-left: 0; border-top: var(--b); } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #dfe6ee; padding-block: 64px 120px; }
.foot h2 { color: var(--paper); font-size: var(--t-xl); margin-bottom: 8px; }
.foot__lead { color: #a8b3c2; margin-bottom: 32px; max-width: 60ch; }
.dir { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.dir h3 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: 12px; }
.dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dir a { text-decoration: none; font-size: var(--t-sm); color: #dfe6ee; }
.dir a:hover { color: var(--yellow); text-decoration: underline; }
.foot__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2a3140; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: var(--t-xs); color: #8e99aa; }
.foot__base a { color: #c2ccd8; }
@media (max-width: 960px) { .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- phone dock ---------- */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: var(--b); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; text-decoration: none; font: 700 0.72rem/1.2 var(--font); border-radius: 10px; background: none; border: 0; color: var(--ink); cursor: pointer; }
  .dock a:active, .dock button:active { background: var(--cyan); }
  .dock .ico { width: 24px; height: 24px; }
  .dock .hot { background: var(--yellow); border: var(--b2); }
}

/* ================= STAY FINDER: the live /stay/ planner (assets/css/trip-planner.css), scoped to #sf =================
   Same cp2-* classes, tokens, sizes and breakpoints as live (desktop list 440px, 400px at 1280px and below; phones at
   900px and below with the theme's 44px touch rule copied in). v7 additions are marked "v7". */
#sf, #sf-compare, #sf-gallery {
  --ink: #0f1b2d; --ink-2: #334155; --muted: #64748b; --line: #e4e9ef; --line-2: #cfd8e3; --bg: #f6f8fa; --card: #fff;
  --accent: #ffd644; --accent-ink: #3b2f00; --sea: #0a7ea4; --sea-soft: #e6f5fa; --good: #0f7a4b;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .08);
  --shadow-lg: 0 20px 60px rgba(15, 27, 45, .22);
  --bar-h: 68px; --list-w: 440px;
  font-family: Inter, 'Inter Fallback', 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.45; color: var(--ink);
}
#sf {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden;
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
#sf *, #sf *::before, #sf *::after, #sf-compare *, #sf-gallery * { box-sizing: border-box; }
#sf :where(button, input, select), #sf-compare :where(button, input), #sf-gallery button { font: inherit; color: inherit; }
#sf [hidden], #sf-compare [hidden], #sf-gallery [hidden] { display: none !important; }
#sf button, #sf-compare button, #sf-gallery button { cursor: pointer; }
#sf :focus-visible, #sf-compare :focus-visible, #sf-gallery :focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 8px; }
#sf h1, #sf h2, #sf h3, #sf-compare h2, #sf-compare h3 { font-family: inherit; letter-spacing: normal; text-transform: none; text-wrap: wrap; color: var(--ink); line-height: 1.25; }
#sf p { margin: 0; }
#sf .cp2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sf .cp2-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#sf .cp2-muted, #sf-compare .cp2-muted { color: var(--muted); margin: 0; }

/* ---------- Top bar ---------- */
#sf .cp2-bar { position: relative; z-index: 1200; display: flex; align-items: center; gap: 12px; height: var(--bar-h); padding: 0 16px; background: var(--accent); border-bottom: 1px solid rgba(15, 27, 45, .12); flex-shrink: 0; }
/* v7: the overlay's own Back, before the logo (desktop pill with text, icon only on phones) */
#sf .cp2-back { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 46px; margin: 0; padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .9rem/1 Inter, 'Segoe UI', system-ui, sans-serif; }
#sf .cp2-back:hover { border-color: var(--ink); }
#sf .cp2-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#sf .cp2-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
#sf .cp2-logo__img { display: block; width: 60px; height: 60px; max-width: none; margin: -10px -2px; }
#sf .cp2-logo__text { font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
#sf .cp2-search { position: relative; flex: 1 1 320px; max-width: 460px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 45, .05); transition: border-color .15s, box-shadow .15s; }
#sf .cp2-search:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px var(--sea-soft); }
#sf .cp2-search .cp2-ico { color: var(--muted); }
#sf .cp2-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; font-weight: 600; -webkit-appearance: none; appearance: none; }
#sf .cp2-search input::-webkit-search-cancel-button { display: none; }
#sf .cp2-search:focus-within input:focus-visible { outline: 0; }
#sf .cp2-search__clear { flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); font-size: 1.1rem; line-height: 1; }
/* the shared makeSearch rows, dressed as the live suggest list */
#sf .cp2-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1300; max-height: 360px; overflow: auto; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
#sf .cp2-suggest [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; font: 400 .95rem/1.3 Inter, system-ui, sans-serif; }
#sf .cp2-suggest [role="option"] > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sf .cp2-suggest [role="option"][aria-selected="true"], #sf .cp2-suggest [role="option"]:hover { background: var(--sea-soft); }
#sf .cp2-suggest .sub { color: var(--muted); font-size: .8rem; font-weight: 600; }
#sf .cp2-suggest .kind { flex: none; color: var(--muted); font-size: .8rem; font-weight: 600; }
#sf .cp2-suggest mark { background: none; color: var(--sea); font-weight: 800; }
#sf .cp2-suggest .grp { display: none; }
#sf .cp2-suggest .empty { padding: 10px 12px; color: var(--ink-2); font-size: .9rem; }

#sf .cp2-when { position: relative; display: flex; align-items: center; gap: 6px; flex: none; }
#sf .cp2-when > label, #sf .cp2-guests__btn { display: grid; gap: 0; height: 46px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; text-align: left; }
#sf .cp2-when > label span, #sf .cp2-guests__btn span { font-size: .68rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
#sf .cp2-when input[type="date"] { border: 0; padding: 0; background: transparent; font-weight: 700; font-size: .86rem; min-width: 0; width: 124px; min-height: 0; height: 22px; line-height: 22px; }
#sf .cp2-when input[type="date"]:focus-visible { outline: 0; }
#sf .cp2-when > label:focus-within { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
#sf .cp2-guests { position: relative; }
#sf .cp2-guests__btn strong { font-size: .86rem; white-space: nowrap; }
#sf .cp2-when__error { position: absolute; top: calc(100% + 4px); left: 0; margin: 0; font-size: .78rem; font-weight: 700; color: #b42335; white-space: nowrap; }
#sf .cp2-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300; width: 280px; display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
#sf .cp2-step { display: grid; grid-template-columns: 1fr 34px 30px 34px; align-items: center; gap: 6px; font-weight: 600; }
#sf .cp2-step button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; font-size: 1.1rem; line-height: 1; }
#sf .cp2-step button:disabled { opacity: .35; cursor: default; }
#sf .cp2-step output { text-align: center; font-weight: 800; }
#sf .cp2-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
#sf .cp2-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }

#sf .cp2-views { display: flex; flex: none; margin-left: auto; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
#sf .cp2-views__btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 .86rem/1 Inter, system-ui, sans-serif; }
#sf .cp2-views__btn .cp2-ico { width: 17px; height: 17px; stroke-width: 1.8; }
#sf .cp2-views__btn:hover { color: var(--ink); }
#sf .cp2-views__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
#sf .cp2-when-sum { display: none; }
#sf .cp2-trip-btn { display: flex; align-items: center; gap: 8px; flex: none; height: 46px; padding: 0 8px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; }
#sf .cp2-trip-btn:hover { border-color: var(--ink); }
#sf .cp2-trip-btn.is-bump .cp2-count { animation: cp2-bump .45s ease; }
#sf .cp2-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .82rem; font-weight: 800; }
@keyframes cp2-bump { 40% { transform: scale(1.3); } }

/* ---------- Buttons ---------- */
#sf .cp2-btn, #sf-compare .cp2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-weight: 700; text-decoration: none; color: var(--ink); }
#sf .cp2-btn:hover, #sf-compare .cp2-btn:hover { border-color: var(--ink); }
#sf .cp2-btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
#sf .cp2-btn--dark:hover { background: #1f2f47; }
#sf .cp2-btn--accent, #sf-compare .cp2-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
#sf .cp2-btn--accent:hover, #sf-compare .cp2-btn--accent:hover { border-color: #e6bb20; background: #ffcf2e; }
#sf .cp2-btn--save { background: #ffe3e6; border-color: #f2b9c0; color: #b42318; }
#sf .cp2-btn--save:hover { background: #ffd3d8; border-color: #e58a95; }
#sf .cp2-btn--save.is-saved { background: #f6bcc4; border-color: #e58a95; }
#sf .cp2-btn__heart svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#sf .cp2-btn--save.is-saved .cp2-btn__heart svg { fill: currentColor; }
#sf .cp2-btn__brand { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 6px; background: #fff; }
#sf .cp2-btn__brand img, #sf-compare .cp2-btn__brand img { display: block; height: 14px; width: auto; max-width: 90px; }
#sf .cp2-booking { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 6px; background: #fff; border: 1px solid #d8dee9; }
#sf .cp2-booking img { display: block; height: 14px; width: auto; max-width: 90px; }
#sf .cp2-icon-btn, #sf-compare .cp2-icon-btn, #sf-gallery .cp2-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.25rem; line-height: 1; }
#sf .cp2-icon-btn:hover, #sf-compare .cp2-icon-btn:hover { border-color: var(--ink); }
#sf .cp2-icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Quick-town row ---------- */
#sf .cp2-quick-towns { flex: none; display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 7px 16px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
#sf .cp2-quick-towns::-webkit-scrollbar { display: none; }
#sf .cp2-quick-towns span { flex: none; color: var(--muted); padding-right: 8px; }
#sf .cp2-quick-towns button { flex: none; border: 0; border-radius: 999px; background: transparent; padding: 8px 12px; white-space: nowrap; transition: background .12s, color .12s; }
#sf .cp2-quick-towns button[aria-current="true"] { background: var(--sea-soft); color: var(--ink); font-weight: 700; }
#sf .cp2-quick-towns button:not([aria-current="true"]):hover { background: var(--bg); color: var(--ink); }
#sf .cp2-quick-towns button:focus-visible { outline: 3px solid var(--sea); outline-offset: -3px; }

/* ---------- Body: list + map ---------- */
#sf .cp2-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--list-w) minmax(0, 1fr); transition: grid-template-columns .25s ease; }
#sf .cp2-body[data-collapsed="true"] { grid-template-columns: 0 minmax(0, 1fr); }
#sf .cp2-body[data-collapsed="true"] .cp2-list { visibility: hidden; }
#sf .cp2-list { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain; background: #fff; border-right: 1px solid var(--line); scrollbar-width: thin; }
#sf .cp2-sheet-handle { display: none; }

/* start screen */
#sf .cp2-start { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 26px 22px; }
#sf .cp2-start__title { margin: 0 0 6px; font-size: 1.55rem; line-height: 1.2; font-weight: 800; }
#sf .cp2-start > p { margin: 0 0 18px; color: var(--ink-2); }
#sf .cp2-start > p.cp2-muted { margin: 0; color: var(--muted); }
#sf .cp2-all-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 14px; padding: 14px 16px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--ink); font: 700 .95rem/1.25 Inter, system-ui, sans-serif; text-align: left; box-shadow: 0 2px 0 rgba(15, 27, 45, .12); }
#sf .cp2-all-btn .cp2-ico { flex: none; width: 20px; height: 20px; stroke-width: 2.2; }
#sf .cp2-all-btn:hover { filter: brightness(.97); }
#sf .cp2-desttabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; margin: 0 0 2px; scrollbar-width: none; }
#sf .cp2-desttabs::-webkit-scrollbar { display: none; }
#sf .cp2-desttab { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .8rem; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
#sf .cp2-desttab:hover { background: var(--bg); }
#sf .cp2-desttab.is-active { background: #0f2a43; border-color: #0f2a43; color: #fff; }
#sf .cp2-towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
#sf .cp2-town { position: relative; display: flex; align-items: flex-end; min-height: 96px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); overflow: hidden; text-align: left; background: linear-gradient(135deg, #0f3b57, #0a7ea4); color: #fff; font-weight: 800; isolation: isolate; transition: transform .15s, box-shadow .15s; }
#sf .cp2-town::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 18, 32, .72), rgba(8, 18, 32, 0) 65%); }
#sf .cp2-town:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
#sf .cp2-town img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
#sf .cp2-town:hover img { transform: scale(1.05); }
#sf .cp2-town__meta { display: block; }
#sf .cp2-town__name { display: block; font-size: .95rem; }
#sf .cp2-town__line { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .82); }
#sf .cp2-start__h { margin: 4px 0 8px; font-size: .95rem; font-weight: 800; }
#sf .cp2-townlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
#sf .cp2-townchip { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .84rem/1 Inter, system-ui, sans-serif; }
#sf .cp2-townchip:hover, #sf .cp2-townchip:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff; }
#sf .cp2-resume { position: relative; margin: 0 0 12px; }
#sf .cp2-resume__x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
#sf .cp2-resume__x:hover, #sf .cp2-resume__x:focus-visible { background: #eef3f7; color: var(--ink); }
#sf .cp2-resume__btn { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px 40px 8px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); text-align: left; box-shadow: var(--shadow); }
#sf .cp2-resume__btn:hover { border-color: var(--ink); }
#sf .cp2-resume__img { position: relative; width: 64px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(135deg, #eef3f7, #dde6ee); }
#sf .cp2-resume__img img { width: 100%; height: 100%; object-fit: cover; }
#sf .cp2-resume__text { display: grid; gap: 1px; min-width: 0; }
#sf .cp2-resume__text small { font-size: .74rem; font-weight: 700; color: var(--sea); }
#sf .cp2-resume__text strong { font-size: .95rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sf .cp2-resume__text span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* results head */
#sf .cp2-results { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#sf .cp2-head { flex: none; display: grid; gap: 8px; padding: 14px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 12px -10px rgba(15, 27, 45, .25); position: relative; z-index: 2; }
#sf .cp2-head > * { min-height: min-content; flex-shrink: 0; }
#sf .cp2-head__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
#sf .cp2-results__title { flex: 1; min-width: 0; margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sf .cp2-status { margin: -4px 0 0; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sf .cp2-status:empty { display: none; }
#sf .cp2-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 4px -6px 0; }
#sf .cp2-cat { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 10px 6px 11px; border: 1px solid var(--line-2); border-radius: 12px; background: #f7fafc; color: var(--muted); font: 600 .76rem/1.15 Inter, system-ui, sans-serif; transition: transform .12s, box-shadow .12s, border-color .12s, background .12s, color .12s; }
#sf .cp2-cat__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); transition: background .12s, color .12s, border-color .12s; }
#sf .cp2-cat__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#sf .cp2-cat__label { max-width: 100%; text-align: center; overflow-wrap: normal; word-break: keep-all; font-weight: 700; }
#sf .cp2-cat__n { font-size: .7rem; font-weight: 600; color: var(--muted); }
#sf .cp2-cat:hover { color: var(--ink); border-color: var(--ink); background: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15, 42, 67, .10); }
#sf .cp2-cat:hover .cp2-cat__ico { background: var(--accent); border-color: transparent; }
#sf .cp2-cat:active { transform: translateY(0); box-shadow: none; }
#sf .cp2-cat[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(15, 42, 67, .22); transform: none; }
#sf .cp2-cat[aria-checked="true"] .cp2-cat__ico { background: var(--accent); border-color: transparent; color: var(--ink); }
#sf .cp2-cat[aria-checked="true"] .cp2-cat__label { color: #fff; }
#sf .cp2-cat[aria-checked="true"] .cp2-cat__n { color: rgba(255, 255, 255, .78); }
#sf .cp2-cat:focus-visible { outline: 3px solid var(--sea); outline-offset: -3px; }
#sf .cp2-subs { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; padding: 2px 0; }
#sf .cp2-sub { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font: 600 .78rem/1 Inter, system-ui, sans-serif; white-space: nowrap; }
#sf .cp2-sub small { color: var(--muted); font-weight: 600; }
#sf .cp2-sub:hover { border-color: var(--ink); }
#sf .cp2-sub[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#sf .cp2-sub[aria-checked="true"] small { color: #c5d1df; }
#sf .cp2-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#sf .cp2-type-btn { display: none; }
#sf .cp2-filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .84rem/1 Inter, system-ui, sans-serif; }
#sf .cp2-filter-btn .cp2-ico { width: 16px; height: 16px; }
#sf .cp2-filter-btn:hover, #sf .cp2-filter-btn[aria-expanded="true"] { border-color: var(--ink); }
#sf .cp2-filter-btn.is-on { background: var(--sea-soft); border-color: var(--sea); color: var(--sea); }
#sf .cp2-filter-btn .cp2-count { min-width: 20px; height: 20px; font-size: .72rem; }
#sf .cp2-sort { flex: none; }
#sf .cp2-sort select { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .84rem; }
#sf .cp2-townpick { display: none; }

/* filters: a calm tick list (inline on phones, a popout over the map edge on desktop) */
#sf .cp2-filters { display: block; padding: 10px 14px 12px; border-radius: var(--r-sm); background: var(--bg); }
#sf .cp2-filters__head { margin: 12px 2px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b8298; }
#sf .cp2-filters__head:first-child { margin-top: 2px; }
#sf .cp2-filters .cp2-toggle { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-radius: 8px; cursor: pointer; }
#sf .cp2-filters .cp2-toggle:hover { background: rgba(15, 42, 67, .045); }
#sf .cp2-filters .cp2-toggle input { position: static; opacity: 1; pointer-events: auto; width: 17px; height: 17px; min-height: 0; margin: 0; flex: none; accent-color: #0f2a43; cursor: pointer; }
#sf .cp2-filters .cp2-toggle span { display: block; height: auto; padding: 0; background: none; box-shadow: none; font-size: .84rem; font-weight: 700; color: #29435c; }
#sf .cp2-filters .cp2-toggle input:checked + span { color: #0f2a43; }
#sf .cp2-filters .cp2-toggle small { margin-left: auto; font-size: .74rem; font-weight: 700; color: #7a8fa3; }
/* v7: a row that would empty the list is switched off, so no tick ever leads to nothing */
#sf .cp2-filters .cp2-toggle.is-off { cursor: default; }
#sf .cp2-filters .cp2-toggle.is-off:hover { background: none; }
#sf .cp2-filters .cp2-toggle.is-off span, #sf .cp2-filters .cp2-toggle.is-off small { color: #a9b6c4; }
#sf .cp2-filters .cp2-toggle.is-off input { cursor: default; opacity: .5; }
#sf .cp2-filters__note { margin: 8px 2px 0; font-size: .74rem; line-height: 1.4; font-weight: 600; color: #6b8298; }

/* cards */
#sf .cp2-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#sf .cp2-cards { margin: 0; padding: 10px 12px; list-style: none; display: grid; gap: 4px; }
#sf .cp2-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px; border-radius: var(--r); cursor: pointer; transition: background .12s; border: 1px solid rgba(15, 27, 45, .08); }
#sf .cp2-card:hover, #sf .cp2-card.is-hot { background: var(--bg); }
#sf .cp2-card.is-active { background: var(--sea-soft); box-shadow: inset 0 0 0 1.5px var(--sea); }
#sf .cp2-card.is-hot.from-map { background: #fff8db; box-shadow: inset 0 0 0 2px var(--accent), 0 4px 14px rgba(15, 27, 45, .08); }
#sf .cp2-card.is-hot.from-map .cp2-card__num { background: var(--accent); }
#sf .cp2-card__img { position: relative; width: 112px; height: 96px; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(135deg, #eef3f7, #dde6ee); }
#sf .cp2-card__img img, #sf .cp2-hover__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
#sf .cp2-card__num { position: absolute; top: 6px; left: 6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: .72rem; font-weight: 800; }
#sf .cp2-noimg, #sf-compare .cp2-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #8a9bb0; }
#sf .cp2-noimg svg, #sf-compare .cp2-noimg svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#sf .cp2-card__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
#sf .cp2-card__title { margin: 0; font-size: .98rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 42px; }
#sf .cp2-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8rem; color: var(--muted); font-weight: 600; padding-right: 42px; }
#sf .cp2-type { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #fff6d1; color: var(--accent-ink); font-size: .72rem; font-weight: 800; }
#sf .cp2-rate { color: var(--ink); font-weight: 800; }
#sf .cp2-rate::before { content: "\2605 "; color: #e4a400; }
#sf .cp2-rate small { color: var(--muted); font-weight: 600; }
/* v7: up to two recorded facilities on a card */
#sf .cp2-fact { color: var(--good); font-weight: 600; }
#sf .cp2-card__book { align-self: flex-start; display: inline-flex; align-items: center; height: 32px; margin-top: 6px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 700; text-decoration: none; }
#sf .cp2-card__book:hover { filter: brightness(.96); }
#sf .cp2-save { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); }
#sf .cp2-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
#sf .cp2-save:hover { border-color: var(--ink); color: var(--ink); }
#sf .cp2-save[aria-pressed="true"] { color: #e0245e; border-color: #f6c0d1; background: #fff1f5; }
#sf .cp2-save[aria-pressed="true"] svg { fill: currentColor; }
#sf .cp2-sentinel { height: 1px; }
#sf .cp2-foot { margin: 6px 18px 22px; font-size: .78rem; color: var(--muted); }
#sf .cp2-empty { padding: 30px 18px; text-align: center; color: var(--ink-2); }
#sf .cp2-empty strong { display: block; margin-bottom: 4px; font-size: 1.02rem; color: var(--ink); }
#sf .cp2-empty__act { margin-top: 14px; }
/* v7: never widen silently. A thin result offers the next radius as a button. */
#sf .cp2-widen { padding: 6px 0 2px; }
#sf .cp2-widen button { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px dashed var(--ink); border-radius: var(--r); background: #fffbea; color: var(--ink-2); font-size: .86rem; font-weight: 600; text-align: center; }
#sf .cp2-widen button b { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
#sf .cp2-widen button:hover { background: #fff3c4; }
#sf .cp2-empty .cp2-widen { margin-top: 14px; }

/* ---------- Map ---------- */
#sf .cp2-map-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#sf .cp2-map { position: absolute; inset: 0; z-index: 0; background: #dbe9ef; }
#sf .cp2-map[data-basemap="osm"] .leaflet-tile-pane { filter: saturate(.78) contrast(1.02) brightness(1.04); }
#sf .cp2-map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-2); font-weight: 700; }
#sf .leaflet-container { font-family: Inter, 'Inter Fallback', system-ui, sans-serif; }
#sf .leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; margin: 10px 0 0 10px; }
#sf .leaflet-control-zoom a { display: block; width: 38px !important; height: 38px !important; line-height: 38px !important; text-align: center; text-decoration: none; background: #fff; color: var(--ink) !important; border-bottom: 1px solid var(--line) !important; font: 700 22px/38px Inter, system-ui, sans-serif; }
#sf .leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
#sf .leaflet-control-zoom a:hover { background: var(--bg); }
#sf .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .8) !important; border-radius: 8px 0 0 0; }
#sf .cp2-map-ctrl { position: absolute; top: 12px; right: 12px; z-index: 800; display: flex; align-items: flex-start; gap: 8px; }
#sf .cp2-area { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 800; }
#sf .cp2-pill { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .86rem; box-shadow: var(--shadow); white-space: nowrap; }
#sf .cp2-pill--county { background: var(--accent); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 10px rgba(15, 27, 45, .18); }
#sf .cp2-pill--county:hover, #sf .cp2-pill--county:focus-visible { background: #ffcf2e; }
#sf .cp2-pill--county.is-nudging { animation: cp2-county-nudge 6s ease-in-out infinite; }
@keyframes cp2-county-nudge { 0%, 84%, 100% { transform: none; } 86% { transform: translateX(-3px) rotate(-1.5deg); } 88% { transform: translateX(3px) rotate(1.5deg); } 90% { transform: translateX(-3px) rotate(-1.5deg); } 92% { transform: translateX(3px) rotate(1.5deg); } 94% { transform: translateX(-2px) rotate(-1deg); } 96% { transform: none; } }
/* v7: the radius pill beside All Cornwall, with its menu */
#sf .cp2-radius { position: relative; }
#sf .cp2-pill--radius { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 10px rgba(15, 27, 45, .18); }
#sf .cp2-pill--radius:hover, #sf .cp2-pill--radius[aria-expanded="true"] { background: var(--bg); }
#sf .cp2-radius__chev { font-size: .78rem; transition: transform .15s; }
#sf .cp2-pill--radius[aria-expanded="true"] .cp2-radius__chev { transform: rotate(180deg); }
#sf .cp2-radius__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300; width: 210px; display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 22px 52px rgba(15, 42, 67, .24); }
#sf .cp2-radius__menu p { margin: 2px 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b8298; }
#sf .cp2-radius__menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: #29435c; font: 700 .86rem/1 Inter, system-ui, sans-serif; text-align: left; }
#sf .cp2-radius__menu button small { font-size: .74rem; font-weight: 700; color: #7a8fa3; }
#sf .cp2-radius__menu button:hover { background: var(--bg); }
#sf .cp2-radius__menu button[aria-checked="true"] { background: var(--ink); color: #fff; }
#sf .cp2-radius__menu button[aria-checked="true"] small { color: #c5d1df; }
#sf .cp2-radius__menu button:disabled { color: #a9b6c4; cursor: default; background: none; }
#sf .cp2-collapse { position: absolute; top: 50%; left: 0; z-index: 800; transform: translateY(-50%); width: 22px; height: 64px; padding: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: #fff; box-shadow: var(--shadow); font-size: 1.1rem; color: var(--ink-2); }
#sf .cp2-body[data-collapsed="true"] .cp2-collapse span { display: inline-block; transform: rotate(180deg); }
#sf .cp2-mini-open { display: none; }

/* pins: a round badge centred on the point */
#sf .cp2-pin { background: none; border: 0; }
#sf .cp2-pin span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border: 2px solid #fff; border-radius: 999px; background: var(--ink); color: #fff; font: 800 12px/1 Inter, system-ui, sans-serif; box-shadow: 0 2px 8px rgba(15, 27, 45, .35); transform: translate(-50%, -50%); position: absolute; left: 50%; top: 50%; white-space: nowrap; transition: transform .12s, background .12s; }
#sf .cp2-pin.is-saved span { background: #e0245e; }
#sf .cp2-pin.is-booking span { border: 3px solid #1a73e8; box-shadow: 0 0 0 1.5px #fff, 0 2px 8px rgba(15, 27, 45, .35); }
#sf .cp2-pin.is-hot span, #sf .cp2-pin:hover span { background: var(--accent); color: var(--ink); transform: translate(-50%, -50%) scale(1.18); z-index: 2; }
#sf .cp2-pin.is-active span { background: var(--accent); color: var(--ink); border-color: var(--ink); transform: translate(-50%, -50%) scale(1.28); }
#sf .cp2-pin.is-booking.is-active span { border-color: #1a73e8; }
#sf .leaflet-marker-icon.is-hot, #sf .leaflet-marker-icon.is-active { z-index: 10000 !important; }
#sf .cp2-centre { background: none; border: 0; }
#sf .cp2-centre span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 6px rgba(10, 126, 164, .2); }
/* town markers (start screen) */
#sf .cp2-townpin { background: none; border: 0; }
#sf .cp2-townpin__dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px #fff, 0 1px 4px rgba(15, 27, 45, .35); transition: transform .12s; }
#sf .cp2-townpin.is-minor .cp2-townpin__dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #fff; }
#sf .cp2-townpin__label { position: absolute; top: 0; left: 9px; transform: translateY(-50%); display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: #fff; color: var(--ink); white-space: nowrap; font: 700 12.5px/1 Inter, system-ui, sans-serif; box-shadow: 0 1px 2px rgba(15, 27, 45, .12), 0 3px 10px rgba(15, 27, 45, .16); transition: background .12s, color .12s; }
#sf .cp2-townpin.is-minor .cp2-townpin__label { height: 22px; padding: 0 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
#sf .cp2-townpin[data-pos="l"] .cp2-townpin__label { left: auto; right: 9px; }
#sf .cp2-townpin[data-pos="t"] .cp2-townpin__label { top: auto; bottom: 9px; left: 0; transform: translateX(-50%); }
#sf .cp2-townpin[data-pos="b"] .cp2-townpin__label { top: 9px; left: 0; transform: translateX(-50%); }
#sf .cp2-townpin.is-nolabel .cp2-townpin__label { visibility: hidden; }
#sf .cp2-townpin.is-off { display: none; }
#sf .leaflet-marker-icon.cp2-townpin:hover, #sf .leaflet-marker-icon.cp2-townpin:focus, #sf .leaflet-marker-icon.cp2-townpin.is-lit { z-index: 10000 !important; }
#sf .cp2-townpin:hover .cp2-townpin__label, #sf .cp2-townpin:focus .cp2-townpin__label, #sf .cp2-townpin.is-lit .cp2-townpin__label { visibility: visible; background: var(--ink); color: #fff; }
#sf .cp2-townpin:hover .cp2-townpin__dot, #sf .cp2-townpin:focus .cp2-townpin__dot { transform: scale(1.25); }
#sf .cp2-townpin.is-lit .cp2-townpin__dot { transform: scale(1.35); }

/* hover card (desktop) */
#sf .cp2-hover { position: absolute; z-index: 880; width: 300px; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: cp2-pop .14s ease; }
#sf .cp2-hover::after { content: ''; position: absolute; left: var(--arrow, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(15, 27, 45, .08); }
#sf .cp2-hover.is-below::after { bottom: auto; top: -7px; box-shadow: -2px -2px 5px rgba(15, 27, 45, .06); }
@keyframes cp2-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }
#sf .cp2-hover__img { position: relative; height: 140px; background: linear-gradient(135deg, #eef3f7, #dde6ee); }
#sf .cp2-hover__body { position: relative; z-index: 1; display: grid; gap: 5px; padding: 12px 14px 14px; background: #fff; }
#sf .cp2-hover__title { font-size: 1rem; font-weight: 800; line-height: 1.25; }
#sf .cp2-hover__line { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 600; }
#sf .cp2-hover__acts { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#sf .cp2-hover__acts .cp2-btn { flex: 1; min-height: 38px; }
#sf .cp2-hover__acts .cp2-save { position: static; flex: none; width: 38px; height: 38px; }
#sf .cp2-hover .cp2-card__meta { padding-right: 0; }

/* ---------- Detail drawer (over the map) ---------- */
#sf .cp2-drawer { position: absolute; top: 12px; right: 12px; bottom: 12px; z-index: 900; width: min(460px, calc(100% - 24px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: cp2-in .22s ease; }
#sf .cp2-drawer:focus { outline: 0; }
@keyframes cp2-in { from { opacity: 0; transform: translateX(16px); } }
#sf .cp2-drawer__top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
#sf .cp2-drawer__pos { flex: 1; font-size: .8rem; font-weight: 700; color: var(--muted); }
#sf .cp2-drawer__scroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#sf .cp2-drawer__scroll > .cp2-loading { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
#sf .cp2-loading { height: 3px; background: linear-gradient(90deg, var(--sea) 0 30%, transparent 30%); background-size: 200% 100%; animation: cp2-load 1s linear infinite; }
@keyframes cp2-load { from { background-position: 100% 0; } to { background-position: -100% 0; } }
#sf .cp2-hero { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef3f7, #dde6ee); }
#sf .cp2-hero img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
#sf .cp2-hero .cp2-noimg svg { width: 44px; height: 44px; }
#sf .cp2-hero__view { position: absolute; top: 10px; right: 10px; z-index: 3; height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 999px; background: rgba(15, 27, 45, .68); color: #fff; font: 700 .78rem/1 Inter, system-ui, sans-serif; transition: background .12s; }
#sf .cp2-hero__view:hover { background: rgba(15, 27, 45, .88); }
#sf .cp2-detail { padding: 16px 18px 22px; display: grid; gap: 12px; }
#sf .cp2-detail h2 { margin: 0; font-size: 1.4rem; line-height: 1.2; font-weight: 800; }
#sf .cp2-detail .cp2-card__meta { padding-right: 0; }
#sf .cp2-detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#sf .cp2-detail__actions .cp2-btn { width: 100%; }
#sf .cp2-facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); }
#sf .cp2-facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 14px; border-top: 1px solid var(--line); font-size: .88rem; }
#sf .cp2-facts li:first-child { border-top: 0; }
#sf .cp2-facts svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sf .cp2-facts a { color: var(--sea); font-weight: 700; text-decoration: none; word-break: break-word; }
#sf .cp2-facts a:hover { text-decoration: underline; }
/* v7: the phone number as text with Copy (tel: stays the production choice) */
#sf .cp2-phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
#sf .cp2-phone__n { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; user-select: all; }
#sf .cp2-copy { height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .78rem/1 Inter, system-ui, sans-serif; }
#sf .cp2-copy:hover { border-color: var(--ink); }
#sf .cp2-attr { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
#sf .cp2-attr h3 { margin: 0; font-size: .92rem; font-weight: 800; }
#sf .cp2-attr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#sf .cp2-attr__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .86rem; }
#sf .cp2-attr__list a, #sf .cp2-attr__list button { min-width: 0; min-height: 0; padding: 0; border: 0; background: none; color: var(--sea); font: 700 .86rem/1.35 Inter, system-ui, sans-serif; text-align: left; text-decoration: none; }
#sf .cp2-attr__list a:hover, #sf .cp2-attr__list button:hover { text-decoration: underline; }
#sf .cp2-attr__km { color: var(--muted); font-weight: 600; white-space: nowrap; }
#sf .cp2-content { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
#sf .cp2-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--sea); font-weight: 800; }
#sf .cp2-note { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); font-size: .8rem; color: var(--ink-2); }
#sf .cp2-credit { margin: 0; font-size: .74rem; color: var(--muted); }
#sf .cp2-drawer-booking { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
#sf .cp2-drawer-booking > a { min-width: 0; }
#sf .cp2-drawer-booking .cp2-book-note { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
#sf .cp2-drawer-booking .cp2-btn--save { padding: 10px; }
#sf .cp2-drawer-booking .cp2-btn--save > span:last-child { display: none; }
#sf .cp2-book-note { margin: 6px 0 0; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* ---------- Shortlist bar, dock ---------- */
#sf .cp2-shortlist { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; padding: 8px 18px; }
#sf .cp2-shortlist span { font-weight: 700; }
#sf .cp2-dock, #sf .cp2-locate-fab { display: none; }

/* ---------- Compare and gallery dialogs ---------- */
#sf-compare { width: min(1100px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--ink); background: #fff; overflow: auto; }
#sf-compare::backdrop { background: rgba(15, 27, 45, .6); }
#sf-compare p { margin: 1em 0; }
#sf-compare .cp2-compare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#sf-compare .cp2-compare-head .cp2-icon-btn { flex: none; }
#sf-compare .cp2-compare-head h2 { margin: 0; font-size: 1.5rem; line-height: 1.45; font-weight: 800; }
#sf-compare .cp2-compare-options { display: block; }
#sf-compare .cp2-compare-choice { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
#sf-compare .cp2-compare-choice input { width: 20px; height: 20px; flex: none; }
#sf-compare .cp2-compare-choice input:disabled + span { color: var(--muted); }
#sf-compare .cp2-compare-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#sf-compare .cp2-compare-card { min-width: 0; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; }
#sf-compare .cp2-compare-card p { margin: 1em 0; font-size: .9rem; color: var(--ink-2); }
#sf-compare .cp2-compare-img { height: 150px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #eef3f7, #dde6ee); margin-bottom: 8px; }
#sf-compare .cp2-compare-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
#sf-compare .cp2-compare-card h3 { margin: 1em 0; font-size: 1.1rem; line-height: 1.45; font-weight: 800; }
#sf-compare .cp2-compare-card .cp2-btn { display: flex; margin-top: 0; white-space: normal; text-align: center; }
#sf-compare .cp2-link { justify-self: start; margin-top: 0; padding: 0; border: 0; background: none; color: var(--sea); font-weight: 800; }
#sf-gallery { width: min(1100px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: #0d1b2a; color: #fff; }
#sf-gallery::backdrop { background: rgba(8, 15, 26, .78); }
#sf-gallery .cp2-gallery-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#sf-gallery .cp2-gallery-top p { margin: 0; font-weight: 800; }
#sf-gallery .cp2-icon-btn { color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; }
#sf-gallery .cp2-icon-btn:disabled { opacity: .35; cursor: default; }
#sf-gallery .cp2-gallery-image { display: grid; place-items: center; min-height: 40vh; }
#sf-gallery .cp2-gallery-image img { width: 100%; max-width: none; max-height: min(72vh, 720px); object-fit: contain; display: block; border-radius: 10px; }
#sf-gallery .cp2-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
#sf-gallery .cp2-gallery-controls span { font-weight: 700; }

/* ---------- Mid widths ---------- */
@media (max-width: 1280px) {
  #sf { --list-w: 400px; }
  #sf .cp2-logo__text { display: none; }
  #sf .cp2-when input[type="date"] { width: 112px; }
}
@media (max-width: 1180px) { #sf .cp2-views__btn span { display: none; } #sf .cp2-views__btn { padding: 0 11px; } }
@media (max-width: 1080px) {
  #sf .cp2-trip-btn__label, #sf .cp2-back > span { display: none; }
  #sf .cp2-back { padding: 0 12px 0 10px; }
  #sf .cp2-when > label span, #sf .cp2-guests__btn span { display: none; }
  #sf .cp2-when > label, #sf .cp2-guests__btn { height: 46px; align-content: center; }
}
@media (max-width: 1080px) and (min-width: 901px) { #sf .cp2-logo { display: none; } }

/* ---------- Grid view (desktop) ---------- */
@media (min-width: 901px) {
  #sf .cp2-body:not([data-view="grid"]) .cp2-card__book { display: none; }
  #sf .cp2-filters:not([hidden]) { position: fixed; width: 280px; min-height: 0; max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain; z-index: 1300; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 22px 52px rgba(15, 42, 67, .24); padding: 12px 14px 14px; }
  #sf .cp2-body[data-view="grid"] { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: 210px minmax(0, 1fr); }
  #sf .cp2-body[data-view="grid"] .cp2-list, #sf .cp2-body[data-view="grid"] .cp2-results { display: contents; visibility: visible; }
  #sf .cp2-body[data-view="grid"] .cp2-results[hidden], #sf .cp2-body[data-view="grid"] .cp2-start, #sf .cp2-body[data-view="grid"] .cp2-sheet-handle { display: none; }
  #sf .cp2-body[data-view="grid"] .cp2-map-wrap { grid-column: 1; grid-row: 1; margin: 14px 14px 0; border: 1px solid var(--line-2); border-radius: var(--r); }
  #sf .cp2-body[data-view="grid"] .cp2-head { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; border-bottom: 0; box-shadow: none; }
  #sf .cp2-body[data-view="grid"] .cp2-head > * { flex: none; }
  #sf .cp2-body[data-view="grid"] .cp2-scroll { grid-column: 2; grid-row: 1 / span 2; background: var(--bg); border-left: 1px solid var(--line); }
  #sf .cp2-body[data-view="grid"] .cp2-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; margin: 2px 0 0; }
  #sf .cp2-body[data-view="grid"] .cp2-filter-btn { display: none; }
  #sf .cp2-body[data-view="grid"] .cp2-tools { justify-content: stretch; }
  #sf .cp2-body[data-view="grid"] .cp2-sort, #sf .cp2-body[data-view="grid"] .cp2-sort select { width: 100%; }
  /* live quirk fixed: in grid view the filters are an always-open rail, not a fixed popout */
  #sf .cp2-body[data-view="grid"] .cp2-filters:not([hidden]) { position: static; width: auto; max-height: none; overflow: visible; box-shadow: none; border: 0; border-radius: var(--r-sm); background: var(--bg); padding: 10px 14px 12px; }
  #sf .cp2-body[data-view="grid"] .cp2-townpick { display: grid; gap: 4px; }
  #sf .cp2-townpick span { font-size: .76rem; font-weight: 700; color: var(--muted); }
  #sf .cp2-townpick select { -webkit-appearance: none; appearance: none; height: 40px; padding: 0 38px 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%230f1b2d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 15px 15px; color: var(--ink); font: 700 .92rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
  #sf .cp2-townpick select:hover, #sf .cp2-townpick select:focus { border-color: var(--ink); }
  #sf .cp2-body[data-view="grid"] .cp2-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 20px 22px; }
  #sf .cp2-body[data-view="grid"] .cp2-card { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
  #sf .cp2-body[data-view="grid"] .cp2-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 27, 45, .08), 0 14px 30px rgba(15, 27, 45, .12); }
  #sf .cp2-body[data-view="grid"] .cp2-card__img { width: 100%; height: 176px; border-radius: 0; }
  #sf .cp2-body[data-view="grid"] .cp2-card__num { display: none; }
  #sf .cp2-body[data-view="grid"] .cp2-card__body { padding: 12px 14px 14px; }
  #sf .cp2-body[data-view="grid"] .cp2-card__title { padding-right: 0; }
  #sf .cp2-body[data-view="grid"] .cp2-save { top: 10px; right: 10px; background: rgba(255, 255, 255, .94); }
  #sf .cp2-body[data-view="grid"] .cp2-widen, #sf .cp2-body[data-view="grid"] .cp2-empty { grid-column: 1 / -1; }
  #sf .cp2-body[data-view="grid"] .cp2-collapse, #sf .cp2-body[data-view="grid"] .cp2-map-ctrl, #sf .cp2-body[data-view="grid"] .leaflet-control-zoom,
  #sf .cp2-body[data-view="grid"] .cp2-area, #sf .cp2-body[data-view="grid"] .cp2-drawer, #sf .cp2-body[data-view="grid"] .cp2-hover,
  #sf .cp2-body[data-view="grid"] .leaflet-marker-pane, #sf .cp2-body[data-view="grid"] .leaflet-overlay-pane, #sf .cp2-body[data-view="grid"] .leaflet-sfring-pane { display: none !important; }
  #sf .cp2-body[data-view="grid"] .cp2-mini-open { position: absolute; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 14px; border: 0; background: linear-gradient(to top, rgba(15, 27, 45, .28), rgba(15, 27, 45, 0) 55%); }
  #sf .cp2-body[data-view="grid"] .cp2-mini-open span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .86rem/1 Inter, system-ui, sans-serif; box-shadow: var(--shadow-lg); }
  #sf .cp2-body[data-view="grid"] .cp2-mini-open:hover span { background: #1d2f4a; }
}

/* ---------- Phones and small tablets: map first, list as a bottom sheet ---------- */
@media (max-width: 900px) {
  /* the theme's touch rule (style.css), copied in so the finder looks the same here */
  #sf button, #sf input[type="button"], #sf input[type="submit"], #sf input[type="reset"] { min-height: 44px; min-width: 44px; }
  #sf input, #sf textarea, #sf select { min-height: 44px; font-size: 16px; }
  #sf { --bar-h: auto; font-size: 14.5px; }
  #sf .cp2-bar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; row-gap: 8px; }
  #sf .cp2-back { order: 1; height: 44px; min-height: 0; padding: 0 10px 0 8px; }
  #sf .cp2-back > span { display: none; }
  #sf .cp2-logo { order: 1; }
  #sf .cp2-search { order: 2; flex: 1 1 0; height: 44px; max-width: none; padding: 0 6px 0 10px; }
  #sf .cp2-trip-btn { order: 3; margin-left: 0; height: 44px; }
  #sf .cp2-trip-btn__label { display: none; }
  #sf .cp2-views { display: none; }
  #sf .cp2-when-sum { order: 4; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 0; height: 38px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .86rem/1 Inter, system-ui, sans-serif; text-align: left; }
  #sf .cp2-when-sum__ico { display: grid; place-items: center; flex: none; color: var(--muted); }
  #sf .cp2-when-sum__ico .cp2-ico { width: 17px; height: 17px; }
  #sf .cp2-when-sum__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #sf .cp2-when-sum__edit { flex: none; height: 28px; min-height: 0; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: .8rem; }
  #sf .cp2-when-sum:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
  #sf .cp2-bar:not(.is-when-open) .cp2-when { display: none; }
  #sf .cp2-bar.is-when-open .cp2-when-sum { border-color: var(--ink); }
  #sf .cp2-when { order: 5; flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  #sf .cp2-when > label, #sf .cp2-guests__btn { width: 100%; height: 48px; padding: 4px 10px; display: grid; align-content: center; gap: 2px; }
  #sf .cp2-when > label span, #sf .cp2-guests__btn span { display: block; line-height: 1.1; }
  #sf .cp2-when input[type="date"] { width: 100%; font-size: .8rem; }
  #sf .cp2-guests__btn { min-height: 0; }
  #sf .cp2-guests__btn strong { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
  #sf .cp2-when__error { position: static; grid-column: 1 / -1; white-space: normal; }
  #sf .cp2-when__error:empty { display: none; }
  #sf .cp2-pop { right: 0; max-width: calc(100vw - 24px); }
  #sf .cp2-step { grid-template-columns: 1fr 44px 30px 44px; }
  #sf .cp2-step button { width: 44px; height: 44px; }
  #sf .cp2-quick-towns { padding: 4px 8px; font-size: .85rem; }

  #sf .cp2-body { display: block; }
  #sf .cp2-map-wrap { position: absolute; inset: 0; }
  #sf .cp2-collapse { display: none; }
  #sf .cp2-list { position: absolute; left: 0; right: 0; bottom: 0; z-index: 850; height: 58%; border-right: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(15, 27, 45, .18); transition: height .25s ease; }
  #sf .cp2-body[data-sheet="peek"] .cp2-list { height: 132px; }
  #sf .cp2-body[data-sheet="full"] .cp2-list { height: calc(100% - 8px); }
  #sf .cp2-sheet-handle { display: grid; place-items: center; position: static; flex: none; z-index: 5; width: 100%; height: 20px; min-height: 0; padding: 0; border: 0; background: #fff; border-radius: 20px 20px 0 0; touch-action: none; }
  #sf .cp2-sheet-handle span { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); }
  #sf .cp2-start { padding: 6px 16px 20px; }
  #sf .cp2-start__title { font-size: 1.3rem; }
  #sf .cp2-card { grid-template-columns: 96px minmax(0, 1fr); }
  #sf .cp2-card__img { width: 96px; height: 84px; }
  #sf .cp2-card__title, #sf .cp2-card__meta { padding-right: 52px; }
  #sf .cp2-scroll .cp2-cards { padding: 6px 8px; }
  #sf .cp2-map-ctrl { top: 10px; right: 10px; }
  #sf .cp2-pill--county { display: none; }
  #sf .cp2-map-wrap:has(> .cp2-drawer:not([hidden])) .cp2-map-ctrl { display: none; }
  #sf .cp2-area { top: 60px; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #sf .cp2-hover { display: none !important; }

  /* results head: [title / count], then [type menu] [filters] [sort]; types and filters open as panels */
  #sf .cp2-head { grid-template-columns: minmax(0, 1fr); column-gap: 8px; row-gap: 8px; padding: 2px 12px 10px; }
  #sf .cp2-head > * { grid-column: 1 / -1; }
  #sf .cp2-head > .cp2-head__row { grid-column: 1; grid-row: 1; }
  #sf .cp2-head > .cp2-status { grid-column: 1; grid-row: 2; margin: -6px 0 0; font-size: .8rem; }
  #sf .cp2-head > .cp2-tools { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 5px; justify-content: flex-start; }
  #sf .cp2-head > .cp2-cats { grid-row: 4; }
  #sf .cp2-head > .cp2-subs { grid-row: 5; }
  #sf .cp2-head > .cp2-filters { grid-row: 6; }
  #sf .cp2-results__title { font-size: 1.15rem; }
  #sf .cp2-results__pre { display: none; }
  #sf .cp2-filter-btn { width: 38px; height: 36px; padding: 0; justify-content: center; position: relative; }
  #sf .cp2-filter-btn > span:not(.cp2-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #sf .cp2-filter-btn .cp2-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: .68rem; }
  #sf .cp2-sort select { height: 36px; max-width: 132px; font-size: .82rem; border-radius: 999px; }
  #sf .cp2-head > .cp2-tools .cp2-filter-btn { flex: none; width: 44px; height: 38px; }
  #sf .cp2-head > .cp2-tools .cp2-sort { flex: none; }
  #sf .cp2-head > .cp2-tools .cp2-sort select { height: 38px; max-width: 132px; padding: 0 24px 0 10px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px 12px; }
  #sf .cp2-type-btn { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 5px; height: 38px; min-height: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .88rem/1 Inter, system-ui, sans-serif; }
  #sf .cp2-type-btn__ico { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
  #sf .cp2-type-btn__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #sf .cp2-type-btn__label { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #sf .cp2-type-btn__n { flex: none; color: var(--muted); font-weight: 600; font-size: .8rem; }
  #sf .cp2-type-btn__chev { flex: none; margin-left: auto; font-size: .8rem; color: var(--ink-2); transition: transform .15s; }
  #sf .cp2-head.is-types-open .cp2-type-btn { border-color: var(--ink); }
  #sf .cp2-head.is-types-open .cp2-type-btn__chev { transform: rotate(180deg); }
  #sf .cp2-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  #sf .cp2-cat { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font: 600 .8rem/1 Inter, system-ui, sans-serif; white-space: nowrap; box-shadow: none; transform: none; }
  #sf .cp2-cat:hover { transform: none; box-shadow: none; }
  #sf .cp2-cat__ico { display: none; }
  #sf .cp2-cat__n { font-size: .74rem; }
  #sf .cp2-cat[aria-checked="true"] { background: var(--accent); border-color: var(--ink); color: var(--ink); font-weight: 800; box-shadow: none; }
  #sf .cp2-cat[aria-checked="true"] .cp2-cat__label, #sf .cp2-cat[aria-checked="true"] .cp2-cat__n { color: var(--ink); }
  #sf .cp2-when-sum, #sf .cp2-cat, #sf .cp2-sub, #sf .cp2-filter-btn, #sf .cp2-when-sum__edit, #sf .cp2-type-btn, #sf .cp2-dock__jump { min-height: 0; }
  #sf .cp2-subs { gap: 5px; padding: 0; margin-top: -2px; }
  #sf .cp2-sub { height: 26px; padding: 0 9px; font-size: .74rem; gap: 4px; }
  #sf .cp2-sub small { font-size: .7rem; }
  #sf .cp2-head:not(.is-types-open) > .cp2-cats, #sf .cp2-head:not(.is-types-open) > .cp2-subs { display: none !important; }
  #sf .cp2-head.is-types-open > .cp2-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 14px; background: var(--bg); }
  #sf .cp2-head.is-types-open .cp2-cat { justify-content: space-between; height: 38px; padding: 0 12px; font-size: .86rem; }
  #sf .cp2-head.is-types-open > .cp2-subs { padding: 0 10px 2px; }
  #sf .cp2-filters .cp2-toggle input { min-height: 0; }

  /* the dock: one right-aligned List / Map pill, a floating locate button above the sheet */
  #sf .cp2-dock { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 27, 45, .08); position: relative; z-index: 1000; }
  #sf .cp2-locate-fab { display: inline-flex; align-items: center; justify-content: center; position: fixed; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: var(--ink); box-shadow: 0 8px 18px rgba(15, 27, 45, .18); z-index: 999; }
  #sf .cp2-locate-fab:active { background: var(--bg); }
  #sf .cp2-locate-fab .cp2-ico { width: 20px; height: 20px; stroke-width: 2.4; }
  #sf .cp2-locate-fab.is-loading { opacity: .55; }
  #sf .cp2-hero > .cp2-locate-fab { position: absolute; right: 10px; bottom: 10px; z-index: 3; }
  #sf .cp2-hero__view { display: none !important; }
  #sf .cp2-dock__jump { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--accent); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 800 .9rem/1 Inter, system-ui, sans-serif; }
  #sf .cp2-dock__jump .cp2-ico { width: 18px; height: 18px; stroke-width: 2.6; transition: transform .15s; }
  #sf .cp2-dock__jump.is-map .cp2-ico { transform: rotate(180deg); }
  #sf .cp2-dock__jump:focus-visible { outline: 3px solid var(--sea); outline-offset: -3px; }

  /* the detail drawer becomes a bottom sheet; its notes move to the list footer */
  #sf .cp2-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 92%; border-radius: 20px 20px 0 0; z-index: 950; animation: cp2-up .22s ease; }
  @keyframes cp2-up { from { transform: translateY(24px); opacity: 0; } }
  #sf .cp2-drawer-booking { padding: 10px; }
  #sf .cp2-drawer-booking .cp2-book-note { display: none; }
  #sf .cp2-shortlist { padding: 6px 10px; gap: 8px; font-size: .85rem; }
  #sf .cp2-shortlist .cp2-btn { font-size: .85rem; padding: 8px 10px; min-height: 40px; }
  #sf-compare { padding: 14px; }
  #sf-compare .cp2-compare-cards { grid-template-columns: 1fr; }

  /* phone fixes from review: everything reachable, nothing hidden sideways, 44px touch targets */
  /* the results head scrolls inside the sheet, so the inline filters and the type panel are always reachable */
  #sf .cp2-head { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; grid-auto-rows: max-content; }
  #sf .cp2-filters .cp2-toggle { min-height: 44px; }
  #sf .cp2-check { min-height: 44px; }
  #sf .cp2-radius__menu button { height: 44px; }
  #sf .cp2-attr__list li { align-items: center; }
  #sf .cp2-attr__list button { min-height: 44px; min-width: 44px; }
  /* the radius menu sits above the sheet and the locate button */
  #sf .cp2-map-ctrl:has(.cp2-radius__menu:not([hidden])) { z-index: 1001; }
  /* details: the list steps aside so the chosen pin shows in the strip of map above the sheet */
  #sf .cp2-body:has(.cp2-drawer:not([hidden])) .cp2-list { visibility: hidden; }
  #sf:has(.cp2-drawer:not([hidden])) .cp2-shortlist { display: none; }
  #sf .cp2-drawer .cp2-hero { aspect-ratio: auto; height: min(56vw, 26dvh); }
  /* the sheet handle keeps its look but takes a 44px tap or swipe */
  #sf .cp2-sheet-handle { position: relative; }
  #sf .cp2-sheet-handle::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 44px; }
  /* start screen mood tabs wrap instead of hiding sideways */
  #sf .cp2-desttabs { flex-wrap: wrap; overflow: visible; }
  /* the date summary wraps rather than cutting off the guests */
  #sf .cp2-when-sum { height: auto; min-height: 38px; padding-block: 5px; }
  #sf .cp2-when-sum__text { white-space: normal; line-height: 1.25; }
  #sf-compare .cp2-compare-head .cp2-icon-btn { width: 44px; height: 44px; }
  #sf-compare .cp2-compare-choice, #sf-compare .cp2-link, #sf-compare .cp2-btn { min-height: 44px; }
}
@media (max-width: 360px) {
  #sf .cp2-type-btn__ico, #sf .cp2-search > .cp2-ico { display: none; }
  #sf .cp2-type-btn { gap: 3px; padding: 0 6px; }
  #sf .cp2-search { padding-left: 14px; }
  #sf .cp2-search input { text-overflow: ellipsis; }
}
@media (max-width: 420px) {
  #sf .cp2-logo { display: none; }
  #sf .cp2-type-btn__n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #sf *, #sf *::before, #sf *::after { animation: none !important; transition: none !important; }
}


@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.mock-flag { position: fixed; left: 12px; bottom: 12px; z-index: 70; display: flex; border: var(--b2); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mock-flag button { background: var(--yellow); color: var(--ink); border: 0; padding: 6px 10px; font: 800 var(--t-xs)/1.2 var(--font); cursor: pointer; }
.mock-flag button + button { background: var(--paper); border-left: var(--b2); font-weight: 700; }
.mock-flag button[aria-pressed="true"] { background: var(--green); }
/* snack bar: one line of feedback with Undo, above the dock and overlays, never wider than the screen */
.snack { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 125; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); width: max-content; padding: 10px 10px 10px 16px; background: var(--ink); color: var(--paper); border: var(--b2); border-radius: 12px; box-shadow: 4px 4px 0 rgba(11,13,18,.35); font: 600 var(--t-sm)/1.35 var(--font); }
.snack.is-in { animation: snack-in .22s ease; }
@keyframes snack-in { from { opacity: 0; transform: translate(-50%, 8px); } }
#snack-msg { min-width: 0; }
.snack button { flex: none; font: 800 var(--t-sm)/1 var(--font); padding: 8px 10px; border: 0; border-radius: 8px; background: var(--yellow); color: var(--ink); cursor: pointer; }
.snack button + button { background: var(--paper); }
@media (max-width: 900px) { html:not(.sf-open):not(.map-full-open):not(.trip-open) .snack { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } .snack { width: calc(100% - 24px); max-width: none; } }
[data-trip-n].is-bump, .tripbtn b.is-bump { animation: trip-bump .45s ease; }
@keyframes trip-bump { 40% { transform: scale(1.3); } }
/* phones: the label sits at the top of the page and scrolls away, so it never covers content or the dock */
@media (max-width: 900px) { .mock-flag { position: absolute; top: calc(176px + env(safe-area-inset-top, 0px)); bottom: auto; left: auto; right: 10px; } }
html.sf-open .mock-flag, html.sf-open .dock { display: none; }
/* ================= v6 additions ================= */
/* Brand: the real wave badge logo */
.logo img { width: 46px; height: 46px; border-radius: 50%; border: var(--b2); background: var(--paper); flex: none; }
.logo span { display: inline-flex; align-items: baseline; }

/* Category strip under the header (the live #frontpage-menu-strip, refined). Short brand chips may be uppercase. */
.cstrip { background: var(--paper); border-bottom: var(--b); position: sticky; top: var(--v7-top-h, 86px); z-index: 46; }
.cstrip__in { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-block: 9px; }
.cstrip a, .cstrip button { font: 800 .76rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 9px 12px; border: var(--b2); border-radius: 8px; background: var(--sc, var(--paper)); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.cstrip a:hover, .cstrip button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 1023px) { .cstrip { display: none; } }

/* Trip button in the header */
.tripbtn b { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--pink); border: var(--b2); font-size: .72rem; }
.tripbtn[data-n="0"] b { background: var(--soft); }
/* Phones: the badge logo carries the brand, and the dock carries Trip with its count, so the header keeps one action plus the menu */
@media (max-width: 600px) { .logo span { display: none; } .top__act .tripbtn { display: none; } }
@media (max-width: 760px) { .top__act .btn--hide-sm { display: none; } }

/* ---------- The signature: a corner bubble that swells on hover and keyboard focus ----------
   Lifted from the category tiles Gavin liked. Content sits above the bubble, so text never
   sits on a colour change it cannot handle. Reduced motion keeps the bubble, drops the swell. */
.bub { position: relative; overflow: hidden; isolation: isolate; }
.bub::after { content: ""; position: absolute; z-index: -1; right: var(--bx, -34px); bottom: var(--by, -34px); width: var(--bs, 110px); height: var(--bs, 110px); border-radius: 50%; background: var(--bc, var(--cyan)); border: var(--b); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.bub:hover::after, .bub:focus-visible::after, .bub:focus-within::after { transform: scale(var(--bz, 1.9)); }
@media (prefers-reduced-motion: reduce) { .bub::after { transition: none; } }

/* Hero: real photo, smaller kicker detail */
.hero__est { font-size: var(--t-xs); color: #d6eef5; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* Iconic eight with real photos */
.icard { grid-template-rows: 190px auto; position: relative; }
.icard__photo { position: relative; border-bottom: var(--b); overflow: hidden; background: var(--art, var(--cyan)); }
.icard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.icard:hover .icard__photo img, .icard:focus-within .icard__photo img { transform: scale(1.06); }
.icard__photo .badge { position: absolute; left: 12px; bottom: 12px; }
.icard__photo .credit { position: absolute; right: 8px; bottom: 8px; font-size: .62rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.icard__photo .needs { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; }
.icard__photo .needs span { font-size: var(--t-xs); font-weight: 800; background: var(--paper); border: var(--b2); border-radius: 999px; padding: 5px 10px; }
.icard__photo .big { position: absolute; right: -8px; bottom: -30px; font-size: 7rem; font-weight: 800; line-height: 1; color: rgba(11,13,18,.12); letter-spacing: -0.04em; }
.heart { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: var(--b2); background: var(--paper); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--ink); }
.heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.heart[aria-pressed="true"] { background: var(--pink); }
.heart[aria-pressed="true"] svg { fill: var(--ink); }
.icard .heart { top: 12px; right: 12px; z-index: 2; }
.icard__cat { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: var(--b2); border-radius: 999px; background: var(--cc, var(--paper)); width: fit-content; }
.icard__go { font-weight: 800; font-size: var(--t-sm); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.icard__go:hover { text-decoration: underline; }

/* Stay types with real photos */
.stay-type { grid-template-columns: 64px minmax(0, 1fr) auto; }
.stay-type .ph { width: 64px; height: 48px; border-radius: 8px; border: var(--b2); overflow: hidden; background: var(--yellow); display: grid; place-items: center; }
.stay-type .ph img { width: 100%; height: 100%; object-fit: cover; }
.bkline { font-size: var(--t-xs); color: var(--muted); }
.bkline a { font-weight: 700; color: var(--ink); }

/* Gems with photos */
.gem { padding: 0; overflow: hidden; }
.gem__ph { height: 150px; border-bottom: var(--b); background: var(--gc, var(--green)); position: relative; overflow: hidden; }
.gem__ph img { width: 100%; height: 100%; object-fit: cover; }
.icard__photo .mapnote, .gem__ph .mapnote { position: absolute; left: 12px; top: 12px; font-size: .68rem; font-weight: 800; background: var(--paper); border: var(--b2); border-radius: 999px; padding: 3px 8px; }
.icard__photo .credit--map, .gem__ph .credit--map { position: absolute; right: 6px; bottom: 6px; font-size: .6rem; font-weight: 700; color: #3b4250; text-shadow: none; background: rgba(255, 255, 255, .8); padding: 1px 5px; border-radius: 4px; }
.gem__ph .needs { position: absolute; left: 12px; bottom: 12px; font-size: var(--t-xs); font-weight: 800; background: var(--paper); border: var(--b2); border-radius: 999px; padding: 4px 9px; }
.gem__body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.gem__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Trust band with live numbers */
.trust b.n { font-size: 1.6rem; font-variant-numeric: tabular-nums; }

/* Map card heart */
.xc { position: relative; }
.xc > .heart { top: 0; right: 0; }
.xc h4 { padding-right: 46px; }
.walkroute-hint { font-size: .8rem; color: var(--muted); }

/* ---------- YOUR TRIP drawer ---------- */
.trip { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); border-left: var(--b); box-shadow: -8px 0 0 rgba(11,13,18,.12); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; transform: translateX(0); }
.trip__head { background: var(--pink); border-bottom: var(--b); padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px; display: grid; gap: 6px; }
.trip__head h2 { font-size: 1.5rem; }
.trip__head p { font-size: var(--t-sm); }
.trip__x { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; border-radius: 50%; border: var(--b2); background: var(--paper); font: 800 1.3rem/1 var(--font); cursor: pointer; color: var(--ink); }
.trip__body { overflow: auto; padding: 16px 18px 22px; display: grid; gap: 16px; align-content: start; }
.trip__empty { display: grid; gap: 10px; padding: 18px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--wash); }
.trip__group { display: grid; gap: 8px; }
.trip__row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: var(--b2); border-radius: 10px; background: var(--paper); }
.trip__row i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--dc); }
.trip__row .t { min-width: 0; display: grid; }
.trip__row .t b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip__row .t small { color: var(--muted); font-size: .76rem; }
.trip__row button { font: 700 .76rem/1 var(--font); padding: 7px 9px; border: var(--b2); border-radius: 999px; background: var(--paper); cursor: pointer; color: var(--ink); white-space: nowrap; }
.trip__row button:hover { background: var(--yellow); }
.trip__row .rm { width: 28px; height: 28px; padding: 0; border-radius: 50%; }
.base { display: grid; gap: 10px; padding: 16px; border: var(--b); border-radius: 14px; background: var(--yellow); box-shadow: var(--shadow-sm); }
.base h3 { font-size: 1.15rem; }
.base p { font-size: var(--t-sm); }
.base ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.base li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--paper); border: var(--b2); border-radius: 10px; padding: 8px 10px; }
.base li .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 800; font-size: .8rem; }
.base li b { display: block; font-size: .95rem; }
.base li small { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.base li .btn { padding: 8px 10px; font-size: .8rem; box-shadow: 2px 2px 0 var(--ink); }
.base .split { display: grid; gap: 8px; padding-top: 12px; border-top: 2px dashed rgba(11, 13, 18, .35); }
.base .split li { grid-template-columns: minmax(0, 1fr) auto; }
.trip__foot { border-top: var(--b); padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 8px; }
.trip__foot .btn { flex: 1 1 auto; padding: 11px 12px; font-size: .88rem; }
.trip-scrim { position: fixed; inset: 0; z-index: 105; background: rgba(11,13,18,.45); }
html.trip-open { overflow: hidden; }
html.trip-open .dock, html.trip-open .mock-flag, html.trip-open .jackfab { display: none; }

/* Cousin Jack floating avatar (as on the live site) */
.jackfab { position: fixed; right: 18px; bottom: 18px; z-index: 65; width: 64px; height: 64px; border-radius: 50%; border: var(--b); background: var(--yellow); box-shadow: var(--shadow-sm); padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.jackfab img { width: 58px; height: 58px; }
.jackfab:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
@media (max-width: 900px) { .jackfab { display: none; } }
.jack__ava { overflow: hidden; padding: 0; }
.jack__ava img { width: 46px; height: 46px; }

/* Phone dock: Trip count */
.dock .cnt { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); border: 2px solid var(--ink); font-size: .62rem; display: grid; place-items: center; }
.dock a, .dock button { position: relative; }

.attrib { font-size: var(--t-xs); color: #8e99aa; margin-top: 10px; }

.x5-map.is-packed, .sf-map.is-packed, .x5-map.is-packed.leaflet-container, .sf-map.is-packed.leaflet-container { background: #c2c8ca; }
.gem .heart { top: 10px; right: 10px; z-index: 2; }
.stay-type.bub { --bs: 64px; --bx: -30px; --by: -30px; --bz: 3; }
.who a.bub { --bs: 120px; --bx: -50px; --by: -50px; --bz: 2.2; }
.pcard.bub { --bs: 130px; --bx: -60px; --by: -60px; --bz: 2.4; }
/* text keeps clear of the resting bubbles (the swell on hover may pass under it, the text sits on top) */
.cat:not(.cat--big) p { padding-right: 52px; }
.pcard .bk, .pcard .bkline { padding-right: 60px; }
.plan-grid { align-items: start; }
.pcard.bub { padding-bottom: 52px; }
.qdates { display: grid; gap: 8px; padding-top: 4px; }
.qdates__row { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 40px; }
.qdates__row .chip { font-size: var(--t-xs); padding: 8px 11px; }
.icard .acts { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.icard .acts .btn, .gem__acts .btn { justify-content: center; padding-inline: 10px; white-space: nowrap; }
@media (max-width: 600px) {
  /* category tiles are two to a row: a smaller resting bubble keeps the names clear */
  .cat::after { width: 70px; height: 70px; right: -26px; bottom: -26px; }
  /* search modes as a 3 by 2 grid instead of a tab strip that runs off the card */
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; overflow: visible; }
  .tab { top: 0; justify-content: center; min-width: 0; padding: 10px 6px; border-bottom: var(--b); border-radius: var(--r-sm); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab .ico { display: none; }
  .tab[aria-selected="true"] { padding-bottom: 10px; box-shadow: inset 0 -4px 0 var(--ink); }
}
@media (max-width: 380px) { .tab { font-size: .72rem; padding-inline: 4px; } }

/* Soft-sticky map tabs: ride under the sticky header AND the pinned category strip
   while the map section is in view, then scroll away with the section. --v7-top-h is
   measured from .top, --v7-strip-h from .cstrip (0 while the strip is hidden on phones). */
.xtabs {
	position: sticky;
	top: calc(var(--v7-top-h, 86px) + var(--v7-strip-h, 0px));
	z-index: 45;
	background: var(--paper);
	scroll-margin-top: calc(var(--v7-top-h, 86px) + var(--v7-strip-h, 0px));
}

/* Back from the stay finder: make it unmistakable, with a short nudge on open. */
#sf .cp2-back {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
	box-shadow: 3px 3px 0 var(--cyan);
	font-weight: 800;
}
#sf .cp2-back:hover { background: #1b2b45; border-color: #1b2b45; }
#sf .cp2-back.is-nudge { animation: v7-back-nudge 0.45s ease-in-out 2; }
@keyframes v7-back-nudge {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-4px); }
	40%, 80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
	#sf .cp2-back.is-nudge { animation: none; }
}

/* Neon glow that travels around the Back button. */
@property --v7-back-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

#sf .cp2-back { position: relative; }

#sf .cp2-back::before,
#sf .cp2-back::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: inherit;
	padding: 3px;
	background: conic-gradient(from var(--v7-back-angle), #00e5ff, #ff2fd0, #ffe600, #7cff4f, #00e5ff);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
	animation: v7-back-glow 2.4s linear infinite;
}
#sf .cp2-back::after {
	inset: -6px;
	padding: 4px;
	filter: blur(7px);
	opacity: 0.85;
	z-index: 1;
}
@keyframes v7-back-glow { to { --v7-back-angle: -360deg; } }
@media (prefers-reduced-motion: reduce) {
	#sf .cp2-back::before,
	#sf .cp2-back::after { animation: none; }
}

/* One-click exit from the map, back to the page position you came from. */
.x5-exit {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1200;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 15px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: 700 0.9rem/1 var(--font);
	cursor: pointer;
	box-shadow: 3px 3px 0 var(--ink);
}
.x5-exit:hover, .x5-exit:focus-visible { background: var(--yellow, #ffd644); }
.x5-exit[hidden] { display: none; }
.x5-exit .ico { width: 17px; height: 17px; }
@media (max-width: 640px) {
	.x5-exit { top: 10px; right: 10px; padding: 9px 12px; font-size: 0.84rem; }
}

/* Finder anchor: the card that opened "Stays nearby", marked on the map. */
#sf .cp2-townpin--anchor .cp2-townpin__dot {
	width: 18px;
	height: 18px;
	background: var(--ink, #0f1b2d);
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pink, #ff8fab);
}
#sf .cp2-townpin--anchor .cp2-townpin__label {
	background: var(--ink, #0f1b2d);
	color: #fff;
	font-weight: 800;
}

/* National Trust layers on the explorer map (green dot for places, blue P for parking). */
.duchy-nt-place-icon { width: 16px; height: 16px; border-radius: 50%; background: #2f7d32; border: 2px solid #fff; box-shadow: 0 0 0 1px #1b5e20, 1px 1px 0 #000; }
.duchy-nt-place-icon.is-mobile { width: 14px; height: 14px; }
.duchy-nt-parking-icon { background: #1d4ed8; color: #fff; border: 2px solid #fff; border-radius: 4px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font: 800 0.62rem/1 'Inter', 'Segoe UI', system-ui, sans-serif; box-shadow: 1px 1px 0 #000; }
.duchy-nt-parking-icon.is-mobile { width: 16px; height: 16px; font-size: 0.55rem; }
.x5-nt-popup strong { font-size: 0.95rem; }
.x5-nt-popup__desc { margin: 0.35rem 0; line-height: 1.35; font-size: 0.9em; }
.x5-nt-popup__attr { margin: 0.45rem 0 0; font-size: 0.75em; opacity: 0.7; }

/* Rail card symmetry (Gavin, 5 Oct 2026): pin the Map / Stays nearby actions to
   the card bottom so buttons line up across the row, whatever the copy length. */
.icard__body { display: flex; flex-direction: column; gap: 8px; }
.icard .acts { margin-top: auto; }
.gem { display: flex; flex-direction: column; }
.gem__ph { flex: none; }
.gem__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gem__acts { margin-top: auto; }
