@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* =========================================
   GaleraLink - Redesigned Stylesheet
   Puerto Galera Boat Booking System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary: #0077b6;
  --primary-dark: #005f92;
  --secondary: #00b4d8;
  --accent: #f77f00;
  --accent-dark: #d96800;
  --success: #2dc653;
  --danger: #e63946;
  --white: #ffffff;
  --light: #f0f9ff;
  --gray: #6c757d;
  --dark: #023e8a;
  --glass: rgba(255,255,255,0.23);
  --glass-border: rgba(255,255,255,0.34);
  --shadow: 0 8px 32px rgba(0,0,0,0.22);
  --radius: 20px;
  --radius-sm: 12px;
}

* { margin:0; padding:0; box-sizing:border-box; }

html {
  height: 100%;
  /* Stop the iOS/Android "rubber-band" overscroll bounce at the very
     bottom of the page — without this, pulling past the footer reveals
     a gap showing the fixed background layer behind it, making the
     footer look like it "lifts" instead of staying anchored. */
  overscroll-behavior-y: none;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #0a1628;
  color: white;
  overscroll-behavior-y: none;
  /* navbar is position:fixed — body padding-top handles offset via JS. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== BEACH BACKGROUND ===== */
/* ── Global fixed background layer (injected by appearance.js) ── */
/* ALSO defined via inline <style> in each page <head> to prevent flash */
#gl-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #020c1e center center / cover no-repeat;
  will-change: transform;
  transform: translateZ(0);
}

