/* ============================================
   Hôtel Leila — Stylesheet
   Aesthetic: Refined Mediterranean Luxury
   ============================================ */

:root {
    --gold:       #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark:  #9B7B2E;
    --dark:       #1A1A1A;
    --dark-soft:  #2D2D2D;
    --cream:      #F8F4EE;
    --cream-dark: #EDE6D8;
    --text:       #3A3A3A;
    --text-muted: #7A7A7A;
    --white:      #FFFFFF;
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.18);
    --radius:     4px;
    --radius-lg:  12px;
    --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

body.lang-ar {
    font-family: 'Scheherazade New', 'Raleway', sans-serif;
    font-size: 17px;
    line-height: 1.9;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Scheherazade New', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}
.btn-dark:hover { background: var(--dark-soft); }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26,26,26,0.96);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.logo-star { color: var(--gold); margin-right: 0.3rem; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1.5px;
    background: var(--gold);
    transition: transform var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--white);
}
.nav-menu a:hover::after, .nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.lang-btn {
    background: rgba(201,168,76,0.2) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(201,168,76,0.4) !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
}
.lang-btn:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
}
.lang-btn::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,26,26,0.3) 0%,
        rgba(26,26,26,0.2) 50%,
        rgba(26,26,26,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    animation: fadeUp 1s ease 0.3s both;
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:translateY(0); }
}

.hero-tag {
    display: inline-block;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.5);
    color: var(--gold-light);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    z-index: 2;
}
.hero-scroll span { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- About Section ---- */
.about { padding: 6rem 0; background: var(--cream); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--gold);
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    box-shadow: var(--shadow-md);
}
.about-badge .num  { font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge .lbl  { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }

.about-text .section-subtitle { max-width: none; }

.about-text p {
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.about-feature::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
}

/* ---- Rooms ---- */
.rooms { padding: 6rem 0; }

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
}

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

.room-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.room-card:hover .room-image img { transform: scale(1.06); }

.room-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.room-body { padding: 1.5rem; }
.room-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.room-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.room-feature-tag {
    background: var(--cream);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.room-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-dark);
}

.room-capacity { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Services ---- */
.services { padding: 6rem 0; background: var(--dark); }
.services .section-title { color: var(--white); }
.services .section-subtitle { color: rgba(255,255,255,0.5); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.service-card:hover {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
}

.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.75rem; }
.service-card p { color: rgba(255,255,255,0.55); font-size: 0.95rem; }

/* ---- Gallery ---- */
.gallery { padding: 6rem 0; background: var(--cream); }

.gallery-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--cream-dark);
    background: var(--white);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.05em;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.6);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay p { color: var(--white); font-size: 0.9rem; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- Contact ---- */
.contact { padding: 6rem 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 46px;
    height: 46px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-body h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-item-body p, .contact-item-body a { color: var(--text); font-size: 1rem; }
.contact-item-body a:hover { color: var(--gold); }

/* Form */
.contact-form {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-group textarea { height: 130px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Map */
.map-section { background: var(--cream-dark); }
.map-section iframe { width: 100%; height: 350px; border: none; display: block; filter: grayscale(20%); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: var(--dark);
    padding: 9rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.15) 0%, transparent 70%);
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255,255,255,0.5); position: relative; margin-top: 0.75rem; }

/* ---- Divider ---- */
.divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.25rem 0;
}
.divider.center { margin: 1.25rem auto; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-badge { right: 0.5rem; bottom: 0.5rem; }
    .about-image-wrap img { height: 350px; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.25rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        transition: transform 0.3s ease;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { font-size: 1rem; padding: 0.75rem 0; }
    .nav-toggle { display: flex; }

    .rooms-grid, .services-grid, .gallery-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
}

/* ---- RTL Adjustments ---- */
[dir="rtl"] .logo-star { margin-right: 0; margin-left: 0.3rem; }
[dir="rtl"] .room-price-badge { right: auto; left: 1rem; }
[dir="rtl"] .about-badge { right: auto; left: -1.5rem; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .about-features { flex-direction: row-reverse; }
[dir="rtl"] .nav-menu { inset-inline-end: 0; }
[dir="rtl"] .lightbox-close { right: auto; left: 1.5rem; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.pb-0 { padding-bottom: 0 !important; }



/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-col p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
}
.footer-col a {
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links li a { font-size: 0.92rem; display: flex; align-items: center; gap: 0.4rem; }
.footer-links li a::before { content: '→'; color: var(--gold); font-size: 0.75rem; }
.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2.5rem; } }
[dir="rtl"] .footer-links li a::before { content: '←'; }