/* ── Variables ─────────────────────────────────────────── */
:root {
    --primary: #c8102e;
    --primary-dark: #9e0c24;
    --secondary: #00897b;
    --gold: #d4a843;
    --dark: #0f0f0f;
    --dark-2: #1c1c1c;
    --mid: #4a4a4a;
    --light: #f7f5f2;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
}

[dir="rtl"] body,
[dir="rtl"] { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }

img { max-width: 100%; display: block; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.site-header.scrolled .brand-text,
.site-header.scrolled .nav-anchor { color: var(--dark); }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-flame {
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}

.brand-text {
    font-size: 1.15rem;
    color: var(--white);
    letter-spacing: -0.3px;
    transition: color var(--transition);
}

.brand-text strong { font-weight: 800; }

.nav-anchor {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--transition);
}

.nav-anchor:hover { color: var(--gold); }

.site-header.scrolled .nav-anchor { color: var(--mid); }
.site-header.scrolled .nav-anchor:hover { color: var(--primary); }

.btn-header-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    border: none;
}

.btn-header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.35) 60%, rgba(200,16,46,0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    max-width: 820px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--primary);
    color: var(--white);
    padding: 15px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(200,16,46,0.45);
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 8px 28px rgba(200,16,46,0.5);
}

.btn-hero-ghost {
    background: transparent;
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-hero-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-hint span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-hint span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0; top: 20px; }
}

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
    background: var(--dark);
    padding: 28px 0;
}

.stat-item {
    padding: 12px 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.08);
}

[dir="rtl"] .stat-item:last-child { border-left: none; }

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Content Sections ──────────────────────────────────── */
.content-section { padding: 100px 0; }

.section-alt { background: var(--light); }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(200,16,46,0.08);
    border-radius: 50px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.section-body {
    font-size: 1.05rem;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--mid);
    font-weight: 500;
}

.highlight-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
}

/* ── Image Frame ───────────────────────────────────────── */
.img-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.img-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    z-index: 1;
}

.section-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img-frame:hover .section-img { transform: scale(1.04); }

.img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

[dir="rtl"] .img-badge { left: auto; right: 20px; }

/* ── Nature Cards ──────────────────────────────────────── */
.nature-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.nature-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nature-card:hover img { transform: scale(1.06); }

.nature-card-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── Pricing ───────────────────────────────────────────── */
.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.price-card-featured {
    border: 2px solid var(--primary);
    background: var(--white);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    white-space: nowrap;
}

.price-card-header { margin-bottom: 24px; }

.price-tier {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
}

.price-card-featured .price-tier { color: var(--secondary); }

.price-amount {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--dark);
    margin-top: 8px;
    line-height: 1;
}

.price-card-featured .price-amount { color: var(--dark); }

.price-amount span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mid);
}

.price-card-featured .price-amount span { color: var(--mid); }

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-features li {
    font-size: 0.9rem;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card-featured .price-features li { color: var(--mid); }

.price-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: rgba(0,137,123,0.12);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.price-card-featured .price-features li::before {
    background: rgba(212,168,67,0.2);
    color: var(--gold);
}

.btn-price-primary {
    background: var(--primary);
    color: var(--white);
    padding: 13px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    border: none;
    display: block;
}

.btn-price-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-price-outline {
    background: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    border: 2px solid var(--primary);
    transition: all var(--transition);
    display: block;
}

.btn-price-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(200,16,46,0.6) 100%);
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--dark-2);
    padding: 48px 0 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.78rem;
    margin: 0;
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.lang-btn-active {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

.site-header.scrolled .lang-btn {
    color: var(--mid);
    border-color: rgba(0,0,0,0.2);
}

.site-header.scrolled .lang-btn:hover {
    color: var(--dark);
    border-color: rgba(0,0,0,0.4);
}

.site-header.scrolled .lang-btn-active {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

/* ── Blazor Error UI ───────────────────────────────────── */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0; left: 0; right: 0;
    padding: 12px 20px;
    position: fixed;
    z-index: 9999;
    display: none;
    font-size: 0.85rem;
}

#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .content-section { padding: 64px 0; }
    .section-img { height: 280px; }
    .nature-card img { height: 220px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-bottom: none; }
    [dir="rtl"] .stat-item { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ── Reservation Page ──────────────────────────────────── */
.reservation-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.reservation-bg .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reservation-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.5) 60%, rgba(200,16,46,0.2) 100%);
}

.reservation-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 100px 1rem 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stepper */
.res-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    width: 100%;
    max-width: 560px;
}

.res-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.res-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    background: var(--white);
    color: var(--mid);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.res-step.active .res-step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(200,16,46,0.35);
}

.res-step.done .res-step-circle {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.res-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--white);
    white-space: nowrap;
}

.res-step.active .res-step-label { color: var(--white); }
.res-step.done .res-step-label { color: var(--white); }

.res-step-line {
    flex: 1;
    height: 2px;
    background: rgba(0,0,0,0.1);
    margin-bottom: 22px;
    transition: background var(--transition);
}

.res-step-line.done { background: var(--secondary); }

/* Card */
.res-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 40px;
    width: 100%;
    max-width: 760px;
}

/* Type Selection */
.res-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.res-type-option {
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.res-type-option:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(200,16,46,0.1);
    transform: translateY(-2px);
}

.res-type-option.selected {
    border-color: var(--primary);
    background: rgba(200,16,46,0.04);
    box-shadow: 0 4px 20px rgba(200,16,46,0.15);
}

.res-type-icon { font-size: 2.4rem; margin-bottom: 12px; }

.res-type-option h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.res-type-option p {
    font-size: 0.88rem;
    color: var(--mid);
    line-height: 1.6;
    margin: 0;
}

/* Stars Grid */
.res-stars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.res-star-option {
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mid);
    transition: all var(--transition);
}

.res-star-option:hover { border-color: var(--gold); color: var(--dark); }

.res-star-option.selected {
    border-color: var(--gold);
    background: rgba(212,168,67,0.08);
    color: var(--dark);
}

/* Tourist Cards */
.res-tourist-card {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 20px;
    background: var(--light);
}

.res-tourist-card:last-of-type { margin-bottom: 0; }

.res-tourist-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 16px;
}

.res-switch-row {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    height: 100%;
    min-height: 46px;
}

/* Navigation */
.res-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* Success */
.res-success {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 60px 40px;
    max-width: 480px;
    width: 100%;
}

.res-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.res-success h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.res-success p { color: var(--mid); line-height: 1.7; }

@media (max-width: 600px) {
    .res-type-grid { grid-template-columns: 1fr; }
    .res-stars-grid { grid-template-columns: 1fr 1fr; }
    .res-card { padding: 24px 16px; }
    .res-stepper { gap: 0; }
    .res-step-label { display: none; }
}
