/* Global styling for namnao.com */

:root {
    --bg-dark: #070d19;
    --primary: #064e3b;
    --primary-light: #10b981;
    --accent: #d97706;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Sarabun', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(7, 13, 25, 0.7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.btn-cta {
    background-color: var(--primary-light);
    color: var(--bg-dark) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #34d399;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(7, 13, 25, 0.95)), url('https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1200') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px 0;
    background: linear-gradient(to right, #ffffff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 35px 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #34d399;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Tracker Section */
.tracker-section {
    padding: 0 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.tracker-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.weather-widget {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.weather-widget h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
}

.temp-display {
    display: flex;
    align-items: flex-start;
}

.temp-num {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.temp-unit {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 5px;
}

.weather-desc {
    font-size: 15px;
}

.weather-desc strong {
    font-size: 18px;
    color: var(--text-white);
}

.weather-desc span {
    color: var(--text-muted);
}

.mist-meter {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}

.mist-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mist-percent {
    color: var(--primary-light);
    font-weight: 700;
}

.mist-bar {
    height: 8px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.mist-fill {
    height: 100%;
    background-color: var(--primary-light);
    border-radius: 10px;
}

.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fact-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.fact-icon {
    font-size: 28px;
}

.fact-card h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
}

.fact-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Sections */
.section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(6, 78, 59, 0.85);
    backdrop-filter: blur(4px);
    color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
}

.card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
    height: 63px;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
}

.price {
    font-weight: 700;
    color: var(--primary-light);
}

.btn-card {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-light);
    color: var(--bg-dark);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.btn-card:hover {
    background-color: #34d399;
}

.btn-shopee {
    background-color: var(--accent);
    color: white;
}

.btn-shopee:hover {
    background-color: #f59e0b;
}

/* AI Trip Planner & Partners Directory */
.planner-section {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.2) 0%, rgba(7, 13, 25, 0.3) 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
}

.planner-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.planner-form-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
}

.planner-form-card h3 {
    margin: 0 0 20px 0;
    color: var(--primary-light);
    font-size: 20px;
}

.planner-result-card {
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.empty-result-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
    border: 2px dashed rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.directory-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.directory-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.2);
}

.directory-card h4 {
    margin: 0 0 10px 0;
    color: var(--primary-light);
    font-size: 16px;
}

.directory-card p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-info {
    font-weight: 700;
    color: var(--text-white);
    background: rgba(255,255,255,0.04);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

/* Travel Spots Layout */
.spot-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.spot-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
}

.spot-card h3 {
    margin: 0 0 12px 0;
    color: var(--primary-light);
}

.spot-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(7, 13, 25, 0.95);
    padding: 40px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .tracker-container {
        grid-template-columns: 1fr;
    }
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .booking-section {
        padding: 40px 20px !important;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Interactive Option Cards styling */
.planner-option-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.planner-option-group > label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.3px;
}

.option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-cards.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-sizing: border-box;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.option-card.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.12);
}

.card-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.card-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}

.option-card.active .card-label {
    color: var(--primary-light);
}

.card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.btn-planner-submit {
    background: linear-gradient(135deg, var(--primary-light) 0%, #059669 100%);
    color: var(--bg-dark);
    font-weight: 700;
    font-family: inherit;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-planner-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    filter: brightness(1.08);
}

/* Adjust grid for wider forms */
.planner-grid {
    grid-template-columns: 1.1fr 1.2fr !important;
}

@media (max-width: 900px) {
    .planner-grid {
        grid-template-columns: 1fr !important;
    }
    .option-cards.cards-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Promotional Partner Banners Styling */
.promo-banners-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    box-sizing: border-box;
}

.promo-banner {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white;
    box-sizing: border-box;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 1;
}

.promo-banner > * {
    position: relative;
    z-index: 2;
}

.promo-banner.agoda-banner {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.8) 0%, rgba(7, 13, 25, 0.95) 100%), url('images/little_winter_farmstay.jpg') no-repeat center center/cover;
}

.promo-banner.shopee-banner {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.8) 0%, rgba(7, 13, 25, 0.95) 100%), url('images/camping_tent.jpg') no-repeat center center/cover;
}

.promo-banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.promo-banner.agoda-banner:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.promo-banner.shopee-banner:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.promo-banner h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 12px 0;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-banner p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.promo-banner-btn {
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    background: var(--primary-light);
    color: var(--bg-dark);
    transition: all 0.3s ease;
}

.promo-banner:hover .promo-banner-btn {
    transform: scale(1.05);
    filter: brightness(1.08);
}

@media (max-width: 800px) {
    .promo-banners-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
