@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-VariableFont_wght.ttf') format('truetype');
    font-weight: 600;
    font-style: medium 500;
    font-display: swap;
}

:root {
    --green: #214b35;
    --green-light: #e5eddf;
    --cream: #faf8f1;
    --text: #26352b;
    --muted: #68776b;
    --border: #e2e8df;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--green);
}

.brand-icon {
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover {
    color: #5b855f;
}

.hero {
    padding: 72px 0;
    background: var(--green-light);
}

.hero-content {
    max-width: 820px;
}

.eyebrow {
    color: var(--green);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--green);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.15;
    margin: 12px 0;
}

.hero p {
    color: #536857;
    max-width: 600px;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px #214b3510;
}

.search-box input,
.search-box select,
.filter-form input,
.filter-form select {
    flex: 1 1 180px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font: inherit;
    color: var(--text);
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #315f43;
}

.btn-outline {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--green);
    border-radius: 8px;
    color: var(--green);
    font-weight: 700;
}

.section {
    padding: 54px 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    color: var(--green);
    margin-bottom: 4px;
}

.section-heading p {
    color: var(--muted);
    margin-top: 0;
}

.category-grid,
.resort-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.category-card h3 {
    margin: 0 0 4px;
    color: var(--green);
}

.category-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.resort-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.resort-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px #214b3512;
}

.resort-image {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: cover;
    background: var(--green-light);
}

.resort-body {
    padding: 18px;
}

.resort-body h3 {
    color: var(--green);
    margin: 0 0 6px;
}

.resort-location,
.muted {
    color: var(--muted);
    font-size: 14px;
}

.price {
    color: var(--green);
    font-weight: 800;
    margin: 14px 0;
}

.resort-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resort-actions .btn {
    flex: 1;
}

.empty-state {
    padding: 32px;
    text-align: center;
    background: white;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.page-intro {
    padding: 36px 0 20px;
}

.page-intro h1 {
    color: var(--green);
    margin-bottom: 6px;
}

.filter-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0 28px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 28px;
}

.detail-main-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--green-light);
}

.detail-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    align-self: start;
}

.detail-panel h2 {
    color: var(--green);
    margin-top: 0;
}

