/* ===================================================
   KIOSK DESIGN SYSTEM v2 · COASTAL PROFESSIONAL
   Layout: header (top) + sidebar (left) + ticker (bottom)
   Fonts:  DM Sans
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&display=swap');

/* ─── KIOSK LOCKDOWN ─── */
*, *::before, *::after {
  -webkit-user-select:      none;
  -moz-user-select:         none;
  user-select:              none;
  -webkit-touch-callout:    none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select:         text;
}
html, body { overscroll-behavior: none; }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* ─── DESIGN TOKENS ─── */
:root {
  /* Coastal palette — professional, calm, Adriatic */
  --navy:       #2F84C9;
  --navy-mid:   #4D9BDD;
  --navy-lt:    #87C1EC;
  --teal:       #56B6F0;
  --teal-lt:    #7AC8F3;
  --teal-pale:  #DDF2FF;

  /* Neutrals */
  --bg:         #F3FAFF;
  --surface:    #FFFFFF;
  --border:     #CBD5E1;
  --border-lt:  #E2E8F0;
  --muted:      #64748B;
  --text:       #0A1628;
  --text-2:     #334155;

  /* Status */
  --green:  #16A34A;
  --red:    #DC2626;
  --amber:  #D97706;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-tile: 0 4px 24px rgba(0,0,0,0.22);

  /* Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   26px;
  --r-full: 9999px;

  /* Typography */
  --font:         'DM Sans', system-ui, sans-serif;
  --font-display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout — landscape default */
  --header-h:  84px;
  --sidebar-w: 74px;
  --ticker-h:  42px;
  --content-pad-x: 96px;
}

@media (orientation: portrait) {
  :root {
    --header-h:  78px;
    --sidebar-w: 70px;
    --ticker-h:  42px;
    --content-pad-x: 56px;
  }
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html  { font-size: 16px; height: 100%; overflow-x: hidden; }
body  {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ─── SWUP TRANSITIONS ─── */
.transition-fade {
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}
html.is-changing .transition-fade {
  opacity: 0;
  transform: translateY(10px);
}

/* ═══════════════════════════════════════
   PERSISTENT SHELL
   ═══════════════════════════════════════ */

/* ─── HEADER ─── */
#kiosk-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, calc(100vw - 72px));
  height: calc(var(--header-h) - 12px);
  background: rgba(255,255,255,0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 200;
  border: 1px solid #d7e8f9;
  border-top: none;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 8px 24px rgba(38, 99, 153, 0.16);
}

.header-side {
  min-width: 172px;
  display: flex;
}
.header-clock {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}
.header-weather {
  justify-content: flex-end;
}
.header-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── LEFT SIDEBAR ─── */
#kiosk-sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 72px;
  background: linear-gradient(165deg, #2E93D8 0%, #4FA9E5 100%);
  border-top-right-radius: 26px;
  border-bottom-right-radius: 26px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(52, 138, 201, 0.34);
}

/* Sidebar icon button */
.sidebar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eff8ff;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  border: none;
  background: rgba(18, 92, 144, 0.34);
  backdrop-filter: blur(1px);
  flex-shrink: 0;
}
.sidebar-btn:active,
.sidebar-btn.active {
  background: rgba(255,255,255,0.28);
  color: #ffffff;
  transform: scale(1.03);
}

.sidebar-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-menu-icon span {
  width: 14px;
  height: 2px;
  border-radius: 3px;
  background: #ecf7ff;
}

/* Language flag button (bottom of sidebar) */
.sidebar-lang {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  font-size: 1.2rem;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(18, 92, 144, 0.4);
  flex-shrink: 0;
}
.sidebar-lang:active { background: rgba(255,255,255,0.22); }

/* ─── BOTTOM TICKER ─── */
#kiosk-ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--ticker-h);
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 200;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 55s linear infinite;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 28px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.ticker-item:last-child { border-right: none; }
.ticker-item strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── MAIN CONTENT AREA ─── */
#swup {
  padding-top: var(--header-h);
  padding-left: var(--content-pad-x);
  padding-right: var(--content-pad-x);
  padding-bottom: var(--ticker-h);
  min-height: 100vh;
}

#swup h1,
#swup h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

#swup h3 {
  letter-spacing: -0.01em;
}

