* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #18251f;
    background: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    padding: 20px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

    color: white;

    transition: 0.4s ease;
}

.navbar.scrolled,
.inner-navbar {
    background: rgba(15, 35, 28, 0.96);

    padding-top: 15px;
    padding-bottom: 15px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}


.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 3px;
}

.logo small {
    margin-top: 5px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 5px;
}


.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar nav a {
    position: relative;

    font-size: 14px;
    font-weight: 600;
}


.navbar nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: white;

    transition: 0.3s ease;
}


.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}


.menu-btn {
    display: none;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


/* =========================
   HERO BERANDA
========================= */

.hero {
    position: relative;

    min-height: 100vh;

    padding: 120px 7% 80px;

    display: flex;
    align-items: center;

    background:
        url("assets/hero-madiun.jpg")
        center/cover no-repeat;

    color: white;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(5,25,20,0.90),
        rgba(5,25,20,0.50),
        rgba(5,25,20,0.15)
    );
}


.hero-content {
    position: relative;

    z-index: 2;

    max-width: 750px;

    animation: heroIn 1s ease;
}


.hero-small {
    margin-bottom: 15px;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 5px;
}


.hero h1 {
    margin-bottom: 25px;

    font-size: clamp(70px,12vw,150px);

    font-weight: 800;

    line-height: 0.85;

    letter-spacing: 3px;
}


.hero h2 {
    margin-bottom: 20px;

    font-size: clamp(25px,4vw,48px);

    font-weight: 700;

    line-height: 1.15;
}


.hero-description {
    max-width: 570px;

    font-size: 16px;

    line-height: 1.8;
}


.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 35px;
}


.btn {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 15px 25px;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 700;

    transition: 0.3s ease;
}


.btn-primary {
    background: white;

    color: #17392e;
}


.btn-primary:hover {
    transform: translateY(-4px);
}


.btn-outline {
    border: 1px solid white;

    color: white;
}


.btn-outline:hover {
    background: white;

    color: #17392e;
}


.scroll-down {
    position: absolute;

    bottom: 30px;
    left: 7%;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 7px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    opacity: 0.8;
}


.scroll-down i {
    animation: bounce 1.5s infinite;
}


/* =========================
   PAGE HERO
========================= */

.page-hero {
    position: relative;

    min-height: 560px;

    padding: 140px 7% 80px;

    display: flex;

    align-items: center;

    color: white;

    background:
        url("assets/wisata.jpg")
        center/cover no-repeat;
}


.food-page {
    background-image:
        url("assets/kuliner.jpg");
}


.hotel-page {
    background-image:
        url("assets/hotel.jpg");
}


.page-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(5,25,20,0.68);
}


.page-hero-content {
    position: relative;

    z-index: 2;

    max-width: 700px;
}


.page-hero-content span {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: 4px;
}


.page-hero-content h1 {
    margin: 15px 0;

    font-size:
        clamp(55px,8vw,100px);

    font-weight: 800;

    line-height: 1;
}


.page-hero-content p {
    max-width: 600px;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================
   BUDAYA HERO
========================= */

.culture-page-hero {
    position: relative;

    min-height: 650px;

    padding: 140px 7% 80px;

    display: flex;

    align-items: center;

    background:
        url("assets/kesenian.jpg")
        center/cover no-repeat;

    color: white;
}


.culture-page-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(8,30,24,0.75);
}


.culture-page-content {
    position: relative;

    z-index: 2;

    max-width: 800px;
}


.culture-page-content span {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: 4px;
}


.culture-page-content h1 {
    margin: 20px 0;

    font-size:
        clamp(55px,8vw,100px);

    font-weight: 800;

    line-height: 0.95;
}


.culture-page-content p {
    max-width: 650px;

    line-height: 1.8;
}


/* =========================
   SECTION
========================= */

.section {
    padding: 110px 7%;
}


.gray-section {
    background: #f5f7f4;
}


.section-title {
    max-width: 750px;

    margin:
        0 auto 60px;

    text-align: center;
}


.section-title span {
    color: #63816f;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 4px;
}


.section-title h2 {
    margin: 15px 0;

    font-size:
        clamp(35px,5vw,55px);

    font-weight: 800;

    line-height: 1.15;
}


.section-title em {
    color: #6c8c75;

    font-style: normal;
}


