html, body {
    background-color: #F7FAFC;
    font-family: "Exo", sans-serif;
    /* font-size: 14px; */
    overflow-x: hidden;
}
p {
    font-size: 14px;
}
h6 {
    font-size: 16px;
}
h5 {
    font-size: 18px;
}
h4 {
    font-size: 20px;
}
h3 {
    font-size: 24px;
}
h3 {
    font-size: 28px;
}
h2 {
    font-size: 32px;
}
h1 {
    font-size: 38px;
}
.fs-7 {
    font-size: 14px;
}
.fs-8 {
    font-size: 12px;
}
.form-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);  
}
.card {
    border: 0;
}
.section-space .card-header,
.section-contact .card-header {
    background-color: #165c8f;
    border-bottom-color: #165c8f;
}
.card-header h4 {
    color: white;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}
.text-justify {
    text-align: justify;
  }
.badge-piils {
    border-radius: 25px;
    padding-left: 15px;
    padding-right: 15px;
}
.navbar {
    background: rgba(255, 255, 255, 1);
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: background 0.3s ease-in-out, padding 0.1s linear;
    box-shadow: 0px 4px 20px 0px rgba(71,85,105,.2);
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 20px 0px rgba(71,85,105,.2);
}
.navbar a,
.navbar a:focus,
.navbar a:active {
    color: rgba(0, 0, 0, 1);
}

/* Navbar menu items styling - default state */
.navbar .navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
/*    background-color: white !important;*/
    color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    margin: 0 0px !important;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

/* Hover state - no hover effect */
.navbar .navbar-nav .nav-link:hover {
/*    background-color: white !important;*/
    color: rgba(0, 0, 0, 0.7) !important;
    border: none;
    transform: none;
    box-shadow: none;
}

/* Remove active/clicked state for all nav-links */
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:active {
    background-color: white !important;
    color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 0 !important;
    outline: none;
}

/* Special styling only for Registrasi Mitra */
.navbar .navbar-nav .nav-link-registrasi {
    background-color: #ED1C23 !important;
    color: white !important;
    border-radius: 50px !important;
}

.navbar .navbar-nav .nav-link-registrasi:hover,
.navbar .navbar-nav .nav-link-registrasi:focus,
.navbar .navbar-nav .nav-link-registrasi:active {
    background-color: #ED1C23 !important;
    color: white !important;
    border-radius: 50px !important;
}

/* Scrolled navbar states */
.navbar.scrolled .navbar-nav .nav-link {
/*    background-color: white !important;*/
    color: rgba(0, 0, 0, 0.7) !important;
    border: none;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    background-color: white !important;
    color: rgba(0, 0, 0, 0.7) !important;
    border: none;
}

.navbar.scrolled .navbar-nav .nav-link.active,
.navbar.scrolled .navbar-nav .nav-link:focus,
.navbar.scrolled .navbar-nav .nav-link:active {
    background-color: white !important;
    color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 0 !important;
}

/* Special styling for Registrasi Mitra when scrolled */
.navbar.scrolled .navbar-nav .nav-link-registrasi {
    background-color: #ED1C23 !important;
    color: white !important;
    border-radius: 50px !important;
}

.navbar.scrolled .navbar-nav .nav-link-registrasi:hover,
.navbar.scrolled .navbar-nav .nav-link-registrasi:focus,
.navbar.scrolled .navbar-nav .nav-link-registrasi:active {
    background-color: #ED1C23 !important;
    color: white !important;
    border-radius: 50px !important;
}

.navbar.scrolled .navbar-brand:hover {
    color: inherit;
}
.hero {
    background: url('../../../assets/spbu.webp') center/cover no-repeat;
    height: 90vh;
    color: white;
}
.hero-color {
    color: #333333;
}
/* .hero h1 {
    font-size: 42px !important;
} */
.hero.list-spbu {
    background: url('../../../assets/list-header.webp') center/cover no-repeat;
    ;
}
.hero.list-lahan {
    background: url('../../../assets/list-header.webp') center/cover no-repeat;;
}
.hero.explore {
    background: url('../../../assets/explore.webp') center/cover no-repeat;
}

/* Lighter overlay for explore page */
.hero.explore .hero-overlay {
    background: rgba(0, 0, 0, 0);
}

