/* ============================================================
   SAFAR DIARY — CORE STYLESHEET
   Palette kept faithful to the original Django project:
   deep navy (#101425 / #1a1a2e) + heritage gold (#d4af37 / #e8a020)
   ============================================================ */

:root {
  --sd-navy: #0f1224;
  --sd-navy-2: #171b34;
  --sd-navy-soft: #232849;
  --sd-gold: #d4af37;
  --sd-gold-2: #e8c158;
  --sd-clay: #c9773f;
  --sd-cream: #faf7f0;
  --sd-ink: #1c1e2b;
  --sd-muted: #6b7086;
  --sd-line: #ece7da;
  --sd-radius: 16px;
  --sd-radius-sm: 10px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-utility: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--sd-ink);
  background: var(--sd-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }
img { max-width: 100%; }

.section-py { padding: 88px 0; }
@media (max-width: 768px) { .section-py { padding: 56px 0; } }

.text-gold { color: var(--sd-gold) !important; }
.bg-navy { background: var(--sd-navy) !important; }
.bg-cream { background: var(--sd-cream) !important; }

/* ---------- EYEBROW / SECTION LABEL ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sd-clay);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sd-gold);
  display: inline-block;
}

.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.section-sub { color: var(--sd-muted); font-size: 1.02rem; max-width: 620px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  background: rgba(15, 18, 36, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  transition: background 0.25s ease;
}

.navbar-brand { display: flex; align-items: center; gap: 12px; }

.logo-box {
  width: 52px; height: 52px;
  background: #fff;
  border: 2px solid var(--sd-gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.navbar-logo { width: 44px; height: auto; object-fit: contain; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; }

.navbar-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #fff; }
.brand-sub { font-size: 10px; letter-spacing: 3px; color: var(--sd-gold); font-weight: 600; }

.nav-link-main {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px !important;
  position: relative;
}
.nav-link-main:hover, .nav-link-main.active { color: var(--sd-gold) !important; }
.nav-link-main.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--sd-gold);
  border-radius: 2px;
}
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

.dropdown-menu { border: none; border-radius: var(--sd-radius-sm); box-shadow: 0 18px 40px rgba(15,18,36,0.18); padding: 10px; }
.dropdown-item { border-radius: 8px; font-weight: 500; font-size: 0.92rem; }
.dropdown-item:hover { background: #fbf3de; color: var(--sd-clay); }

.cart-badge {
  position: absolute; top: 0; right: -4px;
  background: var(--sd-gold); color: var(--sd-navy);
  font-size: 0.62rem; font-weight: 800;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.user-pill { color: #fff !important; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--sd-gold), var(--sd-clay));
  border: none; color: #1a1200; font-weight: 700;
  border-radius: 999px; padding: 10px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(212,175,55,0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(212,175,55,0.38); color: #1a1200; }
.btn-outline-gold {
  border: 1.5px solid var(--sd-gold); color: var(--sd-gold);
  border-radius: 999px; font-weight: 700; background: transparent;
}
.btn-outline-gold:hover { background: var(--sd-gold); color: #1a1200; }
.btn-navy { background: var(--sd-navy); color: #fff; border-radius: 999px; font-weight: 700; border: none; padding: 10px 22px; }
.btn-navy:hover { background: var(--sd-navy-2); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; border-radius: 999px; font-weight: 600; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--sd-navy);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,36,0.55) 0%, rgba(15,18,36,0.72) 60%, rgba(15,18,36,0.94) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  padding: 6px 16px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 22px; backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--sd-gold-2); }
.hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 560px; }

/* ---------- Search / booking widget ---------- */
.search-widget {
  background: #fff;
  border-radius: var(--sd-radius);
  box-shadow: 0 30px 60px rgba(15,18,36,0.28);
  padding: 10px;
  position: relative; z-index: 3;
}
.search-tabs .nav-link {
  border: none; border-radius: 10px 10px 0 0; color: var(--sd-muted); font-weight: 700; font-size: 0.88rem;
  padding: 10px 18px;
}
.search-tabs .nav-link.active { background: var(--sd-cream); color: var(--sd-clay); }
.search-widget .form-control, .search-widget .form-select {
  border-radius: var(--sd-radius-sm); border: 1px solid var(--sd-line); padding: 12px 14px; font-size: 0.92rem;
}
.search-widget .form-control:focus, .search-widget .form-select:focus {
  border-color: var(--sd-gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.search-widget label.small-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--sd-muted); }

