/* =========================================================
   Package-detail-travlas.css
   Page-specific styles only.
   Navbar + footer handled by common.css

   3 colour themes via body class:
     body.theme-travel  → blue  (default)
     body.theme-hajj    → gold / dark-green
     body.theme-work    → green
   ========================================================= */

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #1a1f2e;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── CSS TOKENS — travel / blue (default) ───────────────── */
:root {
  --acc:        #1a56db;
  --acc-dark:   #1140a6;
  --acc-light:  #e8f0ff;
  --acc-glow:   rgba(26,86,219,.18);
  --hero-tint:  rgba(8,18,45,.88);
  --badge-bg:   rgba(248,198,64,.13);
  --badge-bd:   rgba(248,198,64,.40);
  --badge-c:    #f8c640;
  --pill-bg:    linear-gradient(135deg,#f8c640,#e8a800);
  --pill-c:     #0d1117;
  --bk-hdr:     linear-gradient(135deg,#1a56db,#0e3494);
  --btn-bg:     #1a56db;
  --btn-hov:    #0e3494;
  --btn-sh:     rgba(26,86,219,.30);
  --hl-bg:      #f0f5ff;
  --hl-bd:      #dce8ff;
  --card-top:   #1a56db;
  --tl-dot:     #1a56db;
  --tl-sh:      rgba(26,86,219,.28);
  --dark:       #0d1117;
  --text:       #1a1f2e;
  --muted:      #6b7280;
  --radius:     18px;
  --sh:         0 6px 24px rgba(0,0,0,.07);
  --t:          .3s ease;
}

body.theme-hajj {
  --acc:        #b8860b;
  --acc-dark:   #8b6508;
  --acc-light:  #fff8e1;
  --acc-glow:   rgba(184,134,11,.18);
  --hero-tint:  rgba(12,22,16,.88);
  --badge-bg:   rgba(184,134,11,.12);
  --badge-bd:   rgba(184,134,11,.38);
  --badge-c:    #d4a017;
  --pill-bg:    linear-gradient(135deg,#d4a017,#9a6e04);
  --pill-c:     #fff;
  --bk-hdr:     linear-gradient(135deg,#1b3a28,#0c1f14);
  --btn-bg:     #1b6e3f;
  --btn-hov:    #0e4a28;
  --btn-sh:     rgba(27,110,63,.28);
  --hl-bg:      #fffbf0;
  --hl-bd:      #fde68a;
  --card-top:   #b8860b;
  --tl-dot:     #b8860b;
  --tl-sh:      rgba(184,134,11,.28);
}

body.theme-work {
  --acc:        #0d9f6e;
  --acc-dark:   #077a53;
  --acc-light:  #e6f7f2;
  --acc-glow:   rgba(13,159,110,.18);
  --hero-tint:  rgba(4,22,14,.88);
  --badge-bg:   rgba(13,159,110,.12);
  --badge-bd:   rgba(13,159,110,.38);
  --badge-c:    #0d9f6e;
  --pill-bg:    linear-gradient(135deg,#0d9f6e,#077a53);
  --pill-c:     #fff;
  --bk-hdr:     linear-gradient(135deg,#0d9f6e,#055c3e);
  --btn-bg:     #0d9f6e;
  --btn-hov:    #077a53;
  --btn-sh:     rgba(13,159,110,.28);
  --hl-bg:      #e6f7f2;
  --hl-bd:      #bbf7d0;
  --card-top:   #0d9f6e;
  --tl-dot:     #0d9f6e;
  --tl-sh:      rgba(13,159,110,.28);
}

/* =========================================================
   HERO
   ========================================================= */
.pkg-hero {
  min-height: 65vh; position: relative;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.07); transition: transform 9s ease;
}
.hero-bg-img.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,var(--hero-tint) 0%,rgba(8,18,45,.32) 55%,transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 110px 40px 64px;
}
.type-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  padding: 7px 20px; border-radius: 30px; margin-bottom: 18px;
  background: var(--badge-bg); border: 1px solid var(--badge-bd); color: var(--badge-c);
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px,5vw,64px); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 8px;
}
.hero-content h1 em { font-style: italic; color: var(--badge-c); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.hmeta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); }
.hmeta .hi   { font-size: 20px; }
.hmeta b     { color: #fff; display: block; font-size: 14px; }
.hmeta small { font-size: 10px; opacity: .6; text-transform: uppercase; letter-spacing: .5px; }
.price-pill {
  background: var(--pill-bg); color: var(--pill-c);
  font-size: 18px; font-weight: 900;
  padding: 10px 28px; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 12px 40px; }
.bc-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.bc-inner a { color: var(--acc); transition: var(--t); }
.bc-inner a:hover { color: var(--acc-dark); }
.bc-sep { color: #d1d5db; }

/* =========================================================
   DETAIL LAYOUT
   ========================================================= */
.detail-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 40px;
  display: grid; grid-template-columns: 1fr 365px;
  gap: 46px; align-items: start;
}

/* =========================================================
   GALLERY  — fully redesigned
   ========================================================= */
.gallery-wrap {
  margin-bottom: 28px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh);
  border-top: 3px solid var(--card-top);
}

/* Header row */
.gallery-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
}
.gallery-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: var(--dark);
}
.gallery-counter {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--hl-bg); border: 1px solid var(--hl-bd);
  padding: 3px 12px; border-radius: 20px;
}