/* Custom button styling for explore page */
.hero.explore .btn-hero-custom {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

.hero.explore .btn-hero-custom:hover {
    background-color: #555555 !important;
    border-color: #555555 !important;
    color: white !important;
}
.hero.mitra {
    background: url('../../../assets/mitra.webp') center/cover no-repeat;
}

/* Lighter overlay for mitra page */
    .hero.mitra .hero-overlay {
/*        background: rgba(0, 0, 0, 0.1);*/
        background: rgba(0, 0, 0, 0);
    }

/* Custom button styling for mitra page */
.hero.mitra .btn-hero-custom {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

.hero.mitra .btn-hero-custom:hover {
    background-color: #555555 !important;
    border-color: #555555 !important;
    color: white !important;
}
.hero.about {
    background: url('../../../assets/about.webp') center/cover no-repeat;
}

/* Lighter overlay for about page */
.hero.about .hero-overlay {
    background: rgba(0, 0, 0, 0);
}

/* Custom button styling for about page */
.hero.about .btn-hero-custom {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: white !important;
}

.hero.about .btn-hero-custom:hover {
    background-color: #555555 !important;
    border-color: #555555 !important;
    color: white !important;
}
.hero.detail-mitra {
    background: url('../../../assets/mitra-detail.webp') center/cover no-repeat;
}
.hero.detail-spbu {
    background: url('../../../assets/detail-header.webp') center/cover no-repeat;
}
    .hero.detail-lahan {
        background: url('../../../assets/detail-header.webp') center/cover no-repeat;
    }
.hero.hero-half {
    height: 50vh !important;
}

/* Navigation menu banners: standardized 570px height */
.hero.explore,
.hero.mitra,
.hero.about {
    height: 570px !important;
}
.hero-overlay {
/*    background: rgba(0, 0, 0, 0.5);*/
    background: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Lighter overlay for detail pages */
.hero.detail-spbu .hero-overlay,
.hero.detail-lahan .hero-overlay {
/*    background: rgba(0, 0, 0, 0.2);*/
    background: rgba(0, 0, 0, 0);
}
.hero.hero-half .inner {
    position: absolute;
    bottom: 20%;    
}

/* Text styling for detail pages */
.hero.detail-spbu .inner h1,
.hero.detail-lahan .inner h1,
.hero.detail-spbu .inner p,
.hero.detail-lahan .inner p {
    color: white;
/*    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);*/
}
.hero.hero-half.list-lahan .inner,
.hero.hero-half.list-spbu .inner {
    position: absolute;
    bottom: 40%;    
}
.hero.hero-half.list-brand .inner {
    position: absolute;
    bottom: 27%;    
}
.hero-overlay > .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}
.floating-card {
    position: relative;
    z-index: 30;
    margin-top: -150px;
    background: white;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.floating-card.section-search {
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    padding: 15px; 
}


.floating-card.list-mode {
    margin-top: -80px;
}
.floating-card.list-mode.space,
.floating-card.list-mode.spbu {
    margin-top: -150px;
}
.list-mode .select2-selection.select2-selection--single,
.list-mode .form-select,
.list-mode .form-control {
    background-color: rgba(255, 255, 255, 0.7);
}
.footer {
    background-color: rgba(3, 44, 72, 1);
    color: white;
    padding: 60px 0 0px 0;
}
.footer .energizing {
    margin-top: 20px;
    padding: 30px 0px;
    background-color: rgb(3, 35, 58);
}
.footer .energizing img {
    position: absolute;
    width: 200px;
    right: 0;
    top: -5px;
}
.footer a {
    color: white;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.footer-collapse-link {
    display: none;
}
#footer-tautan-item.collapse:not(.show),
#footer-situs-item.collapse:not(.show) {
    display: block;
}
.social-icons i {
    font-size: 24px;
    margin-right: 15px;
}
.card-city {
    position: relative;
    overflow-y: hidden;
    height: 150px;
    text-align: center;
    overflow: hidden;
}
.card-city img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
}
.cardzoomin img {
    transition: transform 0.5s ease-in-out;
}
.cardzoomin:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}
.card-city .overlay {
    z-index: 1;
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
}
.hoverblur:hover .overlay {
    /* background: rgba(255, 255, 255, 0.1)!important; */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.card-city .title {
    z-index: 2;
    top: 50%;
    left: 50%;
    color: white;
    position: absolute;
    transform: translate(-50%, -50%);
}
.owl-nav .owl-prev {
    position: absolute;
    left: -3%;
    top: 40%;
}
.owl-nav .owl-next {
    position: absolute;
    right: -3%;
    top: 40%;
}
.owl-theme .owl-nav {
    margin: 0;
}
.owl-nav .owl-prev,
.owl-nav .owl-next {
    color: black !important;
    width: 75px;
    margin: 0 !important;
    padding: 20px !important;
    font-size: 50px !important;
    border-radius: 100% !important;
    background: rgba(255, 255, 255, 0.7) !important;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out; 
}
.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    color: white !important;
    background: rgb(203 28 32)!important
}
.card-ratio69 {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.card-ratio69 img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}
.card-space .space-availability {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 10px;
}
.card-space .card-title {
    font-size: 14px;
}
.brand-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: 125px;
}
.first-row, .second-row {
    position: absolute;
    /* height: 100px; */
    display: inline-flex;
}
.card-brand {
    border: thin solid rgba(0, 0, 0, 0.1);
    height: 125px;
    width: 150px;
    margin-left: 20px;
}
.card-brand-list {
    position: relative;
    height: 202px;
}
.first-row {
    animation: left 25s linear infinite;
}  
@keyframes left {
    0% { left: 0; }
    100% { left: -100%; }
}
.second-row {
    overflow: hidden;
    animation: right 25s linear infinite;
}  
@keyframes right {
    0% { right: 0; }
    100% { right: -100%; }
}
.card-brand img {
    width: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
}
.card-brand-list .logo img {
    width: 100px;
    position: absolute;
    top: 40%;
    left: 50%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease-in-out;
}
.card-brand-list:hover .logo img {
    transform: translate(-50%, -50%) scale(1.1);
}
.card-brand-list .content {
    margin-top: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
}
.card-brand-list h5 {
    /* letter-spacing: 2px; */
    font-size: 14px;
}
.brand-container.first {
    margin-bottom: 20px;
}
.card-promo {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 0;
}
.card-promo-media {
    position: relative;
    display: block;
    width: 100%;
}
.card-promo img {
    display: block;
    width: 100%;
    height: auto;
}
.card-promo .overlay {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.1s ease-in-out;
}
.card-promo:hover .overlay {
    background: rgba(3, 95, 195, 0.5)!important;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.card-promo .content {
    color: white;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.card-promo:hover .content {
    opacity: 1;
}
.card-promo .content p {
    padding: 0;
    margin: 0;
}
.card-promo .title {
    padding: 20px 20px 5px 20px !important;
    font-size: 16px;
    font-weight: bold;
}
.card-promo .publish {
    padding: 0px 0px 20px 20px !important;
    font-size: 12px;
}
.card-promo .description {
    padding: 0px 20px 0px 20px !important;
    position: absolute;
    bottom: 70px;
    font-size: 12px;
    text-align: justify;
}
.card-promo .more { 
    padding: 0px 20px 0px 20px !important;
    position: absolute;
    font-size: 12px;
    bottom: 20px;
}
.card-promo .goto { 
    padding: 0px 20px 0px 20px !important;
    position: absolute;
    font-size: 12px;
    bottom: 20px;
    right: 0px;
}
.whistle-blowing {
    text-align: left;
    position: relative;
    border-radius: 50px;
    text-decoration: none !important;
    background-color: transparent;
}
.whistle-blowing .content {
    margin-left: 32px;
}
.whistle-blowing svg {
    position: absolute;
    margin-left: 10px;
    top: -2px;
    left: -2px;
}
.whistle-blowing p {
    margin: 0;
    padding: 0;
}
.whistle-blowing .title {
    font-size: 12px;
}
.whistle-blowing .url {
    font-size: 8.3px;
}
.footer .list-unstyled li {
    font-size: 14px;
    padding-bottom: 10px;
}
/* .card-space-type {
    border: thin solid rgb(236, 236, 236); ---
} */
.card-space-type .icon {
    height: 55px;
    width: 55px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 100%;
    text-align: center;
    padding-top: 15px;
    position: absolute;
    top: 0;
    margin-top: 6px;
}

/* Superseded by the flex row layout block below (icon left, text right, equal
   card heights) — position:absolute + margin-left text offset no longer apply. */
.card-space-type .icon-lahan {
    height: 55px;
    width: 55px;
    border-radius: 100%;
    text-align: center;
}

/* Make <a> wrapper and card fill the full stretched column height (2x2 grid equal heights) */
.row.g-3 > [class*="col-"] > a.text-decoration-none {
    display: flex !important;
    height: 100% !important;
}

.card-space-type {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 90px !important;
}

/* Horizontal layout: icon left, text right, full width */
.card-space-type .card-body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
}

.card-space-type .icon-lahan {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-space-type .icon-lahan img {
    display: block !important;
    width: 50px !important;
    height: auto !important;
}

.card-space-type .card-body p {
    flex: 1 1 auto !important;
    margin: 0 !important;
    text-align: left !important;
}

@media (max-width: 576px) {
    .card-space-type .card-body {
        padding: 0.75rem 1rem !important;
        gap: 12px !important;
    }
    .card-space-type .icon-lahan img {
        width: 40px !important;
    }
}

.section-price-range {
    position: relative;
}
    .section-price-range .action {
        position: absolute;
        right: 0;
        top: -10px;
        background-color: #CCEDFF;
        padding: 5px;
        border-radius: 50px;
    }
.section-price-range .btn {
    border-radius: 50px;
    padding-left: 15px;
    padding-right: 15px;
}
    .section-price-range .btn.active {
        border: none;
        background-color: #0082C8;
        color: white;
    }

/* Stack title and Tahunan/Bulanan toggle into 2 rows on mobile (>=375px) */
@media (max-width: 767px) {
    .section-price-range .action {
        position: static;
        display: inline-flex;
        margin-top: 10px;
        margin-bottom: 20px;
    }
}

/* Force even 6-column grid for price cards on xl viewports (~1200-1399px), where
   Bootstrap's float-based col-md-2 can round unevenly and leave the last card
   under/over-sized relative to the other five. */
@media (min-width: 1200px) and (max-width: 1399px) {
    .section-price-range .row.g-3 {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    .section-price-range .row.g-3 > [class*="col-"] {
        width: auto;
        max-width: 100%;
        flex: none;
    }
}
.card-price {
    padding: 20px 0px;
}

/* Equalize price-range card heights: propagate the row's stretched column
   height down through the <a> wrapper and card, so 1-line labels ("0 - 100 Juta")
   don't look shorter than 2-line labels ("Di atas 500 Juta"). */
.row.g-3 > [class*="col-"] > a.text-decoration-none {
    display: flex !important;
    height: 100% !important;
}

.card-price {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 90px !important;
}

.card-price .card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    width: 100% !important;
}

.card-price .card-body p {
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

@media (max-width: 576px) {
    .card-price {
        min-height: 76px !important;
    }
}

.card-brand-type {
    position: relative;
    overflow-y: hidden;
    height: 500px;
    overflow: hidden;
}
.card-brand-type img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.5s ease-in-out;
}
.card-brand-type:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}
.card-brand-type .overlay {
    z-index: 1;
    position: absolute;
    /* background: rgba(0, 0, 0, 0.3); */
    /* background: #000000; */
    background: linear-gradient(360deg, rgba(0, 0, 0, 1) 0%, rgba(237, 221, 83, 0) 50%);
    width: 100%;
    height: 100%;
}
.card-brand-type .title {
    padding: 40px;
    z-index: 2;
    color: white;
    position: absolute;
    bottom: 0;
    /* transform: translate(-50%, -50%); */
}
.card-registration-mitra {
    position: relative;
    overflow-y: hidden;
    height: 350px;
}
.card-registration-mitra img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.5s ease-in-out;
}
.card-registration-mitra .overlay {
    z-index: 1;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
}
.card-registration-mitra .content {
    color: white;
    z-index: 2;
    top: 50%;
    position: absolute;
    transform: translate(0%, -50%);
    padding-left: 7%;
    padding-right: 7%;
}
.card-about {
    height: 500px;
}
.card-benefit {
    height: 250px;
}
.card-glance {
    border-radius: 0;
    height: 550px;
}
.card-glance img {
    /* width: 100%; */
    height: 100%;
}
.card-glance:hover img {
    transform: translate(-50%, -50%) scale(1);
}
    .card-glance .container {
        text-align: left;
        z-index: 2;
        color: #333333;
        top: 50%;
        left: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
    }
    .card-glance .overlay {
        background: #E6E6E6;
/*        background: rgba(0, 0, 0, 0.7);*/
    }
