/* ============================================================
   MOBILE-FIRST BASE STYLES
   Breakpoints: mobile first (<768px base), tablet (768px+), desktop (1024px+)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --ocean:  #0BBCD4;
  --deep:   #0A3D5C;
  --coral:  #FF6B6B;
  --sun:    #FFD93D;
  --sand:   #FFF8EE;
  --sand2:  #FFF0D6;
  --white:  #ffffff;
  --text:   #1a2e3b;
  --muted:  #5a7a8a;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(10,61,92,0.10);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--sand); color: var(--text); line-height: 1.6; min-width: 320px; }
h1,h2,h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
img { max-width: 100%; height: auto; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10,61,92,0.08);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo img { height: 44px; display: block; }

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  gap: 4px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--deep); font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--ocean); color: var(--white); }
.nav-cta { background: var(--coral) !important; color: var(--white) !important; font-weight: 700 !important; }

/* Hamburger button — visible on mobile */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(11,188,212,0.1); }
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--deep); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(10,61,92,0.5); z-index: 99;
}
.nav-drawer.open { display: block; }
.nav-drawer-inner {
  background: var(--white); padding: 16px;
  box-shadow: 0 8px 32px rgba(10,61,92,0.2);
}
.nav-drawer-inner a {
  display: block; padding: 14px 16px; color: var(--deep); text-decoration: none;
  font-size: 16px; font-weight: 500; border-radius: 10px;
  transition: background 0.15s; border-bottom: 1px solid rgba(11,188,212,0.1);
}
.nav-drawer-inner a:last-child { border-bottom: none; }
.nav-drawer-inner a:hover, .nav-drawer-inner a.active { background: rgba(11,188,212,0.08); color: var(--ocean); }
.nav-drawer-cta {
  display: block; margin-top: 12px; padding: 14px 16px;
  background: var(--coral); color: white !important; text-align: center;
  border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--deep) 0%, #0d5c82 50%, var(--ocean) 100%);
  padding: 48px 16px 72px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 48px;
  background: var(--sand); clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,217,61,0.15); border: 1px solid rgba(255,217,61,0.4);
  color: var(--sun); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 8vw, 66px); color: var(--white); margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.hero h1 span { color: var(--sun); }
.hero p { font-size: 16px; color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 28px; }
.hero-btn {
  display: block; width: 100%; max-width: 320px; margin: 0 auto;
  background: var(--coral); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 15px 24px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255,107,107,0.45); transition: transform 0.15s;
}
.hero-btn:hover { transform: translateY(-2px); }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 48px 16px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(22px, 5vw, 38px); color: var(--deep); margin-bottom: 8px; }
.section-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.section.alt { background: var(--white); }
.section.sand { background: var(--sand2); }