.section-title p {
    color: #66736d;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================
   INTRO
========================= */

.intro-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;
}


.intro-card {
    padding: 35px 25px;

    text-align: center;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.06);

    transition: 0.3s ease;
}


.intro-card:hover {
    transform: translateY(-8px);
}


.intro-card i {
    margin-bottom: 20px;

    color: #63816f;

    font-size: 32px;
}


.intro-card h3 {
    margin-bottom: 10px;

    font-size: 19px;

    font-weight: 700;
}


.intro-card p {
    color: #737d78;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================
   WISATA
========================= */

.card-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;
}


.place-card {
    overflow: hidden;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);

    transition: 0.3s ease;
}


.place-card:hover {
    transform: translateY(-8px);
}


.card-image {
    position: relative;

    height: 260px;

    overflow: hidden;
}


.card-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;
}


.place-card:hover
.card-image img {
    transform: scale(1.08);
}


.category {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 8px 13px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.92);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}


.card-content {
    padding: 25px;
}


.card-content h3 {
    margin-bottom: 10px;

    font-size: 20px;

    font-weight: 700;
}


.card-content p {
    margin-bottom: 20px;

    color: #707a74;

    font-size: 14px;

    line-height: 1.7;
}


.card-bottom {
    display: flex;

    justify-content: space-between;

    color: #68736d;

    font-size: 12px;
}


.rating {
    color: #bd8b28;

    font-weight: 700;
}


/* =========================
   KULINER
========================= */

.food-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;
}


.food-card {
    position: relative;

    min-height: 450px;

    overflow: hidden;

    border-radius: 22px;

    color: white;
}


.food-card img {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;
}


.food-card:hover img {
    transform: scale(1.08);
}


.food-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 20%,
            rgba(0,0,0,0.88)
        );
}


.food-info {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;

    padding: 30px;
}


.food-info span {
    font-size: 10px;

    letter-spacing: 3px;

    font-weight: 700;
}


.food-info h3 {
    margin: 8px 0;

    font-size: 30px;

    font-weight: 800;
}


.food-info p {
    font-size: 14px;

    line-height: 1.6;

    opacity: 0.9;
}


.detail-btn {
    margin-top: 15px;

    padding: 9px 16px;

    border: 1px solid white;

    border-radius: 30px;

    background: transparent;

    color: white;

    font-family:
        "Poppins", sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}


.detail-btn:hover {
    background: white;

    color: #17392e;
}


/* =========================
   HOTEL
========================= */

.hotel-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;
}


.hotel-card {
    overflow: hidden;
    
    cursor:pointer;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.07);

    transition: 0.3s ease;
}


.hotel-card:hover {
    transform: translateY(-7px);
}


.hotel-card > img {
    width: 100%;

    height: 220px;

    object-fit: cover;
}


.hotel-content {
    padding: 25px;
}


.hotel-content h3 {
    margin-bottom: 10px;

    font-size: 20px;

    font-weight: 700;
}


.stars {
    margin-bottom: 12px;

    color: #c18b28;

    letter-spacing: 2px;
}


.stars strong {
    margin-left: 8px;

    color: #222;

    font-size: 12px;

    letter-spacing: 0;
}


.hotel-content p {
    margin-bottom: 15px;

    color: #707a74;

    font-size: 14px;

    line-height: 1.7;
}


.hotel-location {
    color: #63736a;

    font-size: 12px;
}


.source-note {
    margin-top: 35px;

    text-align: center;

    color: #89918c;

    font-size: 12px;
}


/* =========================
   BUDAYA
========================= */

.culture {
    position: relative;

    min-height: 700px;

    padding: 110px 7%;

    display: flex;

    align-items: center;

    background:
        url("assets/budaya.jpg")
        center/cover no-repeat;

    color: white;
}


.culture-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(10,35,28,0.82);
}


.culture-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1100px;

    margin: auto;
}


.culture-content > span {
    font-size: 12px;

    letter-spacing: 4px;

    font-weight: 700;
}


.culture-content h2 {
    margin: 20px 0;

    font-size:
        clamp(45px,6vw,75px);

    font-weight: 800;

    line-height: 1;
}


.culture-content > p {
    max-width: 650px;

    color: #d9e0dc;

    line-height: 1.8;
}


.culture-items {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;

    margin-top: 50px;
}


.culture-items div {
    padding: 25px;

    border:
        1px solid rgba(255,255,255,0.2);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.05);
}


