/* Ruby Travel & Tourism - palette taken from the logo: ruby red calligraphy on ivory with a faint geometric star pattern */
:root {
  --ruby: #8e1b2b; --ruby-deep: #681220; --ruby-ink: #4a0c17; --ruby-soft: #f5e8ea; --ruby-tint: #fbf3f4;
  --ivory: #faf7f4; --paper: #ffffff; --ink: #2b1b1e; --muted: #76666a; --line: #ebe1de;
  --gold: #b48a52; --gold-soft: #f3ead9; --ok: #2f7d4f; --ok-soft: #e5f2ea; --warn: #a66a00; --warn-soft: #fbf0d9; --ko: #b3261e;
  --radius: 14px; --shadow: 0 1px 2px rgba(74,12,23,.06), 0 8px 24px rgba(74,12,23,.07);
  --f-body: 'Tajawal', system-ui, sans-serif; --f-display: 'Cormorant Garamond', 'Amiri', serif; --f-callig: 'Aref Ruqaa', 'Amiri', serif;
}
[dir=rtl] { --f-display: 'Aref Ruqaa', 'Amiri', serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--ivory); font-size: 16px; line-height: 1.6; }
a { color: var(--ruby); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ruby-deep); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.pattern { background-color: var(--ivory); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%238e1b2b' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M32 6l7 19 19 7-19 7-7 19-7-19-19-7 19-7z'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); }