.card-glance .count-number {
    text-align: left;
    font-size: 48px;
}
.card-glance .count-label {
    text-align: left;
    font-size: 16px;
}
.card-glance .count-border {
    margin-top: 10px;
    border-bottom: 5px solid red;
}
.testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    left: -104%;
    top: 43%;
}
.testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    left: -99%;
    top: 43%;
}
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 25px;
    font-size: 25px !important;
    border-radius: 5px !important;
    background: transparent !important;
}
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: red !important;
    background: transparent !important
}
.card-customer-service {
    position: relative;
    overflow: hidden;
    height: 350px;
}
.card-customer-service .bg {
    position: absolute;
    top: 50%;
    left: 50%;
    /* width: 100%; */
    object-fit: contain; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.5s ease-in-out;
}
.card-customer-service .overlay {
    z-index: 1;
    position: absolute;
    /* background: rgba(0, 0, 0, 0.7); */
    background: linear-gradient(42deg, rgba(255, 0, 0, 1) 0%, rgba(64, 0, 255, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
    height: 100%;
}
.card-customer-service .content {
    color: white;
    z-index: 2;
    top: 50%;
    position: absolute;
    transform: translate(0%, -50%);
    padding-left: 7%;
    padding-right: 7%;
}
.gallery-carousel .owl-nav .owl-prev {
    left: -4%;
    top: 25%;
}
.gallery-carousel .owl-nav .owl-next {
    right: -4%;
    top: 25%;
}
.brand-highlight {
    height: 125px;
}
.brand-highlight img {
    width: 100px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover; 
    object-position: center; 
    transform: translate(-50%, -50%) scale(1);
}
.brand-carousel .owl-nav .owl-prev {
    top: 20% !important;
}
.brand-carousel .owl-nav .owl-next {
    top: 20% !important;
}
.container-map {
    position: relative;
}
.container-map .address{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-bottom-left-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}
.lightbox .lb-image {
    border: none;
}
.lb-data {
    display: none;
}
.lb-loader {
    display: none !important;
}
.spbus-carousel .owl-nav .owl-prev {
    top: 45% !important;
    left: 2% !important;
}
.spbus-carousel .owl-nav .owl-next {
    top: 45% !important;
    right: 2% !important;
}
.lahans-carousel .owl-nav .owl-prev, 
.lahans-carousel .owl-nav .owl-next {
    width: 50px !important;
    font-size: 33px !important;
}
.lahans-carousel .owl-nav .owl-prev {
    top: 35% !important;
    left: 2% !important;
}
.lahans-carousel .owl-nav .owl-next {
    top: 35% !important;
    right: 2% !important;
}
.container-lahan-item {
    position: relative;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    border-bottom: thin solid rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}
.container-lahan-item:hover {
    /* background-color: rgba(10, 107, 181, 0.05); */
    background-color: rgba(22, 92, 143, 0.05);
}
.container-lahan-item .collapse.show {
    transition: 0.3s;
    /* background-color: rgba(22, 92, 143, 0.1); */
    background-color: rgba(170,194,54, 0.07);
}
.container-lahan-item:last-child { 
    border-bottom: none; 
}
.caret-0.dropdown-toggle::after {
    content: none; 
}
#mainSearch .nav-link {
    padding-left: 25px;
    padding-right: 25px;
    margin-right: 10px;
}
.card-brand-list:hover,
.card-space:hover,
.card-spbu:hover {
    box-shadow: 0px 5px 10px 0px rgba(71,85,105,.1);
}
.card-spbu .btn-primary,
.card-space .btn-primary{
    background-color: #0a6cb5;
    border-color: #0a6cb5;
}
.card-spbu .btn-primary:hover,
.card-spbu .btn-primary:active,
.card-space .btn-primary:hover,
.card-space .btn-primary:active {
    background-color: #0a5895;
    border-color: #0a5895;
}
.owl-carousel .card-space:hover,
.owl-carousel .card-spbu:hover {
    box-shadow: none;
}
/* 
.card-spbu .bg-success,
.card-space .bg-success {
    background-color: #aac236 !important;
}
.card-spbu .bg-danger,
.card-space .bg-danger {
    background-color: #ea1d30 !important;
} */
.dropdown .dropdown-item {  
    font-size: 14px;
    padding: 7px 15px;
}
.dropdown ul.dropdown-menu {
    border: thin solid rgba(120, 120, 120, 0.1);
}
.section-recomendation-spbu .owl-carousel {
    height: 316.41px;
}
.select2-container--default .select2-selection--single {
    border-radius: var(--bs-border-radius);
    border: var(--bs-border-width) solid var(--bs-border-color);
}
.select2-container .select2-selection--single {
    height: 38px
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: .75rem;
}
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown {
    border: thin solid rgba(120, 120, 120, 0.1);
    border-radius: var(--bs-dropdown-border-radius);
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f8f9fa;
    color: var(--bs-dropdown-link-hover-color);
}
.select2-container--default .select2-results__option--selected {
    background-color: #d5d7d8;
}
.select2-container--open .select2-selection {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #0a5895;
    outline: 0;
    box-shadow: inset 0 0 .1rem rgba(10, 88, 149, 0.3);
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #0a5895;
    outline: 0;
}
.select2-results__option {
    padding: 7px 15px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: -5px;
    right: 13px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-style: none;
    /* position: absolute; */
    height: 25px;
    width: 25px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}
.card-hover {
    transition: transform .2s;
}
.card-hover:hover {
    transform: scale(1.02);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(170, 194, 54, 0.4);
}

/* Make <a> wrapper and card fill the full column width/height (4-per-row icon+label grid) */
.row.g-3 > [class*="col-"] > a.text-decoration-none {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

.card-area {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 130px !important;
}

/* Icon top, text below, vertically + horizontally centered */
.card-area .card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 1.25rem 1rem !important;
}

.card-area .card-body img {
    display: block !important;
    width: 50px !important;
    height: auto !important;
    margin: 0 auto !important;
}

.card-area .card-body p {
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

@media (max-width: 576px) {
    .card-area {
        min-height: 110px !important;
    }
    .card-area .card-body {
        padding: 1rem 0.75rem !important;
        gap: 8px !important;
    }
    .card-area .card-body img {
        width: 40px !important;
    }
}

.price-label {
    color: rgba(0, 0, 0, 0.5);
    margin-top: 7px;
}

/* nav animatiom */
/* .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 12px;
    padding-right: 12px;
}
.navbar ul li a,
.navbar ul li a:after,
.navbar ul li a:before {
  transition: ease-in-out .3s;
}
.navbar ul li a {
  position: relative;
}
.navbar ul li a:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 0%;
  content: '.';
  color: transparent;
  background: rgba(10, 108, 181, 1);
  background: rgb(234,29,48);
  height: 2px;
}
.navbar ul li a:hover:after {
  width: 100%;
}
@-webkit-keyframes fill {
    0% {
      width: 0%;
      height: 1px;
    }
    50% {
      width: 100%;
      height: 1px;
    }
    100% {
      width: 100%;
      height: 100%;
      background: #333;
    }
} */
.form-select:focus,
.form-control:focus {
    border-color: #0a5895;
    box-shadow: inset  0 0 .1rem rgba(10, 88, 149, 0.3);
}
.form-select.is-invalid:focus, 
.form-control.is-invalid:focus, 
.was-validated .form-control:invalid:focus {
    box-shadow: inset  0 0 .2rem rgba(220, 53, 69, 0.5);
}
.form-select.is-valid:focus, 
.form-control.is-valid:focus, 
.was-validated .form-control:valid:focus {
    box-shadow: inset  0 0 .2rem rgba(25, 135, 84, 0.5);
}

/* Custom validation styles for form inputs */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
/* Hide error messages while keeping the red border */
.invalid-feedback {
    display: none !important;
}

/* Disabled search button styling */
.btn-main-search.disabled, 
.btn-main-search:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: blur(0.5px);
    pointer-events: none;
}

/* Tombol Tampilkan styling */
.btn-tampilkan {
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-tampilkan:enabled {
    background-color: #212529;
    border-color: #212529;
    color: white;
}

.btn-tampilkan:enabled:hover {
    background-color: #0d1117;
    border-color: #0d1117;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.2);
}

.btn-tampilkan:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.position-relative {
    position: relative;
}

.btn-clear-input {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #e2e8f0 !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: background 0.15s, color 0.15s !important;
    display: none; /* shown via JS .css('display','flex') or :not(:placeholder-shown) rule */
}

.btn-clear-input:hover {
    background: #cbd5e1 !important;
}

.btn-clear-input i.bi-x {
    display: none !important;
}

.btn-clear-input::before,
.btn-clear-input::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #475569;
    border-radius: 1px;
}

.btn-clear-input::before {
    transform: rotate(45deg);
}

.btn-clear-input::after {
    transform: rotate(-45deg);
}

input:not(:placeholder-shown) ~ .btn-clear-input {
    display: flex;
}

/* Input clear button — list/spbu, list/lahan (NoSPBU field) */
#searchForm .btn-clear-input {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #e2e8f0 !important;
    border: none !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    transition: background 0.15s !important;
}

