/* Jolidays layout mockup
   This SAME file is linked by index.html and the component's shadow root.
   1. Shared tokens + UI primitives — one source of truth.
   2. Page-only layout — scoped beneath .jol-page.
   3. Component-only layout — scoped beneath .jol-component / :host.
   Original, unreviewed screens are archived separately; see section 4.
*/

/* ==================== 1. SHARED VISUAL SYSTEM ==================== */
:root, :host {
  --water: #203b67;
  --sky: #4fa2ff;
  --ink: #20262d;
  --muted: #59636e;
  --surface: #f8fafc;
  --stroke: rgba(32,59,103,.14);
  --radius-control: 10px;
  --radius-panel: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --shadow-panel: 0 8px 22px rgba(19,39,66,.10);
  --focus: #2878d1;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.jol-ui, .jol-ui * { box-sizing: border-box; }
.jol-ui { font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.5; }
.jol-ui :where(button,input,select) { font: inherit; }
.jol-ui :is(button,a) { touch-action: manipulation; }
.jol-ui :is(button,a,input,[tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.jol-ui :is(h1,h2,h3,p) { margin: 0; }
.jol-ui a { color: inherit; text-decoration: none; }
.jol-ui [hidden] { display: none !important; }
.jol-ui .site-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
 /* min-height: 40px;*/
 /* padding: 7px 10px;*/
  border: 1px solid rgba(32,59,103,.15);
  border-radius: var(--radius-control);
  background: rgba(32,59,103,.06);
  color: var(--water);
  /*font-size: 14px;*/
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, border-color 120ms ease;

  min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
}
.jol-ui .site-action i { font-size: 18px; line-height: 1; }
.jol-ui .site-action:hover { background: rgba(32,59,103,.11); border-color: rgba(32,59,103,.24); }
.jol-ui .site-action:is([aria-current="page"],[aria-pressed="true"]) { background: rgba(32,59,103,.13); border-color: rgba(32,59,103,.32); }
.jol-ui :is(.tag-block,.chips,.stay-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.jol-ui :where(.tag-block a,.category-chip,.feature-link,.resource-link) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-control);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg,#fff,#edf2f7);
  color: var(--ink);
  cursor: pointer;
}
/* Explicitly neutralise native button metrics: anchors and buttons share these.
   No fixed height, so wrapped labels and text enlargement remain usable. */
.jol-ui :is(a,button):is(.category-chip,.feature-link) {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
  min-height: 32px;
  padding: 5px 9px;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius-control);
  font: 400 13px/1.4 var(--font);
  letter-spacing: normal;
  text-align: start;
  white-space: normal;
  vertical-align: middle;
}
.jol-ui .category-chip { background: var(--category-color); color: var(--category-ink,#fff); }
.jol-ui .feature-link {
  color: #fff;
  background: linear-gradient(135deg,rgba(32,59,103,.92),rgba(59,62,65,.82));
  border-color: rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}
.jol-ui :is(.category-chip,.feature-link,.tag-block a).is-selected {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 1px var(--water);
  font-weight: 650;
}
.jol-ui .feature-link.is-selected { background: linear-gradient(135deg,#087d75,#265dac); }
.jol-ui .resource-link { color: var(--water); padding: 7px 10px; background: rgba(255,255,255,.9); }
.jol-ui .resource-link.external::after { content: "\ecaf"; font-family: remixicon; opacity: .65; }
.jol-ui .icon-action {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-control);
  background: transparent; color: #6c7b8d; font-size: 19px; cursor: pointer;
}
.jol-ui .icon-action:hover { background: rgba(32,59,103,.08); color: var(--water); }
.jol-ui .muted { color: var(--muted); }
@media(prefers-reduced-motion:reduce) { .jol-ui * { transition: none !important; scroll-behavior: auto !important; } }

/* ==================== 2. PAGE LAYOUT ==================== */
/* The document is the app frame; only explicit inner panes scroll.
   Safari 16+ supports overscroll-behavior. Preserve pinch zoom; no global
   touchmove cancellation or user-scalable=no viewport setting. */
html { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body.jol-page {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  margin: 0;
  background: var(--water);
  background-image: radial-gradient(900px 550px at 10% 0%,#4fa2ff55,transparent 65%),radial-gradient(800px 600px at 100% 100%,#00cfa533,transparent 70%);
}
.jol-page .app-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.jol-page .site-header {
  flex: none;
  position: relative;
  z-index: 10;
  padding: max(12px,env(safe-area-inset-top)) 16px 12px;
  background: #f4f8fc;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg,#00d6ff,#a9f300,#ffc700,#ff7a1f,#ff3dae) 1;
  box-shadow: 0 2px 10px #102b4b20;
}
.jol-page .header-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.jol-page .header-row > * { flex: none; }
.jol-page .brand-button { margin-right: auto; }
.jol-page .brand-j { font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; transform: rotate(-8deg); letter-spacing: -3px; padding-right: 4px; }
.jol-page .workspace {
  --gap: 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,35%);
  grid-template-rows: minmax(0,1fr);
  gap: var(--gap);
  flex: 1; min-height: 0; padding: var(--gap); overflow: hidden;
}
.jol-page .main-column { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #aebfd4 transparent; scrollbar-gutter: stable; padding-right: 6px; }
.jol-page .side-panel { grid-area: 1 / 2; min-width: 0; min-height: 0; border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-panel); }
.jol-page component-jolidays { display: block; width: 100%; height: 100%; }
.jol-page .page-intro { background: var(--surface); border-radius: var(--radius-panel); padding: var(--space-6); margin-bottom: 16px; }
.jol-page h1 { font-size: clamp(26px,3vw,36px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 12px; color: var(--water); }
.jol-page .page-intro p { max-width: 80ch; color: var(--muted); }
.jol-page .location-action { margin-top: 16px; }

/* GPS button: reflects the state set on document.body. */
.jol-page .gps-action i {
  display: none;
}

.jol-page .gps-action .gps-icon-default {
  display: inline-block;
}

.jol-page:is(
  [data-gps-state="acquiring-position"],
  [data-gps-state^="permission"]
) .gps-action .gps-icon-default {
  display: none;
}

.jol-page[data-gps-state="acquiring-position"]
.gps-action .gps-icon-acquiring,
.jol-page[data-gps-state^="permission"]
.gps-action .gps-icon-denied {
  display: inline-block;
}

.jol-page[data-gps-state="acquiring-position"]
.gps-action .gps-icon-acquiring {
  animation: gps-spin 0.8s linear infinite;
}

@keyframes gps-spin {
  to {
    transform: rotate(360deg);
  }
}


.jol-page .stay-list { display: grid; gap: 16px; }
.jol-page .stay-card { min-width: 0; padding: var(--space-6); border: 1px solid var(--stroke); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-panel); }
.jol-page .stay-card h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 12px; }
.jol-page .stay-card p { line-height: 1.55; color: var(--muted); margin-bottom: 12px; }
.jol-page .stay-date:empty { display: none; }
.jol-page .stay-date { font-style: italic; }
/*.jol-page .stay-media { margin: 16px 0; }*/
/*.jol-page .media-placeholder { min-height: 116px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-control); border: 1px dashed #b9c7d6; background: #e9eff5; color: #60738a; font-size: 13px; }
.jol-page .media-placeholder i { font-size: 22px; }*/


.stay-media {
    margin: 16px 0;
    border-radius: var(--radius-control);
    overflow: hidden;
    background: #e9eff5;
}

.asset-parcel-carousel
{
	width:100%;
	height:100%;
	display:block;
}

.asset-parcel-carousel div
{
	width:100%;
	height:100%;
}

.asset-parcel-carousel div img
{
	display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.asset-parcel-location {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
}

.asset-parcel-location div {
    flex: 0 0 auto;
    height: 142px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
	position: relative;
}

.asset-parcel-location div img {
    max-height: 100%;
}

component-asset-parcel div button {
    position: absolute;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    line-height: 28px;
    font-size: 16px;
    padding: 0;
    display: grid;
    place-items: center;
    opacity: 0.75;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    top: 8px;
    right: 8px;
}

.jol-page .overlay-panel > component-asset-parcel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.jol-page .overlay-panel > component-asset-parcel > div {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-control);
  scroll-snap-align: start;
}

.jol-page .overlay-panel > component-asset-parcel > div > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.jol-page .tag-block { margin-top: 12px; }
.jol-page .stay-actions { margin-top: 16px; }
.jol-page .stay-actions .back-top { margin-left: auto; }
.jol-page .callout-band { position: relative; overflow: hidden; background: linear-gradient(135deg,#203b67,#365f98); display: flex; align-items: flex-start; gap: 16px; border-radius: var(--radius-panel); padding: var(--space-6); color: white; box-shadow: var(--shadow-panel); }
.jol-page .callout-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--callout-gradient,linear-gradient(180deg,#4fa2ff,#00cfa5));
  pointer-events: none;
}
.jol-page .callout-band > i { font-size: 28px; line-height: 1.2; flex: none; }
.jol-page .callout-band > div { min-width: 0; }
.jol-page .callout-band h2 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.jol-page .callout-band p { line-height: 1.55; }
.jol-page .footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 20px 4px 8px; color: #f0f5ff; font-size: 13px; }
/*.jol-page .footer .resource-link { color: var(--water); }*/
.jol-page [data-mode="flow"] .workspace { display: block; overflow-y: auto; scrollbar-gutter: stable; }
.jol-page [data-mode="flow"] .side-panel { height: clamp(300px,48dvh,460px); margin-bottom: 16px; }
.jol-page [data-mode="flow"] .main-column { overflow: visible; padding-right: 0; }
@media(orientation:portrait) {
  .jol-page .workspace { grid-template-columns: minmax(0,1fr); grid-template-rows: clamp(250px,35dvh,360px) minmax(0,1fr); }
  .jol-page .side-panel { grid-area: 1 / 1; }
  .jol-page .main-column { grid-area: 2 / 1; }
  .jol-page [data-mode="flow"] .side-panel { height: clamp(250px,35dvh,360px); }
}
@media(max-width:600px) {
  .jol-page .site-header { padding: max(8px,env(safe-area-inset-top)) 8px 8px; }
  .jol-page .workspace { --gap: 10px; }
  .jol-page .header-row { gap: 6px; }
  .jol-page .page-intro,.jol-page .stay-card,.jol-page .callout-band { padding: 16px; }
  .jol-page .stay-list { gap: 12px; }
  .jol-page .callout-band { gap: 10px; }
  .jol-page .stay-card h2 { font-size: 21px; }
}
@media(orientation:landscape) and (max-height:540px) {
  .jol-page .workspace { grid-template-columns: minmax(0,1fr) minmax(230px,40%); --gap: 10px; }
  .jol-page [data-mode="flow"] .side-panel { height: 280px; }
}

.jol-page .related-places { margin-top: 16px; padding: var(--space-6); border-radius: var(--radius-panel); background: var(--surface); }
.jol-page .related-places h2 { margin-bottom: 12px; font-size: 22px; }
.jol-page .related-places ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }



/* Image and attribution overlay */
.jol-page .overlay {
  display: none; /* Existing JS switches this to flex. */
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: rgba(12, 25, 44, .76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overscroll-behavior: none;
}

.jol-page .asset-dialog {
  display: flex;
  flex-direction: column;
  width: min(100%, 1100px);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.jol-page .asset-dialog-toolbar {
  display: flex;
  justify-content: flex-end;
  flex: none;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
  background: #f4f8fc;
}

.jol-page .overlay-panel {
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: none;
  scrollbar-width: thin;
  overflow-wrap: anywhere;
}

.jol-page .overlay-panel > component-asset-parcel {
  /*display: block;*/
  width: 100%;
  height: clamp(240px, 65dvh, 760px);
}

.jol-page .overlay-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-control);
}

.jol-page .overlay-panel a {
  color: var(--water);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .jol-page .overlay {
    padding: max(10px, env(safe-area-inset-top))
             max(10px, env(safe-area-inset-right))
             max(10px, env(safe-area-inset-bottom))
             max(10px, env(safe-area-inset-left));
  }

  .jol-page .overlay-panel {
    padding: 10px;
  }
}

.jol-page .overlay-panel > component-asset-parcel > div {
  flex: 0 0 auto;
}

.jol-page .overlay-panel > component-asset-parcel > div > img {
  width: auto;
  height: 100%;
  max-width: none;
}


/* ==================== 3. COMPONENT LAYOUT ====================
   Host layout is supplied by the page. The component still owns its grip.
   The snapshot keeps the original info-grip/summary/category markup hooks.
*/
:host { display: block; min-width: 0; min-height: 0; }
.jol-component { height: 100%; overflow: hidden; background: var(--surface); }
.jol-component .component-split { display: grid; height: 100%; min-height: 0; grid-template-rows: minmax(0,var(--map-fr,1fr)) 18px minmax(0,var(--controls-fr,1fr)); grid-template-columns: minmax(0,1fr); }
.jol-component .map-stage { position: relative; overflow: hidden; min-width: 0; min-height: 0; background: #dce9ef; }
.jol-component .map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jol-component .map-caption { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; font-size: 8px; /*background: #ffffffed; border-radius: var(--radius-control);*/ color: #ffffffed; }
.jol-component .info-grip { display: grid; place-items: center; cursor: row-resize; background: #e3ebf4; border-block: 1px solid var(--stroke); touch-action: none; user-select: none; }
.jol-component .info-grip-pill { width: 38px; height: 4px; border-radius: 4px; background: #7d94b3; }
.jol-component .info-grip:is(:hover,:focus-visible,.resizing) { background: #cbdcf0; }
.jol-component .summary-pane { min-width: 0; min-height: 0; overflow: auto; scrollbar-width: thin; padding: 16px; }
.jol-component .summary-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.jol-component .pane-title { color: var(--water); font-size: 18px; font-weight: 750; }
.jol-component .summary-legend { color: var(--muted); font-size: 13px; }
.jol-component .summary-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
/*.jol-component .summary-tabs .site-action { min-height: 34px; padding: 5px 8px; font-size: 12px; }*/
.jol-component .header-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
/*.jol-component .header-chips .site-action { min-height: 34px; padding: 5px 8px; font-size: 12px; }*/
.jol-component .categories-section { margin-bottom: 16px; }
.jol-component .primary-cats { margin-bottom: 8px; }
.jol-component .primary-cats .category-chip { font-weight: 750; }
.jol-component .secondary-cats { padding-left: 8px; border-left: 2px solid var(--stroke); }
.jol-component .feature-groups { display: grid; gap: 12px; margin-top: 20px; }
.jol-component .feature-group .features { display: flex; flex-wrap: wrap; gap: 8px; }
.jol-component .feature-group:not(.feature-group-singles) { padding: 10px; border: 1px solid var(--stroke); border-radius: var(--radius-control); background: #edf2f7; }
:host([split="horizontal"]) .component-split { grid-template-columns: minmax(0,var(--map-fr,1fr)) 18px minmax(0,var(--controls-fr,1fr)); grid-template-rows: minmax(0,1fr); }
:host([split="horizontal"]) .info-grip { cursor: col-resize; border-block: 0; border-inline: 1px solid var(--stroke); }
:host([split="horizontal"]) .info-grip-pill { width: 4px; height: 38px; }
@media(max-width:600px) { .jol-component .summary-pane { padding: 10px; } }

/* Prevent edge bounce and scroll chaining in every independently scrolling pane,
   including those inside the shadow root. Normal scrolling remains native. */
.jol-page :is(.workspace,.main-column,.header-row),
.jol-component .summary-pane { overscroll-behavior: none; }

/* Real component map and status UI (the mockup used an SVG placeholder). */
.jol-component .map-stage > component-zoomer.map {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  min-width: 0; min-height: 0;
   touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.jol-component component-zoomer-canvas { display: block; width: 100%; height: 100%; }
.jol-component .map-caption { z-index: 2; max-width: calc(100% - 20px); /*pointer-events: none;*/ }
.jol-component #vital {
  display: none; position: absolute; inset: 0; z-index: 30;
  padding: 16px; color: #fff; background: #59636efa; pointer-events: none;
}
.jol-component .gps { position: absolute; top: 10px; left: 10px; z-index: 3; pointer-events: none; }
.jol-component .gps__bubble {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--stroke); border-radius: var(--radius-control);
  background: #fffffff0; color: var(--ink); box-shadow: var(--shadow-panel);
  transition: opacity 200ms ease;
}
.jol-component .gps--hidden .gps__bubble { opacity: 0; }
.jol-component .gps__base { font-size: 18px; }
.jol-component .gps__status { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.jol-component .gps__s { display: none; font-size: 16px; }
.jol-component .gps--off .gps__s--off,
.jol-component .gps--permission .gps__s--permission,
.jol-component .gps--waiting .gps__s--waiting,
.jol-component .gps--active .gps__s--active,
.jol-component .gps--error .gps__s--error { display: inline-block; }
.jol-component .gps--permission .gps__bubble { background: #ffe7ea; }
.jol-component .gps--waiting .gps__bubble { background: #eaf4ff; }
.jol-component .gps--error .gps__bubble { background: #fff2ea; }
.jol-component .gps--active .gps__bubble { background: #e8fcf0; }
@keyframes jol-gps-spin { to { transform: rotate(360deg); } }
.jol-component .gps--waiting .gps__s--waiting { animation: jol-gps-spin 900ms linear infinite; }
@media(prefers-reduced-motion:reduce) {
  .jol-component .gps--waiting .gps__s--waiting { animation: none; }
}


/* ==================== A–Z PLACE BROWSER ==================== */

.jol-page .az-card {
    min-width: 0;
    padding: var(--space-6);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-panel);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

/* Heading */

.jol-page .az-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.jol-page .az-heading-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-control);
    background: #eaf0f7;
    color: var(--water);
    font-size: 21px;
}

.jol-page .az-heading h2 {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 4px;
}

.jol-page .az-heading p {
    font-size: 14px;
    color: var(--muted);
}

/* Alphabet buttons */

.jol-page .az-letters {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 7px;
}

.jol-page .az-letter {
    display: grid;
    place-items: center;
    appearance: none;
    min-height: 42px;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(32,59,103,.16);
    border-radius: var(--radius-control);
    background: rgba(32,59,103,.06);
    color: var(--water);
    font: 750 15px/1 var(--font);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.jol-page .az-letter:hover {
    background: rgba(32,59,103,.14);
}

.jol-page .az-letter.is-active {
    background: var(--water);
    border-color: var(--water);
    color: white;
    box-shadow: 0 2px 6px #203b6733;
}

/* Accordion panels */

.jol-page .az-results {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.jol-page .az-letter-panel {
    display: none;
    padding: 16px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #edf2f7;
}

.jol-page .az-letter-panel.is-active {
    display: block;
}

.jol-page .az-letter-panel-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.jol-page .az-panel-letter {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: var(--water);
    color: white;
    font-weight: 800;
}

.jol-page .az-panel-title {
    color: var(--water);
    font-size: 14px;
    font-weight: 750;
}

.jol-page .az-count {
    margin-left: auto;
    color: #596f89;
    font-size: 12px;
    font-weight: 650;
}

/* Individual places */

.jol-page .az-place-list {
    display: grid;
    gap: 10px;
}

.jol-page .az-place-card {
    padding: 13px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
}

.jol-page .az-place-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

/* Additional styling on top of the existing .site-action */

.jol-page .az-place-name {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    font-size: 14px;
    font-weight: 750;
}

.jol-page .az-place-meta {
    color: #6b7c90;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.jol-page .az-place-card .tag-block {
    margin-top: 8px;
}

/* Responsive */

@media (max-width: 820px) {
    .jol-page .az-letters {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .jol-page .az-card {
        padding: 16px;
    }

    .jol-page .az-letters {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
    }

    .jol-page .az-letter {
        min-height: 40px;
    }

    .jol-page .az-place-top {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 390px) {
    .jol-page .az-letters {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}


/* Photo theme carousel — append to site.css. Uses existing shared tokens and .site-action. */
.jol-page .theme-carousel {
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.jol-page .theme-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.jol-page .theme-carousel-header h2 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.jol-page .theme-carousel-controls { display: flex; gap: 7px; }
.jol-page .theme-carousel-controls .site-action { min-width: 36px; }
.jol-page .theme-carousel-controls .site-action:disabled {
  opacity: .4;
  cursor: default;
}
.jol-page .theme-carousel-track {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 12px;
}
.jol-page .theme-carousel-track::-webkit-scrollbar { display: none; }
.jol-page .theme-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 clamp(280px, 52%, 490px);
  height: clamp(320px, 38vw, 390px);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 12px;
  background: var(--water);
  color: #fff;
}
.jol-page .theme-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jol-page .theme-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 15%, rgba(4,12,20,.18) 40%, rgba(4,12,20,.88) 100%);
}
.jol-page .theme-slide-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px;
}
.jol-page .theme-slide-content h3 {
  max-width: 15ch;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 3.7vw, 32px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.jol-page .theme-slide-content p {
  max-width: 34ch;
  margin: 0 0 14px;
  color: #f4f6fa;
  font-size: 13px;
  line-height: 1.45;
}
/* Same site-action primitive as the other blue Jolidays controls;
   only the background is made solid enough to read against a photo. */
.jol-page .theme-slide-content .site-action {
  background: rgba(255,255,255,.94);
}
.jol-page .theme-slide-content .site-action:hover {
  background: #fff;
}
.jol-page .theme-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.jol-page .theme-carousel-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.jol-page .theme-carousel-count strong { color: var(--water); }
.jol-page .theme-carousel-dots { display: flex; align-items: center; gap: 6px; }
.jol-page .theme-carousel-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #b7c6d7;
  cursor: pointer;
}
.jol-page .theme-carousel-dot[aria-current="true"] {
  width: 22px;
  background: var(--water);
}
@media (max-width: 650px) {
  .jol-page .theme-carousel { padding: 16px; }

}


/* ============================================================
   DISCOVERY RAIL — compact, horizontally scrollable category rows
   Replaces the old discovery-card and discovery-features CSS.
   All category, primary and feature navigation remains real HTML anchors.
   ============================================================ */
.jol-page .discovery-rail-card {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.jol-page .discovery-rail-intro {
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin:0 2px 14px;
}
.jol-page .discovery-rail-intro h2 {
  margin:0; font-size:clamp(21px, 2.7vw, 26px);
  letter-spacing:-.035em; color:var(--water); line-height:1.2;
}
.jol-page .discovery-rail-intro p {
  margin:0; font-size:12px; color:var(--muted); line-height:1.3;
}
.jol-page .discovery-rail-rows { display:grid; gap:6px; }
.jol-page .discovery-rail-row {
  --rail-tint: #f0f4f9;
  --rail-accent: var(--water);
  display:grid; grid-template-columns:142px minmax(0,1fr);
  align-items:center; gap:10px; min-width:0; padding:8px 9px;
  border:1px solid var(--stroke); border-left:3px solid var(--rail-accent);
  border-radius:11px;
  background:linear-gradient(90deg,var(--rail-tint),#fff 52%);
}
.jol-page .discovery-rail-primary { min-width:0; }
/* site-action is the real existing shared button/link styling. */
.jol-page .discovery-rail-primary > .site-action {
  max-width:100%; min-width:0; text-align:left;
  font-size:13px; font-weight:800;
}
.jol-page .discovery-rail-primary > .site-action span { overflow:hidden; text-overflow:ellipsis; }
.jol-page .discovery-rail-primary > .site-action i { flex:none; font-size:15px; }
.jol-page .discovery-rail-scroll { position:relative; min-width:0; }
.jol-page .discovery-rail-track {
  display:flex; flex-wrap:nowrap; align-items:center; gap:7px;
  min-width:0; overflow-x:auto; overflow-y:hidden;
  scrollbar-width:none; -ms-overflow-style:none;
  scroll-snap-type:x proximity; scroll-padding-inline:1px 14px;
  overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch;
  padding:2px 1px; /* leave room for selected-chip rings */
}
.jol-page .discovery-rail-track::-webkit-scrollbar { display:none; }
.jol-page .discovery-rail-track > a {
  flex:none; white-space:nowrap; scroll-snap-align:start;
  text-decoration:none; font-size:12px; font-weight:650;
}
.jol-page .discovery-rail-track > .category-chip { min-height:32px; }
.jol-page .discovery-rail-track > .feature-link { min-height:32px; gap:5px; }
.jol-page .discovery-rail-track > .feature-link i { font-size:15px; line-height:1; }
/* Only revealed by JS if the rail actually overflows. No JS required for swiping. */
.jol-page .discovery-rail-next {
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:31px; height:31px; min-height:31px; padding:0;
  border-radius:50%; border:1px solid var(--stroke);
  background:#ffffffed; box-shadow:-7px 0 14px #ffffffd9,0 2px 5px #19315d20;
  z-index:1;
}
.jol-page .discovery-rail-next[hidden] { display:none !important; }
.jol-page .discovery-rail-next i { font-size:18px; }
.jol-page .discovery-rail-row--features {
  margin-top:5px; border-left-color:var(--water);
  background:linear-gradient(90deg,#e9f0fa,#fff 55%);
}
.jol-page .discovery-rail-feature-label {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 6px; color:var(--ink);
  font-size:12px; font-weight:800; line-height:1.4;
}
.jol-page .discovery-rail-feature-label i { flex:none; font-size:17px; color:var(--water); }
.jol-page .discovery-rail-footer { margin:8px 2px 0; color:#78879b; font-size:11px; line-height:1.35; }
@media (max-width:620px) {
  .jol-page .discovery-rail-card { padding:12px; }
  .jol-page .discovery-rail-intro { display:block; margin:1px 2px 10px; }
  .jol-page .discovery-rail-intro h2 { font-size:22px; }
  .jol-page .discovery-rail-intro p { margin-top:3px; font-size:12px; }
  .jol-page .discovery-rail-row { grid-template-columns:103px minmax(0,1fr); gap:7px; padding:7px; }
  .jol-page .discovery-rail-primary > .site-action { font-size:12px; padding:5px 6px; gap:4px; }
  .jol-page .discovery-rail-primary > .site-action i { font-size:15px; }
  .jol-page .discovery-rail-track { gap:6px; }
  .jol-page .discovery-rail-track > a { font-size:12px; }
  .jol-page .discovery-rail-footer { margin-top:7px; }
}
@media (prefers-reduced-motion:reduce) {
  .jol-page .discovery-rail-track { scroll-behavior:auto; }
}






.jol-page .page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
}

.jol-page .page-result-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.jol-page .page-result-count strong {
    color: var(--water);
    font-size: 18px;
    font-weight: 800;
    margin-right: 3px;
}


/* ==================== 4. LEGACY / NOT LOADED ====================
   The original stylesheet includes home/marketing/gallery/itinerary layouts,
   old landing breakpoints and global pill styling for every anchor.
   These do not belong in this refreshed result layout.

   Preserved verbatim in legacy/site-original.css.txt.
   Both substantial component style blocks are preserved in
   legacy/component-original.css.txt, including hidden welcome/search/plans/
   calendar screens and dynamic states that a DOM snapshot cannot prove unused.

   See legacy/review-notes.txt for selectors absent from the supplied HTML.
   Absence is only a review candidate, NOT evidence that a rule is safe to delete
   from the production application. None of these archives is loaded here.
*/