.culture-items i {
    margin-bottom: 15px;

    font-size: 30px;
}


.culture-items h3 {
    margin-bottom: 8px;

    font-weight: 700;
}


.culture-items p {
    color: #c8d2cd;

    font-size: 13px;

    line-height: 1.7;
}


.culture-light {
    max-width: 1200px;

    margin: auto;
}


.culture-light div {
    color: #18251f;

    border: 1px solid #e1e7e2;

    background: #f5f7f4;
}


.culture-light i {
    color: #63816f;
}


/* =========================
   CTA
========================= */

.cta {
    padding: 100px 7%;

    text-align: center;

    background: #e9eee9;
}


.cta span {
    font-size: 11px;

    letter-spacing: 4px;

    font-weight: 800;
}


.cta h2 {
    margin: 15px 0;

    font-size: 50px;

    font-weight: 800;
}


.cta p {
    margin-bottom: 30px;

    color: #657069;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 70px 7% 25px;

    background: #102b22;

    color: white;
}


.footer-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 50px;
}


.footer-container p {
    max-width: 400px;

    margin-top: 20px;

    color: #b7c4be;

    line-height: 1.8;
}


.footer-container h3 {
    margin-bottom: 20px;

    font-size: 16px;
}


.footer-container > div > a {
    display: block;

    margin-bottom: 10px;

    color: #b7c4be;

    font-size: 14px;
}


.social {
    display: flex;

    gap: 12px;
}


.social a {
    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.1);

    transition: 0.3s ease;
}


.social a:hover {
    transform: translateY(-4px);
}


.copyright {
    max-width: 1200px;

    margin: 50px auto 0;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,0.1);

    color: #91a39a;

    font-size: 12px;
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0,0,0,0.65);
}


.modal.active {
    display: flex;
}


.modal-box {
    position: relative;

    width: 100%;

    max-width: 500px;

    padding: 40px;

    border-radius: 20px;

    background: white;

    animation:
        modalIn 0.3s ease;
}


.modal-box h2 {
    margin-bottom: 15px;

    font-size: 25px;

    font-weight: 800;
}


.modal-box p {
    color: #69746e;

    line-height: 1.8;
}


.modal-close {
    position: absolute;

    top: 10px;
    right: 20px;

    border: none;

    background: transparent;

    color: #333;

    font-size: 30px;

    cursor: pointer;
}


/* =========================
   ANIMATION
========================= */

@keyframes heroIn {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes bounce {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }

}


@keyframes modalIn {

    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .navbar nav {

        position: absolute;

        top: 75px;
        right: 5%;

        width: 220px;

        padding: 20px;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        border-radius: 15px;

        background: #102b22;
    }


    .navbar nav.active {
        display: flex;
    }


    .menu-btn {
        display: block;
    }


    .intro-grid {
        grid-template-columns:
            repeat(2,1fr);
    }


    .card-grid,
    .food-grid,
    .hotel-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .culture-items {
        grid-template-columns: 1fr;
    }


    .footer-container {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .navbar {
        padding: 18px 6%;
    }


    .hero,
    .page-hero,
    .culture-page-hero {

        padding-right: 6%;
        padding-left: 6%;

    }


    .hero h1 {
        font-size: 75px;
    }


    .hero-buttons {

        flex-direction: column;

        align-items: flex-start;

    }


    .section {
        padding: 80px 6%;
    }


    .intro-grid,
    .card-grid,
    .food-grid,
    .hotel-grid {

        grid-template-columns: 1fr;

    }


    .footer-container {

        grid-template-columns: 1fr;

    }


    .cta h2 {
        font-size: 38px;
    }


    .culture {
        padding: 80px 6%;
    }


    .culture-content h2 {
        font-size: 45px;
    }


    .culture-page-content h1 {
        font-size: 55px;
    }


    .page-hero-content h1 {
        font-size: 60px;
    }

}

/* =========================
   INTERACTIVE MAP
========================= */

.map-section {
    background: #ffffff;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    height: 550px;
    margin: auto;

    overflow: hidden;

    border-radius: 25px;

    box-shadow:
        0 15px 45px rgba(0,0,0,0.12);

    border: 1px solid #e1e7e2;
}

#madiunMap {
  width: 100%;
  height: 550px;
  min-height: 550px;
}