#searchForm .btn-clear-input > i {
    display: none !important;
}

#searchForm .btn-clear-input::before,
#searchForm .btn-clear-input::after {
    content: '' !important;
    position: absolute !important;
    width: 10px !important;
    height: 2px !important;
    background: #475569 !important;
    border-radius: 1px !important;
}

#searchForm .btn-clear-input::before {
    transform: rotate(45deg) !important;
}

#searchForm .btn-clear-input::after {
    transform: rotate(-45deg) !important;
}

#searchForm .btn-clear-input:hover {
    background: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Input clear button — map/spbu, map/lahan (NoSPBU field) */
body.map-lahan-body .map-lahan-filters .btn-clear-input {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #e2e8f0 !important;
    border: none !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    transition: background 0.15s !important;
}

body.map-lahan-body .map-lahan-filters .btn-clear-input > i {
    display: none !important;
}

body.map-lahan-body .map-lahan-filters .btn-clear-input::before,
body.map-lahan-body .map-lahan-filters .btn-clear-input::after {
    content: '' !important;
    position: absolute !important;
    width: 10px !important;
    height: 2px !important;
    background: #475569 !important;
    border-radius: 1px !important;
}

body.map-lahan-body .map-lahan-filters .btn-clear-input::before {
    transform: rotate(45deg) !important;
}

body.map-lahan-body .map-lahan-filters .btn-clear-input::after {
    transform: rotate(-45deg) !important;
}

body.map-lahan-body .map-lahan-filters .btn-clear-input:hover {
    background: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Map pages: CSS-driven visibility (one input per wrapper, no sibling ambiguity) */
body.map-lahan-body .map-lahan-filters input:not(:placeholder-shown) ~ .btn-clear-input {
    display: flex !important;
}

/* Range input group layout — each input owns its clear button via position:relative wrapper */
.range-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    gap: 4px !important;
}

.range-input-wrap {
    position: relative !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.range-input-wrap .form-control {
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 26px !important;
    box-sizing: border-box !important;
}

/* Dash separator: fixed size, never stretched or wrapped */
.range-group .input-group-text {
    flex: 0 0 auto !important;
    padding: 0.375rem 0.5rem !important;
    border-radius: 0 !important;
}

/* Reserve space so the error message appearing doesn't shift surrounding elements */
#luasError,
#hargaError {
    min-height: 1.2em !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
}

@media (max-width: 480px) {
    .range-group {
        gap: 2px !important;
    }
    .range-input-wrap .form-control {
        padding-right: 22px !important;
        font-size: 0.875rem !important;
    }
    .range-group .input-group-text {
        padding: 0.375rem 0.35rem !important;
    }
}

/* Range input clear buttons — lighter X, no persistent circle (NoSPBU uses btn-clear-input) */
.btn-clear-range {
    position: absolute !important;
    top: 50% !important;
    right: 6px !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #e2e8f0 !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: background 0.15s !important;
    display: none;
}

@media (max-width: 480px) {
    .btn-clear-range {
        width: 18px !important;
        height: 18px !important;
        right: 4px !important;
    }

    /* Reduce button padding on small screens */
    .btn.ps-4.pe-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Extra-tight responsive for phones ≤375px */
@media (max-width: 375px) {
    .btn.ps-4.pe-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.875rem !important;
    }

    /* Stack button groups vertically on very small screens */
    .mt-3.d-flex.justify-content-between.flex-wrap {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    /* Ensure button groups stretch full width */
    .mt-3.d-flex.justify-content-between.flex-wrap > .d-flex {
        width: 100%;
        gap: 0.5rem !important;
    }

    /* Reset button: icon-only on 375px for space savings */
    #btnResetFilter {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        min-width: auto !important;
        white-space: nowrap !important;
        font-size: 0 !important;
        transition: all 0.2s ease;
    }

    #btnResetFilter .bi {
        margin-right: 0 !important;
        font-size: 1rem !important;
    }

    #btnResetFilter small {
        display: none !important;
        font-size: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Reset button: show text at 480px and above */
@media (max-width: 480px) {
    #btnResetFilter {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
    }

    #btnResetFilter small {
        display: inline !important;
        font-size: 0.875rem !important;
        margin-left: 4px;
    }

    #btnResetFilter .bi {
        margin-right: 0.25rem !important;
        font-size: 1rem !important;
    }
}

/* Standardize Cari and Reset buttons for consistent sizing */
.btn-main-search,
#btnResetFilter {
    height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border-width: 1px !important;
    gap: 0.5rem !important;
}

/* Ensure reset button respects d-none class */
#btnResetFilter.d-none {
    display: none !important;
}

.btn-main-search .bi,
#btnResetFilter .bi {
    font-size: 1rem !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.btn-main-search small,
#btnResetFilter small {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap;
}

/* 2x2 grid button layout on tablets/mobile (<768px) */
@media (max-width: 767px) {
    .mt-3.d-flex.justify-content-between.align-items-center.flex-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    .mt-3.d-flex.justify-content-between.align-items-center.flex-wrap > .d-flex {
        display: contents !important;
    }

    .mt-3.d-flex.justify-content-between.align-items-center.flex-wrap .btn,
    .mt-3.d-flex.justify-content-between.align-items-center.flex-wrap a.btn {
        width: 100% !important;
        height: 2.5rem !important;
        flex: 1 1 auto !important;
    }

    .btn-main-search,
    #btnResetFilter,
    #listSpbuNearMe,
    #listLahanNearMe,
    #exploreSpbuMapBtn,
    #exploredMapBtn {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.btn-clear-range:hover {
    background: #cbd5e1 !important;
}

.btn-clear-range i.bi-x {
    display: none !important;
}

.btn-clear-range::before,
.btn-clear-range::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 2px;
    background: #475569;
    border-radius: 1px;
}

.btn-clear-range::before {
    transform: rotate(45deg);
}

.btn-clear-range::after {
    transform: rotate(-45deg);
}


/* Sembunyikan kontrol native browser di modal login saja */
#modal-login input::-ms-reveal,
#modal-login input::-ms-clear {
    display: none;
}

/* tombol clear di dalam select2 — base (fallback) */
.select2-selection .btn-clear.inside-select2 {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: none;
}

/* list/spbu and list/lahan — geometric X, same approach as map selectors */
#searchForm .select2-selection .btn-clear.inside-select2 {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    background: #e2e8f0 !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex; /* no !important — allows jQuery .hide()/.show() to override */
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    cursor: pointer !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    transition: background 0.15s, color 0.15s !important;
}

#searchForm .select2-selection .btn-clear.inside-select2 > i {
    display: none !important;
}

#searchForm .select2-selection .btn-clear.inside-select2::before,
#searchForm .select2-selection .btn-clear.inside-select2::after {
    content: '' !important;
    position: absolute !important;
    width: 10px !important;
    height: 2px !important;
    background: #475569 !important;
    border-radius: 1px !important;
}

#searchForm .select2-selection .btn-clear.inside-select2::before {
    transform: rotate(45deg) !important;
}

#searchForm .select2-selection .btn-clear.inside-select2::after {
    transform: rotate(-45deg) !important;
}

#searchForm .select2-selection .btn-clear.inside-select2:hover {
    background: #cbd5e1 !important;
}

