:root {
  --primary: #0875E1;
  --primary-hover: #0764c2;
  --dark: #123B70;
  --dark-hover: #0d2a52;
  --light: #EAF4FF;
  --white: #FFFFFF;
  --bg: #F7F9FC;
  --text: #172B4D;
  --text-muted: #5E6C84;
  --border: #DFE1E6;
  --success: #00875A;
  --warning: #FFAB00;
  --danger: #DE350B;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(18, 59, 112, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 59, 112, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dark); }

.container { max-width: 1380px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 20px; }

/* Header & Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  height: 76px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.brand-logo span { color: var(--dark); }
.site-navigation { flex:1; min-width:0; }
.nav-links { display: flex; justify-content:center; align-items:center; gap: 6px; list-style: none; font-weight: 600; white-space:nowrap; }
.nav-links a { color: var(--text); padding: 10px 13px; border-radius: 9px; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--light); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left:auto; white-space:nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-hover); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--light); border-color: var(--primary); color: var(--primary); }
.btn-light { background: var(--light); color: var(--primary); }
.btn-light:hover { background: #d3e8ff; color: var(--dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* Hero Section & Search Bar */
.hero-section {
  background: linear-gradient(135deg, #123B70 0%, #0875E1 100%);
  color: var(--white);
  padding: 60px 0 100px;
  position: relative;
  text-align: center;
}
.hero-title { font-size: 40px; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.hero-subtitle { font-size: 18px; opacity: 0.9; max-width: 650px; margin: 0 auto 36px; }

.search-widget-container {
  max-width: 1100px;
  margin: -60px auto 40px;
  position: relative;
  z-index: 10;
}
.search-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
}
.search-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.search-item:last-child { border-right: none; }
.search-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.search-input {
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  width: 100%;
  background: transparent;
}
.search-input::placeholder { color: #A5B2C6; }

/* Card Grid */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Hotel Card */
.hotel-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hotel-card-img {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #E2E8F0;
}
.hotel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hotel-card:hover .hotel-card-img img { transform: scale(1.05); }
.badge-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--dark);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-cancel {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 135, 90, 0.9);
  color: var(--white);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.hotel-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.hotel-location { font-size: 12px; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.hotel-name { font-size: 17px; font-weight: 700; color: var(--text); margin: 6px 0 8px; }
.hotel-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.amenity-pill { background: var(--bg); color: var(--text-muted); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.hotel-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F0F2F5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.price-label { font-size: 11px; color: var(--text-muted); }
.price-amount { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.1; }

/* Destination Cards */
.dest-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dest-card:hover img { transform: scale(1.06); }
.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(18,59,112,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: var(--white);
}
.dest-title { font-size: 20px; font-weight: 700; }
.dest-sub { font-size: 12px; opacity: 0.9; }

/* Sections */
.section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-title { font-size: 26px; font-weight: 800; color: var(--text); }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Trust Badges */
.trust-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* AI Floating Assistant */
.ai-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0875E1, #123B70);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(8, 117, 225, 0.4);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 999;
  border: 2px solid rgba(255,255,255,0.2);
  transition: transform 0.2s;
}
.ai-trigger-btn:hover { transform: scale(1.05); }

.ai-modal {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-height: 580px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.ai-modal-header {
  background: var(--dark);
  color: var(--white);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-modal-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
  font-size: 14px;
}
.ai-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.4;
}
.ai-bubble-bot { background: var(--white); border: 1px solid var(--border); align-self: flex-start; }
.ai-bubble-user { background: var(--primary); color: var(--white); align-self: flex-end; }
.ai-modal-footer { padding: 12px; background: var(--white); border-top: 1px solid var(--border); display: flex; gap: 8px; }
.ai-input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; outline: none; }

/* Admin Layout */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
}
.admin-logo { padding: 24px 20px; font-size: 22px; font-weight: 800; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-menu { list-style: none; padding: 16px 0; flex: 1; }
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #CBD5E1;
  font-weight: 500;
  font-size: 14px;
}
.admin-menu a:hover, .admin-menu a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left: 4px solid var(--primary);
}
.admin-content { flex: 1; display: flex; flex-direction: column; }
.admin-header {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.admin-body { padding: 32px; flex: 1; }

/* Data Tables */
.table-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table th { background: #F8FAFC; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #F1F5F9; }
.data-table tr:hover { background: #F8FAFC; }
.table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 720px; }
.mobile-nav-toggle, .admin-menu-toggle { display: none !important; }
.mobile-menu-head, .mobile-nav-backdrop { display: none !important; }
.mobile-nav-close { display:none !important; }

/* Modern admin forms */
.admin-page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:24px; }
.admin-page-head h1 { font-size:clamp(24px,3vw,34px); letter-spacing:-.7px; color:#0f172a; }
.admin-page-head p { color:#64748b; margin-top:6px; }
.eyebrow { color:var(--primary); font-size:11px; letter-spacing:1.4px; font-weight:800; margin-bottom:6px; }
.settings-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.settings-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:24px; box-shadow:0 8px 30px rgba(15,23,42,.05); }
.settings-card-head { display:flex; gap:14px; align-items:flex-start; padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid #eef2f7; }
.settings-card-head h2 { font-size:17px; color:#0f172a; }
.settings-card-head p { color:#64748b; font-size:13px; margin-top:3px; }
.settings-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#eaf4ff; color:#0875e1; font-size:18px; flex:none; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-grid label { display:flex; flex-direction:column; gap:6px; color:#334155; font-size:12px; font-weight:700; }
.form-grid .full { grid-column:1/-1; }
.form-grid input,.form-grid select,.form-grid textarea { width:100%; border:1px solid #cbd5e1; border-radius:9px; padding:11px 12px; color:#0f172a; background:#fff; font:inherit; font-size:14px; outline:none; }
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus { border-color:#0875e1; box-shadow:0 0 0 3px rgba(8,117,225,.12); }
.form-grid textarea { resize:vertical; line-height:1.5; }
.form-grid small { color:#94a3b8; font-weight:500; }
.toggle-row { flex-direction:row!important; align-items:center; border:1px solid #e2e8f0; padding:12px; border-radius:10px; }
.toggle-row input { width:20px!important; height:20px; }
.toggle-row span { display:flex; flex-direction:column; gap:2px; }
.notice { padding:13px 15px; border-radius:10px; margin-bottom:18px; font-size:13px; }
.notice-success { color:#166534; background:#f0fdf4; border:1px solid #bbf7d0; }
.notice-error { color:#991b1b; background:#fef2f2; border:1px solid #fecaca; }
.notice-warning { color:#854d0e; background:#fefce8; border:1px solid #fef08a; margin:18px 0 0; }
.mobile-save-bar { display:none; }
.admin-quick-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.quick-action { display:flex; align-items:center; gap:12px; padding:16px; background:#fff; border:1px solid #e2e8f0; border-radius:12px; color:#0f172a; box-shadow:0 4px 16px rgba(15,23,42,.04); }
.quick-action>span { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#eaf4ff; color:#0875e1; font-size:20px; }
.quick-action div { display:flex; flex-direction:column; }
.quick-action small { color:#64748b; margin-top:2px; }
.hero-kicker { display:inline-flex; padding:6px 10px; border:1px solid rgba(255,255,255,.25); border-radius:999px; font-size:11px; font-weight:800; letter-spacing:1px; margin-bottom:16px; background:rgba(255,255,255,.08); }
.ktb-badge { display:inline-flex; margin-top:8px; padding:5px 9px; border-radius:7px; background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; font-size:12px; font-weight:750; }
@media (max-width: 700px) {
  main [style*="grid-template-columns: 2fr 1fr"], main [style*="grid-template-columns: 1fr 1fr"], main [style*="grid-template-columns: 1fr 1fr 1fr"] { grid-template-columns:1fr!important; }
  main [style*="height: 420px"] { height:260px!important; grid-template-columns:1fr!important; }
  main [style*="width: 220px"] { width:100%!important; height:180px; }
  main [style*="display: flex"] { flex-wrap:wrap; }
  #checkoutForm { grid-template-columns:1fr!important; }
}

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-success { background: #E3FCEF; color: #006644; }
.badge-warning { background: #FFF0B3; color: #172B4D; }
.badge-danger { background: #FFE380; color: #BF2600; }
.badge-info { background: #DEEBFF; color: #0747A6; }

/* Footer */
.footer { background: #0E2547; color: #A5B2C6; padding: 60px 0 30px; font-size: 14px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-title { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #A5B2C6; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
  body > div:first-of-type { display:none; }
  .search-widget { grid-template-columns: 1fr; gap: 16px; }
  .search-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .grid-3, .grid-4, .trust-bar, .footer-grid { grid-template-columns: 1fr; }
  .container, .container-wide { padding-left: 16px; padding-right: 16px; }
  .hero-section { padding: 40px 0 82px; }
  .hero-title { font-size: clamp(28px, 8vw, 36px); }
  .hero-subtitle { font-size: 16px; padding: 0 8px; }
  .section { padding: 34px 0; }
  .section-header { align-items: flex-start; gap: 12px; flex-direction: column; }
  .nav-inner { height: 64px; flex-wrap: wrap; }
  .mobile-nav-toggle { display: inline-flex !important; margin-left: auto; width: 44px; height: 44px; padding:10px; flex-direction:column; gap:5px; align-items: stretch; justify-content:center; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--dark); }
  .mobile-nav-toggle span { display:block; height:2px; border-radius:2px; background:#123b70; }
  .site-navigation { display:block; position:fixed; top:0; right:0; bottom:0; width:min(88vw,360px); padding:20px; background:#fff; z-index:1202; transform:translateX(105%); transition:transform .25s ease; overflow-y:auto; box-shadow:-16px 0 40px rgba(15,23,42,.18); }
  .mobile-nav-open .site-navigation { transform:translateX(0); }
  .mobile-menu-head { display:flex !important; justify-content:space-between; align-items:center; font-size:20px; padding-bottom:16px; border-bottom:1px solid #e2e8f0; }
  .mobile-nav-close { display:block !important; border:0; background:#f1f5f9; width:40px; height:40px; border-radius:10px; font-size:26px; color:#334155; }
  .nav-links { flex-direction:column; gap:4px; padding:18px 0; }
  .nav-links a { display:block; padding:13px 12px; font-size:16px; font-weight:650; }
  .nav-actions { display:flex; position:fixed; right:20px; bottom:22px; width:min(calc(88vw - 40px),320px); z-index:1203; flex-direction:column; gap:8px; transform:translateX(120vw); transition:transform .25s ease; }
  .mobile-nav-open .nav-actions { transform:translateX(0); }
  .nav-actions .btn { width:100%; min-height:44px; }
  .mobile-nav-backdrop { position:fixed; inset:0; z-index:1201; border:0; background:rgba(15,23,42,.52); }
  .mobile-nav-open .mobile-nav-backdrop { display:block !important; }
  .mobile-nav-open { overflow:hidden; }
  .admin-wrapper { display: block; min-height: 100vh; }
  .admin-menu-toggle { display: inline-flex; position: fixed; top: 10px; left: 10px; z-index: 1002; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: min(82vw, 300px); z-index: 1001; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-content { width: 100%; min-width: 0; }
  .admin-header { min-height: 64px; height: auto; padding: 10px 14px 10px 112px; gap: 10px; flex-wrap: wrap; }
  .admin-header > div:last-child { flex-wrap: wrap; gap: 8px !important; }
  .admin-body { padding: 18px 14px; overflow: hidden; }
  .admin-body > div[style*="display: grid"], .admin-body form div[style*="display: grid"] { grid-template-columns: 1fr !important; }
  .admin-body > div[style*="display: flex"], .admin-body form[style*="display: flex"] { flex-wrap: wrap; }
  .admin-body input, .admin-body select, .admin-body textarea { max-width: 100%; }
  .table-card { width: 100%; overflow-x: auto; }
  .ai-modal { left: 12px; right: 12px; bottom: 78px; width: auto; max-height: 70vh; }
  .ai-trigger-btn { right: 12px; bottom: 12px; padding: 12px 16px; }
  .settings-form { grid-template-columns:1fr; }
  .admin-page-head { align-items:flex-start; }
  .admin-page-head>button { display:none; }
  .admin-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .brand-logo { font-size: 22px; }
  .brand-logo svg { width: 28px; height: 28px; }
  .grid-cards { grid-template-columns: 1fr; gap: 16px; }
  .hotel-card-img { height: 190px; }
  .search-widget-container { margin-top: -52px; padding: 0 12px; }
  .search-widget { padding: 16px; }
  .trust-bar { padding: 20px; }
  .footer { padding: 40px 0 24px; }
  .footer-grid { gap: 28px; }
  .btn { max-width: 100%; }
  main img { max-width: 100%; height: auto; }
  [style*="width: 500px"], [style*="width: 440px"] { width: calc(100vw - 28px) !important; max-width: 100% !important; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .full { grid-column:auto; }
  .settings-card { padding:18px 15px; border-radius:13px; }
  .admin-quick-grid { grid-template-columns:1fr; }
  .mobile-save-bar { display:block; position:sticky; bottom:8px; z-index:20; padding:8px; border-radius:12px; background:rgba(255,255,255,.92); box-shadow:0 8px 30px rgba(15,23,42,.18); backdrop-filter:blur(10px); }
  .mobile-save-bar .btn { width:100%; min-height:46px; }
}