/* Main stage */
.gallery-stage {
  position: relative;
  height: 400px;
  background: #0d1117;
  cursor: pointer;
  overflow: hidden;
}
.gallery-stage > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .15s ease, transform .5s ease;
}
.gallery-stage:hover > img { transform: scale(1.03); }

/* Expand hint */
.gallery-stage .g-hint {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.44);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  letter-spacing: .3px;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.gallery-stage:hover .g-hint { opacity: 1; }

/* Caption */
.gallery-stage .g-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 16px 13px;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500;
  transform: translateY(100%); transition: transform .25s ease;
  pointer-events: none;
}
.gallery-stage:hover .g-caption { transform: translateY(0); }

/* Stage arrows */
.stage-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.38); border: none;
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .2s;
  backdrop-filter: blur(4px); z-index: 2;
}
.gallery-stage:hover .stage-arrow { opacity: 1; }
.stage-arrow:hover  { background: rgba(0,0,0,.65); }
.stage-arrow.s-prev { left: 10px; }
.stage-arrow.s-next { right: 10px; }

/* Thumbnail strip */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid #0d1117;
}
.g-thumb {
  position: relative;
  height: 82px;
  cursor: pointer;
  overflow: hidden;
  border-right: 2px solid #0d1117;
  outline: none;
}
.g-thumb:last-child { border-right: none; }
.g-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.48) saturate(.6);
  transition: filter .22s ease, transform .28s ease;
}
.g-thumb:hover img {
  filter: brightness(.78) saturate(1);
  transform: scale(1.07);
}
.g-thumb.active img {
  filter: brightness(1) saturate(1.1);
}

/* Top-bar indicator on active thumb */
.g-thumb::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--acc);
  transform: scaleX(0);
  transition: transform .2s ease;
  z-index: 1;
}
.g-thumb.active::before { transform: scaleX(1); }

/* Thumb number */
.g-thumb .g-num {
  position: absolute; bottom: 5px; right: 6px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.65);
  pointer-events: none; line-height: 1;
  z-index: 1;
}

/* ── LIGHTBOX ── */
.g-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.g-lightbox.open { display: flex; }

.g-lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: lbIn .2s ease;
}
@keyframes lbIn {
  from { opacity:0; transform:scale(.96); }
  to   { opacity:1; transform:scale(1); }
}

.lb-close {
  position: fixed; top: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.28); }

.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: none;
  color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-arrow:hover { background: rgba(255,255,255,.28); }
.lb-arrow.lb-prev { left: 14px; }
.lb-arrow.lb-next { right: 14px; }

.lb-label {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 5px 16px; border-radius: 20px;
}

/* =========================================================
   SECTION CARDS
   ========================================================= */
.sc {
  background: #fff; border-radius: var(--radius);
  padding: 30px; margin-bottom: 20px;
  box-shadow: var(--sh); border-top: 3px solid var(--card-top);
  animation: fadeUp .5s ease both;
}
.sc:nth-child(1){animation-delay:.05s}
.sc:nth-child(2){animation-delay:.12s}
.sc:nth-child(3){animation-delay:.18s}
.sc:nth-child(4){animation-delay:.24s}
.sc-head {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; padding-bottom: 13px;
  border-bottom: 2px solid var(--acc-light);
}
.about-text { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 10px; }
.about-bn   { font-size: 13px; color: #9ca3af; }

.verse-block {
  text-align: center; padding: 20px;
  background: var(--hl-bg); border-radius: 14px;
  border: 1px solid var(--hl-bd); margin-bottom: 16px;
}
.verse-block .ar { font-size: 22px; color: var(--acc-dark); direction: rtl; margin-bottom: 6px; }
.verse-block .tr { font-size: 12px; color: var(--muted); font-style: italic; }

.salary-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acc-light); color: var(--acc-dark);
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 50px; margin-bottom: 16px;
  border: 1px solid var(--hl-bd);
}

