@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'TWKLausanne-250';
    src: url("/data/tms/website/html/brand/font/TWKLausanne-250.ttf") format('truetype'),
        url("/data/tms/website/html/brand/font/TWKLausanne-250.woff") format('woff'),
        url("/data/tms/website/html/brand/font/TWKLausanne-250.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'TWKLausanne-300';
    src: url("/data/tms/website/html/brand/font/TWKLausanne-300.ttf") format('truetype'),
        url("/data/tms/website/html/brand/font/TWKLausanne-300.woff") format('woff'),
        url("/data/tms/website/html/brand/font/TWKLausanne-300.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'TWKLausanne-500';
    src: url("/data/tms/website/html/brand/font/TWKLausanne-500.ttf") format('truetype'),
        url("/data/tms/website/html/brand/font/TWKLausanne-500.woff") format('woff'),
        url("/data/tms/website/html/brand/font/TWKLausanne-500.woff2") format('woff2');
    font-display: swap;
}

:root {
    --primary-color: #ff7b00;
    --dark-bg: #121212;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'TWKLausanne-300', 'Outfit', sans-serif;
    color: var(--text-light);
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-menu-item {
    display: inline-block;
}

/* Submenu dropdown panel - Full-width mega menu styled relative to site-header */
.models-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* Premium white background with 0.3 opacity as requested */
    backdrop-filter: blur(12px);
    /* Background blur */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); */
    padding: 20px 60px;
    box-sizing: border-box;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(15px);
}

/* Hover bridge to keep dropdown open when moving cursor */
.models-dropdown-panel::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
}

.dropdown-trigger:hover .models-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Standard dynamic submenu dropdown panel - Full width horizontal list */
.submenu-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 60px;
    box-sizing: border-box;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.submenu-dropdown-panel::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
}

.submenu-dropdown-panel.align-left {
    justify-content: flex-start;
}

.submenu-dropdown-panel.align-right {
    justify-content: flex-end;
}

/* Hover to open */
.submenu-trigger:hover .submenu-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header link arrow styling when menu is hovered */
.submenu-trigger>.header-link {
    position: relative;
}

.submenu-trigger:hover>.header-link::after {
    content: "";
    position: absolute;
    bottom: -33px;
    /* Align exactly with the top border of the dropdown panel */
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.15) transparent;
    /* Matching border color */
    z-index: 1002;
}

.submenu-trigger:hover>.header-link::before {
    content: "";
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.08) transparent;
    /* Matching submenu glass background */
    z-index: 1003;
}

/* Submenu grid */
.models-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    /* Generous spacing between the 3 cars */
}

/* Individual car card */
.car-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.car-card-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.car-card:hover .car-card-img {
    transform: scale(1.05);
}

.car-card-title {
    font-size: 15px;
    color: #000;
    /* elegant regular gray text */
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.header-left,
.header-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-right-placeholder {
    display: none;
}

.header-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.header-link:hover {
    color: #F2F2F2 !important;
    text-decoration: none !important;
    opacity: 1;
}

.dropdown-trigger:hover>.header-link,
.submenu-trigger:hover>.header-link {
    color: #F2F2F2 !important;
    text-decoration: none !important;
    opacity: 1;
}

.logo-main {
    height: 35px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* background-image: url('/media/bg-placeholder.jpg'); */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* Because the provided image has the text baked in, we'll keep the DOM clean 
   for the visual presentation, but add invisible semantic elements. */

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #0f0f0f;
    display: flex;
    padding: 15px 20px;
    border-radius: 8px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    width: 320px;
    /* fixed width for the entire panel to distribute equally */
    box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-actions.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 11px;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-align: center;
}

.action-item:hover {
    opacity: 1;
}

.action-item img {
    width: 28.8px;
    /* 24px * 1.20 = 28.8px (เพิ่มขึ้น 20%) */
    height: 28.8px;
    object-fit: contain;
}

/* Footer */
.site-footer {
    background: #111111;
    padding: 40px 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.footer-logo {
    position: absolute;
    left: 0;
    height: 25px;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: auto;
}

.footer-links .grid-spacer,
.footer-links .footer-divider {
    display: none;
}

.footer-links-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-icon {
    width: 26.4px;
    /* 22px * 1.20 = 26.4px (เพิ่มขึ้น 20%) */
    height: 26.4px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
}

.footer-bottom a {
    color: #666;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Hero Section & Premium Overlay styling */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 480px;
    /* ตรงตามกรอบดีไซน์ */
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* ระยะห่างระหว่างข้อความกับแผงปุ่ม */
    align-items: center;
}

/* หากมีการกำหนด position: absolute (จากหลังบ้าน) ให้ทำการ center แนวดิ่งแบบอัตโนมัติ */
.hero-content[style*="position: absolute"] {
    transform: translateY(-50%);
}

.hero-tagline {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* ระยะห่างระหว่าง โลโก้ และ ข้อความอักษร */
    align-items: center;
}

.hero-tagline img {
    height: 40px;
    /* ขนาดโลโก้เรียบหรูตามแบบดีไซน์ */
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero-tagline h2,
.bannerTitle {
    font-size: 22px;
    /* ปรับขนาดฟอนต์เป็น 22px ตามที่ต้องการ */
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 20px;
    /* กำหนด line-height เป็น 20px ตามที่ต้องการ */
    text-shadow: none;
}

.bannerTitle {
    display: block;
}

/* ปุ่มดีไซน์ใหม่ แบบกล่องพรีเมียมซ้อนกันแนวตั้ง */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* ระยะห่างระหว่างปุ่มบนและล่าง */
    width: 100%;
}

.hero-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.15);
    /* โปร่งใสเรียบหรูเห็นเนื้อวิดีโอ */
    transition: all 0.3s ease;
    text-align: center;
    margin: auto;
}

