/* --------------------
   GLOBAL RESET & BASE STYLES
   -------------------- */
:root {
    --color-primary: #1e90ff; /* Biru terang (Dodger Blue) */
    --color-secondary: #007bff; /* Biru yang sedikit lebih tua */
    --color-text-dark: #212529; /* Hampir hitam */
    --color-text-muted: #6c757d; /* Abu-abu untuk deskripsi */
    --color-text-light: #fff;
    --color-bg-light: #f8f9fa; /* Latar belakang halaman */
    --color-bg-card-default: #fff;
    --color-bg-card-dark: #001f3f; /* Biru tua untuk kartu */
    --color-border: #eee;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --font-family-sans: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-time: 0.3s;

    /* Universal Transition for smooth hovers */
    transition: all var(--transition-time) ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; 
}

/* --------------------
   UTILITIES
   -------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.section {
    padding: 4rem 0; 
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } /* Tambahan untuk konsistensi di travel_map.html */
.mt-4 { margin-top: 1rem; }    /* Tambahan untuk konsistensi di travel_map.html */
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; } /* Tambahan untuk konsistensi di travel_map.html */
.mb-4 { margin-bottom: 1rem; }    /* Tambahan untuk konsistensi di travel_map.html */
.w-full { width: 100%; }          /* Tambahan untuk konsistensi di travel_map.html */
.p-3 { padding: 0.75rem; }        /* Tambahan untuk konsistensi di travel_map.html */
.rounded-lg { border-radius: 0.5rem; } /* Tambahan untuk konsistensi di travel_map.html */
.block { display: block; }        /* Tambahan untuk konsistensi di travel_map.html */
.text-sm { font-size: 0.875rem; }  /* Tambahan untuk konsistensi di travel_map.html */
.font-medium { font-weight: 500; } /* Tambahan untuk konsistensi di travel_map.html */
.text-gray-700 { color: #4b5563; } /* Tambahan untuk konsistensi di travel_map.html */
.text-gray-600 { color: #6b7280; } /* Tambahan untuk konsistensi di travel_map.html */
.text-center { text-align: center; } /* Tambahan untuk konsistensi di world_forecast.html */

/* --- Button & Animation --- */
.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-time) ease-in-out;
    box-shadow: 0 4px 8px var(--color-shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn i {
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn--primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn--search {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    padding: 1rem 1.5rem;
}

.btn--search:hover {
    background-color: #0056b3;
    transform: none;
}

.btn--link {
    background: none;
    color: var(--color-primary);
    padding: 0;
    font-weight: 500;
    box-shadow: none;
    transition: color 0.3s;
}

.btn--link:hover {
    color: var(--color-secondary);
}

/* --------------------
   HEADER & NAVIGATION
   -------------------- */
.header {
    background-color: var(--color-bg-card-default);
    padding: 1rem 0;
    box-shadow: 0 2px 8px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    margin-left: 1.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a--active {
    color: var(--color-primary);
}

/* Underline effect for navigation */
.nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--color-primary);
    transition: width 0.4s ease;
}

.nav a:hover:after,
.nav a--active:after {
    width: 100%;
    left: 0;
    background: var(--color-primary);
}

/* --------------------
   HERO SECTION (HOME)
   -------------------- */
.section--hero {
    padding: 4rem 0 3rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

.hero__title {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 900;
    color: #212529;
}

.hero__description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Pencarian & Geolocation */
.search-box {
    background: linear-gradient(to right, #eaf4ff, #fff);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-bg-card-default);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex-grow: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}
.search-input:focus {
    box-shadow: 0 0 0 2px var(--color-primary) inset;
}


/* --- Card Cuaca --- */
.recent-places h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.weather-cards-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: 250px; 
    align-items: flex-start;
}

.weather-card {
    background-color: var(--color-bg-card-default);
    border-radius: 16px;
    padding: 1.5rem;
    width: 200px;
    height: 240px;
    text-align: center;
    box-shadow: 0 6px 15px var(--color-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-time) ease-in-out;
    cursor: default;
}

/* Animasi Hover Card */
.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.2);
}

.weather-card--dark {
    background-color: var(--color-bg-card-dark);
    color: var(--color-text-light);
}

.weather-card h2,
.weather-card .city-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: inherit;
    margin: 0;
}

.weather-card .temp-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    height: 60px; /* Menjaga konsistensi tinggi untuk suhu/icon */
}

