    /**
    * Jengjavilla Villa Widget Styles
    * Styling for villa card, slider, and modal popup
    */

    /* ==========================================================================
    Villa Card Styles
    ========================================================================== */

    .villa-card {
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        position: relative;
    }

    .villa-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

    /* Image Wrapper */
    .villa-image-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .villa-image-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        transition: transform 0.3s ease;
    }

    .villa-card:hover .villa-image-wrapper img {
        transform: scale(1.05);
    }

    /* Show Detail Button Overlay */
    .villa-card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(27, 58, 66, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 5;
    }

    .villa-card:hover .villa-card-overlay {
        opacity: 1;
        visibility: visible;
    }

    .villa-show-detail-btn {
        padding: 12px 30px;
        background: #ffffff;
        color: #1B3A42;
        border: 2px solid #ffffff;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .villa-show-detail-btn:hover {
        background: transparent;
        color: #ffffff;
    }

    /* Villa Content */
    .villa-content {
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 0px;
        justify-content: space-between;
    }

    /* .villa-title-wrapper {
        margin-bottom: 15px;
    } */

    .villa-name {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 0;
        color: #1B3A42;
    }

    .villa-specs-preview {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px 0px;
        font-size: 11px;
        line-height: 1.6;
    }

    .villa-specs-preview .spec-item {
        display: block;
        color: #1B3A42;
    }

    .villa-specs-preview .spec-item strong {
        font-weight: 500;
        color: #1B3A42;
    }

    /* ==========================================================================
    Slider Styles (Card & Modal)
    ========================================================================== */

    .villa-slider,
    .modal-slider {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .villa-slider .slide,
    .modal-slider .slide {
        display: none;
        width: 100%;
        height: 100%;
    }

    .villa-slider .slide.active,
    .modal-slider .slide.active {
        display: block;
    }

    .villa-slider .slide img,
    .modal-slider .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Slider Navigation Arrows */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        font-size: 18px;
        color: #1B3A42;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .slider-arrow:hover {
        background: #ffffff;
        transform: translateY(-50%) scale(1.1);
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    /* Slider Dots */
    .slider-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.8);
    }

    .slider-dots .dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    .slider-dots .dot.active {
        background: #ffffff;
        transform: scale(1.3);
    }

    /* ==========================================================================
    Modal Styles
    ========================================================================== */

    .villa-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999999 !important;
        align-items: center;
        justify-content: center;
    }

    .villa-modal.active {
        display: flex;
    }

    /* Ensure modal is above header */
    body.villa-modal-open .site-header-main,
    body.villa-modal-open header {
        z-index: 999 !important;
    }

    /* Modal Overlay */
    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(5px);
        z-index: 1;
    }

    /* Modal Content */
    .modal-content {
        position: relative;
        width: 98%;
        max-width: 1400px;
        max-height: 98vh;
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        z-index: 2;
        animation: modalSlideIn 0.3s ease;
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-50px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Modal Close Button */
    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: #1B3A42;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .modal-close:hover {
        background: #ffffff;
        transform: rotate(90deg) scale(1.1);
    }

    /* Modal Body */
    .modal-body {
        display: grid;
        grid-template-columns: 2fr 1fr;
        max-height: 98vh;
        overflow: hidden;
    }

    /* Modal Gallery */
    .modal-gallery {
        position: relative;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .modal-slider {
        flex: 1;
        min-height: 600px;
        max-height: 80vh;
        background: #ffffff;
        border-radius: 8px;
        overflow: hidden;
    }

    .modal-slider .slide {
        background: #ffffff;
    }

    .modal-slider .slide img {
        object-fit: contain;
        background: #ffffff;
        width: 100%;
        height: 100%;
    }

    .modal-slider .slider-arrow {
        background: rgba(0, 0, 0, 0.6);
        color: #ffffff;
    }

    .modal-slider .slider-arrow:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    /* Modal Thumbnails */
    .modal-thumbnails {
        display: flex;
        gap: 10px;
        padding: 15px 0;
        margin-top: 15px;
        background: transparent;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .modal-thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .modal-thumbnails::-webkit-scrollbar-track {
        background: #e0e0e0;
    }

    .modal-thumbnails::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 3px;
    }

    .modal-thumbnails .thumb {
        width: 80px;
        height: 60px;
        object-fit: cover;
        cursor: pointer;
        opacity: 0.5;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .modal-thumbnails .thumb:hover {
        opacity: 0.8;
    }

    .modal-thumbnails .thumb.active {
        opacity: 1;
        border-color: #1B3A42;
    }

    /* Modal Details */
    .modal-details {
        padding: 30px;
        overflow-y: auto;
        max-height: 90vh;
    }

    .modal-details::-webkit-scrollbar {
        width: 8px;
    }

    .modal-details::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .modal-details::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .modal-details::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .modal-villa-name {
        font-size: 2rem;
        font-weight: 700;
        margin: 0 0 15px 0;
        color: #1B3A42;
    }

    .villa-description {
        font-size: 1rem;
        line-height: 1.6;
        color: #666666;
        margin-bottom: 25px;
    }

    /* Specifications Table */
    .villa-specs-full h3 {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0 0 20px 0;
        color: #1B3A42;
        border-bottom: 2px solid #1B3A42;
        padding-bottom: 10px;
    }

    .specs-table {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .specs-table .spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000; /* garis hitam */
    }

    .specs-table .spec-row:last-child {
    border-bottom: none; /* hapus garis di baris terakhir */
    }

    .spec-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 5px 0px;
        /* background: #f8f8f8; */
        /* border-radius: 6px; */
        transition: background 0.3s ease;
    }

    /* .spec-row:hover {
        background: #f0f0f0;
    } */

    .spec-label {
        font-weight: 400;
        color: #1B3A42;
    }

    .spec-value {
        text-align: right;
        color: #1B3A42;
    }

    .spec-value .fa-check {
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        color: #28a745;
        font-size: 1.2em;
    }

    .spec-value .fa-check:before {
        content: "\f00c";
    }

    /* ==========================================================================
    Responsive Styles
    ========================================================================== */

    @media (max-width: 968px) {
        .modal-content {
            width: 100%;
            top: 30px;
            max-width: 100%;
            max-height: 100vh;
            height: 80vh;
            border-radius: 0;
        }

        .modal-body {
            grid-template-columns: 1fr;
            max-height: 80vh;
            height: 100vh;
        }

        .modal-gallery {
            max-height: 50vh;
            padding: 15px;
        }

        .modal-slider {
            max-height: 35vh;
            min-height: 250px;
        }

        .modal-details {
            max-height: 55vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .modal-villa-name {
            font-size: 1.5rem;
        }

        .spec-row {
            grid-template-columns: 1fr;
            gap: 5px;
        }

        .spec-value {
            text-align: left;
        }

        .villa-content{
            flex-direction: column;
            align-items: start;
            gap:10px
        }

        .villa-specs-preview{
            font-size: 10px;
        }
    }

    @media (max-width: 768px) {

        /* .villa-specs-preview .spec-item:nth-child(2) {
            border-bottom: 1px solid #000; /* garis hitam solid */
            /* padding-bottom: 2px; beri sedikit jarak bawah agar rapi */
            /* display: inline-block; biar border kelihatan di span */
            /* width: 100%; pastikan garis penuh (opsional, tergantung layout) */
        /* } */ */


        .villa-specs-preview {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .modal-content {
            width: 95%;
            max-height: 95vh;
        }

        .modal-gallery {
            padding: 15px;
        }

        .modal-slider {
            min-height: 400px;
        }

        .modal-details {
            padding: 20px;
        }

        .slider-arrow {
            width: 35px;
            height: 35px;
            font-size: 16px;
        }

        .slider-arrow.prev {
            left: 10px;
        }

        .slider-arrow.next {
            right: 10px;
        }

        .modal-thumbnails .thumb {
            width: 60px;
            height: 45px;
        }

        .villa-content{
            padding: 10px;
        }

        .villa-specs-preview {
            font-size: 7px;
        }
    }

    @media (max-width: 480px) {
        .villa-name {
            font-size: 1.2rem;
        }

        .villa-specs-preview {
            font-size: 7px;
        }

        .modal-villa-name {
            font-size: 1.3rem;
        }

        .villa-description {
            font-size: 0.9rem;
        }

        .villa-specs-full h3 {
            font-size: 1.1rem;
        }

        .spec-row {
            padding: 10px 12px;
            font-size: 0.9rem;
        }

        .modal-close {
            width: 35px;
            height: 35px;
            font-size: 24px;
            top: 10px;
            right: 10px;
        }
    }