.facility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.facility-list li {
    background: var(--green-light);
    color: var(--green);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.site-footer {
    padding-top: 42px;
    background: var(--green);
    color: #fff;
    margin-top: 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-bottom: 28px;
}

.footer-content p {
    color: #d5e3d7;
    max-width: 480px;
}

.footer-content a {
    display: block;
    margin: 8px 0;
    color: #e4eee4;
}

.copyright {
    border-top: 1px solid #ffffff30;
    padding-top: 16px;
    padding-bottom: 18px;
    color: #d5e3d7;
    font-size: 13px;
}

@media (max-width: 760px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .main-nav {
        gap: 12px 18px;
    }

    .hero {
        padding: 48px 0;
    }

    .category-grid,
    .resort-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .resort-image {
        height: 160px;
    }

    .resort-body {
        padding: 12px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .category-grid,
    .resort-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .resort-image {
        height: 210px;
    }

    .search-box .btn {
        width: 100%;
    }
}


/* Patch beranda: navbar sticky pada desktop */
@media (min-width: 761px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

/* Jumbotron dengan foto resort dan kontras teks yang cukup */
.hero.hero-jumbotron {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: clamp(48px, 6vw, 78px) 0;
    background-color: #214b35;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-jumbotron .hero-content {
    width: min(1120px, 92%);
    max-width: 1120px;
    position: relative;
    z-index: 1;
}

.hero-jumbotron .eyebrow,
.hero-jumbotron h1,
.hero-jumbotron p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

.hero-jumbotron h1 {
    max-width: 760px;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: 1.3;
}

.hero-jumbotron p {
    max-width: 620px;
    color: #f4f7f2;
}

.hero-jumbotron .search-box {
    max-width: 850px;
}

.destinations-section {
    padding-top: 56px;
    padding-bottom: 24px;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.destination-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 22px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #315f43, #183a2a);
    box-shadow: 0 8px 24px rgba(25, 55, 36, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.destination-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(9, 30, 18, .82), rgba(9, 30, 18, .08));
}

.destination-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(25, 55, 36, .2);
}

.destination-bogor {
    background-image: linear-gradient(145deg, #567c50, #183b2a);
}

.destination-puncak {
    background-image: linear-gradient(145deg, #709a8b, #254c40);
}

.destination-sentul {
    background-image: linear-gradient(145deg, #b08d58, #4b5836);
}

.destination-sukabumi {
    background-image: linear-gradient(145deg, #4e8c8b, #234a43);
}

.destination-kicker {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #e4eee4;
}

.destination-card h3 {
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
    margin: 8px 0 14px;
}

.destination-link {
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hero.hero-jumbotron {
        min-height: 340px;
        padding: 42px 0;
    }

    .hero-jumbotron h1 {
        font-size: clamp(32px, 8vw, 44px);
    }

    .destination-grid {
        gap: 12px;
    }

    .destination-card {
        min-height: 170px;
        padding: 16px;
    }
}

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

    .destination-card {
        min-height: 150px;
        padding: 14px;
    }

    .destination-card h3 {
        font-size: 21px;
    }
}


/* Sidebar iklan pada bagian Resort Pilihan */
.resort-ad-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
}

.resort-listing {
    min-width: 0;
}

.ad-sidebar {
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    align-self: start;
}

.ad-sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ad-sidebar-heading h3 {
    margin: 0;
    color: var(--green);
    font-size: 18px;
}

.ad-sidebar-heading span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
}

.ad-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ad-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(33, 75, 53, .1);
}

.ad-card-link {
    display: block;
}

.ad-image {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: cover;
    background: var(--green-light);
}

.ad-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #e5eddf, #cbdcc9);
}

.ad-card-body {
    padding: 9px 10px 10px;
}

.ad-card-body h4 {
    margin: 0;
    color: var(--green);
    font-size: 13px;
    line-height: 1.35;
}

.ad-card-body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.ad-visit {
    display: inline-block;
    margin-top: 6px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.ad-empty {
    padding: 16px 12px;
    background: var(--cream);
    border-radius: 10px;
    font-size: 13px;
}

.ad-empty strong {
    color: var(--green);
}

.ad-empty p {
    margin: 6px 0 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .resort-ad-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 16px;
    }

    .ad-sidebar {
        padding: 12px;
    }
}

@media (max-width: 760px) {
    .resort-ad-layout {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        margin-top: 8px;
    }

    .ad-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-image {
        height: 100px;
    }
}

@media (max-width: 420px) {
    .ad-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ad-card-body {
        padding: 8px;
    }

    .ad-image {
        height: 84px;
    }
}


/* Jelajah Alam — Roboto Condensed untuk isi konten
   Tempelkan blok ini di BAGIAN PALING BAWAH assets/css/style.css.
   Judul jumbotron Caveat tetap dipertahankan oleh aturan font-family khususnya. */

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../fonts/RobotoCondensed-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 350;
}

/* Pastikan kontrol form dan tombol juga menggunakan font isi. */
button,
input,
select,
textarea {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 350;
}


/* Patch konsistensi font halaman detail resort Jelajah Alam
   Tempelkan di bagian PALING BAWAH assets/css/style.css.
   Menggunakan Roboto Condensed lokal yang sudah dipasang di assets/fonts.
   Judul jumbotron Caveat tidak terpengaruh. */

.page-intro,
.page-intro *,
.detail-grid,
.detail-grid *,
.resort-map-section,
.resort-map-section * {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Isi paragraf dan teks informasi: 16px, Regular 350 */
.page-intro p,
.detail-grid p,
.detail-grid li,
.resort-map-section p {
    font-size: 16px;
    font-weight: 350;
    line-height: 1.6;
}

/* Judul tetap memiliki hierarki visual, tetapi memakai keluarga font yang sama */
.page-intro h1,
.detail-grid h2,
.detail-grid h3,
.resort-map-section h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
}

/* Tombol dan tautan aksi pada halaman detail */
.detail-grid .btn,
.detail-grid .btn-outline,
.resort-map-section .btn-outline {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 350;
}

/* Teks sekunder tetap terbaca dengan font yang sama */
.page-intro .muted,
.detail-grid .muted,
.resort-map-section .muted {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 350;
}


/* =========================================================
   Patch UI Resort Pilihan — Jelajah Alam
   Menjaga layout dan sidebar iklan yang sudah ada.
   ========================================================= */