.weather-card .temp {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.weather-card .dynamic-icon i {
    font-size: 1.5rem; /* Ukuran icon di samping suhu */
    color: var(--color-primary);
    margin-left: 5px;
}

.weather-card .condition {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.weather-card--dark .condition {
    color: #a0c3e8;
}

/* --- Detail Cuaca --- */
.weather-card .details-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.weather-card--dark .details-row {
    color: #a0c3e8;
}

.details-row .detail-item i {
    margin-right: 5px;
    color: var(--color-primary);
}
.weather-card--dark .details-row .detail-item i {
    color: #8cafff;
}

/* Mengatur Ulang Tata Letak untuk Kartu Dinamis */
.weather-card--dynamic {
    height: 240px; /* Menggunakan tinggi penuh */
    justify-content: space-between;
}
.weather-card--default {
    /* Gaya untuk default yang sudah konsisten dengan dynamic */
    height: 240px;
    padding-top: 1.5rem;
}
/* Menghapus elemen yang tidak perlu pada kartu default */
.weather-card--default h2 {
    display: none;
}


/* --- Sidebar --- */
.sidebar-forecast h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    font-weight: 600;
    margin-top: 0;
}

.forecast-list--mini {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.forecast-list a {
    text-decoration: none;
    color: var(--color-text-dark);
}

.forecast-list--mini li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s, padding-left 0.2s;
}

.forecast-list--mini li:hover {
    background-color: #f0f8ff;
    padding-left: 5px;
}

.forecast-list--mini i.arrow {
    font-size: 1rem;
    color: #aaa;
}

.weather-map-placeholder {
    background-color: #e6f7ff;
    height: 200px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.1);
}

/* Di css/style.css */

/* Pastikan container peta memiliki ketinggian dan tidak ada overflow tersembunyi */
.weather-map-container {
    padding-top: 0;
}

#temperature-map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--color-shadow);
    z-index: 1; /* Penting untuk Leaflet */
    margin-top: 1.5rem; /* Tambahan yang hilang */
}


#world-weather-result {
    /* Gaya Grid diterapkan di script.js, tapi ini defaultnya */
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* --------------------
   TRAVEL MAP / ADVISOR (travel_map.html) - KONSISTENSI INPUT DAN LAYOUT
   -------------------- */
.section--route-advisor {
    padding-top: 2rem; /* Memindahkan gaya inline dari section */
}

/* GAYA ROUTE GRID (MEMINDAHKAN DARI INLINE STYLE) */
.route-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}
        
.route-advisor-card {
    background-color: var(--color-bg-card-default);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-shadow);
}

#map-route {
    height: 550px;
    width: 100%;
    z-index: 2;
}

/* GAYA INPUT KONSISTEN (route-input) - Sudah ada di file ini, tapi kita pastikan ulang */
.route-input {
    width: 100%; /* Agar input mengisi seluruh lebar form */
    padding: 0.75rem 1rem; 
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.route-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.3);
}

/* GAYA HASIL ANALISIS AI (MEMINDAHKAN DARI INLINE STYLE) */
.ai-result-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    background-color: #f0f8ff;
}

.ai-result-box h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.item-recommendation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.item-recommendation i {
    color: #28a745; /* Hijau untuk ikon */
}

.item-recommendation.alert i {
    color: #ffc107; /* Kuning untuk peringatan */
}


/* News List */
.news-list {
    margin-bottom: 2rem;
}
.news-item {
    margin-bottom: 1rem;
}
.news-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.news-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.news-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.2rem;
}

/* Scroll Arrow */
.scroll-arrow {
    margin-top: 3rem;
    text-align: center;
}
.scroll-arrow a {
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- World Forecast Detail --- */
.section--world-forecast {
    background-color: var(--color-bg-card-default);
    border-top: 1px solid var(--color-border);
}

.forecast-list--large {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 30px;
    padding-left: 0;
}

.forecast-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s, padding-left 0.2s;
}

.forecast-item:hover {
    background-color: #f0f8ff;
    padding-left: 5px;
}

.forecast-item .country-code {
    font-weight: 700;
    color: var(--color-primary);
}

.forecast-item .country-name {
    flex-grow: 1;
    font-weight: 500;
    margin-left: 0.75rem;
}

.forecast-item i.fas {
    font-size: 1rem;
    color: #aaa;
}

/* --------------------
   GENERIC PAGE STYLES
   -------------------- */
.section--page-header {
    background-color: var(--color-bg-card-default);
    padding: 4rem 0 3rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 2.8rem;
    color: #212529;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* --- CLIMATE & RESEARCH SPECIFIC --- */
.climate-cards-grid,
.method-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.method-cards-grid {
    grid-template-columns: repeat(3, 1fr);
}

.climate-card,
.method-card {
    background-color: var(--color-bg-card-default);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--color-shadow);
    text-align: center;
    transition: all var(--transition-time);
}

.climate-card:hover,
.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.15);
}

.climate-card i.fas,
.method-card i.fas {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.climate-card h3,
.method-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.climate-card .data-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.placeholder-graphic {
    background-color: #f0f8ff;
    height: 350px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Research Page Specifics */
.publication-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
}

.publication-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}
.publication-list li:hover {
    background-color: #f5f5f5;
}

.pub-year {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}
.pub-title a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
}
.pub-journal {
    font-size: 0.9rem;
    color: #999;
}

