@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* =====================
   RESET
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #0b0b0b;
    color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =====================
   HEADER
===================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(212,175,55,0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.logo img {
    height: 52px;
    display: block;
}

/* =====================
   NAV - DESKTOP
===================== */
nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: white;
}

/* =====================
   HAMBURGER BUTTON
===================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: 0.3s;
}

/* =====================
   LANGUAGE BUTTON
===================== */
.lang-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 6px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.lang-btn:hover {
    background: #d4af37;
    color: #000;
}

/* =====================
   HERO
===================== */
.hero {
    min-height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.75)),
        url('https://uploads.onecompiler.io/44c8yzxkc/44c9eyzvb/WhatsApp%20Image%202026-04-16%20at%2010.15.55%20PM.jpeg') center center / cover no-repeat;
    padding: 40px 20px;
}

.hero-overlay {
    max-width: 750px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero p {
    color: #cccccc;
    margin-bottom: 24px;
    font-size: 17px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-block;
    background: #d4af37;
    color: #000000;
    text-decoration: none;
    padding: 11px 26px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    font-family: inherit;
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(212,175,55,0.25);
}

.btn-glass {
    display: inline-block;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    text-decoration: none;
    padding: 11px 26px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-size: 15px;
}

.btn-glass:hover {
    background: #d4af37;
    color: #000;
}

/* =====================
   SECTIONS
===================== */
.content-sec,
.car-rental-sec,
.available-cars-sec,
.details-sec {
    padding: 70px 8%;
    text-align: center;
}

.gold-title {
    color: #d4af37;
    font-size: 30px;
    margin-bottom: 8px;
}

/* =====================
   CARDS
===================== */
.packages-grid,
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.package-card,
.car-card {
    background: #141414;
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.package-card:hover,
.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(212,175,55,0.12);
}

/* صور الباقات - مربعة */
.packages-grid .package-card img,
.cars-grid .car-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.package-info {
    padding: 16px;
}

.package-info h3 {
    margin-bottom: 6px;
    font-size: 20px;
}

.package-info p {
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.price {
    color: #d4af37 !important;
    font-size: 20px;
    font-weight: bold;
}

/* =====================
   FORMS
===================== */
.car-search-box,
.contact-form {
    max-width: 820px;
    margin: auto;
    background: #141414;
    padding: 24px;
    border-radius: 16px;
    display: grid;
    gap: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 520px;
}

.input-group {
    text-align: right;
}

.input-group label {
    color: #d4af37;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
}

.input-group input,
.input-group select,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: #1f1f1f;
    color: white;
    font-family: inherit;
    font-size: 14px;
}

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

/* =====================
   FILTER
===================== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 9px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}

.filter-btn:hover {
    background: #d4af37;
    color: #000;
}

/* =====================
   DETAILS PAGE
===================== */
.details-sec {
    text-align: right;
}

.details-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.details-images {
    width: 45%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.details-images img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 10px;
}

.details-info {
    width: 50%;
}

.details-info h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.details-info p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.booking-box {
    margin-top: 18px;
    padding: 18px;
    background: #141414;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.15);
}

/* =====================
   SEARCH SUMMARY
===================== */
.summary-box {
    max-width: 680px;
    margin: 24px auto 0;
    background: #141414;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(212,175,55,0.15);
    font-size: 14px;
}

/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    text-decoration: none;
    z-index: 9999;
    transition: 0.3s;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* عربي - كلام يمين، صور يسار */
[dir="rtl"] .details-container {
    flex-direction: row;
}

/* إنجليزي - كلام يسار، صور يمين */
[dir="ltr"] .details-container {
    flex-direction: row-reverse;
}

/* =====================
   FOOTER
===================== */
footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(212,175,55,0.15);
    margin-top: 30px;
}

footer p {
    color: #aaaaaa;
}

input[type="date"],
input[type="time"] {
    direction: ltr;
    text-align: left;
}

/* =====================
   MOBILE - max 768px
===================== */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 12px 5%;
    }

    /* إخفاء القائمة وإظهار الهامبرقر */
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: rgba(0,0,0,0.97);
        border-top: 1px solid rgba(212,175,55,0.2);
        padding: 12px 0;
        z-index: 999;
    }

    nav.open {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 12px 6%;
        font-size: 16px;
        border-bottom: 1px solid rgba(212,175,55,0.08);
    }

    nav .lang-btn {
        margin: 12px 6%;
    }

    .hamburger {
        display: flex;
    }

    /* HERO */
    .hero {
        min-height: 55vh;
        background-size: cover;
        background-position: center center;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    /* packages */
    .content-sec,
    .car-rental-sec,
    .available-cars-sec,
    .details-sec {
        padding: 50px 5%;
    }

    .packages-grid,
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* details page */
    .details-images,
    .details-info {
        width: 100%;
    }

    .details-container {
    flex-direction: column;
}

    .details-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* car search grid */
@media (min-width: 600px) {
    .car-search-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-search-box .btn {
        grid-column: 1 / -1;
    }
}

/* عربي - كلام يمين، صور يسار */
[dir="rtl"] .details-container {
    flex-direction: row;
}

/* إنجليزي - صور يسار، كلام يمين */
[dir="ltr"] .details-container {
    flex-direction: row;
}

[dir="ltr"] .details-sec {
    text-align: left;
}

/* جوال */
@media (max-width: 768px) {
    [dir="ltr"] .details-sec {
        text-align: left;
    }
    
    [dir="rtl"] .details-sec {
        text-align: right;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.details-images.cars-layout {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.details-images.cars-layout img {
    aspect-ratio: 4 / 3;
    max-height: 280px;
}

.details-images.single-image {
    grid-template-columns: 1fr;
}

.details-images.single-image img {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.about-text{
    white-space: pre-line;
    line-height: 2;
    max-width: 1000px;
    margin: auto;
}

[data-lang="about_slogan"] {
    white-space: pre-line;
    font-style: italic;
    text-align: center;
    color: #d4af37;
    font-size: 1.1rem;
    margin: 15px 0;
}