.hero-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Hero background video style */
.hero-video {
    position: absolute;
    top: 0;
    left: -2%;
    width: 105%;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

/* ==========================================================================
   Responsive & Mobile Styles
   ========================================================================== */
.header-mobile-toggle {
    display: none;
}



/* Custom Utilities */
.bg-black {
    background-color: #000000 !important;
}

/* ==========================================================================
   News Page Styles
   ========================================================================== */
.news-page-section {
    padding: 120px 5% 80px 5%;
    background-color: #121212;
    min-height: 100vh;
}

.news-page-section .container {
    max-width: 1600px !important;
}



.news-header-container {
    margin-bottom: 50px;
}

.news-page-title {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.news-title-underline {
    border: none;
    height: 2px;
    background-color: #ffffff;
    width: 60px;
    margin: 0;
}

/* Featured News Card */
.featured-news-card {
    display: flex;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.featured-news-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-image-container {
    width: 55%;
    position: relative;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-news-card:hover .featured-image-container img {
    transform: scale(1.03);
}

/* Orange Overlay badge */
.orange-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #ff7b00;
    color: #ffffff;
    padding: 20px 30px;
    max-width: 85%;
    font-weight: 300;
    box-sizing: border-box;
    z-index: 2;
}

.orange-overlay-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
}

.orange-overlay-sub {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.featured-content-container {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.featured-news-card:hover .featured-title {
    color: #ff7b00;
}

.news-date-badge {
    display: inline-block;
    background-color: #ccc;
    color: #121212;
    font-size: 11px;
    font-weight: 400;
    padding: 6px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    width: fit-content;
}

.featured-description {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 30px;
}

.read-more-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more-link i {
    font-size: 10px;
}

.featured-news-card:hover .read-more-link {
    color: #ff7b00;
    gap: 12px;
}

/* News Grid */
.news-grid-container {
    display: table;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.news-grid-card {
    display: inline-block;
    width: 30%;
    margin-right: 5%;
    margin-bottom: 40px;
    vertical-align: top;
    text-decoration: none !important;
    color: #ffffff !important;
    box-sizing: border-box;
}

.news-grid-card:nth-child(3n) {
    margin-right: 0;
}

.grid-card-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.grid-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-grid-card:hover .grid-card-image-container img {
    transform: scale(1.03);
}

.news-grid-card:hover .grid-card-image-container {
    border-color: rgba(255, 255, 255, 0.25);
}

.grid-card-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.news-grid-card:hover .grid-card-title {
    color: #ff7b00;
}

/* Responsive Styles */




/* ==========================================================================
   News Detail Page Styles
   ========================================================================== */
.news-detail-section {
    padding: 120px 5% 80px 5%;
    background-color: #121212;
    min-height: 100vh;
}

.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
}

.news-back-arrow {
    color: #ffffff;
    font-size: 26px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-back-arrow:hover {
    opacity: 0.7;
    transform: translateX(-5px);
    color: #ff7b00;
}

.news-header-content {
    flex: 1;
}

.news-detail-title {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.news-detail-main-image {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-detail-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    max-width: 100%;
}

.news-detail-body p {
    margin-bottom: 25px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 35px auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Side-by-side Images (Inline Block method) */
img.img-half {
    width: 48% !important;
    max-width: 48% !important;
    display: inline-block !important;
    margin: 15px 1% !important;
    vertical-align: top;
}

/* Side-by-side Images (Flex Row wrapper method) */
.news-detail-body .images-row,
.images-row {
    display: flex;
    gap: 20px;
    margin: 35px 0;
    width: 100%;
}

.news-detail-body .images-row img,
.images-row img {
    flex: 1;
    width: 49% !important;
    max-width: 50% !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
}

.news-detail-body .images-row p,
.images-row p {
    flex: 1;
    margin: 0 !important;
}

.news-detail-body .images-row p img,
.images-row p img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
}



.news-detail-body h2,
.news-detail-body h3 {
    color: #ffffff;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.news-detail-body a {
    color: #ff7b00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-detail-body a:hover {
    color: #ffffff;
}

/* Responsive News Detail */


/* ==========================================================================
   Dealer List Page Styles
   ========================================================================== */
.dealer-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 5%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dealer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.dealer-hero-content {
    position: relative;
    z-index: 2;
}

.dealer-hero-title {
    font-size: 38px;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

.dealer-split-container {
    display: flex;
    width: 100%;
    background-color: #121212;
    min-height: 30vh;
}

.dealer-list-panel {
    width: 45%;
    padding: 50px 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.dealer-heading {
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.dealer-heading-underline {
    display: inline-block;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

.dealer-select-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.dealer-select {
    width: 100%;
    background-color: #222222;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 300;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dealer-select:focus {
    border-color: #ff7b00;
    outline: none;
}

.dealer-select-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
    font-size: 12px;
}

.dealer-results-count {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 20px;
    font-weight: 300;
}

.dealer-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Dealer List */
.dealer-cards-list::-webkit-scrollbar {
    width: 6px;
}

.dealer-cards-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.dealer-cards-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.dealer-cards-list::-webkit-scrollbar-thumb:hover {
    background: #ff7b00;
}

.dealer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #272727;
    padding: 20px 25px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.dealer-card:hover {
    background-color: #323232;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dealer-card.active-dealer {
    background-color: #323232;
    border-color: #ff7b00;
}

.dealer-card-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dealer-index-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.dealer-card:hover .dealer-index-circle {
    background-color: #ff7b00;
}

.dealer-card.active-dealer .dealer-index-circle {
    background-color: #ff7b00;
}

.dealer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dealer-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.dealer-address {
    font-size: 13px;
    color: #a0a0a0;
    font-weight: 300;
}

.dealer-card-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dealer-action-btn {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none !important;
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dealer-action-btn:hover {
    color: #ff7b00;
    transform: scale(1.15);
}

.dealer-map-panel {
    width: 55%;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a1a1a;
}

.dealer-map-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 600px;
}

/* Responsive Dealers Page */


/* Global Default Content Link Styling (white text + underline) */
.main-content a:not(.header-link):not(.footer-link):not(.action-item):not(.car-card):not(.colorBtn) {
    color: #ffffff !important;
    text-decoration: underline;
}

.main-content a:not(.header-link):not(.footer-link):not(.action-item):not(.car-card):not(.colorBtn):hover {
    color: #f2f2f2 !important;
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.82);
    /* white transparent as requested */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    background: rgba(30, 30, 30, 0.65);
    /* grey transparent as requested */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-header-left {
    width: 40px;
}

.mobile-nav-header .logo {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 26px;
    /* only X icon */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 40px;
    height: 40px;
    padding: 0;
}

.mobile-nav-screens-container {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.mobile-nav-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.mobile-nav-screen.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-screen.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-screen.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Navigation Lists */
.mobile-nav-list {
    /* display: flex;
    flex-direction: column; */
    gap: 15px;
}

.mobile-nav-link {
    color: #111111 !important;
    /* dark text for contrast on white bg */
    font-size: 15px;
    /* adjusted to 15px as requested */
    font-weight: 400;
    text-decoration: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* dark divider line */
    padding: 15px 0;
    /* vertical padding, 0 horizontal to touch edges */
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    opacity: 0.7;
}

.mobile-nav-link i {
    font-size: 12px;
    opacity: 0.6;
    color: #111111;
    margin-right: 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

/* Language switch in EN | TH style */
.mobile-nav-lang-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* right-aligned */
    gap: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    /* space before the first menu item */
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav-lang-bar .lang-item {
    color: #666666 !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.mobile-nav-lang-bar .lang-item.active {
    color: #111111 !important;
    font-weight: 600;
}

.mobile-nav-lang-bar .lang-divider {
    color: #cccccc;
}

/* Submenu Headers */
.submenu-header {
    margin-bottom: 30px;
}

.submenu-back-btn {
    background: transparent;
    border: none;
    color: #333333;
    font-size: 15px;
    /* adjusted to 15px as requested */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-weight: 500;
}

/* Mobile car thumbnail style on L2 Models screen */
.mobile-menu-car-thumb {
    height: 60px;
    /* slightly larger for prominent design look */
    width: auto;
    object-fit: contain;
    float: left;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 13%; /* Above the floating actions */
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333333;
}

/* Car Model Sticky Sub Nav */
.model-sub-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101; /* Higher than site-header */
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.model-sub-nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.model-sub-nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 50px;
}

.model-sub-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 30px;
}

.model-sub-nav-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.model-sub-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
}

.model-sub-nav-links::-webkit-scrollbar {
    display: none;
}

.model-sub-nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.3s;
}

.model-sub-nav-link:hover, .model-sub-nav-link.active {
    color: #ffffff;
    text-decoration: underline !important;
}

.model-section-anchor {
    position: relative;
    top: -50px;
    visibility: hidden;
}

.desktop-hide { display: none !important; }