.beach-bg,
.auth-page {
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Sticky footer: works whether a page nests <footer> inside .beach-bg
   or places it as a sibling after .beach-bg closes — footer's own
   direct flex parent (whichever it is) pushes it to the true bottom
   of the viewport instead of leaving a gap of bare background below
   it on short pages (e.g. an empty notifications list). */
.footer { flex-shrink: 0; margin-top: auto; }

/* grid overlay removed — clean background image only */

/* Weather background states */
.beach-bg.weather-good     { background-image: url('../images/weather-good.png'),    linear-gradient(160deg,#0a1628 0%,#023e8a 40%,#0077b6 100%); }
.beach-bg.weather-moderate { background-image: url('../images/weather-moderate.png'), linear-gradient(160deg,#1a1a2e 0%,#16213e 40%,#0f3460 100%); }
.beach-bg.weather-heavy    { background-image: url('../images/weather-heavy.png'),    linear-gradient(160deg,#0d0d1a 0%,#1a1a3e 40%,#0a0a28 100%); }

/* Weather widget floating card */
#weather-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  background: rgba(0,10,40,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 14px 18px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: all 0.25s;
}
#weather-widget:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
#weather-widget .ww-location { font-size: 0.7rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 3px; }
#weather-widget .ww-temp { font-size: 2rem; font-weight: 600; line-height: 1; color: #fff; }
#weather-widget .ww-temp sup { font-size: 0.9rem; font-weight: 400; }
#weather-widget .ww-desc { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 3px; text-transform: capitalize; }
#weather-widget .ww-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 0.71rem; color: rgba(255,255,255,0.6); }
#weather-widget .ww-badge { display: inline-block; margin-top: 7px; padding: 2px 10px; border-radius: 50px; font-size: 0.68rem; font-weight: 600; }
#weather-widget .ww-badge.good     { background: rgba(45,198,83,0.25); color: #86efac; border: 1px solid rgba(45,198,83,0.35); }
#weather-widget .ww-badge.moderate { background: rgba(247,127,0,0.25);  color: #fdba74; border: 1px solid rgba(247,127,0,0.35); }
#weather-widget .ww-badge.heavy    { background: rgba(230,57,70,0.25);   color: #fca5a5; border: 1px solid rgba(230,57,70,0.35); }
#weather-widget .ww-loading { font-size: 0.82rem; color: rgba(255,255,255,0.55); padding: 6px 0; }
#weather-widget .ww-refresh { float: right; font-size: 0.68rem; color: rgba(255,255,255,0.4); background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.45); padding: 0; margin-left: 8px; }
#weather-widget .ww-refresh:hover { color: #00d4ff; }

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* No tint overlay on beach-bg — show background image naturally */

/* ===== NAVBAR — Tourist (matches operator compact style) ===== */
.navbar {
  background: rgba(4,12,40,0.55);
  backdrop-filter: blur(44px) saturate(200%);
  -webkit-backdrop-filter: blur(44px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 0 28px;
  height: var(--nav-tall);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 6px 28px rgba(0,0,0,0.3);
  transition: height 0.32s cubic-bezier(0.4,0,0.2,1),
              background 0.32s ease,
              box-shadow 0.32s ease,
              padding 0.32s ease;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.5) 30%, rgba(0,212,255,0.7) 50%, rgba(0,180,216,0.5) 70%, transparent);
  opacity: 0.7;
}
.navbar.scrolled {
  height: var(--nav-compact) !important;
  background: rgba(4,12,40,0.88) !important;
  backdrop-filter: blur(60px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(60px) saturate(220%) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.06) !important;
}

.navbar-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }

.brand-icon {
  width:36px; height:36px;
  background: linear-gradient(135deg,#0077b6,#00b4d8);
  border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; color:white;
  box-shadow: 0 3px 12px rgba(0,150,200,0.35);
  transition: all 0.32s ease;
}
.navbar.scrolled .brand-icon { width:28px!important; height:28px!important; font-size:11px!important; }

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  transition: font-size 0.32s ease;
}
.brand-name span { color: #00d4ff; }
.navbar.scrolled .brand-name { font-size: 1.1rem !important; }

/* Nav links */
.nav-links { display:flex; gap:4px; list-style:none; align-items:center; flex:1; justify-content:flex-end; margin-right:4px; position:relative; }
.nav-links li { position:relative; }
.nav-links a {
  display:flex; flex-direction:column; align-items:center; gap:2px;
  color:rgba(255,255,255,0.6); text-decoration:none;
  padding:5px 11px; border-radius:50px;
  font-weight:600; font-size:0.72rem;
  transition:color 0.2s; position:relative; z-index:1; white-space:nowrap;
}
.nav-links a i { font-size:1rem; transition:transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.nav-links a span { font-size:0.62rem; letter-spacing:0.1px; }
.nav-links a::before { display:none !important; }
.nav-links a:hover { color:white; }
.nav-links a:hover i { transform:scale(1.2) translateY(-1px); }
.nav-links a.active { color:#00d4ff; }
.nav-links a.active i { color:#00d4ff; }

.nav-user {
  display:flex; align-items:center; gap:8px; color:white;
  padding-left:12px; border-left:1px solid rgba(255,255,255,0.1);
  margin-left:8px; overflow:visible;
}
.nav-avatar {
  width:30px; height:30px; border-radius:50%;
  background: linear-gradient(135deg,#0077b6,#00b4d8);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:0.70rem; color:white;
  border: 2px solid rgba(0,180,216,0.35);
  flex-shrink: 0; position:relative; z-index:1;
}
.nav-userinfo { display:flex; flex-direction:column; line-height:1.2; }
.nav-username { font-size:0.72rem; font-weight:700; color:white; white-space:nowrap; }
.nav-userrole { font-size:0.58rem; color:rgba(255,255,255,0.42); font-weight:500; }

/* Avatar + username link to Profile/Settings */
a.nav-avatar, a.nav-userinfo {
  text-decoration:none; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.nav-avatar:hover {
  border-color:rgba(0,180,216,0.85);
  box-shadow:0 0 0 3px rgba(0,180,216,0.18);
  transform:translateY(-1px);
}
a.nav-avatar:active { transform:scale(.95); }
a.nav-userinfo:hover .nav-username { color:#00d4ff; }
a.nav-userinfo .nav-username, a.nav-userinfo .nav-userrole { transition:color .18s ease; }
.btn-logout {
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px;
  color:#fca5a5; text-decoration:none;
  background:rgba(230,57,70,0.1); border:1px solid rgba(230,57,70,0.25);
  border-radius:9px; transition:all 0.2s; font-size:0.85rem; flex-shrink:0;
}
.btn-logout:hover { color:#ff8080; background:rgba(230,57,70,0.22); border-color:rgba(230,57,70,0.5); transform:scale(1.08); }

/* ============================================
   LIQUID BLOB — User Navbar & Mobile Sidebar
   ============================================ */
/* NOTE: .navbar keeps position:fixed from its primary rule above — do NOT add position:relative here */
.nav-links { position:relative; }
.nav-goo-wrap { position:relative; flex:1; display:flex; align-items:center; justify-content:flex-end; }
.nav-blob {
  opacity:0;
  position:absolute; border-radius:50px;
  background:rgba(255,255,255,0.22); pointer-events:none; z-index:0;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.14);
  transition:
    left    .5s cubic-bezier(.34,1.4,.64,1),
    top     .35s cubic-bezier(.34,1.4,.64,1),
    width   .5s cubic-bezier(.34,1.4,.64,1),
    height  .35s cubic-bezier(.34,1.4,.64,1),
    opacity .2s ease;
  will-change:left,top,width,height,opacity;
}
.nav-links a { position:relative; z-index:1; }

/* Mobile sidebar blob */
#mobile-nav .mob-links { position:relative; }
#mobile-nav .mob-goo-wrap { position:relative; }
.mob-blob {
  opacity:0;
  position:absolute; left:0; width:100%; border-radius:13px;
  background:rgba(255,255,255,0.19); pointer-events:none; z-index:0;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.1);
  transition: top .5s cubic-bezier(.34,1.4,.64,1), height .4s cubic-bezier(.34,1.4,.64,1),
    opacity .2s ease;
  will-change:top,height,opacity;
}
#mobile-nav a { position:relative; z-index:1; }

/* ===== HERO ===== */
.hero {
  position: relative; z-index:1;
  text-align: center;
  padding: 12px 20px 20px;
  color: white;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.hero h1 span { color:#00d4ff; font-style:italic; }

.hero p { font-size:.92rem; opacity:0.88; margin-bottom:18px; }

.hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.25s;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: rgba(0,150,199,0.3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: white;
  border: 1px solid rgba(0,210,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 4px 20px rgba(0,150,199,0.3);
}
.btn-primary:hover {
  background: rgba(0,170,220,0.42);
  border-color: rgba(0,230,255,0.55);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 28px rgba(0,150,199,0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.19);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-secondary:hover { background:rgba(255,255,255,0.34); transform:translateY(-2px); }

.btn-blue {
  background: rgba(0,170,210,0.22);
  border: 1px solid rgba(0,200,240,0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 14px rgba(0,150,200,.18);
}
.btn-blue:hover {
  background: rgba(0,190,230,0.32);
  border-color: rgba(0,220,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 22px rgba(0,170,220,.3);
  transform: translateY(-2px);
  color: white;
}
.btn-green {
  background: rgba(0,170,210,0.22);
  border: 1px solid rgba(0,200,240,0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 14px rgba(0,150,200,.18);
}
.btn-green:hover {
  background: rgba(0,190,230,0.32);
  border-color: rgba(0,220,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 22px rgba(0,170,220,.3);
  transform: translateY(-2px);
  color: white;
}
.btn-full { width:100%; justify-content:center; }
.btn-sm { padding:8px 18px; font-size:0.85rem; }

/* ===== TERMINALS ===== */
.terminals-grid {
  position:relative; z-index:1;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  padding: 0 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.terminal-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  text-align: center;
  color: white;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.35s ease, border-color 0.25s;
  box-shadow: 0 8px 36px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Full-card background image */
.terminal-card .tc-img-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.terminal-card:hover .tc-img-bg,
.terminal-card.tc-active .tc-img-bg { transform: scale(1.07); }

/* Gradient vignette — always visible */
.terminal-card .tc-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,10,30,0.05) 0%, rgba(0,10,30,0.15) 45%, rgba(0,10,30,0.58) 100%);
  transition: background 0.4s ease;
  pointer-events: none;
}
.terminal-card:hover .tc-vignette,
.terminal-card.tc-active .tc-vignette {
  background: linear-gradient(to bottom, rgba(0,10,30,0.08) 0%, rgba(0,10,30,0.30) 45%, rgba(0,10,30,0.85) 100%);
}

/* Spacer — pushes tc-name and tc-body to the bottom */
.terminal-card .tc-top {
  position: relative; z-index: 2;
  flex: 1;
  /* No background — image + vignette show through */
}

/* Name label — sits above the body panel, transitions down on hover */
.terminal-card .tc-name {
  position: relative; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px 12px;
  transition: padding 0.42s cubic-bezier(0.4,0,0.2,1), transform 0.42s cubic-bezier(0.4,0,0.2,1);
}
.terminal-card .tc-name h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: white; margin: 0; padding: 0;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6);
  line-height: 1.2;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}

/* Description panel — hidden by default (zero height + opacity 0), reveals on hover
   or, on mobile, when this card is the one centered in the viewport while scrolling
   (see js/galeralink.js — mimics hover since touch devices have no real hover). */
.terminal-card .tc-body {
  position: relative; z-index: 3;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  /* Transparent white liquid glass — same as vessel cards */
  background: rgba(255,255,255,0.21);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1),
              opacity 0.35s ease,
              padding 0.42s ease,
              border-color 0.3s ease;
}
.terminal-card:hover .tc-body,
.terminal-card.tc-active .tc-body {
  max-height: 200px;
  opacity: 1;
  padding: 16px 20px 18px;
  border-top-color: rgba(255,255,255,0.18);
}

.terminal-card:hover,
.terminal-card.tc-active {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.45);
}

.terminal-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size:1.2rem; font-weight:700; margin-bottom:6px;
  padding: 0;
}

.terminal-card p { font-size:0.83rem; opacity:0.8; margin-bottom:16px; padding:0; }
.terminal-card .btn { margin: 0; width:100%; }

/* ===== FEATURES BAR ===== */
.features-bar {
  position:relative; z-index:1;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  padding: 0 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-item {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  color: white;
  transition: all 0.25s;
}
.feature-item:hover { background:rgba(255,255,255,0.27); transform:translateY(-3px); }

.feat-icon { font-size:1.8rem; margin-bottom:10px; }
.feature-item h4 { font-size:0.9rem; font-weight:600; margin-bottom:4px; }
.feature-item p { font-size:0.78rem; opacity:0.72; }

/* ===== BOATS GRID ===== */
.boats-grid {
  position:relative; z-index:1;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  padding: 0 40px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.boat-card {
  position: relative;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  overflow: hidden;
  color: white;
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.3s ease, border-color 0.25s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.16);
}
.boat-card::before {
  content: ''; position:absolute; inset:0; pointer-events:none; z-index:0;
  background: linear-gradient(145deg, rgba(255,255,255,0.21) 0%, transparent 50%);
}
.boat-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 52px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.28);
}

.boat-img {
  height:200px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.boat-img img { width:100%; height:100%; object-fit:cover; }
.boat-img .emoji-fallback { font-size:5rem; }

.boat-info { padding:20px 22px 14px; }

.boat-info h3 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:1.4rem; font-weight:700; margin-bottom:6px; color:white;
}

.capacity { font-size:0.85rem; opacity:0.88; margin-bottom:4px; }
.boat-route { font-size:0.82rem; color:#a8d5e2; margin-bottom:12px; }

.boat-features { list-style:none; font-size:0.82rem; opacity:0.85; }
.boat-features li { display:flex; align-items:center; gap:7px; margin-bottom:5px; }
.boat-features li i { color:#00d4ff; font-size:0.75rem; }

.boat-footer {
  padding:0 22px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom:18px; }

.form-label {
  display:block;
  font-size:0.84rem; font-weight:600;
  margin-bottom:7px;
  color:rgba(255,255,255,0.88);
}

.form-control {
  width:100%;
  padding:12px 16px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
  outline: none;
}
.form-control::placeholder { color:rgba(255,255,255,0.42); }
.form-control:focus {
  border-color: rgba(0,212,255,0.65);
  background: rgba(255,255,255,0.29);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.13);
}
.form-control option { background:#0a2540; color:white; }

.input-icon { position:relative; }
.input-icon .icon {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  color:rgba(255,255,255,0.50); font-size:0.9rem; pointer-events:none;
}
.input-icon .form-control { padding-left:40px; }

/* ===== AUTH PAGES ===== */

.auth-left {
  display:none;
}

.logo { display:flex; align-items:center; gap:12px; margin-bottom:40px; }

.logo-icon {
  width:48px; height:48px;
  background: linear-gradient(135deg,#00b4d8,#0077b6);
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; color:white;
}

.logo-text {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:2.1rem; font-weight:700; color:white;
}
.logo-text span { color:#00d4ff; }

.auth-left h2 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:2.8rem; font-weight:800; line-height:1.2;
  margin-bottom:16px;
  text-shadow:0 2px 20px rgba(0,0,0,0.45);
}
.auth-left h2 span { color:#00d4ff; font-style:italic; }

.auth-left p.sub { font-size:1rem; opacity:0.84; margin-bottom:32px; line-height:1.65; }

.cta-btn {
  display:inline-flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,#f77f00,#d96800);
  color:white; padding:14px 30px; border-radius:50px;
  font-weight:600; text-decoration:none; font-size:0.95rem;
  width:fit-content; margin-bottom:30px;
  box-shadow:0 4px 20px rgba(247,127,0,0.45);
  transition:all 0.25s;
}
.cta-btn:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(247,127,0,0.55); }

.feat-list { list-style:none; }
.feat-list li { display:flex; align-items:center; gap:10px; font-size:0.9rem; opacity:0.88; margin-bottom:10px; }
.feat-list li i { color:#00d4ff; font-size:0.85rem; }

.auth-right {
  display:flex; align-items:center; justify-content:center;
  padding:40px 20px;
  position:relative; z-index:1;
}

/* Glass auth card */
.auth-card {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 28px;
  padding: 42px 38px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.38);
  color: white;
}

.card-head { text-align:center; margin-bottom:30px; }

.badge-tag {
  display:inline-flex; align-items:center; gap:7px;
  background: rgba(255,200,50,0.18);
  color:#ffd166; padding:6px 16px; border-radius:20px;
  font-size:0.8rem; font-weight:700; margin-bottom:14px;
  border:1px solid rgba(255,200,50,0.28);
}

.card-head h2 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:1.75rem; font-weight:700; color:white; margin-bottom:6px;
}

.card-head p { font-size:0.87rem; color:rgba(255,255,255,0.68); }
.card-head p a { color:#00d4ff; font-weight:600; text-decoration:none; }

.btn-google {
  width:100%;
  display:flex; align-items:center; justify-content:center; gap:10px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.28);
  color:white; padding:12px; border-radius:12px;
  font-weight:600; font-size:0.92rem; cursor:pointer;
  font-family:'Plus Jakarta Sans',sans-serif; transition:all 0.2s;
  margin-bottom:20px; backdrop-filter:blur(8px);
}
.btn-google:hover { background:rgba(255,255,255,0.29); }

.divider {
  text-align:center; color:rgba(255,255,255,0.48); font-size:0.8rem;
  margin-bottom:20px; position:relative;
}
.divider::before,.divider::after {
  content:''; position:absolute; top:50%; width:38%; height:1px;
  background:rgba(255,255,255,0.29);
}
.divider::before { left:0; } .divider::after { right:0; }

.rem-row {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:20px;
}
.rem-row label { display:flex; align-items:center; gap:8px; font-size:0.85rem; color:rgba(255,255,255,0.76); cursor:pointer; }
.rem-row label input { accent-color:#00d4ff; }
.rem-row a { font-size:0.85rem; color:#00d4ff; text-decoration:none; font-weight:500; }

.bot-link { text-align:center; margin-top:22px; font-size:0.87rem; color:rgba(255,255,255,0.68); }
.bot-link a { color:#00d4ff; font-weight:700; text-decoration:none; }

.err-box {
  background:rgba(220,38,38,0.18); color:#fca5a5;
  border:1px solid rgba(220,38,38,0.35); padding:10px 14px;
  border-radius:10px; font-size:0.87rem; margin-bottom:16px;
  display:flex; align-items:center; gap:8px; backdrop-filter:blur(4px);
}

.success-box {
  background:rgba(45,198,83,0.16); color:#86efac;
  border:1px solid rgba(45,198,83,0.32); padding:10px 14px;
  border-radius:10px; font-size:0.87rem; margin-bottom:16px;
  display:flex; align-items:center; gap:8px;
}

/* ===== DASHBOARD ===== */
.dashboard-container {
  position:relative; z-index:1;
  max-width:1100px; margin:0 auto; padding:0 40px 60px;
}

.dashboard-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:28px;
}

.stat-card {
  position: relative;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px; text-align:center; color:white;
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.3s ease, border-color 0.25s;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
}
.stat-card::before {
  content: ''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(145deg, rgba(255,255,255,0.21) 0%, transparent 50%);
  border-radius: inherit;
}
.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.21);
  box-shadow: 0 14px 42px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.26);
}

.stat-icon { font-size:2.2rem; margin-bottom:10px; position:relative; z-index:1; }
.stat-number { font-family:'Plus Jakarta Sans',sans-serif; font-size:2.5rem; font-weight:700; color:#00d4ff; margin-bottom:4px; position:relative; z-index:1; }
.stat-label { font-size:0.85rem; opacity:0.8; position:relative; z-index:1; }

/* ===== TABLE ===== */
.table-container {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow:hidden; margin-bottom:24px;
}

table { width:100%; border-collapse:collapse; }

thead th {
  background:rgba(0,50,110,0.5); color:rgba(255,255,255,0.88);
  padding:14px 18px; text-align:left; font-size:0.82rem;
  font-weight:600; text-transform:uppercase; letter-spacing:0.5px;
}

tbody td {
  padding:14px 18px; border-top:1px solid rgba(255,255,255,0.1);
  font-size:0.88rem; color:rgba(255,255,255,0.86);
}

tbody tr:hover { background:rgba(255,255,255,0.16); }

/* ===== BADGES ===== */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 12px; border-radius:20px; font-size:0.74rem; font-weight:600;
}
.badge-success { background:rgba(45,198,83,0.18); color:#86efac; border:1px solid rgba(45,198,83,0.3); }
.badge-warning { background:rgba(247,127,0,0.18); color:#fdba74; border:1px solid rgba(247,127,0,0.3); }
.badge-danger { background:rgba(230,57,70,0.18); color:#fca5a5; border:1px solid rgba(230,57,70,0.3); }
.badge-info { background:rgba(0,180,216,0.18); color:#7dd3fc; border:1px solid rgba(0,180,216,0.3); }

/* ===== BOOKING FORM ===== */
.booking-container {
  position:relative; z-index:1;
  max-width:700px; margin:0 auto; padding:0 20px 60px;
}

.booking-card {
  background:rgba(255,255,255,0.2);
  backdrop-filter:blur(26px); -webkit-backdrop-filter:blur(26px);
  border:1px solid rgba(255,255,255,0.26);
  border-radius:28px; padding:38px; color:white;
  box-shadow:0 20px 60px rgba(0,0,0,0.32);
}

.booking-card h2 { font-family:'Plus Jakarta Sans',sans-serif; font-size:1.7rem; margin-bottom:6px; color:white; }
.booking-card .sub-text { font-size:0.88rem; color:rgba(255,255,255,0.65); margin-bottom:28px; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.section-title {
  font-family:'Plus Jakarta Sans',sans-serif; font-size:1.4rem; font-weight:700;
  color:white; margin-bottom:18px; display:flex; align-items:center; gap:10px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 1;
  isolation: isolate;
  color: rgba(255,255,255,0.7); font-size: 0.84rem;
  background: rgba(4,12,40,0.95);
  backdrop-filter: blur(44px) saturate(200%);
  -webkit-backdrop-filter: blur(44px) saturate(200%);
  border-top: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.06);
  /* Prevent footer from floating above content during scroll */
  flex-shrink: 0;
}
.footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.5) 30%, rgba(0,212,255,0.7) 50%, rgba(0,180,216,0.5) 70%, transparent);
  opacity: 0.7; pointer-events: none;
}
.footer .footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 40px;
}
.footer .footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; color: white;
}
.footer .footer-brand span { color: #00d4ff; }
.footer .footer-links { display: flex; gap: 4px; align-items: center; position: relative; }
.footer a {
  color:rgba(255,255,255,0.65); text-decoration:none; padding: 6px 14px;
  border-radius: 50px; transition: color 0.2s; position: relative; z-index: 1;
  font-size: 0.83rem; font-weight: 500;
}
.footer a:hover { color: white; }
/* Liquid glass blob for footer links */
.footer-links-blob {
  opacity: 0;
  position: absolute;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  z-index: 0;
  transition:
    left   0.22s cubic-bezier(0.4,0,0.2,1),
    top    0.18s cubic-bezier(0.4,0,0.2,1),
    width  0.22s cubic-bezier(0.4,0,0.2,1),
    height 0.18s cubic-bezier(0.4,0,0.2,1),
    opacity 0.15s ease;
  will-change: left,top,width,height,opacity;
}
.footer .footer-copy { font-size: 0.78rem; opacity: 0.55; }
/* Language row — pinned to very bottom of footer */
.footer .footer-lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 40px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer .footer-lang-label {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
#footer-lang-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== FORGOT ===== */
.forgot-container {
  display:flex; align-items:center; justify-content:center;
  min-height:100vh; position:relative; z-index:1; padding:20px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background:rgba(0,180,216,0.5); border-radius:3px; }

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .terminals-grid,.features-bar{ grid-template-columns:1fr 1fr; padding:0 20px 30px; }
  .boats-grid{ grid-template-columns:1fr; padding:0 20px 30px; }
  .navbar{ padding:12px 20px; }
}

@media(max-width:768px){
  .auth-left{ display:none; }
  .auth-right{ width:100%; }
  .hero h1{ font-size:2.2rem; }
  .terminals-grid,.features-bar,.dashboard-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .dashboard-container{ padding:0 20px 40px; }
}

/* =========================================
   RESPONSIVE OVERHAUL
   ========================================= */


/* ===== HAMBURGER BUTTON ===== */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.17);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  order: -1; /* always leftmost */
}
#hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== MOBILE SIDEBAR DRAWER NAV ===== */
#mobile-nav {
  display: flex;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  z-index: 1200;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(60px) saturate(220%) brightness(1.1);
  -webkit-backdrop-filter: blur(60px) saturate(220%) brightness(1.1);
  border-right: 1px solid rgba(255,255,255,0.2);
  padding: 0;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.34,1.2,0.64,1);
  will-change: transform;
  pointer-events: none;
  box-shadow: 1px 0 0 rgba(255,255,255,0.1), 4px 0 48px rgba(0,0,0,0.38), inset -1px 0 0 rgba(255,255,255,0.08), inset 0 0 80px rgba(255,255,255,0.03);
}
#mobile-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.23) 0%, rgba(255,255,255,0.15) 25%, transparent 55%, rgba(0,150,199,0.04) 100%);
  border-radius: inherit;
  pointer-events: none;
}
#mobile-nav::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.31) 20%, rgba(0,212,255,0.28) 50%, rgba(0,180,216,0.22) 80%, transparent);
  pointer-events: none;
}
#mobile-nav.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Sidebar overlay backdrop */
#mobile-nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1199;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.38s cubic-bezier(0.34,1.2,0.64,1);
}
#mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

/* Sidebar header */
#mobile-nav .mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.14);
}
#mobile-nav .mob-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}
#mobile-nav .mob-brand span { color: #00d4ff; }
#mobile-nav .mob-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.19);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
#mobile-nav .mob-close:hover { background: rgba(255,107,107,0.2); color: #ff6b6b; }

/* User info block */
#mobile-nav .mob-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.15);
}
#mobile-nav .mob-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg,#0077b6,#00b4d8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: white;
  flex-shrink: 0;
  border: 2px solid rgba(0,180,216,0.35);
}
#mobile-nav .mob-user-info { flex: 1; min-width: 0; }
#mobile-nav .mob-user-name {
  font-size: 0.92rem; font-weight: 600; color: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#mobile-nav .mob-user-role {
  font-size: 0.72rem; color: rgba(255,255,255,0.48); margin-top: 1px;
}