/* ── Planner widget ───────────────────────────────────────── */
.gtp-shell { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 40px rgba(10,61,92,0.18); }
.gtp-head {
  background: linear-gradient(135deg, var(--deep), #0d5c82);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.gtp-head-left { display: flex; align-items: center; gap: 10px; }
.gtp-head-icon { font-size: 24px; }
.gtp-head h2 { font-size: 15px; color: var(--white); margin-bottom: 1px; }
.gtp-head p { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.gtp-head-badge { background: rgba(255,217,61,0.2); border: 1px solid rgba(255,217,61,0.4); color: var(--sun); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }

/* Quick prompts — horizontal scroll on mobile */
.gtp-quick {
  padding: 10px 12px; background: rgba(10,61,92,0.05);
  border-bottom: 1px solid rgba(11,188,212,0.15);
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gtp-quick::-webkit-scrollbar { display: none; }
.gtp-quick button {
  padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(11,188,212,0.4);
  background: rgba(11,188,212,0.08); color: var(--deep); font-size: 12px;
  font-family: 'Inter', sans-serif; font-weight: 500; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gtp-quick button:hover, .gtp-quick button:active { background: var(--ocean); border-color: var(--ocean); color: white; }
.gtp-quick button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Messages */
.gtp-messages {
  height: 55vh; min-height: 280px; max-height: 480px;
  overflow-y: auto; padding: 16px; background: #f7fdfe;
  display: flex; flex-direction: column; gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.gtp-messages::-webkit-scrollbar { width: 4px; }
.gtp-messages::-webkit-scrollbar-thumb { background: rgba(11,188,212,0.3); border-radius: 2px; }

.gtp-msg { display: flex; align-items: flex-end; gap: 6px; }
.gtp-msg.user { justify-content: flex-end; }
.gtp-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--ocean), var(--deep)); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.gtp-bubble { max-width: 85%; padding: 10px 13px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.gtp-bubble.assistant { border-radius: 16px 16px 16px 4px; background: var(--white); color: var(--text); border: 1px solid rgba(11,188,212,0.2); box-shadow: 0 2px 8px rgba(10,61,92,0.06); }
.gtp-bubble.user { border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, var(--ocean), #0a9ab5); color: white; }

/* Typing dots */
.gtp-typing { display: flex; align-items: flex-end; gap: 6px; }
.gtp-dots { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--white); border: 1px solid rgba(11,188,212,0.2); display: flex; gap: 4px; align-items: center; }
.gtp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); animation: gtpPulse 1.2s ease-in-out infinite; }
.gtp-dot:nth-child(2) { animation-delay: 0.2s; }
.gtp-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes gtpPulse { 0%,100% { opacity:0.3; transform:scale(0.85); } 50% { opacity:1; transform:scale(1.1); } }

/* Sponsored */
.gtp-sponsored { background: linear-gradient(90deg, #fff8ee, #fff0d6); border-top: 1px solid rgba(255,107,107,0.2); padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); font-family: 'Inter', sans-serif; text-align: center; flex-wrap: wrap; }
.gtp-sponsored a { color: var(--coral); font-weight: 700; text-decoration: none; }

/* Input */
.gtp-input-area { padding: 12px 12px 14px; background: var(--white); border-top: 1px solid rgba(11,188,212,0.15); }
.gtp-input-row { display: flex; gap: 8px; align-items: flex-end; }
.gtp-textarea {
  flex: 1; padding: 10px 14px; border-radius: 22px;
  border: 1.5px solid rgba(11,188,212,0.35); background: var(--sand);
  color: var(--text); font-size: 16px; /* 16px prevents iOS zoom */
  font-family: 'Inter', sans-serif; resize: none; outline: none;
  line-height: 1.5; max-height: 100px; transition: border-color 0.15s;
  -webkit-appearance: none;
}
.gtp-textarea:focus { border-color: var(--ocean); }
.gtp-textarea::placeholder { color: var(--muted); font-size: 13px; }
.gtp-send {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--coral), #e05555);
  color: white; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255,107,107,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
}
.gtp-send:active { transform: scale(0.94); }
.gtp-send:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }
.gtp-hint { text-align: center; margin: 8px 0 0; font-size: 11px; color: var(--muted); font-family: 'Inter', sans-serif; }

/* ── Cards ────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--ocean); }
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { font-size: 18px; color: var(--deep); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.card-link { color: var(--ocean); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ── Destination cards ────────────────────────────────────── */
.dest-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dest-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dest-card-banner { height: 8px; }
.dest-card-body { padding: 20px; }
.dest-card-body h3 { font-size: 18px; color: var(--deep); margin-bottom: 4px; }
.dest-card-body .dist { font-size: 11px; font-weight: 700; color: var(--ocean); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.dest-card-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.dest-card-link { color: var(--coral); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ── Viator cards ─────────────────────────────────────────── */
.viator-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.viator-card { background: var(--sand); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(11,188,212,0.15); }
.viator-card-icon { font-size: 30px; margin-bottom: 10px; }
.viator-card h3 { font-size: 15px; color: var(--deep); margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 700; }
.viator-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.viator-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.viator-card-price { font-size: 15px; font-weight: 700; color: var(--deep); }
.viator-card-price span { font-size: 11px; font-weight: 400; color: var(--muted); }
.viator-card-rating { font-size: 12px; color: var(--muted); }
.viator-btn { display: block; width: 100%; text-align: center; background: var(--ocean); color: white; text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 0; border-radius: 10px; transition: background 0.15s; -webkit-tap-highlight-color: transparent; }
.viator-btn:active { background: var(--deep); }
.viator-disclaimer { font-size: 11px; color: var(--muted); text-align: center; margin-top: 16px; font-style: italic; }

/* ── Distance strip ───────────────────────────────────────── */
.distance-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.distance-card { background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.distance-card-icon { font-size: 24px; flex-shrink: 0; }
.distance-card h4 { font-size: 13px; color: var(--deep); font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 2px; }
.distance-card p { font-size: 12px; color: var(--muted); }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--coral), #e8554e); padding: 48px 16px; text-align: center; }
.cta-banner h2 { font-size: clamp(22px, 5vw, 36px); color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.88); font-size: 15px; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btn { display: block; width: 100%; max-width: 360px; margin: 0 auto; text-align: center; background: var(--white); color: var(--coral); text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 24px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: transform 0.15s; }
.cta-btn:active { transform: scale(0.98); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--deep); padding: 36px 16px; text-align: center; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-links { display: flex; justify-content: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--ocean); }
.footer p { color: rgba(255,255,255,0.45); font-size: 12px; line-height: 1.7; }
.footer a { color: var(--ocean); text-decoration: none; }

/* ── Page hero ────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--deep), #0d5c82); padding: 40px 16px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(24px, 6vw, 48px); }
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 10px; font-size: 15px; }

/* ══════════════════════════════════════════════════════════
   TABLET (768px+)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .nav-inner { height: 68px; padding: 0 24px; }
  .nav-logo img { height: 52px; }
  .nav-hamburger { display: none !important; }
  .nav-links { display: flex; }
  .nav-drawer { display: none !important; }

  .hero { padding: 72px 24px 96px; }
  .hero-btn { display: inline-block; width: auto; }

  .section { padding: 64px 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .dest-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .viator-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .distance-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gtp-messages { height: 420px; max-height: 420px; }
  .gtp-textarea::placeholder { font-size: 14px; }
  .cta-btn { display: inline-block; width: auto; }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .dest-cards { grid-template-columns: repeat(4, 1fr); }
  .viator-grid { grid-template-columns: repeat(4, 1fr); }
  .gtp-messages { height: 440px; max-height: 440px; }
}