/* posisi tombol select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 8px !important;
}
#luasMin,
#hargaMin {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
}
#luasMax,
#hargaMax {
    margin-left: calc(var(--bs-border-width) * -1);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}
.card-price {
    /* background: url('../../../assets/bgabstract5.wepb') center/cover no-repeat; */
    /* background-color: rgba(255,255,255, 0.3); */
    /* background-blend-mode: lighten; */
    background-color: #004266;
    background-size: 100% 100%;
}
.card-mitra-type {
    background: url('../../../assets/bgabstract5.webp') center/cover no-repeat;
    background-color: rgba(255,255,255, .7);
    background-blend-mode: lighten;
     background-size: 100% 100%; 
}
.card-containter-space {
    /* background: url('../../../assets/bgabstract3.wepb') center/cover no-repeat; */
    /* background-color: rgba(0, 0, 0, 0); */
    background-blend-mode: hard-light;
}
.card-price:hover,
.card-mitra-type:hover {
    box-shadow: none;
    background-blend-mode: darken;
}
.cursor-pointer {
    cursor: pointer !important;
}

/* LAHAN LIST VALIDATION STYLES */
.invalid-field {
    border: 1px solid #dc3545 !important;
}

.invalid-field + .invalid-feedback,
.input-group:has(.invalid-field) + .invalid-feedback {
    display: block;
}

.input-group .invalid-field {
    z-index: 0;
}
/* END LAHAN LIST VALIDATION STYLES */
.card-text {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Hero Button Styling based on Figma */
.btn-hero-custom {
    border-radius: 60px !important;
    padding: 16px 32px !important;
    gap: 10px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
}

.btn-hero-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Custom Red Button Styling for Hero */
.btn-hero-red {
    background-color: #ED1C23 !important;
    border-color: #ED1C23 !important;
    color: white !important;
}

.btn-hero-red:hover {
    background-color: #c41e2a !important;
    border-color: #c41e2a !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 28, 35, 0.3);
}

/* Hero Home Page Specific Styling */
.hero-home {
    position: relative;
}

.hero-home-overlay {
    background: rgba(0, 0, 0, 0) !important; /* Lighter overlay for home page */
}

.hero-home-title {
    font-size: 48px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #333333;
}

.hero-home-subtitle {
    font-size: 48px !important;
    font-weight: 900 !important; /* Extra bold */
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333333;
}

.hero-home-description {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #333333;
    opacity: 0.95;
    text-align: justify;
}

.hero-home-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-home-hashtag {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #333333;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Auto-contrast: dark background detected → switch to light text */
.swiper-slide.hero-contrast-light .hero-home-title,
.swiper-slide.hero-contrast-light .hero-home-subtitle,
.swiper-slide.hero-contrast-light .hero-home-description,
.swiper-slide.hero-contrast-light .hero-home-hashtag {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.swiper-slide.hero-contrast-light .hero-home-title .highlight-bold {
    color: #ffcdd2 !important;
}

/* Auto-contrast: light background detected → reinforce dark text */
.swiper-slide.hero-contrast-dark .hero-home-title,
.swiper-slide.hero-contrast-dark .hero-home-subtitle,
.swiper-slide.hero-contrast-dark .hero-home-description,
.swiper-slide.hero-contrast-dark .hero-home-hashtag {
    color: #1a1a1a !important;
    text-shadow: none;
}
.swiper-slide.hero-contrast-dark .hero-home-title .highlight-bold {
    color: #c0392b !important;
}

/* Smooth transition for color changes */
.hero-home-title,
.hero-home-subtitle,
.hero-home-description,
.hero-home-hashtag {
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Responsive styling for Hero Home */
@media (max-width: 768px) {
    .hero-home-title {
        font-size: 32px !important;
        margin-bottom: 10px;
    }

    .hero-home-subtitle {
        font-size: 32px !important;
        margin-bottom: 15px;
    }

    .hero-home-description {
        font-size: 14px !important;
        margin-bottom: 25px;
    }

    .hero-home-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-home-hashtag {
        font-size: 16px !important;
    }
}

/* Hero default placeholder — shown when no banners are configured */
.hero-default-placeholder {
    background: linear-gradient(135deg, #1a2744 0%, #2c3e6b 40%, #8b1a1a 75%, #c0392b 100%) !important;
}

.hero-default-badge {
    position: absolute;
    bottom: 160px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-default-badge:hover {
    opacity: 1;
}

.hero-default-badge i {
    font-size: 13px;
    opacity: 0.8;
}

/* Hero Swiper */
.hero-swiper {
    height: 570px;
    position: relative;
}
.hero-swiper .swiper-slide.hero {
    height: 570px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero banner (swiper) — gradient overlay + text contrast */
.hero-banner-wrap .hero-home-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15), transparent) !important;
}

.hero-banner-wrap .hero-home-content {
    max-width: 40%;
    width: 100%;
}

.hero-banner-wrap .hero-home-title,
.hero-banner-wrap .hero-home-description,
.hero-banner-wrap .hero-home-hashtag {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-banner-wrap .hero-home-title .highlight-bold {
    color: #fff !important;
}

.hero-banner-wrap .swiper-slide.hero-contrast-light .hero-home-title,
.hero-banner-wrap .swiper-slide.hero-contrast-light .hero-home-description,
.hero-banner-wrap .swiper-slide.hero-contrast-light .hero-home-hashtag,
.hero-banner-wrap .swiper-slide.hero-contrast-dark .hero-home-title,
.hero-banner-wrap .swiper-slide.hero-contrast-dark .hero-home-description,
.hero-banner-wrap .swiper-slide.hero-contrast-dark .hero-home-hashtag {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-banner-wrap .swiper-slide.hero-contrast-light .hero-home-title .highlight-bold,
.hero-banner-wrap .swiper-slide.hero-contrast-dark .hero-home-title .highlight-bold {
    color: #fff !important;
}

@media (max-width: 768px) {
    .hero-banner-wrap .hero-home-content {
        max-width: 90%;
    }
}

/* Hero banner wrapper — positions indicators relative to hero */
.hero-banner-wrap {
    position: relative;
}

/* Simple dot indicators — outside swiper to avoid overflow:clip */
.hero-indicators {
    position: absolute;
    bottom: 108px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.9);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.3);
}
.hero-indicator-dot:hover {
    background: rgba(255,255,255,0.6);
}
.hero-indicator-dot.is-active {
    width: 28px;
    border-radius: 5px;
    background: #fff;
    border-color: #fff;
}

/* ── SPBU list: CSS grid + subgrid alignment ── */
.spbu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 991px) {
    .spbu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .spbu-grid { grid-template-columns: 1fr; }
}
.spbu-grid > div {
    grid-row: span 4;
    display: grid;
    grid-template-rows: subgrid;
}
.spbu-grid .card-spbu {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
}
.spbu-grid .card-spbu .card-body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
}
.card-header-row {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}
.card-header-row .card-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-header-row .badge {
    flex-shrink: 0;
    align-self: center;
}

/* ── Lahan list: CSS grid + subgrid alignment ── */
.lahan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}
@media (max-width: 991px) {
    .lahan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .lahan-grid { grid-template-columns: 1fr; }
}
.lahan-grid > div {
    grid-row: span 5;
    display: grid;
    grid-template-rows: subgrid;
}
.lahan-grid .card-space {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
}
.lahan-grid .card-space .card-body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
}
.lahan-grid .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Custom Tab Styling for Lahan - Red Oval Shape */
#mainSearch .nav-link {
    border-radius: 50px !important;
    padding: 12px 24px !important;
    margin-right: 10px;
    border: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mainSearch .nav-link.active {
    background-color: rgba(237, 28, 35, 0.9) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(237, 28, 35, 0.3);
}

#mainSearch .nav-link:not(.active) {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #333333;
/*    border: 1px solid rgba(255, 255, 255, 0.3);*/
}

#mainSearch .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    color: #ED1C23;
    border-color: rgba(237, 28, 35, 0.5);
}

#mainSearch .nav-link h5 {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 500;
}

/* Logo Overlay for SPBU Cards */
.card-logo-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.card-logo-overlay img {
    width: 60px;
    height: auto;
    opacity: 0.9;
}
.card-registration-mitra .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.card-registration-mitra .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 10px 20px;
}

/* Custom font styling for Mitra page */
/*.hero.mitra h1 {
    font-family: "Exo", sans-serif;
    font-weight: 800;*/ /* ExtraBold */
    /*font-optical-sizing: auto;
    font-style: normal;*/
    /*    color: #333333;*/
/*}

.hero.mitra h5 {
    font-family: "Exo", sans-serif;
    font-weight: 200;
    Regular font-optical-sizing: auto;
    font-style: normal;*/
    /*    color: #333333;*/