/* Nav links */
#mobile-nav .mob-links {
  flex: 1;
  padding: 12px 12px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}
/* Instant highlight for the tapped link — no sliding animation, just
   an immediate background/color change (background isn't in the
   transition list above, so this applies with zero delay). */
#mobile-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
/* iOS bubble on icon */
#mobile-nav a i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
#mobile-nav a i::before {
  /* Override FA pseudo — handled via wrapper instead */
}
#mobile-nav a:hover { color: white; }
#mobile-nav a:hover i {
  background: rgba(255,255,255,0.23);
  transform: scale(1.1);
  color: white;
}
#mobile-nav a.active { color: #00d4ff; }
#mobile-nav a.active i {
  background: rgba(0,180,216,0.2);
  color: #00d4ff;
}
#mobile-nav .mob-divider {
  height: 1px;
  background: rgba(255,255,255,0.19);
  margin: 6px 0;
}


/* Logout at bottom */
#mobile-nav .mob-logout-btn {
  margin: 10px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255,120,120,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.22);
  transition: all 0.2s;
}
#mobile-nav .mob-logout-btn:hover {
  background: rgba(230,57,70,0.25);
  color: #ff6b6b;
}

/* ===== MOBILE-FIRST BREAKPOINTS ===== */

/* --- Tablet: 768px - 1024px --- */
@media (max-width: 1024px) {
  .terminals-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 24px 32px;
    gap: 16px;
  }
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px 32px;
    gap: 16px;
  }
  .features-bar {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 24px 32px;
    gap: 12px;
  }
  .dashboard-container { padding: 0 24px 40px; }
  .booking-card { padding: 28px 24px; }
}

