/* Explore Kannur page. Builds on styles.css (tokens, top bar, buttons, footer). */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.explore-page .site-nav a[aria-current="page"] { color: var(--accent); opacity: 1; }

/* Intro */
.explore-hero { position: relative; padding: 140px 0 44px; background: radial-gradient(ellipse 70% 90% at 85% 0%, rgba(243, 195, 90, .14), transparent 60%), radial-gradient(ellipse 60% 80% at 0% 100%, rgba(226, 69, 95, .1), transparent 60%), var(--bg); }
.explore-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--soft); }
.explore-back:hover { color: var(--accent); }
.explore-hero .eyebrow { display: block; }
.explore-hero h1 { font: 600 clamp(46px, 7vw, 88px)/1 var(--serif); letter-spacing: -1px; margin: 14px 0 18px; }
.explore-hero h1 em { color: var(--accent); font-style: italic; }
.explore-lede { max-width: 640px; margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.explore-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.explore-facts span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--tint), .04); font-size: 13px; color: var(--muted); }
.explore-facts b { color: var(--ink); }
.explore-checked { margin: 16px 0 0; font-size: 13px; color: var(--soft); }

/* "Travelling from far?" banner */
.stay-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 0 0 30px; padding: 18px 20px 18px 22px; border: 1px solid rgba(243, 195, 90, .55); border-radius: 20px; background: linear-gradient(120deg, rgba(243, 195, 90, .18), rgba(243, 195, 90, .05) 60%), var(--panel); }
.stay-banner-icon { font-size: 24px; color: var(--accent); }
.stay-banner p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.stay-banner b { color: var(--ink); }
.stay-banner-inline { margin: 24px 0 18px; }

/* Search, sort and category chips */
.explore-controls { position: sticky; top: 76px; z-index: 20; padding: 14px 0 12px; background: rgba(var(--glass), .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.explore-toolbar { display: flex; gap: 10px; }
.explore-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--soft); }
.explore-search:focus-within { border-color: var(--accent); }
.explore-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--ink); font-size: 16px; outline: none; }
.explore-search input::placeholder { color: var(--faint); }
.explore-sort { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }
.explore-sort select { height: 46px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; outline: none; }
.explore-sort select option { background: var(--bg-2); }
.explore-chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.explore-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: var(--button-ink); }
.chip small { font-size: 11px; opacity: .7; }