#swup .px-8 {
  padding-left: var(--content-pad-x) !important;
  padding-right: var(--content-pad-x) !important;
}

#swup .section-hero {
  margin-left: var(--content-pad-x);
  margin-right: var(--content-pad-x);
}

/* ═══════════════════════════════════════
   LANGUAGE SELECTION SCREEN
   Doubles as screensaver / idle screen
   ═══════════════════════════════════════ */
#lang-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #1f76bc 0%, #3896da 55%, #67b8ee 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow: hidden;
}
#lang-screen.active {
  opacity: 1;
  pointer-events: all;
}

/* Subtle floating particles */
.ls-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: lsFloat linear infinite;
}
@keyframes lsFloat {
  0%   { transform: translateY(20vh); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.3; }
  100% { transform: translateY(-20vh); opacity: 0; }
}

/* Language choice buttons */
.lang-choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.96);
  border: 1.5px solid rgba(255,255,255,0.98);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-align: left;
  color: #1f76bc;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(15, 86, 141, 0.16);
}
.lang-choice-btn:active,
.lang-choice-btn.selected {
  background: #ffffff;
  border-color: #d4ebfb;
  transform: scale(1.02);
}
.lang-choice-flag  {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex: 0 0 44px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  border: 2px solid #d7ebfa;
  background: #eaf5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(47,132,201,0.12);
}
.lang-choice-flag img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
}
.lang-choice-greet { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.lang-choice-lang  { font-weight: 500; font-size: 0.76rem; color: #6d99bb; margin-top: 3px; letter-spacing: 0.06em; }

.lang-events-strip {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lang-events-label {
  color: rgba(255,255,255,0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.lang-event-card {
  position: relative;
  border-radius: 18px;
  min-height: 152px;
  border: 1.5px solid rgba(255,255,255,0.72);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 86, 141, 0.22);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.lang-event-card.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

#lang-event-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,42,73,0.12) 0%, rgba(6,37,63,0.78) 100%);
}

.lang-event-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
}

.lang-event-time {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.24);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
#lang-event-title {
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
#lang-event-place {
  font-size: 0.82rem;
  color: rgba(240,249,255,0.94);
  font-weight: 600;
}

/* Lang screen wave strip at bottom */
.ls-waves {
  display: none;
}

/* ═══════════════════════════════════════
   HEADER COMPONENTS
   ═══════════════════════════════════════ */

/* Weather widget */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5fbff;
  border: 1px solid #d7e8f9;
  border-radius: var(--r-full);
  padding: 6px 14px;
}

/* Legacy subpage header controls - restyled to match new shell */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #e8f4ff;
  border: 1px solid #d2e7f8;
  color: #2a6fa8;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.home-btn .icon,
.home-btn .icon-white {
  color: #2a6fa8;
}
.lang-btn {
  min-width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #d2e7f8;
  background: #f2f9ff;
  color: #5d8fb7;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: #2f84c9;
  border-color: #2f84c9;
  color: #ffffff;
}

/* Disable old full-screen idle overlay on subpages */
#idle-overlay { display: none !important; }

/* Harmonize old subpage header text colors with new white header */
#kiosk-header .text-white { color: #2a6fa8 !important; }
#kiosk-header .text-white\/60,
#kiosk-header .text-white\/65 { color: #7aa5c9 !important; }

#kiosk-header > .flex.items-center.gap-4 {
  gap: 10px !important;
}

/* Subpages: cleaner, unified layout */
body.subpage-view {
  background: var(--bg) !important;
}
body.subpage-view #swup {
  max-width: 1500px;
  margin: 0 auto;
}
body.subpage-view #kiosk-header {
  width: min(1380px, calc(100vw - 44px));
  padding: 0 16px;
  height: 68px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