/*}

.hero.mitra .btn-hero-custom {
    font-family: "Rethink Sans", sans-serif;
    font-weight: 700;*/ /* Bold */
    /*background-color: #ED1C23 !important;
    border-color: #ED1C23 !important;
    color: white !important;
}

.hero.mitra .btn-hero-custom:hover {
    background-color: #c41e2a !important;
    border-color: #c41e2a !important;
    color: white !important;
}*/

/* Mitra Page Sections Custom Styling */
/* Berbagai Jenis Usaha Section */
.section-category .row {
    max-width: 900px;
    margin: 0 auto;
}

.mitra-brand-grid {
    max-width: 960px;
    margin: 0 auto;
}

.card-brand-mitra {
    border: thin solid rgba(0, 0, 0, 0.1);
    height: 100px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.card-brand-mitra img {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 576px) {
    .card-brand-mitra {
        height: 110px;
        padding: 12px;
    }

    .card-brand-mitra img {
        max-height: 86px;
    }
}

@media (min-width: 992px) {
    .card-brand-mitra {
        height: 125px;
        padding: 14px;
    }

    .card-brand-mitra img {
        max-height: 97px;
    }
}

.card-brand-type-mitra {
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.card-brand-type-mitra .overlay-red-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(255,0,0,0.3) 60%, rgba(255,0,0,0.7) 100%);
    z-index: 1;
}

