@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --gold: #D4AF37;
    --dark-bg: #050505;
    --card-bg: #0d0d0d;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Playfair Display', serif;
}

p, span, li, div { letter-spacing: 0.5px; }

/* =========================================
   RTL Support (Arabic)
   NOTE: browser handles most RTL layout 
   automatically via html[dir="rtl"].
   Only add overrides for inline-style
   margins/paddings that CSS can't flip.
========================================= */

/* Swap inline-style margin-right on decorative lines */
html[dir="rtl"] [style*="margin-right: 15px"] {
    margin-right: 0 !important;
    margin-left: 15px !important;
}

/* Bootstrap me-3 / me-4 → swap to ms */
html[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

html[dir="rtl"] .me-4 {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
}

/* Bootstrap pe-lg-5 / ps-lg-5 / pe-lg-4 swap */
@media (min-width: 992px) {
    html[dir="rtl"] .pe-lg-5 {
        padding-right: 0 !important;
        padding-left: 3rem !important;
    }

    html[dir="rtl"] .ps-lg-5 {
        padding-left: 0 !important;
        padding-right: 3rem !important;
    }

    html[dir="rtl"] .pe-lg-4 {
        padding-right: 0 !important;
        padding-left: 1.5rem !important;
    }
}

/* text-start → right in RTL */
html[dir="rtl"] .text-start {
    text-align: right !important;
}

/* Card badge position */
html[dir="rtl"] .card-tag {
    left: auto;
    right: 20px;
}

/* Included-item icon margin */
html[dir="rtl"] .included-icon {
    margin-right: 0;
    margin-left: 20px;
}

/* Itinerary items */
html[dir="rtl"] .itinerary-content {
    padding-right: 0;
    padding-left: 20px;
}

/* =========================================
   FOUC Prevention for i18n
   (Hide translatable content while loading)
========================================= */
body.i18n-loading [data-content],
body.i18n-loading [data-content-text],
body.i18n-loading footer .row.g-5,
body.i18n-loading nav .btn-outline-premium {
    opacity: 0;
    transition: opacity 0.2s ease;
}

body:not(.i18n-loading) [data-content],
body:not(.i18n-loading) [data-content-text],
body:not(.i18n-loading) footer .row.g-5,
body:not(.i18n-loading) nav .btn-outline-premium {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Navbar */
.navbar {
    padding: 25px 0;
    transition: all 0.4s ease;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container-fluid {
    min-height: 88px;
    align-items: center;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 15px 0;
}
.navbar.scrolled .container-fluid {
    min-height: 68px;
}
.nav-link { 
    font-weight: 300; 
    margin: 0 15px; /* เพิ่มระยะห่างเมนู */
    transition: 0.3s; 
    color: rgba(255,255,255,0.7) !important; 
    font-size: 0.88rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

.site-brand {
    gap: 18px;
    min-width: 230px;
    padding: 0;
}

.brand-mark {
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
}

.brand-mark span {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.18;
    text-transform: uppercase;
}

.site-brand-logo {
    display: block;
    width: auto;
    max-width: 300px;
    max-height: 92px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.navbar.scrolled .site-brand-logo {
    max-height: 68px;
}

.navbar.scrolled .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.navbar.scrolled .brand-mark span {
    font-size: 1.6rem;
}

.navbar.scrolled .brand-wordmark {
    font-size: 0.86rem;
}

/* Language Dropdown (flag-only) */
.lang-dropdown {
    position: relative;
    margin-left: auto;
    margin-right: 18px;
    z-index: 1000;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.6);
}

.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.lang-trigger svg {
    transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-trigger svg {
    transform: rotate(180deg);
}

.lang-flag {
    display: block;
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(13, 13, 13, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    min-width: 50px;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    text-decoration: none;
    transition: background 0.15s ease;
    border-radius: 2px;
}

.lang-option:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* RTL: flip dropdown position */
html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-dropdown {
    margin-left: 18px;
    margin-right: auto;
}

@media (max-width: 991px) {
    .navbar .container-fluid {
        min-height: 68px;
    }
    .site-brand {
        min-width: 0;
        gap: 12px;
    }
    .site-brand-logo {
        max-width: 190px;
        max-height: 64px;
    }
    .brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
    .brand-mark span {
        font-size: 1.45rem;
    }
    .brand-wordmark {
        font-size: 0.78rem;
        letter-spacing: 2.2px;
    }
    .lang-dropdown {
        order: 3;
        margin: 16px 0 0;
    }
    .lang-menu {
        right: auto;
        left: 0;
    }
}

/* Typography */
.text-gold { color: var(--gold) !important; }
.tracking-wide { letter-spacing: 2px; text-transform: uppercase; }
.tracking-wider { letter-spacing: 4px; text-transform: uppercase; font-size: 0.75rem; }

/* Buttons */
.btn-premium {
    background-color: var(--gold);
    color: #000 !important;
    font-weight: 600;
    border: 1px solid var(--gold);
    padding: 16px 40px; /* ขยายปุ่มให้ใหญ่ขึ้น */
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 0;
    display: inline-block;
    text-decoration: none;
}
.btn-premium:hover { background-color: transparent; color: var(--gold) !important; }

.btn-outline-premium {
    background-color: transparent;
    color: #fff !important;
    font-weight: 400;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 16px 40px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 0;
    display: inline-block;
    text-decoration: none;
}
.btn-outline-premium:hover { border-color: var(--gold); color: var(--gold) !important; }

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding-top: 50px; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    z-index: 2;
}
.scroll-line { width: 1px; height: 40px; background-color: rgba(255,255,255,0.3); margin-top: 10px; }

/* Sections Spacing (ตัวช่วยให้เว็บดูโปร่งขึ้น) */
.section-spacing {
    padding: 150px 0; /* เพิ่มพื้นที่ว่างบน-ล่างให้กว้างขึ้น */
}

/* Three Pillars Cards */
.pillar-card {
    background: var(--card-bg);
    padding: 60px 50px; /* เพิ่มพื้นที่ด้านในกล่อง */
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}
.pillar-card:hover { background: #111; border-color: rgba(212, 175, 55, 0.2); transform: translateY(-5px); }
.pillar-icon { font-size: 2rem; color: var(--gold); margin-bottom: 35px; }

/* General Cards (Featured, Villas, etc) */
.premium-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    height: 100%;
}
.premium-card:hover { border-color: rgba(212, 175, 55, 0.5); }
.premium-card img { width: 100%; height: 300px; object-fit: cover; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.spec-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.spec-value { font-size: 0.95rem; color: #fff; font-weight: 300; }
.link-gold { color: var(--gold); text-decoration: none; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; transition: 0.3s; }
.link-gold:hover { color: #fff; }

.view-all-link { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); text-decoration: none; transition: 0.3s; }
.view-all-link:hover { color: #fff; letter-spacing: 3px; }

/* Testimonial & Stats */
.stat-number { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 3rem; line-height: 1; margin-bottom: 15px; }
.stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.5); }
.testimonial-box { border: 1px solid rgba(212, 175, 55, 0.3); padding: 60px; background: var(--card-bg); position: relative; }
.quote-icon { font-size: 2.5rem; color: var(--gold); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 25px; }

/* Footer */
.footer-title { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; }
.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none; /* เอาเส้นใต้ลิงก์ออก */
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
    transition: 0.3s;
    font-weight: 300;
}
.footer-link:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; margin-top: 80px; }

/* Bespoke Form */
.minimal-input { background: transparent !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; border-radius: 0 !important; color: #fff !important; padding: 12px 0 !important; box-shadow: none !important; }
.minimal-input:focus { border-bottom-color: var(--gold) !important; }
.form-label-small { font-size: 0.65rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; }

/* =========================================
   Villas Page Specific Styles
========================================= */
/* Filter Menu */
.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}
.filter-btn {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: none;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.filter-btn.active {
    background: var(--gold);
    color: #000;
}
.filter-btn:hover:not(.active) {
    color: #fff;
}

/* Card Tag (Top Left inside image) */
.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.55rem;
    letter-spacing: 2px;
    padding: 6px 15px;
    text-transform: uppercase;
    z-index: 2;
}

/* Included Features Box */
.included-box {
    background-color: #080808;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}
.included-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}
.included-icon {
    color: var(--gold);
    font-size: 0.4rem;
    margin-right: 20px;
    transform: rotate(45deg); /* ทำให้สี่เหลี่ยมกลายเป็นสี่เหลี่ยมข้าวหลามตัด (Diamond) */
}

/* =========================================
   Yachts Page Specific Styles
========================================= */
/* Itinerary List */
.itinerary-list {
    max-width: 800px;
    margin: 0 auto;
}
.itinerary-item {
    display: flex;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.itinerary-number {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    width: 60px;
    flex-shrink: 0;
}
.itinerary-content {
    flex-grow: 1;
    padding-right: 20px;
}
.itinerary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
}
.itinerary-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}
.itinerary-duration {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    padding-top: 5px;
}

/* =========================================
   Transfers (Cars) Page Specific Styles
========================================= */
.packages-box {
    background-color: #080808;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 1000px;
    margin: 0 auto;
}
.package-item {
    padding: 50px 40px;
    height: 100%;
}
.package-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff;
}
.package-price {
    font-family: 'Prompt', sans-serif;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 400;
}
.package-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin-top: 15px;
    line-height: 1.8;
}