body.subpage-view #kiosk-header > .flex.items-center.justify-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
body.subpage-view #kiosk-header > .flex.items-center.gap-4 {
  background: #f6fbff;
  border: 1px solid #d9e8f6;
  border-radius: 9999px;
  padding: 4px 10px;
}
body.subpage-view #swup .section-hero {
  margin-top: 12px;
  background: linear-gradient(145deg, #3c78ad 0%, #2f5f8e 100%) !important;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(26, 61, 92, 0.18);
}
body.subpage-view .section-hero-wave {
  opacity: 0.55;
}
body.subpage-view .kiosk-card {
  border-radius: 16px;
  border: 1px solid #d6e3ef;
  box-shadow: 0 6px 16px rgba(26, 52, 71, 0.08);
}
body.subpage-view .kiosk-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
body.subpage-view .kiosk-card > div[style*="background:linear-gradient"] {
  filter: saturate(0.65) contrast(0.94);
}
body.subpage-view .filter-chip {
  min-height: 40px;
  border-color: #d6e3ef;
}
body.subpage-view .home-btn {
  box-shadow: none;
  background: #f6fbff;
  border-color: #d9e8f6;
}
body.subpage-view .lang-btn {
  box-shadow: none;
  background: #ffffff;
  border-color: #d6e3ef;
}
body.subpage-view .lang-btn.active {
  background: #3c78ad;
  border-color: #3c78ad;
}
body.subpage-view #swup > div {
  padding-bottom: 22px !important;
}