/* ============================================================
   CARDS
   ============================================================ */
.card-elevated {
  background: #fff; border-radius: var(--sd-radius); border: 1px solid var(--sd-line);
  overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
}
.card-elevated:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,18,36,0.14); }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-elevated:hover .card-img-wrap img { transform: scale(1.08); }

.badge-discount {
  position: absolute; top: 14px; left: 14px;
  background: var(--sd-navy); color: var(--sd-gold);
  font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.badge-type {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.92); color: var(--sd-clay);
  font-size: 0.68rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.card-body-pad { padding: 20px; }
.card-price-old { text-decoration: line-through; color: var(--sd-muted); font-size: 0.86rem; }
.card-price-new { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--sd-navy); }
.meta-row { display: flex; align-items: center; gap: 14px; color: var(--sd-muted); font-size: 0.82rem; flex-wrap: wrap; }
.meta-row i { color: var(--sd-clay); }

.rating-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fbf3de; color: var(--sd-clay); font-weight: 700; font-size: 0.8rem;
  padding: 3px 10px; border-radius: 999px;
}
.rating-pill i { color: var(--sd-gold); }

/* ---------- Destination hover card ---------- */
.dest-card { position: relative; border-radius: var(--sd-radius); overflow: hidden; aspect-ratio: 3/4; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dest-card:hover img { transform: scale(1.1); }
.dest-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,36,0) 40%, rgba(15,18,36,0.88) 100%);
}
.dest-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; color: #fff; }
.dest-card-body h5 { margin: 0; font-family: var(--font-display); }
.dest-card-body small { color: rgba(255,255,255,0.75); }

/* ============================================================
   SECTIONS
   ============================================================ */
.stats-strip { background: var(--sd-navy); color: #fff; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--sd-gold); font-weight: 700; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; }

.testimonial-card {
  background: #fff; border-radius: var(--sd-radius); padding: 28px; border: 1px solid var(--sd-line); height: 100%;
}
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--sd-gold); line-height: 0.5; }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #fbf3de, #f4e2b3);
  display: flex; align-items: center; justify-content: center; color: var(--sd-clay); font-size: 1.4rem;
}

.timeline-item { position: relative; padding-left: 32px; border-left: 2px solid var(--sd-line); padding-bottom: 26px; }
.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--sd-gold);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sd-navy) 0%, #262c52 100%);
  border-radius: 28px; color: #fff; padding: 56px; overflow: hidden; position: relative;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,0.35), transparent 70%);
}

/* ============================================================
   PAGE HEADER (inner pages hero)
   ============================================================ */