/* --- SERVICE PAGE SPECIFIC --- */
.section--service-content {
    padding-top: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.service-card {
    background-color: #f4f8ff;
    padding: 2rem;
    border-radius: 16px;
    border-bottom: 5px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: #e9f2ff;
}

.service-card i.fas {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    color: var(--color-text-muted);
}

.service-card .features-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.service-card .features-list li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.service-card .features-list i.fas {
    color: #28a745;
    margin-right: 8px;
    font-size: 0.95rem;
}

.cta-banner {
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cta-banner h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #212529;
}

.cta-banner p {
    margin: 0;
    color: var(--color-text-muted);
}


/* --- ABOUT US PAGE SPECIFIC --- */

.section--about-mission {
    background-color: var(--color-bg-light); 
    padding: 4rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; 
    margin-top: 2rem;
}

.mission-card {
    background-color: var(--color-bg-card-default);
    padding: 2rem;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.mission-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.mission-card i {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Styling untuk About Us Page */

/* ... kode CSS sebelumnya ... */


/* Team Section */
.section--team {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    flex: 0 0 200px; /* Lebar tetap untuk setiap anggota */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo {
    width: 150px; /* Ukuran lingkaran */
    height: 150px; /* Ukuran lingkaran */
    border-radius: 50%; /* Membuat bentuk lingkaran */
    background-color: var(--color-primary); /* Warna latar belakang default (jika gambar belum dimuat) */
    display: flex; /* Untuk memusatkan teks/gambar di dalam div */
    justify-content: center; /* Memusatkan horizontal */
    align-items: center; /* Memusatkan vertikal */
    color: white; /* Warna teks inisial */
    font-size: 3rem; /* Ukuran inisial */
    font-weight: 700;
    margin-bottom: 1rem;
    overflow: hidden; /* Penting untuk clipping gambar */
    object-fit: cover; /* Penting agar gambar mengisi lingkaran tanpa distorsi */
    border: 3px solid var(--color-primary-dark); /* Border untuk foto */
}

.team-member img.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover; /* Pastikan gambar mengisi area tanpa terdistorsi */
    margin-bottom: 1rem;
    box-shadow: 0 0 0 5px var(--color-primary);
}

.team-member h3 {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--color-text-dark);
    font-size: 0.95rem;
}



/* --------------------
   FOOTER
   -------------------- */
.footer {
    background-color: #212529;
    color: #ddd;
    padding: 3rem 0 1rem;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--color-primary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer__col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--color-text-light);
}

.footer__col p, .footer__col li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.footer__col ul {
    list-style: none;
    padding-left: 0;
}

.footer__col i.fas, .footer__col i.fab {
    margin-right: 10px;
    color: var(--color-primary);
    font-size: 1rem;
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 15px;
}
.social-icons a i {
    color: #ddd;
    transition: color 0.3s;
}
.social-icons a:hover i {
    color: var(--color-primary);
}

.footer__bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    padding-top: 1rem;
}

/* --------------------
    ROUTE CSS
   -------------------- */
.route-input {
    width: 100%; /* Agar input mengisi seluruh lebar form */
    padding: 0.75rem 1rem; /* Sedikit lebih kecil dari search-input utama untuk kompak */
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.route-input:focus {
    /* Gaya fokus yang konsisten dengan search-input di home.html */
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}


/* Leaflet Routing Machine Overrides (PENTING untuk tampilan) */
/* Menyembunyikan keseluruhan panel rute kecuali ringkasannya */
.leaflet-routing-container {
    background-color: transparent !important;
    padding: 0;
    box-shadow: none;
    line-height: 1.4;
    font-family: var(--font-family-sans);
}

/* Menyembunyikan teks instruksi di dalam peta */
.leaflet-routing-instructions {
    display: none !important; 
}

/* Memposisikan Ringkasan Rute (Waktu, Jarak) di sisi peta */
.leaflet-routing-control {
    background-color: var(--color-bg-card-default);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100; 
}

/* --------------------
   RESPONSIVE DESIGN
   -------------------- */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .climate-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .method-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forecast-list--large,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__col:first-child {
        grid-column: span 2;
        text-align: center;
    }
    
    /* RESPONSIF KHUSUS TRAVEL MAP */
    .route-grid {
        grid-template-columns: 1fr;
    }
    .route-advisor-card {
        padding: 1.5rem;
    }
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header__content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
        margin-top: 1rem;
    }

    .nav a {
        margin: 0 0.8rem;
    }

    .btn--primary {
        margin-left: auto;
    }

    .hero__title {
        font-size: 2.5rem;
    }
    
    .cta-banner h2 {
        margin-bottom: 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 2rem;
    }
    .page-title {
        font-size: 2rem;
    }

    .weather-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .weather-card {
        width: 90%;
        max-width: 300px;
    }

    .forecast-list--large,
    .service-grid,
    .climate-cards-grid,
    .method-cards-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col:first-child {
        grid-column: span 1;
    }

    .footer__col {
        padding-bottom: 1rem;
    }
    .footer__col h3 {
        border-bottom: 1px dashed #444;
        padding-bottom: 0.5rem;
    }

    .publication-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .pub-year {
        text-align: left;
    }
}