.resort-listing .resort-grid {
    align-items: stretch;
    gap: 18px;
}
.resort-listing .resort-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(33, 75, 53, .055);
}
.resort-listing .resort-card:hover {
    box-shadow: 0 12px 28px rgba(33, 75, 53, .14);
}
.resort-listing .resort-image {
    height: 190px;
    flex: 0 0 190px;
}
.resort-listing .resort-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}
.resort-listing .resort-location {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.45;
}
.resort-listing .resort-body h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}
.resort-listing .resort-body > .muted {
    margin: 0 0 8px;
    line-height: 1.4;
}
.resort-listing .resort-body .price {
    align-self: flex-start;
    display: inline-block;
    margin: 8px 0 16px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #edf4eb;
    color: #214b35;
    font-size: 15px;
    line-height: 1.4;
}
.resort-listing .resort-body > .muted:last-of-type {
    margin: 8px 0 16px;
}
.resort-listing .resort-actions {
    margin-top: auto;
    padding-top: 4px;
}
.resort-listing .resort-actions .btn {
    display: block;
    width: 100%;
    flex: 1 1 100%;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 15px;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .resort-listing .resort-grid {
        gap: 14px;
    }
    .resort-listing .resort-image {
        height: 165px;
        flex-basis: 165px;
    }
    .resort-listing .resort-body {
        padding: 13px;
    }
}
@media (max-width: 760px) {
    .resort-listing .resort-image {
        height: 160px;
        flex-basis: 160px;
    }
    .resort-listing .resort-body h3 {
        font-size: 17px;
    }
}
@media (max-width: 480px) {
    .resort-listing .resort-grid {
        gap: 12px;
    }
    .resort-listing .resort-image {
        height: 185px;
        flex-basis: 185px;
    }
    .resort-listing .resort-body {
        padding: 12px;
    }
    .resort-listing .resort-body .price {
        font-size: 14px;
        padding: 6px 8px;
    }
}


/* =========================================================
   Patch UI Resort Pilihan — Jelajah Alam
   Menjaga layout dan sidebar iklan yang sudah ada.
   ========================================================= */
.resort-listing .resort-grid {
    align-items: stretch;
    gap: 18px;
}
.resort-listing .resort-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(33, 75, 53, .055);
}
.resort-listing .resort-card:hover {
    box-shadow: 0 12px 28px rgba(33, 75, 53, .14);
}
.resort-listing .resort-image {
    height: 190px;
    flex: 0 0 190px;
}
.resort-listing .resort-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}
.resort-listing .resort-location {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.45;
}
.resort-listing .resort-body h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}
.resort-listing .resort-body > .muted {
    margin: 0 0 8px;
    line-height: 1.4;
}
.resort-listing .resort-body .price {
    align-self: flex-start;
    display: inline-block;
    margin: 8px 0 16px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #edf4eb;
    color: #214b35;
    font-size: 15px;
    line-height: 1.4;
}
.resort-listing .resort-body > .muted:last-of-type {
    margin: 8px 0 16px;
}
.resort-listing .resort-actions {
    margin-top: auto;
    padding-top: 4px;
}
.resort-listing .resort-actions .btn {
    display: block;
    width: 100%;
    flex: 1 1 100%;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 15px;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .resort-listing .resort-grid {
        gap: 14px;
    }
    .resort-listing .resort-image {
        height: 165px;
        flex-basis: 165px;
    }
    .resort-listing .resort-body {
        padding: 13px;
    }
}
@media (max-width: 760px) {
    .resort-listing .resort-image {
        height: 160px;
        flex-basis: 160px;
    }
    .resort-listing .resort-body h3 {
        font-size: 17px;
    }
}
@media (max-width: 480px) {
    .resort-listing .resort-grid {
        gap: 12px;
    }
    .resort-listing .resort-image {
        height: 185px;
        flex-basis: 185px;
    }
    .resort-listing .resort-body {
        padding: 12px;
    }
    .resort-listing .resort-body .price {
        font-size: 14px;
        padding: 6px 8px;
    }
}

/* Patch jarak antar-section kategori dan Resort Pilihan */
#kategori.section {
    padding-bottom: 18px;
}

#resort.section {
    padding-top: 24px;
}

/* Patch mobile: Iklan Pilihan satu kartu penuh per slide */
@media (max-width: 760px) {
    .ad-sidebar .ad-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ad-sidebar .ad-card {
        width: 100%;
    }

    .ad-sidebar .ad-image {
        height: 140px;
    }
}