/* --- Mobile: ≤ 768px --- */
@media (max-width: 768px) {
  /* Navbar: hide desktop links, show hamburger */
  .nav-links { display: none !important; }
  .nav-userinfo { display: none; }
  .btn-logout { display: flex; } /* keep logout icon visible on mobile */
  #hamburger { display: flex; }
  .nav-user { border-left: none; padding-left: 0; margin-left: auto; }

  /* Tighter navbar */
  .navbar { padding: 10px 14px; gap: 8px; }

/* Hero */
  .hero { padding: 10px 16px 16px; }
  .hero h1 { font-size: 1.45rem; line-height: 1.2; }
  .hero h1 .welcome-name { display: block; font-size: 1.3rem; }
  .hero p { font-size: 0.84rem; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Section headers */
  .section-header { padding: 8px 16px 16px; }
  .section-header h2 { font-size: 1.45rem; }

  /* Terminals: 1 column */
  .terminals-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 20px;
    gap: 14px;
  }

  /* Destinations: 1 column */
  .destinations-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 20px;
    gap: 14px;
  }

  /* Vessels side-by-side → stacked */
  .vessels-grid-2col {
    grid-template-columns: 1fr !important;
    padding: 0 16px 24px !important;
    gap: 14px !important;
  }

  /* Activities */
  .activities-section { padding: 0 16px 28px; }
  .activities-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .act-tab {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 0.64rem; padding: 6px 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
  }
  .act-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  /* Features bar: 2x2 grid */
  .features-bar {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 20px;
    gap: 10px;
  }
  .feature-item { padding: 14px 10px; }
  .feat-icon { font-size: 1.4rem; margin-bottom: 6px; }
  .feature-item h4 { font-size: 0.8rem; }
  .feature-item p { font-size: 0.71rem; }

  /* CTA strip: stacked */
  .cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    margin: 0 16px 24px;
    gap: 16px;
  }
  .cta-strip h3 { font-size: 1.25rem; }
  .cta-strip p { font-size: 0.85rem; }
  .cta-strip .btns { flex-direction: column; width: 100%; gap: 8px; }
  .cta-strip .btns .btn { width: 100%; justify-content: center; }

  /* Dashboard */
  .dashboard-container { padding: 0 16px 36px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 18px 12px; }
  .stat-number { font-size: 1.8rem; }

  /* Table: scrollable */
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 520px; }

  /* Booking form */
  .booking-container { padding: 0 16px 36px; }
  .booking-card { padding: 22px 16px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* Auth */
  .auth-left { display: none !important; }
  .auth-right { width: 100%; padding: 20px 16px; }
  .auth-card { padding: 26px 18px; border-radius: 18px; }

  /* Footer — the flex row that actually needs stacking on mobile is
     .footer-top-row (brand + links), not .footer itself (.footer was
     never display:flex, so this override previously did nothing and
     the row stayed side-by-side with full desktop padding, crowding
     and overflowing past the footer edge on narrow screens). */
  .footer .footer-top-row {
    flex-direction: column;
    text-align: center;
    padding: 16px 16px 12px;
    gap: 10px;
  }
  .footer .footer-lang-row {
    padding: 8px 16px 14px;
  }

  /* Weather widget: smaller + shift left so it doesn't cover content */
  #weather-widget {
    bottom: 14px;
    right: 14px;
    min-width: 160px;
    padding: 10px 12px;
    border-radius: 14px;
    max-width: 180px;
  }
  #weather-widget .ww-temp { font-size: 1.5rem; }
}