/* =========================================================
   HIGHLIGHTS GRID
   ========================================================= */
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hl-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--hl-bg); border: 1px solid var(--hl-bd);
  border-radius: 12px; padding: 12px 14px; transition: var(--t);
}
.hl-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px var(--acc-glow); }
.hl-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.hl-text b    { display: block; font-size: 13px; font-weight: 700; color: var(--dark); }
.hl-text span { font-size: 12px; color: var(--muted); }

/* =========================================================
   TIMELINE
   ========================================================= */
.tl-item { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 17px; top: 38px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom,var(--acc),transparent); opacity: .25;
}
.tl-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--tl-dot); color: #fff;
  font-weight: 700; font-size: 10px; text-align: center; line-height: 1.2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px var(--tl-sh); position: relative; z-index: 1; padding: 2px;
}
.tl-body h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.tl-body p  { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* =========================================================
   INCLUDES / EXCLUDES
   ========================================================= */
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.inc-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.inc-ok { color: #0d9f6e; font-size: 15px; font-weight: 700; }
.inc-no { color: #ef4444; font-size: 15px; font-weight: 700; }

/* =========================================================
   BOOKING SIDEBAR
   ========================================================= */
.booking-sticky { position: sticky; top: 88px; }
.booking-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(0,0,0,.11); overflow: hidden;
}
.bk-hdr {
  background: var(--bk-hdr); color: #fff;
  padding: 26px 26px 20px; position: relative; overflow: hidden;
}
.bk-hdr::before {
  content: '✈'; position: absolute; right: -10px; top: -18px;
  font-size: 90px; opacity: .06; pointer-events: none;
}
body.theme-hajj .bk-hdr::before { content: '🕌'; }
body.theme-work .bk-hdr::before { content: '💼'; }
.bk-label { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; opacity: .7; }
.bk-price { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 900; line-height: 1; margin: 5px 0 2px; }
.bk-per   { font-size: 12px; opacity: .7; }
.bk-stars { color: #f8c640; font-size: 14px; margin-top: 9px; display: block; }
.bk-body  { padding: 24px; }
.bk-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--acc-light);
}
.bf { margin-bottom: 12px; }
.bf label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.bf input, .bf textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #e2e8ff; border-radius: 11px;
  font-family: inherit; font-size: 13px; color: var(--dark);
  background: #f5f8ff; outline: none; transition: var(--t); resize: none;
}
.bf input:focus, .bf textarea:focus {
  border-color: var(--acc); background: #fff; box-shadow: 0 0 0 3px var(--acc-glow);
}
.bf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-book {
  width: 100%; padding: 14px; border: none; border-radius: 13px;
  background: var(--btn-bg); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--t); margin-top: 4px;
}
.btn-book:hover { background: var(--btn-hov); transform: translateY(-2px); box-shadow: 0 10px 26px var(--btn-sh); }
.btn-book:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.book-ok {
  display: none; margin-top: 11px; padding: 13px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #166534; border-radius: 10px;
  font-size: 13px; text-align: center; line-height: 1.7;
}

/* =========================================================
   ANIMATIONS & RESPONSIVE
   ========================================================= */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

@media (max-width: 1024px) {
  .detail-wrap    { grid-template-columns: 1fr; }
  .booking-sticky { position: static; }
}
@media (max-width: 768px) {
  .hero-content { padding: 90px 20px 52px; }
  .breadcrumb   { padding: 12px 20px; }
  .detail-wrap  { padding: 26px 18px; gap: 20px; }
  .gallery-stage { height: 260px; }
  .g-thumb       { height: 64px; }
  .hl-grid, .inc-grid, .bf-2col { grid-template-columns: 1fr; }
  .lb-arrow.lb-prev { left: 6px; }
  .lb-arrow.lb-next { right: 6px; }
}
@media (max-width: 480px) {
  .price-pill    { font-size: 15px; padding: 8px 20px; }
  .bk-price      { font-size: 32px; }
  .gallery-stage { height: 220px; }
  .g-thumb       { height: 54px; }
}