/* ===================================================================
   FILE: styles.css
   =================================================================== */

:root {
    --primary-color: #1D3557;
    --secondary-color: #457B9D;
    --accent-color: #E63946;
    --light-color: #F1FAEE;
    --text-color: #333;
    --white-color: #FFFFFF;
}

body {
    font-family: 'Sarabun', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
}

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

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 700;
}

h2.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}


section {
    padding: 60px 20px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white-color);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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


.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* --- Language Switcher --- */
.lang-switcher {
    margin-left: 40px;
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 5px;
}

.lang-switcher a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.lang-switcher a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Hero Section (For Homepage) --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1528181304800-259b08848526?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 150px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.3em;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.cta-button:hover {
    background-color: #d02c39;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

/* --- Content Grid & Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.4em;
}

.card-content p {
    margin-bottom: auto; /* Pushes price and button down */
}

.card-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.3em;
    margin-top: 20px;
}

.card-button {
    display: block;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    margin-top: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.card-button:hover {
    background-color: var(--primary-color);
}


/* --- Contact Page Specifics --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
}

.contact-form-container, .contact-info-container {
    padding: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Important for padding */
    font-family: inherit;
    font-size: 1em;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #d02c39;
}

.contact-info-container p {
    margin-bottom: 20px;
    font-size: 1.1em;
}
.contact-info-container p strong {
    color: var(--primary-color);
}
.contact-info-container a {
    color: var(--secondary-color);
    text-decoration: none;
}
.contact-info-container a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

/* --- Guide Info Box (from cars.html) --- */
.guide-info-box {
    background-color: #e0f2f1; /* สีเขียวมิ้นท์อ่อน */
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin: 0 auto 50px auto;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.guide-info-box h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--primary-color);
}
.guide-info-box p {
    font-size: 1.2em;
    margin-bottom: 0;
}


/* --- Responsive for Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real site, use JS for a hamburger menu */
    }
    .hero h1 {
        font-size: 2.5em;
    }
    h2.section-title {
        font-size: 2.2em;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
