/* Odkryj Egipt — inner pages (listing, tour detail, blog). Brand: limestone / Nile teal / saffron. */
:root {
  --bg: #F7F4EF;
  --bg-card: #FFFFFF;
  --ink: #1A1F2C;
  --ink-soft: #5B6470;
  --teal: #0E5E6F;
  --teal-dark: #094450;
  --saffron: #F4A024;
  --saffron-dark: #D98612;
  --terracotta: #C75D2C;
  --line: #EDE7DA;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -4px rgb(14 94 111 / .08);
  --font-display: "Newsreader", Georgia, ui-serif, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.brand i { width: 30px; height: 30px; background: url('/assets/img/logo.svg') center / contain no-repeat; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 12px 24px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--saffron); color: #3d2703; box-shadow: 0 1px 2px rgb(244 160 36 / .4), 0 8px 24px -4px rgb(244 160 36 / .25); }
.btn-ghost { border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.header-cta { font-size: .9rem; padding: 10px 20px; }

/* Page hero strip */
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.01em; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #B24E23; margin-bottom: 14px; }

/* Category chips */
.cats { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 8px; }
.cats a { text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--teal-dark); background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; transition: .2s; }
.cats a:hover, .cats a.active { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, #fff); }

/* Destination sections */
.dest-section { padding-top: 8px; }
.dest-section .grid { padding: 16px 0 28px; }
.dest-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 28px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--saffron); display: inline-block; }
.base-nav a { background: var(--teal); color: #fff; border-color: var(--teal); }
.base-nav a:hover { background: var(--teal-dark); color: #fff; }

/* Tour grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 32px 0 64px; }
.card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(0 0 0/.05), 0 20px 44px -8px rgb(14 94 111/.16); }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f0e9dc; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--saffron); color: #3d2703; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--ink-soft); }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; font-weight: 600; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--teal); }
.card-rating { font-size: .84rem; color: var(--ink-soft); }
.card-rating b { color: var(--ink); }
.star { color: #E5B130; }
.card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-size: 1.3rem; font-weight: 700; color: var(--teal-dark); }
.price small { font-size: .76rem; font-weight: 500; color: var(--ink-soft); display: block; }
.od { font-size: .78rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: #FFFDF9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 8px; }
.section .lead { color: var(--ink-soft); margin: 0 0 32px; max-width: 60ch; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 32px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Tour detail */
.tour-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.tour-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.tour-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 36px 0 80px; align-items: start; }
.tour-main h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 6px 0 14px; }
.tour-main h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 40px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chips span { font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--teal) 9%, #fff); color: var(--teal-dark); border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent); padding: 6px 13px; border-radius: 999px; }
.tour-desc p { color: #333c49; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.hl { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .92rem; font-weight: 500; }
.itinerary { list-style: none; margin: 0; padding: 0; position: relative; }
.itinerary::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--teal) 25%, transparent); }
.itinerary li { position: relative; padding: 0 0 22px 34px; }
.itinerary li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--saffron); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--saffron); }
.itinerary time { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--terracotta); text-transform: uppercase; }
.itinerary h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.itinerary p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.incl-grid ul { list-style: none; padding: 0; margin: 8px 0 0; }
.incl-grid li { padding: 7px 0 7px 26px; position: relative; font-size: .94rem; }
.incl li::before { content: "✓"; position: absolute; left: 0; color: #1a7f4e; font-weight: 700; }
.nincl li::before { content: "—"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }

/* Booking box */
.book-box { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.book-box .price { font-size: 1.9rem; }
.book-box .meta { display: grid; gap: 8px; margin: 18px 0; font-size: .9rem; color: var(--ink-soft); }
.book-box .meta b { color: var(--ink); }
.book-box .btn { width: 100%; text-align: center; margin-top: 6px; }
.book-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.stickybar { display: none; }

/* Blog */
.post-card { display: flex; flex-direction: column; }
.post-card .card-img { aspect-ratio: 16/9; }
.post-meta { font-size: .8rem; color: var(--ink-soft); }
.article { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.article h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; margin: 10px 0 10px; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.article h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 36px 0 12px; }
.article p, .article li { color: #333c49; font-size: 1.02rem; }
.article table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: .94rem; }
.article th, .article td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article th { background: #FFFDF9; }
.article blockquote { border-left: 3px solid var(--saffron); background: #FFFDF9; margin: 18px 0; padding: 12px 18px; border-radius: 8px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 64px; }
.cta-band h2 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.6rem; }
.cta-band p { margin: 0; opacity: .85; }

/* Footer */
.site-footer { background: #0B1220; color: #C8CFDA; margin-top: 40px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer a { color: #C8CFDA; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-footer .about { font-size: .92rem; line-height: 1.7; color: #97A1B0; max-width: 44ch; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.footer-brand i { width: 26px; height: 26px; background: url('/assets/img/logo.svg') center / contain no-repeat; }
.footer-legal { border-top: 1px solid #1c2536; padding: 18px 20px; font-size: .8rem; color: #7C8698; text-align: center; }

/* Reveal-on-scroll animation — progressive enhancement: hidden only when JS is running */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 2px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; font-size: .86rem; padding: 6px 11px; }
  .tour-layout { grid-template-columns: 1fr; }
  .book-box { position: static; }
  .incl-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: 28px; }
  .stickybar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 -8px 24px rgb(0 0 0 / .08); }
  .stickybar .price { font-size: 1.15rem; }
  .stickybar .btn { padding: 11px 20px; font-size: .9rem; }
  body.has-stickybar { padding-bottom: 76px; }
}

/* Breadcrumbs */
.crumbs { font-size: .82rem; color: var(--ink-soft); padding: 18px 0 0; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* Tour photo gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 40px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
dialog#lbx { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); }
dialog#lbx::backdrop { background: rgb(10 14 20 / .85); }
dialog#lbx img { width: 100%; border-radius: 12px; cursor: zoom-out; }