/* Popup Leaflet */

.leaflet-popup-content-wrapper {
    border-radius: 15px;
}

.leaflet-popup-content {
    margin: 15px;
    font-family: "Poppins", sans-serif;
}

.map-popup h3 {
    margin-bottom: 6px;

    color: #18251f;

    font-size: 17px;
    font-weight: 700;
}

.map-popup p {
    margin-bottom: 12px;

    color: #69746e;

    font-size: 12px;
    line-height: 1.6;
}

.map-popup a {
    display: inline-block;

    padding: 8px 14px;

    border-radius: 20px;

    background: #17392e;

    color: white;

    font-size: 11px;
    font-weight: 600;

    transition: 0.3s ease;
}

.map-popup a:hover {
    background: #63816f;
    transform: translateY(-2px);
}


/* =========================
   MAP MOBILE
========================= */

@media (max-width: 600px) {

    .map-container {
        height: 420px;
        border-radius: 18px;
    }

}

/* =========================
   MAP SEARCH
========================= */

.map-container {
    position: relative;
}

.map-search {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 1000;

    width: min(500px, calc(100% - 40px));

    display: flex;
    align-items: center;

    padding: 6px;

    background: rgba(255,255,255,0.95);

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.15);

    backdrop-filter: blur(10px);
}

.map-search i {
    margin-left: 12px;

    color: #63816f;
}

.map-search input {
    flex: 1;

    min-width: 0;

    padding: 12px;

    border: none;
    outline: none;

    background: transparent;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

.map-search button {
    padding: 11px 18px;

    border: none;
    border-radius: 10px;

    background: #17392e;

    color: white;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.map-search button:hover {
    background: #63816f;

    transform: translateY(-2px);
}


/* =========================
   SEARCH RESULTS
========================= */

.map-search-results {
    position: absolute;

    top: 82px;
    left: 20px;

    z-index: 1000;

    width: min(500px, calc(100% - 40px));

    display: none;

    overflow: hidden;

    border-radius: 12px;

    background: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15);
}

.map-search-results.active {
    display: block;
}

.map-result-item {
    padding: 14px 16px;

    border-bottom: 1px solid #eeeeee;

    cursor: pointer;

    transition: 0.2s ease;
}

.map-result-item:last-child {
    border-bottom: none;
}

.map-result-item:hover {
    background: #f5f7f4;
}

.map-result-item strong {
    display: block;

    margin-bottom: 3px;

    color: #18251f;

    font-size: 13px;
}

.map-result-item span {
    color: #7a847f;

    font-size: 11px;
}


/* MOBILE */

@media (max-width: 600px) {

    .map-search {
        top: 15px;
        left: 15px;

        width: calc(100% - 30px);
    }

    .map-search-results {
        top: 75px;
        left: 15px;

        width: calc(100% - 30px);
    }

}

/* =================================
   DESTINATION MARKER ANIMATION
   ================================= */

.destination-marker {
    animation:
        markerBounce 0.8s ease-in-out infinite alternate,
        markerGlow 1.5s ease-in-out infinite;
    z-index: 1000 !important;
}


/* Marker memantul */

@keyframes markerBounce {

    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-12px) scale(1.12);
    }

}


/* Efek cahaya */

@keyframes markerGlow {

    0% {
        filter:
            drop-shadow(0 0 0 rgba(124, 58, 237, 0));
    }

    50% {
        filter:
            drop-shadow(0 0 12px rgba(124, 58, 237, 0.9));
    }

    100% {
        filter:
            drop-shadow(0 0 0 rgba(124, 58, 237, 0));
    }

}


/* =================================
   MAP POPUP
   ================================= */

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 16px 18px;
}


/* =================================
   DESTINATION PULSE
   ================================= */

.destination-marker::after {
    content: "";
    position: absolute;

    width: 45px;
    height: 45px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    border: 2px solid rgba(124, 58, 237, 0.7);

    animation: destinationPulse 1.8s ease-out infinite;

    pointer-events: none;
}


@keyframes destinationPulse {

    0% {
        width: 25px;
        height: 25px;
        opacity: 0.9;
    }

    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }

}

/* Perbaikan map untuk HP */
@media (max-width: 768px) {
    .map-container {
        width: 100%;
        height: 450px;
    }

    #madiunMap {
        width: 100%;
        height: 450px;
        min-height: 450px;
    }
}