.card-brand-type-mitra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .card-brand-type-mitra .title-overlay {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
        color: white;
        z-index: 2;
        font-size: 1.25rem;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

/* Mitra Berdasarkan Bidang Usaha Section */
.section-type .row {
    max-width: 900px;
    margin: 0 auto;
}

.card-bidang-usaha-mitra {
    height: 120px;
}

.card-bidang-usaha-mitra .card-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.card-bidang-usaha-mitra img {
    width: 40px;
    margin-bottom: 8px;
}

.card-bidang-usaha-mitra p {
    padding: 0;
    margin: 0;
    font-size: 14px;
    text-align: center;
}
.list-title {
    margin-top: 30px;
    margin-bottom: 30px; 
    display: inline-block;
}

/* Lozad.js Lazy Loading Styles */
.lozad {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lozad.lozad-loaded {
    opacity: 1;
}

/* Loading placeholder styles */
.lozad:not(.lozad-loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Ensure images maintain aspect ratio during loading */
.lozad:not(.lozad-loaded) img {
    opacity: 0;
}

.lozad.lozad-loaded img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Thumbnail Navigation Styles */
.carousel-thumbnails {
    margin-top: 20px;
    width: 100%;
}

.thumbnail-img {
    width: 100%;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.thumbnail-img:hover {
    border-color: #0a6cb5;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(10, 108, 181, 0.1);
}

.thumbnail-img.active {
    border-color: #0a6cb5;
    box-shadow: 0 0 0 2px rgba(10, 108, 181, 0.2);
}

.thumbnail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-img:hover img {
    transform: scale(1.08);
}

/* Responsive thumbnail sizes */
@media (max-width: 768px) {
    .thumbnail-img {
        height: 60px;
        margin: 0 8px;
    }
    
    .three-sixty-button {
        font-size: 0.7rem !important;
        padding: 0.4em 0.8em !important;
    }
    
    .three-sixty-icon {
        width: 1em !important;
    }
}

@media (max-width: 576px) {
    .thumbnail-img {
        height: 54px;
        margin: 0 6px;
    }

    .three-sixty-button {
        font-size: 0.65rem !important;
        padding: 0.3em 0.6em !important;
    }
    
    .three-sixty-icon {
        width: 0.9em !important;
    }
}

.container-photo {
    position: relative;
}

.three-sixty-overlay {
    position: absolute;
    bottom: 100px;
    right: 20px;
    z-index: 10;
}

.three-sixty-button {
    font-size: clamp(0.75rem, 1.5vw, 1rem); 
    padding: 0.5em 1.2em;
    border-radius: 1.5em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em; 
}

.three-sixty-icon {
    width: 1.25em; 
    filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
    .three-sixty-overlay {
        bottom: 80px;
        right: 10px;
    }
}

.toast {
    background-color: var(--custom-white);
    border: 1px solid var(--default-border);
    box-shadow: 0 0.125rem 0 rgba(10, 10, 10, 0.04);
    border-radius: 0.5rem;
}

.toast .toast-header {
    background-color: rgb(var(--light-rgb));
    padding: 0.375rem 0.75rem;
}

.toast .toast-header img {
    width: 1.25rem;
    height: 1.25rem;
}

.toast .toast-header {
    border-bottom: 1px solid var(--default-border);
}

.toast .toast-header .btn-close {
    margin-inline-end: 0.125rem;
}

.toast .toast-body {
    font-size: 0.8rem;
}

.toast .btn-close {
    font-size: 0.563rem;
}

.toast.colored-toast {
    border: 0 !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.toast.colored-toast .btn-close {
    filter: invert(1);
}

.toast.colored-toast .toast-header {
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

.toast .toast-header.toast-success-soft {
    background-color: #63b983;
}

/* Traffic toast */
.traffic-toast {
    width: min(360px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #c3c6d7 !important;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.traffic-toast-body {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-start;
}

.traffic-toast-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #ffdad6;
    color: #ba1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.traffic-toast-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.traffic-toast-message {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #434655;
}

.traffic-toast-progress {
    height: 4px;
    background: #e1e2ed;
}

.traffic-toast-progress > span {
    display: block;
    height: 100%;
    width: 100%;
    background: #ba1a1a;
    animation: traffic-toast-progress 5s linear forwards;
}

@keyframes traffic-toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}


/* ── Map Lahan page ──────────────────────────────────────────────────────── */
body.map-lahan-body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #f7fafc;
}

.map-lahan-page {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* â”€â”€ Sidebar spinner overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-sidebar-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

/* â”€â”€ Sidebar panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-sidebar {
    position: relative;
    width: 420px;
    min-width: 320px;
    max-width: 100%;
    background: #fff;
    border-right: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: clip;
}

.map-lahan-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
}

.map-lahan-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0b4f8a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.map-lahan-back:hover {
    color: #fff;
    background: #093f6d;
}

.map-lahan-logo {
    height: 34px;
    width: auto;
}

/* â”€â”€ Sidebar collapse tab (desktop only) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-sidebar-toggle {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 20px;
    height: 64px;
    background: #0b4f8a;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.map-lahan-sidebar-toggle:hover { background: #093f6d; }

.map-lahan-sidebar-toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
}

.map-lahan-page.sidebar-collapsed .map-lahan-sidebar {
    width: 0;
    min-width: 0;
    border-right: none;
}

.map-lahan-page.sidebar-collapsed .map-lahan-sidebar-toggle i {
    transform: scaleX(-1);
}

@media (min-width: 992px) {
    .map-lahan-sidebar-toggle {
        display: flex;
    }
}

/* â”€â”€ Near Me button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-near-me.active {
    background: #0b4f8a;
    border-color: #0b4f8a;
    color: #fff;
}
.map-lahan-near-me .near-me-hover { display: none; }
.map-lahan-near-me.active:hover .near-me-default { display: none; }
.map-lahan-near-me.active:hover .near-me-hover { display: inline; }

/* â”€â”€ Distance badge on sidebar cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-distance {
    font-size: 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* â”€â”€ FAB â€” open sidebar on mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: #0b4f8a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11, 79, 138, 0.4);
    gap: 8px;
    align-items: center;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.map-lahan-fab:hover {
    background: #093f6d;
    box-shadow: 0 6px 20px rgba(11, 79, 138, 0.5);
}

.map-lahan-fab:active {
    transform: translateX(-50%) scale(0.96);
}

/* â”€â”€ Sidebar close button (mobile only) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-sidebar-close {
    display: none;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.map-lahan-sidebar-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* â”€â”€ Filter form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-filters {
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eef2f6;
    overflow-y: auto;
    max-height: 48vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-lahan-filters .form-control,
.map-lahan-filters .form-select,
.map-lahan-filters .select2-container .select2-selection--single {
    font-size: 13px;
    border-color: #d8e0ea;
    border-radius: 6px;
    min-height: 36px;
    background-color: #f8fafc;
    color: #334155;
}

.map-lahan-filters .form-control::placeholder {
    color: #94a3b8;
}

.map-lahan-filters .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

.map-lahan-filters .select2-container {
    width: 100% !important;
}

.map-filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

/* Row 1: search + wilayah */
.map-filter-row-1 {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.map-filter-row-1 .map-filter-spbu {
    flex: 0 0 62%;
    max-width: 62%;
}

.map-filter-row-1 .map-filter-wilayah {
    flex: 1;
    min-width: 0;
}

/* Row 2: three dropdowns */
.map-filter-row-2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.map-filter-row-2 .select2-container--default .select2-selection__rendered {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Rows 3â€“4: label + min/max range inputs */
.map-filter-row-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-filter-row-range .map-filter-range-label {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    min-width: 72px;
}

.map-filter-row-range .map-lahan-range-group {
    flex: 1;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
    align-items: center;
}

.map-filter-row-range .map-lahan-range-input-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 88px;
    min-width: 0;
}

.map-filter-row-range .map-lahan-range-input-wrap .form-control {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding-left: 8px;
    padding-right: 28px;
    box-sizing: border-box;
}

.map-lahan-body .map-lahan-btn-clear-range {
    position: absolute !important;
    top: 50% !important;
    right: 6px !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #e2e8f0 !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: background 0.15s !important;
    display: none;
}

.map-lahan-body .map-lahan-btn-clear-range:hover {
    background: #cbd5e1 !important;
}

.map-lahan-body .map-lahan-btn-clear-range i.bi-x {
    display: none !important;
}

.map-lahan-body .map-lahan-btn-clear-range::before,
.map-lahan-body .map-lahan-btn-clear-range::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 2px;
    background: #475569;
    border-radius: 1px;
}

.map-lahan-body .map-lahan-btn-clear-range::before {
    transform: rotate(45deg);
}

.map-lahan-body .map-lahan-btn-clear-range::after {
    transform: rotate(-45deg);
}

/* CSS-driven visibility — input and button are siblings inside .map-lahan-range-input-wrap */
.map-lahan-body .map-lahan-range-input-wrap input:not(:placeholder-shown) ~ .map-lahan-btn-clear-range {
    display: flex !important;
}

/* Row 5: action buttons */
.map-filter-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.map-lahan-near-me {
    margin-right: auto;
    width: auto;
    border-radius: 6px;
    font-size: 12px;
    padding: 6px 12px;
}

.map-lahan-apply {
    width: auto;
    min-width: 120px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    background: #0b4f8a;
    border-color: #0b4f8a;
}

.map-lahan-apply:hover {
    background: #093f6d;
    border-color: #093f6d;
}

/* â”€â”€ Sidebar results list â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px 18px;
    scrollbar-width: none;
}
.map-lahan-results::-webkit-scrollbar { display: none; }

/* ── Custom scrollbar indicator (injected by JS) ─────────────────────────── */

.map-lahan-scroll-track {
    position: absolute;
    right: 2px;
    width: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.map-lahan-scroll-thumb {
    position: absolute;
    left: 0;
    right: 0;
    background: #94a3b8;
    border-radius: 2px;
    min-height: 24px;
}

/* â”€â”€ Sidebar card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.map-lahan-card:hover,
.map-lahan-card.active {
    border-color: #0b4f8a;
    box-shadow: 0 4px 14px rgba(11, 79, 138, 0.12);
}
.map-lahan-card.is-new {
    animation: card-new-highlight 1.8s ease-out forwards;
}
@keyframes card-new-highlight {
    0%   { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.7), 0 2px 12px rgba(59, 130, 246, 0.25); }
    60%  { box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 2px 6px rgba(59, 130, 246, 0.1); }
    100% { box-shadow: none; }
}

.map-lahan-card-media {
    position: relative;
    width: 108px;
    min-width: 108px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.map-lahan-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-lahan-card-media .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
}

.map-lahan-card-body {
    flex: 1;
    min-width: 0;
}

.map-lahan-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
    line-height: 1.3;
}

.map-lahan-card-code {
    font-size: 11px;
    color: #475569;
    margin: 0 0 4px;
}

.map-lahan-card-code-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 2px;
}

.map-lahan-card-address {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-lahan-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    font-size: 11px;
    color: #475569;
    margin-bottom: 8px;
}

.map-lahan-card-specs span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-lahan-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.map-lahan-card-price {
    font-size: 12px;
    color: #0b4f8a;
    font-weight: 700;
    margin: 0;
}

.map-lahan-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.map-lahan-card .btn-detail {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.map-lahan-card .btn-detail-spbu {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.4;
}

/* â”€â”€ Map panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-map-panel {
    flex: 1;
    position: relative;
    min-width: 0;
}

#map {
    width: 100%;
    height: 100%;
}

/* â”€â”€ SPBU marker label (green price popover) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-poi-popover {
    position: absolute;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.map-lahan-poi-popover--behind-detail {
    z-index: 0;
    opacity: 0.92;
}

.map-lahan-poi-popover__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #097939 0%, #0f9347 100%);
    color: #fff;
    border-radius: 14px;
    padding: 6px 14px;
    box-shadow: 0 4px 14px rgba(9, 121, 57, 0.35);
    min-width: 150px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-lahan-poi-popover__inner::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #0f9347 transparent;
    display: block;
    width: 0;
}

.map-lahan-poi-popover__inner.map-lahan-poi-popover--rented {
    background: linear-gradient(145deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.map-lahan-poi-popover__inner.map-lahan-poi-popover--rented::after {
    border-color: #dc2626 transparent;
}
.map-lahan-poi-popover__inner.map-lahan-poi-popover--no-lahan {
    background: linear-gradient(145deg, #d1d5db 0%, #e5e7eb 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border: 1.5px solid #374151;
    color: #374151;
}
.map-lahan-poi-popover__inner.map-lahan-poi-popover--no-lahan::after {
    border-color: #374151 transparent;
}

.map-lahan-poi-title-row {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.35;
}

.map-lahan-poi-price-row {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    margin-top: 1px;
    opacity: 0.95;
    line-height: 1.2;
}

.map-lahan-poi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 8px;
}

.map-lahan-poi-body {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.map-lahan-poi-code {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-lahan-poi-count {
    display: inline-block;
    margin-left: 4px;
    font-size: 9px;
    font-weight: 600;
    opacity: 0.9;
    vertical-align: middle;
}

.map-lahan-poi-price {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.95;
}

.map-lahan-poi-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.map-lahan-poi-price-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* â”€â”€ POI custom markers (storefront bubbles placed at coordinates) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-poi-custom-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    pointer-events: auto;
}

.map-poi-custom-bubble {
    background: linear-gradient(145deg, #097939 0%, #0f9347 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    position: relative;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-poi-custom-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #0f9347 transparent;
    display: block;
    width: 0;
}

.map-poi-custom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-poi-custom-marker:hover .map-poi-custom-icon {
    transform: scale(1.2);
}

/* â”€â”€ Google Maps InfoWindow overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.gm-style .gm-style-iw-c {
    z-index: 10001 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

/* Lahan list InfoWindow content — width shrinks on narrow phones (e.g. 360px
   Galaxy S8+) so the popover stays within the viewport instead of being cropped. */
.map-lahan-iw-content {
    min-width: 260px;
    max-width: 340px;
}
@media (max-width: 400px) {
    .map-lahan-iw-content {
        min-width: 0;
        max-width: calc(100vw - 48px);
    }
}

.gm-style button[title="Close"],
.gm-style button.gm-ui-hover-text,
.gm-style-iw-c + button {
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    transition: background-color 0.2s, opacity 0.2s !important;
    opacity: 0.8 !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

.gm-style button[title="Close"]:hover,
.gm-style button.gm-ui-hover-text:hover,
.gm-style-iw-c + button:hover {
    background: #e2e8f0 !important;
    opacity: 1 !important;
}

.gm-style button[title="Close"] > *,
.gm-style button.gm-ui-hover-text > *,
.gm-style-iw-c + button > * {
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
}

/* â”€â”€ Sidebar results meta bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-lahan-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 2px 14px;
    gap: 8px;
}

.map-lahan-results-header {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    flex: 1;
    min-height: 22px;
}

.map-infowin-scroll::-webkit-scrollbar { display: none; }

.map-count-more-hint {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
    letter-spacing: 0.1px;
    vertical-align: middle;
}

@keyframes mapCountFlash {
    0%   { color: #2563eb; transform: scale(1.12); }
    60%  { color: #3b82f6; transform: scale(1.06); }
    100% { color: inherit;  transform: scale(1); }
}

.map-count-num {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.map-count-num.map-count-updated {
    animation: mapCountFlash 0.45s ease-out forwards;
}

.map-lahan-sentinel {
    height: 1px;
}

.map-lahan-empty {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 24px 12px;
}

/* ── SPBU card overrides — tighter than lahan cards ─────────────────────────── */

#mapSpbuResults .map-lahan-card {
    padding: 9px 10px;
    gap: 9px;
    margin-bottom: 8px;
}
#mapSpbuResults .map-lahan-card-media {
    width: 84px;
    min-width: 84px;
    height: 78px;
    border-radius: 8px;
}
#mapSpbuResults .map-lahan-card-title {
    font-size: 13px;
    margin-bottom: 2px;
}
#mapSpbuResults .map-lahan-distance {
    font-size: 11px;
    margin-bottom: 2px;
    display: block;
}
#mapSpbuResults .map-lahan-card-address {
    font-size: 11px;
    margin-bottom: 5px;
    -webkit-line-clamp: 1;
}
#mapSpbuResults .map-lahan-card-footer {
    padding-top: 5px !important;
    gap: 6px;
}
#mapSpbuResults .price-label {
    font-size: 9px;
    margin-bottom: 0;
    line-height: 1.2;
}
#mapSpbuResults .map-lahan-card-price {
    font-size: 11px;
    line-height: 1.3;
}
#mapSpbuResults .map-lahan-card .btn-detail {
    font-size: 11px;
    padding: 3px 10px;
}

