/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, sans-serif; background: #0f172a; color: #cbd5e1; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== NAVBAR ====== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(15,23,42,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 60px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; padding: 0 20px; height: 100%;
}
.nav-brand {
  font-size: 20px; font-weight: 700; color: #38bdf8;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.brand-logo { font-size: 22px; }
.nav-links {
  display: flex; list-style: none; align-items: center;
  gap: 4px; margin-left: auto;
}
.nav-link {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; color: #94a3b8;
  transition: all .15s; display: block;
}
.nav-link:hover { color: #e2e8f0; background: rgba(255,255,255,.08); }
.nav-cta {
  background: #0284c7; color: #fff !important; padding: 8px 18px; border-radius: 8px;
}
.nav-cta:hover { background: #0369a1; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-hamburger span { width: 22px; height: 2px; background: #94a3b8; border-radius: 2px; transition: all .25s; }

.main-wrap { padding-top: 60px; min-height: 100vh; }

/* ====== HERO ====== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c4a6e 0%, #0f172a 60%);
  padding: 80px 20px 60px; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: .15; }
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; color: #f1f5f9; line-height: 1.2; }
.hero p { font-size: clamp(15px, 2.5vw, 18px); color: #94a3b8; margin: 16px auto 32px; max-width: 560px; }

/* ====== SEARCH BOX ====== */
.search-box {
  background: #1e293b; border: 1px solid #334155; border-radius: 16px;
  padding: 20px; max-width: 800px; margin: 0 auto;
}
.search-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.search-group label { font-size: 12px; color: #64748b; margin-bottom: 6px; display: block; }
.search-group select, .search-group input {
  width: 100%; padding: 10px 14px; background: #0f172a;
  border: 1px solid #334155; border-radius: 10px; color: #e2e8f0;
  font-size: 14px;
}
.btn-search {
  padding: 10px 24px; background: #0284c7; color: #fff; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-search:hover { background: #0369a1; }

/* ====== SECTIONS ====== */
.section { padding: 60px 20px; }
.section-alt { background: #1e293b; }
.container { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; color: #f1f5f9; }
.section-head p { color: #64748b; margin-top: 8px; font-size: 15px; }

/* ====== CARDS GRID ====== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cards-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ====== PACKAGE / HOTEL CARD ====== */
.pkg-card {
  background: #1e293b; border: 1px solid #334155; border-radius: 14px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.pkg-card-img { position: relative; height: 200px; overflow: hidden; }
.pkg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pkg-card:hover .pkg-card-img img { transform: scale(1.05); }
.pkg-card-img .card-badge {
  position: absolute; top: 12px; left: 12px;
  background: #0284c7; color: #fff; padding: 4px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.pkg-card-img .card-badge.featured { background: #d97706; }
.pkg-card-body { padding: 16px; }
.pkg-card-title { font-size: 16px; font-weight: 600; color: #f1f5f9; margin-bottom: 6px; }
.pkg-card-meta { display: flex; gap: 12px; font-size: 12px; color: #64748b; margin-bottom: 12px; flex-wrap: wrap; }
.pkg-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #334155; }
.price { font-size: 20px; font-weight: 700; color: #38bdf8; }
.price-label { font-size: 12px; color: #64748b; }
.btn-card { padding: 8px 18px; background: #0284c7; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 500; }
.btn-card:hover { background: #0369a1; }

/* ====== DESTINATION CHIPS ====== */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.dest-chip {
  position: relative; border-radius: 12px; overflow: hidden;
  height: 120px; cursor: pointer;
}
.dest-chip img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dest-chip:hover img { transform: scale(1.08); }
.dest-chip-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: #fff; font-size: 14px; font-weight: 500;
}

/* ====== FILTER BAR ====== */
.filter-bar {
  background: #1e293b; border: 1px solid #334155; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; align-items: end;
}
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { font-size: 12px; color: #64748b; margin-bottom: 5px; display: block; }
.filter-group select, .filter-group input {
  width: 100%; padding: 8px 12px; background: #0f172a;
  border: 1px solid #334155; border-radius: 8px; color: #e2e8f0; font-size: 13px;
}

/* ====== DETAIL PAGE ====== */
.detail-hero { height: 360px; position: relative; overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(15,23,42,.9));
  display: flex; align-items: flex-end; padding: 32px;
}
.detail-hero-text h1 { font-size: clamp(22px, 4vw, 36px); font-weight: 800; color: #f1f5f9; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; max-width: 1200px; margin: 32px auto; padding: 0 20px; }
.detail-content { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 24px; }
.detail-sidebar { position: sticky; top: 80px; align-self: flex-start; }
.booking-widget { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 24px; }
.booking-widget .price-big { font-size: 32px; font-weight: 800; color: #38bdf8; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #334155; }
.tab-btn { padding: 10px 18px; background: none; border: none; color: #64748b; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: #38bdf8; border-bottom-color: #38bdf8; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ====== AUTH PAGES ====== */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: #1e293b; border: 1px solid #334155; border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; }
.auth-title { font-size: 24px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.auth-subtitle { color: #64748b; font-size: 14px; margin-bottom: 28px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 10px 14px; background: #0f172a;
  border: 1px solid #334155; border-radius: 10px; color: #e2e8f0; font-size: 14px;
}
.auth-form input:focus { outline: none; border-color: #38bdf8; }
.btn-auth { width: 100%; padding: 12px; background: #0284c7; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.btn-auth:hover { background: #0369a1; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: #64748b; }
.auth-footer a { color: #38bdf8; }
.auth-error { background: #450a0a; border: 1px solid #b91c1c; color: #fca5a5; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

/* ====== FORMS ====== */
.form-input {
  width: 100%; padding: 10px 14px; background: #0f172a;
  border: 1px solid #334155; border-radius: 10px; color: #e2e8f0; font-size: 14px;
}
.form-input:focus { outline: none; border-color: #38bdf8; }
.form-label { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 6px; font-weight: 500; }
.form-group { margin-bottom: 16px; }
.btn-primary { background: #0284c7; color: #fff; padding: 11px 24px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: #0369a1; }
.btn-outline { border: 1px solid #334155; color: #94a3b8; padding: 10px 20px; border-radius: 10px; font-size: 14px; cursor: pointer; background: none; }
.btn-outline:hover { background: #334155; color: #e2e8f0; }
.btn-full { width: 100%; }

/* ====== DASHBOARD ====== */
.dash-page { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 24px; font-weight: 700; color: #f1f5f9; }
.dash-header p { color: #64748b; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-stat { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 20px; }
.dash-stat .value { font-size: 26px; font-weight: 700; color: #38bdf8; }
.dash-stat .label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* ====== BOOKING TABLE ====== */
.book-table-wrap { background: #1e293b; border: 1px solid #334155; border-radius: 12px; overflow: hidden; }
.book-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.book-table th { text-align: left; padding: 12px 16px; background: #0f172a; color: #64748b; font-size: 12px; text-transform: uppercase; border-bottom: 1px solid #334155; }
.book-table td { padding: 14px 16px; border-bottom: 1px solid #1e293b; vertical-align: middle; }
.book-table tr:last-child td { border-bottom: none; }
.book-table tr:hover td { background: rgba(255,255,255,.02); }

/* ====== BADGES ====== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-pending  { background: #431407; color: #fb923c; }
.badge-confirmed{ background: #052e16; color: #4ade80; }
.badge-paid     { background: #052e16; color: #4ade80; }
.badge-partial  { background: #312e81; color: #a5b4fc; }
.badge-cancelled{ background: #450a0a; color: #f87171; }

/* ====== STARS ====== */
.stars { color: #fbbf24; letter-spacing: 2px; }

/* ====== TOAST ====== */
.toast {
  position: fixed; top: 72px; right: 20px; z-index: 9999;
  padding: 12px 20px; border-radius: 10px; font-size: 14px;
  animation: slideIn .3s ease; max-width: 360px;
}
.toast-success { background: #052e16; border: 1px solid #166534; color: #4ade80; }
.toast-error   { background: #450a0a; border: 1px solid #991b1b; color: #f87171; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ====== WHATSAPP FAB ====== */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 800;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* ====== PWA BANNER ====== */
.pwa-banner {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 800;
  background: #1e293b; border: 1px solid #334155; border-radius: 14px;
  padding: 14px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4); max-width: 420px; width: calc(100% - 40px);
}
.pwa-banner-content { display: flex; align-items: center; gap: 12px; flex: 1; }
.pwa-icon { font-size: 28px; }
.pwa-banner-content strong { color: #f1f5f9; font-size: 14px; }
.pwa-banner-content p { color: #64748b; font-size: 12px; margin-top: 2px; }
.pwa-banner-actions { display: flex; gap: 8px; align-items: center; }
.btn-pwa-install { padding: 8px 16px; background: #0284c7; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; }
.btn-pwa-dismiss { background: none; border: none; color: #64748b; font-size: 18px; cursor: pointer; }

/* ====== FOOTER ====== */
.footer { background: #020617; border-top: 1px solid #1e293b; padding: 48px 20px 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand { font-size: 20px; font-weight: 700; color: #38bdf8; margin-bottom: 10px; }
.footer-col h4 { color: #f1f5f9; font-size: 14px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #64748b; font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: #94a3b8; }
.footer-col p { color: #64748b; font-size: 14px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; color: #475569; font-size: 13px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .search-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: fixed; inset: 60px 0 0; background: #0f172a; flex-direction: column; padding: 20px; gap: 4px; overflow-y: auto; z-index: 800; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .search-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 40px; }
  .section { padding: 40px 16px; }
  .detail-hero { height: 240px; }
  .detail-hero-overlay { padding: 20px; }
  .book-table-wrap { overflow-x: auto; }
}
