:root {
    --bg-primary: #000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255,255,255,.05);
    --text-primary: #fff;
    --text-secondary: rgba(255,255,255,.6);
    --gold: #c5a55a;
    --gold-hover: #d4b66a;
    --gold-dark: #8a7340;
    --border: rgba(255,255,255,.1);
    --font-heading: 'Sarabun', sans-serif;
    --font-body: 'Sen', sans-serif;
    --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hover); }

.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo img { width: 50px; height: 50px; }
.main-nav ul {
    list-style: none; display: flex; gap: 28px;
}
.main-nav a {
    color: var(--text-primary); font-size: 14px; text-transform: uppercase;
    letter-spacing: .05em; font-weight: 400;
    padding: 4px 0; border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold); border-bottom-color: var(--gold);
}

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative;
}
.menu-toggle span {
    display: block; width: 100%; height: 2px; background: var(--text-primary);
    position: absolute; left: 0; transition: .3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

.hero { margin-top: 74px; }
.hero-bg {
    position: relative;
    min-height: 500px;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.6) 100%);
}
.hero-bg h1, .hero-bg h2 {
    position: relative; z-index: 1;
    font-family: var(--font-heading); font-size: 56px; font-weight: 700;
    text-align: center; text-transform: uppercase;
    letter-spacing: .04em;
}

.content-body, .page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    margin: 48px 0 24px;
}
h2.section-heading { font-size: 42px; }
h3.section-heading { font-size: 30px; }

.content-body .block-paragraph,
.page-content .block-paragraph {
    max-width: 800px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content-body .block-image,
.page-content .block-image {
    margin: 32px auto;
    max-width: 900px;
    border-radius: 4px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 2px;
    transition: all .2s;
    cursor: pointer;
}
.btn-primary {
    background: var(--gold); color: #000; border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #000; }
.btn-outline {
    background: transparent; color: var(--gold); border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }
.cta-wrapper { text-align: center; margin: 32px 0; }

.image-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.image-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.image-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.image-card:hover img { transform: scale(1.05); }
.image-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.image-card-overlay h3 {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    margin-bottom: 6px;
}
.image-card-overlay p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}

.faq-section { margin: 48px 0; }
.faq-section-header { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 32px; }
.faq-section-header.image-right { flex-direction: row-reverse; }
.faq-section-image { flex: 0 0 400px; border-radius: 4px; overflow: hidden; }
.faq-items { flex: 1; }

details.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
details.faq-item summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    display: flex; align-items: center; gap: 12px;
    color: var(--text-primary);
}
details.faq-item summary::before {
    content: '+'; font-size: 24px; color: var(--gold);
    flex-shrink: 0; width: 24px; text-align: center;
    transition: transform .2s;
}
details.faq-item[open] summary::before { content: '\2212'; }
details.faq-item .faq-answer {
    padding: 12px 0 4px 36px;
    font-size: 16px; color: var(--text-secondary); line-height: 1.7;
}

.schedule-grid { margin: 40px 0; }
.schedule-day {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.schedule-day h3 {
    font-family: var(--font-heading);
    font-size: 32px; font-weight: 700; font-style: italic;
    margin-bottom: 24px;
}
.schedule-events { list-style: none; }
.schedule-events li {
    padding: 8px 0;
    font-size: 16px;
    display: flex; gap: 16px;
}
.schedule-events .time {
    color: var(--gold); font-weight: 700; flex-shrink: 0; width: 50px;
}
.schedule-day-image { border-radius: 4px; overflow: hidden; }

.listing-group { margin: 48px 0; }
.listing-group-heading {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700;
    text-align: center;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .2s;
}
.car-card:hover { border-color: var(--gold); }
.car-card-image {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.car-card-image img { width: 100%; height: 100%; object-fit: cover; }
.car-card-sold {
    position: absolute; top: 12px; right: 12px;
    background: #c0392b; color: #fff;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.car-card-body { padding: 20px; }
.car-card-title {
    font-family: var(--font-heading); font-size: 18px; font-weight: 700;
    margin-bottom: 4px;
}
.car-card-price {
    font-size: 28px; font-weight: 700; color: var(--gold);
    margin-bottom: 16px;
}
.car-card-specs {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    font-size: 14px; color: var(--text-secondary);
    margin-bottom: 16px;
}
.car-card-specs li::before {
    content: '\2022'; color: var(--gold); margin-right: 6px;
}
.car-card-location {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 12px;
}
.car-card-contact {
    display: inline-block; font-size: 13px;
}

.channels-grid {
    display: flex; justify-content: center; gap: 60px;
    margin: 40px 0;
}
.channel-item { text-align: center; }
.channel-item .channel-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    color: var(--gold);
}
.channel-item h3 {
    font-family: var(--font-heading); font-size: 18px; font-weight: 700;
    margin-bottom: 6px;
}
.channel-item p { font-size: 14px; color: var(--text-secondary); }

.contact-form {
    max-width: 700px; margin: 40px auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-form .full-width { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); font-family: var(--font-body); font-size: 16px;
    border-radius: 2px; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
    grid-column: 1 / -1; justify-self: center;
    margin-top: 8px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255,255,255,.3);
}

.specialists-heading {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700;
    text-align: center;
    margin: 60px 0 32px;
}
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.specialist-card { text-align: center; }
.specialist-photo {
    width: 130px; height: 130px;
    border-radius: 50%; overflow: hidden;
    margin: 0 auto 16px;
    border: 2px solid var(--border);
}
.specialist-photo img { width: 100%; height: 100%; object-fit: cover; }
.specialist-name {
    font-family: var(--font-heading); font-size: 16px; font-weight: 700;
    margin-bottom: 4px;
}
.specialist-location {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 8px;
}
.specialist-links { font-size: 13px; line-height: 1.8; }
.specialist-links a { display: block; }

.gallery-grid {
    columns: 3;
    column-gap: 16px;
    margin: 40px 0;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.03); }