.page-header {
  background: var(--sd-navy); color: #fff; padding: 150px 0 60px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(15,18,36,0.78); }
.page-header .container { position: relative; z-index: 2; }
.breadcrumb-custom a { color: rgba(255,255,255,0.7); }
.breadcrumb-custom a:hover { color: var(--sd-gold); }
.breadcrumb-custom .active { color: var(--sd-gold); }

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-card { background: #fff; border-radius: var(--sd-radius); border: 1px solid var(--sd-line); padding: 22px; }
.filter-card h6 { font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--sd-muted); margin-bottom: 14px; }
.form-check-input:checked { background-color: var(--sd-clay); border-color: var(--sd-clay); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--sd-line); border-radius: 999px; padding: 6px 14px;
  font-size: 0.82rem; font-weight: 600; color: var(--sd-muted); background: #fff; cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip.active, .filter-chip:hover { background: var(--sd-navy); color: #fff; border-color: var(--sd-navy); }

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.gallery-main { border-radius: var(--sd-radius); overflow: hidden; aspect-ratio: 16/9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active { border-color: var(--sd-gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sticky-booking-card { position: sticky; top: 100px; }
.info-pill { background: #fbf3de; border-radius: 12px; padding: 14px; text-align: center; }
.info-pill .num { font-family: var(--font-display); font-weight: 700; color: var(--sd-navy); font-size: 1.15rem; }
.info-pill .lbl { font-size: 0.72rem; color: var(--sd-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.nav-pills-detail .nav-link { border-radius: 999px; font-weight: 700; color: var(--sd-muted); padding: 8px 18px; margin-right: 8px; font-size: 0.9rem; }
.nav-pills-detail .nav-link.active { background: var(--sd-navy); color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.auth-card { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(15,18,36,0.15); overflow: hidden; }
.auth-side { background: var(--sd-navy); color: #fff; min-height: 100%; padding: 48px; position: relative; }
.form-label { font-weight: 600; font-size: 0.88rem; }
.form-control, .form-select { border-radius: 10px; border: 1px solid var(--sd-line); padding: 11px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--sd-gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.16); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #d9534f; }
.step-indicator { display: flex; gap: 8px; margin-bottom: 30px; }
.step-indicator .step { flex: 1; height: 5px; border-radius: 4px; background: var(--sd-line); }
.step-indicator .step.active { background: var(--sd-gold); }

/* ============================================================
   DASHBOARD / ADMIN
   ============================================================ */
.dash-sidebar { background: #fff; border-radius: var(--sd-radius); border: 1px solid var(--sd-line); padding: 18px; }
.dash-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  color: var(--sd-ink); font-weight: 600; font-size: 0.92rem; margin-bottom: 4px;
}
.dash-link:hover { background: #fbf3de; color: var(--sd-clay); }
.dash-link.active { background: var(--sd-navy); color: #fff; }
.stat-card { background: #fff; border-radius: var(--sd-radius); border: 1px solid var(--sd-line); padding: 22px; }
.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.status-badge { padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.status-pending { background: #fff3cd; color: #997404; }
.status-confirmed { background: #d1e7dd; color: #146c43; }
.status-cancelled { background: #f8d7da; color: #b02a37; }
.status-completed { background: #cfe2ff; color: #084298; }

.table-clean thead { background: var(--sd-cream); }
.table-clean th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sd-muted); font-weight: 700; border: none; }
.table-clean td { vertical-align: middle; border-color: var(--sd-line); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-cat-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; color: #fff; }
.blog-content p { margin-bottom: 1.2rem; line-height: 1.85; color: #333; }
.author-chip { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sd-navy); color: var(--sd-gold); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--sd-navy); color: rgba(255,255,255,0.75); padding-top: 64px; }
.footer-about { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--sd-gold); }
.footer-divider { border-color: rgba(255,255,255,0.12); margin: 40px 0 0; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  color: #fff; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.social-links a:hover { background: var(--sd-gold); border-color: var(--sd-gold); color: #1a1200; }

.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sd-gold); color: #1a1200; border: none; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease; z-index: 1000; box-shadow: 0 10px 24px rgba(15,18,36,0.3);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   MISC
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state i { font-size: 3.4rem; color: var(--sd-line); }

.step-card-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sd-navy); color: var(--sd-gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
}

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--sd-line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 34px; height: 34px; border: none; background: #fff; font-weight: 700; }
.qty-control input { width: 44px; text-align: center; border: none; font-weight: 700; }

.price-tag-lg { font-family: var(--font-display); font-size: 2rem; color: var(--sd-navy); font-weight: 700; }

.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