/* Page-by-page hero tones */
body.page-beaches .section-hero { background: linear-gradient(145deg, #3f86b8 0%, #2f5f8e 100%) !important; }
body.page-bike-routes .section-hero { background: linear-gradient(145deg, #4a8799 0%, #336b79 100%) !important; }
body.page-walking-trails .section-hero { background: linear-gradient(145deg, #4c8d7f 0%, #36695f 100%) !important; }
body.page-events .section-hero { background: linear-gradient(145deg, #4f7ea8 0%, #365f84 100%) !important; }
body.page-event-detail .section-hero { background: linear-gradient(145deg, #446f98 0%, #2f5578 100%) !important; }
body.page-restaurants .section-hero { background: linear-gradient(145deg, #5d7da4 0%, #435f80 100%) !important; }
body.page-attractions .section-hero { background: linear-gradient(145deg, #6f83a6 0%, #4f6384 100%) !important; }
body.page-accommodation .section-hero { background: linear-gradient(145deg, #60789e 0%, #435b7d 100%) !important; }
body.page-map .section-hero,
body.page-map #swup .px-8.pt-6.pb-3 {
  background: #eef4f8;
  border: 1px solid #d8e3ec;
  border-radius: 16px;
}
body.page-transport .section-hero { background: linear-gradient(145deg, #4d7da7 0%, #375f83 100%) !important; }
body.page-tourist-info .section-hero { background: linear-gradient(145deg, #5d8aa0 0%, #44697d 100%) !important; }
body.page-route-detail .section-hero { background: linear-gradient(145deg, #4a8298 0%, #356174 100%) !important; }

/* ═══════════════════════════════════════
   CATEGORY TILES
   ═══════════════════════════════════════ */
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-tile);
  text-decoration: none;
  min-height: 158px;
  padding: 20px 14px 24px;
  /* Base: dark ocean gradient — same for all tiles */
  background: linear-gradient(160deg, #0A1628 0%, #1a2f4a 100%);
}
.cat-tile:active { transform: scale(0.95); box-shadow: var(--shadow-sm); }

/* Colored top accent stripe (set --tile-accent per tile) */
.cat-tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tile-accent, var(--teal));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Subtle inner highlight */
.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 45%);
  pointer-events: none;
}

.tile-icon   { line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.tile-label  {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tile-arrow {
  position: absolute;
  bottom: 8px; right: 9px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}

/* Portrait: 3 columns override */
@media (orientation: portrait) {
  .cat-tile { min-height: 138px; }
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.kiosk-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid #dce3e8;
  box-shadow: 0 8px 20px rgba(31, 45, 55, 0.08);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.kiosk-card:active { transform: scale(0.97); box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════
   SECTION PAGE HERO
   ═══════════════════════════════════════ */
.section-hero {
  position: relative;
  padding: 30px 32px 56px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 12px 24px rgba(26, 41, 50, 0.16);
  border: 1px solid rgba(255,255,255,0.48);
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(17,44,62,0.3) 0%, rgba(255,255,255,0.08) 70%);
  pointer-events: none;
}
.section-hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   BADGES
   ═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-easy   { background: #DCFCE7; color: #15803D; }
.badge-medium { background: #FEF3C7; color: #92400E; }
.badge-hard   { background: #FEE2E2; color: #991B1B; }
.badge-event  { background: #FFF7ED; color: #C2410C; border: 1px solid rgba(194,65,12,0.18); }
.badge-free   { background: #DCFCE7; color: #15803D; }
.badge-paid   { background: #EEF2FF; color: #3730A3; }
.badge-open   { background: #DCFCE7; color: #15803D; }
.badge-closed { background: #FEE2E2; color: #991B1B; }

/* ═══════════════════════════════════════
   BACK BUTTON
   ═══════════════════════════════════════ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 42px;
}
.back-btn:active { background: rgba(255,255,255,0.28); transform: scale(0.97); }

/* ═══════════════════════════════════════
   FILTER CHIPS
   ═══════════════════════════════════════ */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s;
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 42px;
}
.filter-chip.active         { background: var(--navy-mid); color: white; border-color: var(--navy-mid); }
.filter-chip:not(.active)   { background: #ffffff; color: #3a4c59; border-color: #dce3e8; }
.filter-chip:active          { transform: scale(0.96); }

/* ═══════════════════════════════════════
   ROUTE / TRAIL STATS
   ═══════════════════════════════════════ */
.route-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 12px 16px;
  gap: 3px;
  flex: 1;
  border: 1px solid var(--border);
}
.stat-icon  { font-size: 1.4rem; }
.stat-value { font-family: var(--font); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.stat-label { font-size: 0.68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ═══════════════════════════════════════
   QR CODE
   ═══════════════════════════════════════ */
.qr-box {
  width: 130px; height: 130px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(9,1fr);
  gap: 1.5px;
  width: 90px; height: 90px;
}
.qr-cell { border-radius: 1px; }

/* ═══════════════════════════════════════
   HORIZONTAL SCROLL
   ═══════════════════════════════════════ */
.scroll-x {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════
   MAP PAGE
   ═══════════════════════════════════════ */
.map-canvas {
  position: relative;
  background: linear-gradient(160deg, #DBEAFE 0%, #BFDBFE 40%, #93C5FD 100%);
  overflow: hidden;
  border-radius: var(--r-lg);
  user-select: none;
}
.map-road     { position: absolute; background: rgba(255,255,255,0.7); border-radius: 2px; }
.map-park     { position: absolute; background: rgba(34,197,94,0.15); border-radius: 8px; border: 1.5px solid rgba(34,197,94,0.25); }
.map-sea-area { position: absolute; background: rgba(59,130,246,0.18); border-radius: 50% 60% 40% 70%; }

.map-marker {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transform-origin: bottom left;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  transition: transform 0.2s;
  border: 2px solid white;
}
.map-marker:active           { transform: rotate(-45deg) scale(1.15); }
.map-marker .marker-icon     { transform: rotate(45deg); font-size: 1.1rem; }
.map-marker.beach            { background: var(--teal); }
.map-marker.restaurant       { background: #DC2626; }
.map-marker.attraction       { background: #7C3AED; }
.map-marker.event            { background: #D97706; }
.map-marker.hotel            { background: #16A34A; }
.map-marker.info             { background: var(--navy-mid); }

#map-info-card {
  position: absolute; bottom: 24px; left: 24px;
  width: 280px;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: none;
  z-index: 10;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   TRANSPORT
   ═══════════════════════════════════════ */
.transport-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s;
}
.transport-card:active { transform: scale(0.97); }

/* ═══════════════════════════════════════
   EMERGENCY / INFO CARDS
   ═══════════════════════════════════════ */
.emergency-card {
  background: #FFF5F5;
  border: 1.5px solid rgba(185,28,28,0.15);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: var(--shadow-sm);
  min-height: 72px;
}
.emergency-card:active { transform: scale(0.97); }

.info-card-blue {
  background: #EFF6FF;
  border: 1.5px solid rgba(14,165,233,0.15);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════
   RESPONSIVE — Large kiosks
   ═══════════════════════════════════════ */
@media (min-width: 1440px) {
  :root { font-size: 17px; --header-h: 90px; --sidebar-w: 80px; }
  .cat-tile { min-height: 172px; }
}
@media (min-width: 1920px) {
  :root { font-size: 19px; --header-h: 96px; --sidebar-w: 86px; }
  .cat-tile { min-height: 192px; }
}
@media (min-width: 2560px) {
  :root { font-size: 22px; --header-h: 104px; --sidebar-w: 92px; }
}

@media (orientation: portrait) {
  #kiosk-header {
    width: calc(100vw - 24px);
    padding: 0 12px;
    height: calc(var(--header-h) - 8px);
  }
  #kiosk-sidebar {
    width: 62px;
    padding: 10px 8px;
    gap: 10px;
  }
  .sidebar-btn,
  .sidebar-lang {
    width: 40px;
    height: 40px;
  }
  #kiosk-header > .flex.items-center.gap-4 {
    gap: 6px !important;
  }
  .home-btn {
    padding: 7px 10px;
    min-height: 36px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
  .home-btn span {
    display: none;
  }
  .lang-btn {
    min-width: 30px;
    height: 30px;
    font-size: 0.62rem;
  }
  .lang-btn:not(.active) {
    display: none;
  }
  #swup .section-hero {
    margin-left: 0;
    margin-right: 0;
    border-radius: 22px;
    padding: 22px 20px 48px;
  }
  #swup .grid.grid-cols-4 {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  #swup .grid.grid-cols-3,
  #swup .grid.grid-cols-2 {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.subpage-view #swup {
    padding-left: 10px;
    padding-right: 10px;
  }
  body.subpage-view #kiosk-header {
    width: calc(100vw - 14px);
    height: 60px;
    padding: 0 8px;
  }
  body.subpage-view #kiosk-header > .flex.items-center.gap-4 {
    padding: 3px 7px;
    gap: 5px !important;
  }
  body.subpage-view .weather-widget {
    padding: 4px 8px;
    gap: 5px;
  }
  body.subpage-view #swup .section-hero {
    margin-top: 6px;
    border-radius: 16px;
    padding: 18px 14px 42px;
  }
  body.subpage-view .kiosk-card {
    border-radius: 13px;
  }
  body.subpage-view .filter-chip {
    min-height: 36px;
    font-size: 0.74rem;
    padding: 6px 11px;
  }
  body.subpage-view #swup h1 {
    font-size: 2rem !important;
    line-height: 1.06 !important;
  }
  body.subpage-view #swup h3 {
    font-size: 1rem !important;
  }
  #swup .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
  #swup .flex.items-center.justify-between > .flex.gap-2 {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  #swup .flex.items-center.justify-between > .flex.gap-2::-webkit-scrollbar {
    display: none;
  }
}

/* ═══════════════════════════════════════
   SVG ICON SYSTEM
   ═══════════════════════════════════════ */
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  shape-rendering: geometricPrecision;
}
.icon-xs  { width: 16px;  height: 16px;  }
.icon-sm  { width: 24px;  height: 24px;  }
.icon-md  { width: 36px;  height: 36px;  }
.icon-lg  { width: 52px;  height: 52px;  }
.icon-xl  { width: 68px;  height: 68px;  }
.icon-2xl { width: 88px;  height: 88px;  }

.tile-icon-svg {
  width: 44px; height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.icon-white  { color: white; }
.icon-sea    { color: var(--teal); }
.icon-coral  { color: #DC2626; }
.icon-orange { color: #D97706; }
.icon-navy   { color: var(--navy); }
.icon-mid    { color: var(--text-2); }
.icon-thin   { --icon-sw: 1.25; }
.icon-thick  { --icon-sw: 2.5;  }

@media (min-width: 1440px) { .tile-icon-svg { width: 52px; height: 52px; } }
@media (min-width: 1920px) { .tile-icon-svg { width: 62px; height: 62px; } }
@media (min-width: 2560px) { .tile-icon-svg { width: 76px; height: 76px; } }

.icon-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; padding: 10px;
}

/* ═══════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════ */
.font-display   { font-family: var(--font-display); }
.font-body      { font-family: var(--font-body); }
.text-sea       { color: var(--teal); }
.text-sea-dark  { color: var(--navy-mid); }
.text-sea-navy  { color: var(--navy); }
.text-mid       { color: var(--text-2); }
.text-light-sea { color: var(--muted); }
.bg-sky-bg      { background-color: var(--bg); }
.shadow-tile    { box-shadow: var(--shadow-tile); }
.shadow-card    { box-shadow: var(--shadow-md); }

.sidebar-lang-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.56);
}