/* ===== MOBILE: center dropdowns so they never overflow the screen ===== */
/* Language picker (top info bar) — anchored to the bar, centered horizontally */
@media (max-width: 768px) {
  /* Drop the local anchor so the dropdown centers on the full-width top bar */
  #lang-dropdown-wrap { position: static !important; }
  #lang-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(260px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
}

/* --- Small mobile: ≤ 480px --- */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .act-grid { grid-template-columns: 1fr !important; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .destinations-grid { gap: 12px; }
}

/* ===== MOBILE NAV BUTTONS (icon-only on mobile) ===== */
.nav-btn-login, .nav-btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .nav-btn-login, .nav-btn-signup {
    padding: 8px 10px;
    font-size: 0.85rem;
    min-width: 36px;
    justify-content: center;
  }
  .nav-btn-text {
    display: none;
  }
  /* Footer lang row stacks nicely on mobile */
  .footer .footer-top-row {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer .footer-lang-row {
    padding: 10px 16px 14px;
  }
}

/* ===== HIDE GOOGLE TRANSLATE TOOLBAR BANNER ===== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}
body { top: 0 !important; }
.skiptranslate { display: none !important; }
iframe.goog-te-banner-frame { display: none !important; }


/* ── Scroll-shrink navbar ── */
:root {
  --nav-tall: 76px;
  --nav-compact: 56px;
}
.navbar,
.lg-navbar,
.guide-navbar {
  transition: height 0.32s cubic-bezier(0.4,0,0.2,1),
              background 0.32s ease,
              box-shadow 0.32s ease,
              padding 0.32s ease;
  height: var(--nav-tall);
}
/* Suppress all navbar transitions on first paint to prevent background flash on page load */
.navbar.no-transition,
.lg-navbar.no-transition,
.guide-navbar.no-transition {
  transition: none !important;
}
.navbar.scrolled,
.lg-navbar.scrolled,
.guide-navbar.scrolled {
  height: var(--nav-compact);
  background: rgba(4,12,40,0.82) !important;
  backdrop-filter: blur(60px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(60px) saturate(220%) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.06) !important;
}
/* Brand name — large then compact */
.brand-name,
.lg-brand-name,
.guide-brand-name {
  transition: font-size 0.32s ease;
}
.scrolled .brand-name,
.scrolled .lg-brand-name,
.scrolled .guide-brand-name {
  font-size: 1.1rem !important;
}
/* Brand icon — shrinks slightly */
.brand-icon,
.lg-brand-icon,
.guide-brand-icon {
  transition: all 0.32s ease;
}
.scrolled .brand-icon,
.scrolled .lg-brand-icon,
.scrolled .guide-brand-icon {
  width: 28px !important;
  height: 28px !important;
  font-size: 11px !important;
}
/* Body padding is controlled by appearance.js for tourist pages,
   and by op_nav.php/guide_nav.php for operator/guide pages */
/* body { padding-top: var(--nav-tall); } — removed, handled in JS */
/* body.scrolled-body { padding-top: var(--nav-compact); } — handled in JS */

/* When top info bar is present, body has extra 38px handled per-page */
/* .has-topbar body — handled in JS */

/* Suppress blob sliding animation on initial page load — only animate after first move */
.nav-blob.no-transition,
.lg-nav-blob.no-transition,
.mob-blob.no-transition {
  transition: none !important;
}