/* Place cards */
.explore-places { padding-bottom: 40px; }
.explore-count { margin: 22px 0 16px; font-size: 13px; color: var(--soft); }
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.place-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.place-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.place-card-button { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.place-card-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 22px; }
.place-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.place-card:hover .place-photo img { transform: scale(1.04); }
.place-distance { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(var(--glass), .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; color: var(--ink); }
.place-placeholder { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 100%; padding: 18px; background: radial-gradient(circle at 80% 20%, rgba(243, 195, 90, .22), transparent 55%), linear-gradient(135deg, var(--panel-2), #0d1330); }
.place-placeholder b { font: 600 30px/1 var(--script); color: var(--gold-soft); }
.place-placeholder small { margin-top: 6px; font-size: 11px; letter-spacing: 1px; color: var(--soft); }
.place-placeholder[data-cat="Beaches"], .place-placeholder[data-cat="Backwaters & Islands"] { background: radial-gradient(circle at 80% 20%, rgba(120, 190, 230, .25), transparent 55%), linear-gradient(135deg, #16305a, #0d1330); }
.place-placeholder[data-cat="Temples & Theyyam"], .place-placeholder[data-cat="Churches & Mosques"] { background: radial-gradient(circle at 80% 20%, rgba(226, 69, 95, .25), transparent 55%), linear-gradient(135deg, #3a1d3d, #0d1330); }
.place-placeholder[data-cat="Food & Local Experiences"], .place-placeholder[data-cat="Museums & Culture"] { background: radial-gradient(circle at 80% 20%, rgba(243, 195, 90, .3), transparent 55%), linear-gradient(135deg, #3b2a17, #0d1330); }
.place-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.place-cat { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.place-body h3 { margin: 6px 0 4px; font: 600 21px/1.25 var(--serif); }
.place-area { margin: 0; font-size: 13px; color: var(--soft); }
.place-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.place-meta li { padding: 4px 10px; border-radius: 999px; background: rgba(var(--tint), .06); font-size: 12px; color: var(--muted); }
.place-more { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; }
.place-more span { color: var(--accent); }
.explore-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Detail dialog */
.place-dialog { width: min(760px, calc(100% - 28px)); max-height: min(92vh, 980px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--bg-2); color: var(--ink); box-shadow: 0 24px 90px rgba(0, 0, 0, .6); }
.place-dialog::backdrop { background: rgba(3, 5, 16, .76); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.place-dialog[open] { display: flex; flex-direction: column; }
.place-dialog-body { overflow-y: auto; overscroll-behavior: contain; }
.place-dialog .dialog-close { top: 14px; right: 14px; }
.detail-photo { position: relative; margin: 0; background: var(--panel-2); }
.detail-photo img { width: 100%; max-height: 420px; aspect-ratio: 16 / 10; object-fit: cover; }
.detail-photo figcaption { padding: 8px 22px; font-size: 11px; line-height: 1.5; color: var(--soft); background: rgba(0, 0, 0, .25); }
.detail-photo figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.detail-photo .place-placeholder { min-height: 180px; }
.detail-main { padding: 24px 30px 30px; }
.detail-main h2 { margin: 8px 0 4px; font: 600 clamp(28px, 4vw, 38px)/1.15 var(--serif); }
.detail-story { margin: 18px 0 0; font-size: 16px; line-height: 1.75; color: var(--muted); }
.detail-note { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(243, 195, 90, .4); background: rgba(243, 195, 90, .08); font-size: 14px; line-height: 1.6; color: var(--ink); }
.detail-note::before { content: "!"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--button-ink); font-weight: 800; font-size: 13px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; }
.detail-facts > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.detail-facts dt { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; text-transform: uppercase; color: var(--soft); }
.detail-facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.detail-facts dd small { display: block; color: var(--muted); }
.detail-facts .wide { grid-column: 1 / -1; }
.detail-reach { margin: 6px 0 0; padding: 0; list-style: none; }
.detail-reach li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 6px 0; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--line); }
.detail-reach li:first-child { border-top: 0; }
.detail-reach b { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.check-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 157, 157, .14); color: var(--error); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Hotels */
.explore-stay { padding: 80px 0 90px; background: var(--bg-2); border-top: 1px solid var(--line); }
.explore-stay h2 { margin: 14px 0 0; font: 600 clamp(38px, 4.6vw, 60px)/1.06 var(--serif); letter-spacing: -.5px; }
.explore-stay h2 em { color: var(--accent); font-style: italic; }
.stay-intro { max-width: 640px; margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.hotel-group { margin-top: 30px; }
.hotel-group h3 { margin: 0 0 12px; font-size: 11px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; color: var(--soft); }
.hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hotel-card { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.hotel-card h4 { margin: 0; font: 600 19px/1.3 var(--serif); }
.hotel-type { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--accent); }
.hotel-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.hotel-card .hotel-uncertain { color: var(--error); font-size: 12px; }
.hotel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--soft); }
.hotel-foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--ink); }
.hotel-foot a span { margin-left: 6px; color: var(--accent); }

/* Footer notes */
.explore-footer-notes { position: relative; z-index: 1; padding: 26px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--soft); }
.explore-footer-notes p { max-width: 780px; margin: 0 0 8px; }
.explore-footer .admin-open { display: inline-flex; align-items: center; }

@media (max-width: 1000px) {
  .place-grid, .hotel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .stay-banner { grid-template-columns: auto 1fr; }
  .stay-banner .pill-button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
  .explore-hero { padding: 96px 0 30px; }
  .explore-back { margin-bottom: 8px; }
  .explore-lede { font-size: 16px; }
  .explore-facts span { min-height: 32px; font-size: 12px; }
  .stay-banner { gap: 10px 12px; padding: 16px; margin-bottom: 22px; }
  .stay-banner .pill-button { justify-self: stretch; }
  .explore-controls { top: 64px; padding: 10px 0; }
  .explore-toolbar { gap: 8px; }
  .explore-search { padding: 0 14px; }
  .explore-sort { padding-left: 12px; }
  .explore-sort > span { display: none; }
  .explore-sort select { max-width: 124px; }
  .explore-chips { margin: 10px -16px 0; padding: 0 16px; scroll-padding-inline: 16px; }
  .place-grid, .hotel-grid { grid-template-columns: 1fr; gap: 12px; }
  .place-photo { aspect-ratio: 16 / 10; }
  .place-body h3 { font-size: 20px; }
  .place-dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; border: 0; }
  .place-dialog .dialog-close { position: fixed; top: 12px; right: 12px; }
  .detail-main { padding: 20px 18px 28px; }
  .detail-photo figcaption { padding-inline: 18px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-actions .pill-button { flex: 1 1 100%; }
  .explore-stay { padding: 60px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .place-card, .place-photo img { transition: none; }
  .place-card:hover, .place-card:hover .place-photo img { transform: none; }
}

/* Light mode (see the light mode section of styles.css) */
[data-theme="light"] .place-card:hover { box-shadow: 0 18px 40px rgba(29, 35, 72, .14); }
[data-theme="light"] .place-distance { background: rgba(255, 250, 242, .88); }
[data-theme="light"] .place-placeholder { background: radial-gradient(circle at 80% 20%, rgba(243, 195, 90, .3), transparent 55%), linear-gradient(135deg, #f3e7d2, #e8dac1); }
[data-theme="light"] .place-placeholder[data-cat="Beaches"], [data-theme="light"] .place-placeholder[data-cat="Backwaters & Islands"] { background: radial-gradient(circle at 80% 20%, rgba(120, 190, 230, .35), transparent 55%), linear-gradient(135deg, #dcebf2, #ece6d8); }
[data-theme="light"] .place-placeholder[data-cat="Temples & Theyyam"], [data-theme="light"] .place-placeholder[data-cat="Churches & Mosques"] { background: radial-gradient(circle at 80% 20%, rgba(226, 69, 95, .22), transparent 55%), linear-gradient(135deg, #f3dfe2, #ede3d6); }
[data-theme="light"] .place-placeholder[data-cat="Food & Local Experiences"], [data-theme="light"] .place-placeholder[data-cat="Museums & Culture"] { background: radial-gradient(circle at 80% 20%, rgba(243, 195, 90, .38), transparent 55%), linear-gradient(135deg, #f4e2c4, #ece3d3); }
[data-theme="light"] .detail-photo figcaption { background: rgba(29, 35, 72, .06); }
[data-theme="light"] .place-dialog { box-shadow: 0 24px 80px rgba(29, 35, 72, .3); }
[data-theme="light"] .place-dialog::backdrop { background: rgba(29, 35, 72, .5); }