/* â”€â”€ Location gate (full-screen prompt before location is granted) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.map-location-gate {
    position: fixed;
    inset: 0;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}

.map-location-gate-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 36px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.10);
}

.map-location-gate-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 28px;
}

.map-location-gate-back:hover { color: #0b4f8a; }

.map-location-gate-icon {
    font-size: 52px;
    color: #0b4f8a;
    margin-bottom: 18px;
    line-height: 1;
}

.map-location-gate-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.map-location-gate-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 28px;
}

.map-location-gate-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.map-location-gate-error {
    display: none;
    margin-top: 14px;
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
}

/* â”€â”€ Responsive: tablet / mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (max-width: 991px) {
    .map-lahan-page {
        position: relative;
    }

    .map-lahan-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(380px, 92vw);
        max-height: 100vh;
        max-height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        border-right: none;
        overflow-y: auto;
    }

    .map-lahan-sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(15, 23, 42, 0.18);
    }

    .map-lahan-sidebar-close {
        display: flex;
    }

    .map-lahan-fab {
        display: flex;
    }

    .map-lahan-fab.sidebar-open {
        display: none;
    }

    .map-lahan-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 9;
    }

    .map-lahan-overlay.active {
        display: block;
    }

    .map-lahan-map-panel {
        position: fixed;
        inset: 0;
        min-height: unset;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    .map-lahan-filters {
        max-height: none;
    }

    .map-lahan-results {
        max-height: none;
        flex: 1;
    }
}

@media (max-width: 640px) {
    .map-lahan-sidebar {
        width: 100vw;
    }

    .map-lahan-sidebar-header {
        padding: 12px 14px;
    }

    .map-lahan-back {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .map-lahan-logo {
        height: 28px;
    }

    .map-lahan-sidebar-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .map-lahan-filters {
        padding: 12px 14px 10px;
        gap: 8px;
    }

    .map-filter-row-2 {
        gap: 6px;
    }

    .map-filter-row-range .map-filter-range-label {
        font-size: 12px;
        min-width: 64px;
    }

    .map-filter-row-range .map-lahan-range-input-wrap {
        max-width: none;
    }

    .map-lahan-filters .form-control,
    .map-lahan-filters .form-select,
    .map-lahan-filters .select2-container .select2-selection--single {
        font-size: 12px;
        min-height: 34px;
    }

    .map-lahan-card {
        padding: 10px;
        gap: 10px;
    }

    .map-lahan-card-media {
        width: 88px;
        min-width: 88px;
        height: 74px;
    }

    .map-lahan-card-title {
        font-size: 13px;
    }

    .map-lahan-card-address {
        font-size: 11px;
    }

    .map-lahan-card-specs {
        font-size: 10px;
        gap: 3px;
    }

    .map-lahan-card-price {
        font-size: 11px;
    }

    .map-lahan-card .btn-detail {
        font-size: 11px;
        padding: 3px 10px;
    }

    .map-lahan-results {
        padding: 10px 12px 14px;
    }

    .map-lahan-fab {
        bottom: 20px;
        padding: 11px 18px;
        font-size: 13px;
    }
}

/* ── Map alert banner ────────────────────────────────────────────────────────── */
.map-alert-banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px 13px 16px;
    border-radius: 10px;
    max-width: 440px;
    width: calc(100% - 32px);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2);
    pointer-events: auto;
    transition: transform .38s cubic-bezier(.34,1.56,.64,1);
}
.map-alert-banner.show { transform: translate(-50%, 0); }
.map-alert-banner--warning {
    background: #92400e;
    color: #fff;
    border-left: 4px solid #fbbf24;
}
.map-alert-banner--danger {
    background: #991b1b;
    color: #fff;
    border-left: 4px solid #f87171;
}
.map-alert-banner--info {
    background: #1e40af;
    color: #fff;
    border-left: 4px solid #60a5fa;
}
.map-alert-banner__icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}
.map-alert-banner__msg {
    flex: 1;
    min-width: 0;
}
.map-alert-banner__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    opacity: .7;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 15px;
    line-height: 1;
    margin-left: 4px;
    border-radius: 4px;
    transition: opacity .15s;
}
.map-alert-banner__close:hover { opacity: 1; }

/* ── Map transition overlay ─────────────────────────────────────────────────── */

.map-transition-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 2;
}
.map-transition-overlay.fade-in  { opacity: .45; }

/* Nav line tabs */
#bestUseTabs.nav-line,
#analytic-tabs.nav-line {
    border-bottom: 1px solid #d9e1ef;
    gap: 1.25rem;
}

#poiOverviewTabs.nav-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid #d9e1ef;
}

#poiOverviewTabs.nav-line .nav-item {
    display: flex;
    justify-content: center;
}

#poiOverviewTabs.nav-line .nav-link {
    width: 100%;
    text-align: center;
}

#bestUseTabs.nav-line .nav-link,
#analytic-tabs.nav-line .nav-link,
#poiOverviewTabs.nav-line .nav-link {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6b778c;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
}

#bestUseTabs.nav-line .nav-link:hover,
#bestUseTabs.nav-line .nav-link:focus,
#analytic-tabs.nav-line .nav-link:hover,
#analytic-tabs.nav-line .nav-link:focus,
#poiOverviewTabs.nav-line .nav-link:hover,
#poiOverviewTabs.nav-line .nav-link:focus {
    color: #b12025;
}

#bestUseTabs.nav-line .nav-link.active,
#bestUseTabs.nav-line .show > .nav-link,
#analytic-tabs.nav-line .nav-link.active,
#analytic-tabs.nav-line .show > .nav-link,
#poiOverviewTabs.nav-line .nav-link.active,
#poiOverviewTabs.nav-line .show > .nav-link {
    color: #b12025;
    background: transparent;
}

#bestUseTabs.nav-line .nav-link.active::after,
#bestUseTabs.nav-line .show > .nav-link::after,
#analytic-tabs.nav-line .nav-link.active::after,
#analytic-tabs.nav-line .show > .nav-link::after,
#poiOverviewTabs.nav-line .nav-link.active::after,
#poiOverviewTabs.nav-line .show > .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background-color: #b12025;
}

.poi-overview-list {
    max-height: 420px;
    overflow-y: auto;
}

.area-socio-chart-wrap {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 280px;
}

/* Fix for Select2 clear icon on Map Filters */
.select2-container--bootstrap-5 .select2-selection__clear {
    width: 22px !important;
    height: 22px !important;
    background-color: #e2e8f0 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 36px !important; /* Move away from dropdown arrow */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: #64748b !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.select2-container--bootstrap-5 .select2-selection__clear:hover {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Map filter sidebar — accessible clear button (only /map/lahan and /map/spbu) */
body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection--single {
    position: relative !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 52px !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    background: #e2e8f0 !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    font-size: 0 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: background 0.15s, color 0.15s !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear > div {
    display: none !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear::before,
body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear::after {
    content: '' !important;
    position: absolute !important;
    width: 10px !important;
    height: 2px !important;
    background: #475569 !important;
    border-radius: 1px !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear::before {
    transform: rotate(45deg) !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear::after {
    transform: rotate(-45deg) !important;
}

body.map-lahan-body .map-lahan-filters .select2-container--default .select2-selection__clear:hover {
    background: #cbd5e1 !important;
}