/* header */
.top { background: var(--ruby-deep); color: #f6dfe3; font-size: 14px; }
.top .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 36px; flex-wrap: wrap; }
.top a { color: #fff; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 99px; padding: 2px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.lang-switch button.on { background: #fff; color: var(--ruby-deep); }
header.main { background: rgba(250,247,244,.95); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
header.main .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.logo b { display: block; font-family: var(--f-callig); color: var(--ruby); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.logo small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
nav.menu { display: flex; gap: 4px; margin-inline-start: auto; }
nav.menu a { color: var(--ink); padding: 8px 12px; border-radius: 99px; font-weight: 500; }
nav.menu a.on, nav.menu a:hover { background: var(--ruby-soft); color: var(--ruby-deep); }
.burger { display: none; margin-inline-start: auto; background: none; border: 0; font-size: 26px; color: var(--ruby); cursor: pointer; }
@media (max-width: 900px) {
  .burger { display: block; }
  nav.menu { display: none; position: absolute; top: 76px; inset-inline: 0; background: var(--ivory); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  nav.menu.open { display: flex; }
}

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; background: var(--ruby); color: #fff; transition: background .15s, transform .15s; }
.btn:hover { background: var(--ruby-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ruby); border: 1.5px solid var(--ruby); }
.btn.ghost:hover { background: var(--ruby-soft); }
.btn.light { background: #fff; color: var(--ruby-deep); }
.btn.wa { background: #1f8f4e; }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ruby-soft); border-color: var(--ruby); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { margin-bottom: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% 20%, #a8283b 0%, transparent 60%), linear-gradient(120deg, var(--ruby-ink), var(--ruby) 70%); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18'%3E%3Cpath d='M40 8l9 23 23 9-23 9-9 23-9-23-23-9 23-9z'/%3E%3Crect x='24' y='24' width='32' height='32' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E"); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
[dir=rtl] .hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero p { font-size: 1.15rem; color: #f3d9dd; max-width: 560px; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 4px 14px; margin-bottom: 18px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { justify-self: center; width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); display: grid; place-items: center; background: rgba(255,255,255,.06); }
.hero-art svg { width: 70%; }
.hero-price { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 8px; background: #fff; color: var(--ruby-deep); border-radius: 12px; padding: 10px 18px; font-weight: 700; }
.hero-price b { font-size: 1.8rem; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; } .hero-art { width: 220px; } }

/* sections */
section.block { padding: 72px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head .ornament { display: block; width: 72px; height: 10px; margin-bottom: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='10'%3E%3Cpath d='M0 5h28M44 5h28' stroke='%23b48a52'/%3E%3Cpath d='M36 0l5 5-5 5-5-5z' fill='%238e1b2b'/%3E%3C/svg%3E"); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why .card { padding: 24px; }
.why .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--ruby-soft); color: var(--ruby); display: grid; place-items: center; margin-bottom: 12px; }
.why h3 { font-family: var(--f-body); font-size: 1.1rem; margin: 0 0 4px; color: var(--ink); }
.why p { margin: 0; color: var(--muted); font-size: 15px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* packages */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 16px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.chip.on { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.pkg { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pkg:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(74,12,23,.13); }
.pkg .art { height: 170px; background: linear-gradient(160deg, var(--ruby-tint), var(--ruby-soft)); display: grid; place-items: center; position: relative; }
.pkg .art svg { height: 130px; }
.pkg .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--ruby); color: #fff; }
.badge.gold { background: var(--gold-soft); color: #7a5520; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ko { background: #fde8e6; color: var(--ko); }
.badge.mute { background: #eee8e6; color: var(--muted); }
.pkg .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pkg h3 { font-family: var(--f-body); color: var(--ink); font-size: 1.2rem; margin-bottom: 6px; }
.pkg .meta { color: var(--muted); font-size: 14px; display: grid; gap: 4px; margin: 6px 0 14px; }
.pkg .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.price small { display: block; color: var(--muted); font-size: 12px; }
.price b { color: var(--ruby); font-size: 1.45rem; }

/* detail */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail .side { position: sticky; top: 96px; padding: 22px; }
.inc { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.inc li { display: flex; gap: 8px; align-items: center; background: var(--ruby-tint); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.inc li::before { content: '✓'; color: var(--ruby); font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { background: var(--ruby); color: #fff; font-weight: 500; }
th:first-child { border-start-start-radius: 10px; } th:last-child { border-start-end-radius: 10px; }
tr:hover td { background: var(--ruby-tint); }
.rooms { display: grid; gap: 8px; }
.rooms div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rooms b { color: var(--ruby); }

/* booking */
.steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.steps span { flex: 1; min-width: 100px; text-align: center; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.steps span.on { background: var(--ruby); color: #fff; border-color: var(--ruby); }
.steps span.done { background: var(--ruby-soft); color: var(--ruby-deep); }
.opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 10px; background: #fff; }
.opt:has(input:checked) { border-color: var(--ruby); background: var(--ruby-tint); }
.opt input { width: auto; accent-color: var(--ruby); }
.opt .grow { flex: 1; }
.pil { padding: 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--ruby-tint); }
.pil .hd { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; color: var(--ruby-deep); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.big { font-size: 1.2rem; font-weight: 700; color: var(--ruby-deep); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.success { text-align: center; padding: 40px 24px; }
.success .ref { font-family: monospace; font-size: 2rem; letter-spacing: .1em; color: var(--ruby); background: var(--ruby-soft); display: inline-block; padding: 8px 20px; border-radius: 12px; margin: 10px 0 16px; }
.err { color: var(--ko); font-size: 14px; margin-top: 8px; min-height: 1em; }

/* gift banner */
.gift { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; background: linear-gradient(110deg, var(--gold-soft), #fff 70%); border: 1px solid #ead9bc; }
.gift h3 { font-family: var(--f-callig); font-size: 2rem; margin: 0; }
[dir=ltr] .gift h3 { font-family: var(--f-display); }
@media (max-width: 760px) { .gift { grid-template-columns: 1fr; text-align: center; } }

/* branches */
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.branches .card { padding: 20px; }
.branches h3 { font-family: var(--f-body); font-size: 1.05rem; color: var(--ruby-deep); margin-bottom: 6px; }
.branches p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.branches .tel { direction: ltr; unicode-bidi: embed; font-weight: 500; color: var(--ink); font-size: 15px; }

footer { background: var(--ruby-ink); color: #e8c9ce; padding: 48px 0 24px; margin-top: 40px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer a { color: #fff; }
footer h4 { color: #fff; margin: 0 0 10px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: #1f8f4e; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 30; }
.ltr { direction: ltr; unicode-bidi: embed; }
.muted { color: var(--muted); }
.page-head { padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.loading { padding: 60px; text-align: center; color: var(--muted); }

/* ===== v2: photos, search, programme, reviews, account, mobile ===== */
.hero.photo { background: linear-gradient(100deg, rgba(74,12,23,.94) 0%, rgba(104,18,32,.86) 45%, rgba(142,27,43,.35) 100%), var(--hero-img, none) center/cover no-repeat; }
[dir=rtl] .hero.photo { background: linear-gradient(260deg, rgba(74,12,23,.94) 0%, rgba(104,18,32,.86) 45%, rgba(142,27,43,.35) 100%), var(--hero-img, none) center/cover no-repeat; }
.hero.photo::before { opacity: .12; }
.hero.photo .wrap { grid-template-columns: 1.3fr .7fr; min-height: 560px; }
.hero-badge { justify-self: center; width: 210px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden; }
.hero-badge img { width: 100%; height: 100%; object-fit: cover; }
.search { margin-top: -44px; position: relative; z-index: 3; }
.search form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 16px; align-items: end; }
@media (max-width: 700px) { .search form { grid-template-columns: 1fr; } .hero.photo .wrap { grid-template-columns: 1fr; min-height: 0; } .hero-badge { display: none; } }
.pkg .art.photo { height: 190px; background-size: cover; background-position: center; }
.pkg .art.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(43,27,30,.45)); }
.pkg .seats { position: absolute; bottom: 10px; inset-inline-end: 12px; z-index: 1; color: #fff; font-size: 13px; font-weight: 700; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps4 .card { padding: 22px; position: relative; }
.steps4 .card::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; inset-inline-start: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--ruby); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps4 h3 { font-family: var(--f-body); font-size: 1.05rem; color: var(--ink); margin: 6px 0 4px; }
.steps4 p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 160px 160px; gap: 8px; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.gallery div { background-size: cover; background-position: center; }
.gallery div:first-child { grid-row: 1 / 3; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 200px; } .gallery div:not(:first-child) { display: none; } }
.hotel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 700px) { .hotel-cards { grid-template-columns: 1fr; } }
.hotel { padding: 16px 18px; }
.hotel .city { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hotel .name { font-size: 1.15rem; font-weight: 700; margin: 2px 0; }
.hotel .dist { display: inline-flex; align-items: center; gap: 6px; background: var(--ruby-soft); color: var(--ruby-deep); border-radius: 99px; padding: 3px 12px; font-weight: 700; font-size: 14px; margin: 6px 0; }
.hotel iframe { width: 100%; height: 220px; border: 0; border-radius: 10px; margin-top: 10px; }
.linkbtn { background: none; border: 0; color: var(--ruby); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.timeline { list-style: none; padding: 0; margin: 0 0 26px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 19px; width: 2px; background: var(--ruby-soft); }
.timeline li { position: relative; padding-inline-start: 56px; margin-bottom: 16px; }
.timeline .dot { position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--ruby); color: var(--ruby); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.timeline .dot.makkah { background: var(--ruby); color: #fff; } .timeline .dot.madinah { background: #2f6d4f; border-color: #2f6d4f; color: #fff; } .timeline .dot.taif, .timeline .dot.arafat { background: var(--gold); border-color: var(--gold); color: #fff; }
.timeline b { display: block; } .timeline p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.dep-row-note { display: block; font-size: 12px; color: var(--gold); font-weight: 700; }
.dep-hotels { font-size: 13px; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { padding: 20px; } .review .stars { color: var(--gold); letter-spacing: 2px; } .review p { margin: 8px 0 12px; } .review small { color: var(--muted); }
.sched { width: 100%; }
.sched td { font-size: 15px; }
.uprow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.uprow input[type=file] { display: none; }
.uprow label.btn { margin: 0; color: #fff; font-size: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font: inherit; cursor: pointer; }
.tabs button.on { background: var(--ruby); color: #fff; border-color: var(--ruby); }
.doclinks { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); color: #7a5520; font-size: 15px; }
.rating-input { display: flex; gap: 4px; flex-direction: row; } .rating-input button { background: none; border: 0; font-size: 28px; color: #ddd; cursor: pointer; padding: 0 2px; } .rating-input button.on { color: var(--gold); }
.credits li { margin-bottom: 8px; }
@media (max-width: 600px) {
  section.block { padding: 44px 0; }
  .top .wrap { justify-content: center; } .top .wrap > span { display: none; }
  header.main .wrap { min-height: 64px; } .logo img { width: 44px; height: 44px; } .logo b { font-size: 1.1rem; }
  nav.menu { top: 64px; }
  table { font-size: 14px; } th, td { padding: 8px 6px; }
  .detail .side { position: static; }
  .gift { padding: 20px; }
  .hide-sm { display: none; }
  .card { border-radius: 12px; }
}
.show-sm { display: none; }
@media (max-width: 600px) { .show-sm { display: block; margin-top: 4px; } }