.register-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px;
}
.register-content h1 {
    font-family: var(--font-heading);
    font-size: 36px; font-weight: 700;
    margin-bottom: 24px;
}
.register-content .description {
    font-size: 18px; color: var(--text-secondary);
    margin-bottom: 40px; line-height: 1.7;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-sketch {
    max-width: 300px; margin: 0 auto 24px;
    opacity: .7;
}
.footer-email {
    display: block; color: var(--gold); font-size: 16px;
    margin-bottom: 4px;
}
.footer-phone { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-social {
    display: flex; justify-content: center; gap: 16px;
    margin-bottom: 24px;
}
.footer-social a { color: var(--text-secondary); transition: color .2s; }
.footer-social a:hover { color: var(--gold); }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,.3); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none; position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(0,0,0,.95);
        padding: 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 16px; }

    .hero-bg { min-height: 300px; }
    .hero-bg h1, .hero-bg h2 { font-size: 32px; }

    .image-card-grid { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    .specialists-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { columns: 2; }
    .channels-grid { flex-direction: column; gap: 24px; }
    .contact-form { grid-template-columns: 1fr; }

    .faq-section-header { flex-direction: column !important; }
    .faq-section-image { flex: none; width: 100%; }

    .schedule-day { grid-template-columns: 1fr; gap: 20px; }

    h2.section-heading { font-size: 30px; }
}

/* --- Listing cards (template class names) --- */
.listing-country-heading {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700;
    text-align: center;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.car-listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .2s;
    position: relative;
}
.car-listing-card:hover { border-color: var(--gold); }
.car-listing-card--sold { opacity: .7; }
.listing-sold-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: #c0392b; color: #fff;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.listing-images {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
    background: var(--bg-secondary);
}
.listing-images img { width: 100%; height: 100%; object-fit: cover; }
.listing-no-image {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: var(--text-secondary); font-size: 14px;
}
.listing-image-nav {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px;
    background: rgba(0,0,0,.6); padding: 4px 12px; border-radius: 20px;
}
.listing-nav-prev, .listing-nav-next {
    background: none; border: none; color: #fff; cursor: pointer;
    font-size: 20px; padding: 0 4px;
}
.listing-image-count { font-size: 12px; color: var(--text-secondary); }
.listing-body { padding: 20px; }
.listing-title {
    font-family: var(--font-heading); font-size: 18px; font-weight: 700;
    margin-bottom: 4px;
}
.listing-price {
    font-size: 28px; font-weight: 700; color: var(--gold);
    margin-bottom: 16px;
}
.listing-specs {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    font-size: 14px; color: var(--text-secondary);
    margin-bottom: 16px;
}
.listing-specs li {
    display: flex; justify-content: space-between;
}
.spec-label { color: var(--text-secondary); }
.spec-value { color: var(--text-primary); font-weight: 600; }
.listing-location {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 12px;
}
.listing-contact { font-size: 13px; }
.hero-subheading {
    position: relative; z-index: 1;
    font-size: 20px; color: var(--text-secondary);
    text-align: center; margin-top: 12px;
    font-style: italic;
}
.hero-bg--dark {
    background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.9));
}

@media (max-width: 480px) {
    .specialists-grid { grid-template-columns: 1fr; }
    .gallery-grid { columns: 1; }
}
