/* ============================================
   PROPERTY DETAIL PAGE CSS
   Extracted from: Homepage/Property/property-detail.blade.php
============================================ */

        :root {
            --primary: #001f49;
            --accent: #25d366;
            --light-bg: #f8f9fa;
            --radius: 4px;
        }

        body {
            background: #f7f9fc;
            font-family: 'Source Sans Pro', sans-serif;
        }

        /* Property Header Row */
        .property-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            gap: 1rem;
        }

        /* Property Badges */
        .property-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .property-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.4rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-radius: 4px;
        }

        .badge-status {
            background: var(--primary);
            color: white;
        }

        .badge-type {
            background: #00aeef;
            color: white;
        }

        .badge-id {
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }

        /* Property Actions */
        .property-actions {
            display: flex;
            gap: 0.5rem;
        }

        .btn-action {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            color: var(--primary);
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-action:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

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

        /* Breadcrumb */
        .breadcrumb a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 600;
        }

        /* Gallery */
        .gallery-container {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            background: #f8f9fa;
            margin-bottom: 1rem;
        }

        .main-image img {
            width: 100%;
            height: 450px;
            object-fit: cover;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }

        @media(max-width:768px) {
            .main-image img {
                height: auto;
                max-height: 300px;
            }
        }

        .thumbnail-container {
            padding: .75rem;
            background: rgba(0, 0, 0, .6);
            position: absolute;
            bottom: 0;
            width: 100%;
            overflow-x: auto;
            border-radius: 0 0 var(--radius) var(--radius);
        }

        .thumbnail-scroll {
            display: flex;
            gap: .5rem;
        }

        .thumbnail {
            flex: 0 0 80px;
            height: 60px;
            border: 2px solid transparent;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            transition: border-color .3s ease;
        }

        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnail.active {
            border-color: #fff;
        }

        /* Info */
        .property-header {
            background: #fff;
            border-radius: var(--radius);
            box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
            margin-bottom: 1rem;
        }

        .property-info {
            padding: 1.5rem;
        }

        .badge {
            border-radius: 4px;
            font-size: .85rem;
            font-weight: 600;
        }

        .property-title {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: .5rem;
            line-height: 1.3;
        }

        .property-price {
            font-size: 1.8rem;
            font-weight: 700;
            color: #00aeef;
            margin-bottom: .5rem;
        }

        .property-location {
            color: #6c757d;
            margin-bottom: .5rem;
            display: flex;
            align-items: center;
            gap: .4rem;
            font-size: .95rem;
        }

        /* Quick Info */
        .quick-info {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid #eee;
        }

        .info-item {
            display: flex;
            gap: .75rem;
            align-items: center;
            color: #495057;
            font-size: .95rem;
        }

        .info-item i {
            color: var(--accent-color);
            font-size: 1.3rem;
        }

        .info-content {
            display: flex;
            flex-direction: column;
        }

        .info-item small {
            font-size: 0.75rem;
            color: #888;
            display: block;
            line-height: 1.2;
        }

        .info-item strong {
            font-size: 1rem;
            color: #001f49;
            line-height: 1.3;
        }

        /* Quick Info - Tablet */
        @media (max-width: 991px) {
            .quick-info {
                grid-template-columns: repeat(4, 1fr);
                gap: 0.75rem;
            }

            .info-item {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 0.35rem;
                background: #f8fafc;
                padding: 0.75rem 0.5rem;
                border-radius: 4px;
            }

            .info-content {
                align-items: center;
            }

            .info-item i {
                font-size: 1.5rem;
            }

            .info-item small {
                font-size: 0.65rem;
            }

            .info-item strong {
                font-size: 0.85rem;
            }
        }

        /* Quick Info - Mobile */
        @media (max-width: 576px) {
            .quick-info {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
                padding: 0.75rem 0;
            }

            .info-item {
                padding: 0.75rem 0.5rem;
                border-radius: 4px;
                background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
                border: 1px solid #e5e7eb;
            }

            .info-content {
                align-items: center;
            }

            .info-item i {
                font-size: 1.35rem;
                color: #00aeef;
                background: rgba(0, 174, 239, 0.1);
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
            }

            .info-item small {
                font-size: 0.65rem;
                text-transform: uppercase;
                letter-spacing: 0.3px;
                margin-top: 0.25rem;
            }

            .info-item strong {
                font-size: 0.95rem;
                font-weight: 700;
            }
        }

        /* Quick Info - Small Mobile */
        @media (max-width: 360px) {
            .quick-info {
                gap: 0.4rem;
            }

            .info-item {
                padding: 0.6rem 0.4rem;
            }

            .info-item i {
                font-size: 1.15rem;
                width: 34px;
                height: 34px;
            }

            .info-item small {
                font-size: 0.55rem;
            }

            .info-item strong {
                font-size: 0.85rem;
            }
        }

        /* Sections */
        .detail-section {
            background: #fff;
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-top: 1rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            border-bottom: 1px solid #eee;
            padding-bottom: .5rem;
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
        }

        .spec-item {
            background: var(--light-bg);
            padding: .75rem;
            border-radius: 4px;
            display: flex;
            gap: .75rem;
            align-items: center;
        }

        .facilities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .75rem;
        }

        /* KPR Simulator Compact */
        .kpr-simulator-compact {
            padding: 0.5rem 0;
        }

        .kpr-simulator-compact .form-group {
            margin-bottom: 1.25rem;
        }

        .kpr-simulator-compact .form-label {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }

        .kpr-simulator-compact .form-label .badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }

        .kpr-simulator-compact .form-control {
            border-radius: 4px;
            border: 1px solid #e5e7eb;
            padding: 0.65rem 0.75rem;
            font-size: 0.9rem;
        }

        .kpr-simulator-compact .form-control:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
        }

        .kpr-simulator-compact .form-range {
            height: 6px;
            margin-top: 0.5rem;
        }

        .kpr-simulator-compact .form-range::-webkit-slider-thumb {
            width: 18px;
            height: 18px;
            background: var(--accent-color);
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .kpr-simulator-compact .form-range::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: var(--accent-color);
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .kpr-results {
            background: linear-gradient(135deg, rgba(0, 31, 73, 0.05) 0%, rgba(0, 174, 239, 0.05) 100%);
            border-radius: 4px;
            padding: 1.25rem;
            margin-top: 1.5rem;
        }

        .result-main {
            text-align: center;
            padding-bottom: 1rem;
            border-bottom: 2px solid rgba(0, 174, 239, 0.2);
            margin-bottom: 1rem;
        }

        .result-main .result-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        .result-main .result-value {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--accent-color);
            letter-spacing: -0.02em;
        }

        .result-details {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
        }

        .result-item .result-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .result-item .result-value {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .kpr-simulator-compact .btn-primary {
            background: linear-gradient(135deg, var(--accent-color) 0%, #0099cc 100%);
            border: none;
            border-radius: 4px;
            padding: 0.75rem 1rem;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .kpr-simulator-compact .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
        }

        .kpr-simulator-compact .btn-outline-secondary {
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            padding: 0.65rem 1rem;
            font-weight: 600;
            color: var(--text-primary);
            background: #fff;
            transition: all 0.2s ease;
        }

        .kpr-simulator-compact .btn-outline-secondary:hover {
            background: var(--text-primary);
            color: #fff;
            border-color: var(--text-primary);
            transform: translateY(-2px);
        }

        /* Floating CTA */
        @media(max-width:991px) {
            .floating-cta {
                position: fixed;
                bottom: 80px;
                left: 0;
                width: 100%;
                background: #fff;
                padding: .75rem 1rem;
                border-top: 1px solid #e9ecef;
                display: flex;
                justify-content: center;
                z-index: 1000;
            }

            .floating-cta button {
                background: #00aeef;
                color: #fff;
                border: none;
                border-radius: 4px;
                padding: .75rem 1.5rem;
                font-weight: 600;
                font-size: 1rem;
                width: 100%;
            }
            
            .floating-cta button:active {
                background: #0099cc;
            }
        }

        /* Share Floating */
        .share-btn-floating {
            position: fixed;
            bottom: 200px;
            right: 20px;
            z-index: 1000;
            background: var(--primary);
            color: #fff;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        }

        /* Lightbox */
        #imageModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, .95);
            z-index: 20000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        #imageModal.show {
            display: flex;
        }

        #imageModal img {
            max-width: 95%;
            max-height: 85%;
            border-radius: 4px;
            transition: opacity .3s ease;
        }

        #imageModal .close-btn {
            position: absolute;
            top: 15px;
            right: 25px;
            font-size: 35px;
            color: #fff;
            cursor: pointer;
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 40px;
            color: #fff;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 3;
        }

        .nav-btn.prev {
            left: 20px;
        }

        .nav-btn.next {
            right: 20px;
        }

        /* ============================================
           AGENT CARD & MODAL - REDESIGNED
        ============================================ */

        /* Desktop Agent Card */
        .agent-card-new {
            background: #fff;
            border-radius: 4px;
            box-shadow: 0 4px 20px rgba(0, 31, 73, 0.1);
            overflow: hidden;
            position: sticky;
            top: 100px;
        }

        .agent-card-header {
            background: linear-gradient(135deg, #001f49 0%, #003366 100%);
            color: white;
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 700;
            font-size: 1rem;
        }

        .agent-card-header i {
            font-size: 1.25rem;
        }

        .agent-card-body {
            padding: 1.25rem;
        }

        /* Shared Agent Item Styles */
        .agent-item {
            padding: 0.75rem 0;
        }

        .agent-info {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            margin-bottom: 0.875rem;
        }

        .agent-photo {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e5e7eb;
            flex-shrink: 0;
        }

        .agent-details {
            flex: 1;
            min-width: 0;
        }

        .agent-name {
            display: block;
            font-weight: 700;
            font-size: 0.95rem;
            color: #001f49;
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 0.15rem;
        }

        .agent-name:hover {
            color: #00aeef;
            text-decoration: underline;
        }

        .agent-office {
            display: block;
            font-size: 0.8rem;
            color: #64748b;
            font-weight: 500;
            margin-top: 0.15rem;
        }

        .agent-role {
            display: block;
            font-size: 0.8rem;
            color: #6b7280;
        }

        .agent-actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .btn-agent {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.5rem 0.75rem;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-whatsapp {
            background: #25d366;
            color: white;
        }

        .btn-whatsapp:hover {
            background: #1da851;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
        }

        .btn-phone {
            background: #f8fafc;
            color: #001f49;
            border: 1px solid #e5e7eb;
        }

        .btn-phone:hover {
            background: #001f49;
            color: white;
            border-color: #001f49;
            transform: translateY(-2px);
        }

        .btn-profile {
            background: #001f49;
            color: white;
        }

        .btn-profile:hover {
            background: #003366;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 31, 73, 0.3);
        }

        .agent-divider {
            height: 1px;
            background: #e5e7eb;
            margin: 0.5rem 0;
        }

        /* Mobile Modal Overlay */
        #agentModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 10000;
            justify-content: center;
            align-items: flex-end;
            padding: 0;
        }

        #agentModal.show {
            display: flex !important;
        }
        
        .agent-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 10000;
            justify-content: center;
            align-items: flex-end;
            padding: 0;
        }

        .agent-modal-overlay.show {
            display: flex !important;
        }

        /* Mobile Modal Box */
        .agent-modal-new {
            background: #fff;
            width: 100%;
            max-height: 85vh;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .agent-modal-header {
            background: linear-gradient(135deg, #001f49 0%, #003366 100%);
            color: white;
            padding: 1.25rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 700;
            font-size: 1.1rem;
        }

        .modal-title i {
            font-size: 1.35rem;
        }

        .modal-close {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .agent-modal-body {
            padding: 1.25rem 1.5rem;
            max-height: calc(85vh - 80px);
            overflow-y: auto;
        }

        /* Legacy styles - Hidden */
        .agent-modal-box {
            display: none !important;
        }

        .agent-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
        }

        .agent-btn {
            display: none !important;
        }

        .btn-wa {
            background: #25d366;
            color: #fff;
        }

        .btn-call {
            background: #fff;
            border: 1px solid #001f49;
            color: #001f49;
        }

        .agent-modal-box a:hover {
            text-decoration: underline;
        }

        /* ===== POLISH kotak putih belakang (sidebar desktop) ===== */
        @media (min-width: 992px) {

            /* 1) Rapikan card belakang: tipis, rapat, shadow ringan */
            .col-lg-4.d-none.d-lg-block .agent-modal-box {
                display: block !important;
                background: #ffffff;
                border: 1px solid #e5e7eb;
                /* kasih garis tipis biar â€œtegasâ€, nggak blur */
                border-radius: 4px;
                /* radius lebih kecil biar gak bulky */
                box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
                /* shadow ringan, bukan tebal */
                padding: 12px;
                /* pad mengecil -> konten lebih â€œisiâ€ */
            }

            /* 2) Hilangkan layout flex bawaan wrapper yang bikin ada ruang kosong */
            .col-lg-4.d-none.d-lg-block .agent-modal-box>div {
                display: block !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box>div>div {
                width: 100% !important;
                flex: 1 1 100% !important;
            }

            /* 3) Header tiap agent dibuat ringkas & rata */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                margin: 0 0 8px !important;
                padding: 10px 12px !important;
                display: flex !important;
                align-items: center !important;
                gap: 10px !important;
                background: #f7fafc !important;
                /* abu sangat muda biar subtle */
                border: 1px solid #e5e7eb !important;
                border-radius: 4px !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 42px;
                height: 42px;
                border-radius: 50%;
                object-fit: cover;
                border: 1px solid #e5e7eb;
                flex: 0 0 42px;
            }

            .col-lg-4.d.none.d-lg-block .agent-modal-box h5 a {
                color: #001f49;
                text-decoration: none;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* 4) Tombol: jarak & lebar konsisten */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .agent-btn {
                width: 100%;
                height: 44px;
                border-radius: 4px !important;
                padding: 0 12px;
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: .5rem;
                font-weight: 700;
                margin: 8px 0 0 !important;
                box-shadow: none !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-wa {
                background: #25d366 !important;
                color: #fff !important;
                border: none !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call {
                background: #fff !important;
                color: #001f49 !important;
                border: 1px solid #cbd5e1 !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call:hover {
                background: #001f49 !important;
                color: #fff !important;
                border-color: #001f49 !important;
            }

            /* 5) Pemisah antar agent biar tidak menempel */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5+a.agent-btn+a.agent-btn {
                margin-bottom: 14px !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5:not(:first-of-type) {
                margin-top: 6px !important;
            }
        }

        /* ===== Rapiin header: foto & nama (sidebar desktop) ===== */
        @media (min-width: 992px) {
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                /* ganti ke grid biar alignment presisi */
                display: grid !important;
                grid-template-columns: 46px 1fr;
                /* foto | nama */
                align-items: center !important;
                gap: 12px !important;

                padding: 10px 12px !important;
                margin: 0 0 8px !important;

                background: #ffffff !important;
                border: 1px solid #e5e7eb !important;
                border-radius: 4px !important;

                color: #001f49;
                font-weight: 700;
                line-height: 1.2;
            }

            /* foto/Logo: bulat, proporsional, anti gepeng */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 46px;
                height: 46px;
                border-radius: 50%;
                object-fit: cover;
                /* foto manusia pas */
                background: #fff;
                /* logo transparan tetap kebaca */
                border: 1px solid #e5e7eb;
                display: block;
            }

            /* nama: ellipsis kalau kepanjangan, baseline rapi */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a {
                display: block;
                color: #001f49;
                text-decoration: none;
                font-weight: 800;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                line-height: 1.15;
                /* biar optically center */
                transform: translateY(1px);
                /* koreksi kecil agar segaris dengan avatar */
            }

            /* opsi: saat hover nama boleh underline tipis */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a:hover {
                text-decoration: underline;
                text-underline-offset: 2px;
            }
        }

        /* ===== sejajarkan avatar + nama (desktop sidebar) ===== */
        @media (min-width: 992px) {

            /* ===== [Wrapper Utama Sidebar Agent] ===== */
            /* Menggunakan selector yang lebih ringkas untuk menargetkan semua elemen di dalamnya */
            .col-lg-4.d-none.d-lg-block .agent-modal-box {
                display: block !important;
                background: #ffffff;
                border: 1px solid #e5e7eb;
                /* Garis tipis agar lebih tegas */
                border-radius: 4px;
                /* Radius lebih ramping */
                box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
                /* Shadow lebih halus */
                padding: 12px;
                /* Padding lebih kecil agar konten terasa padat */
                text-align: left;
                /* Override text-align: center dari style mobile */
            }


            /* ===== [Header: Foto & Nama Agent] ===== */
            /* Menggunakan Grid untuk perataan yang presisi */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                display: grid;
                grid-template-columns: 48px 1fr;
                /* Kolom 1: 48px untuk foto, Kolom 2: sisa ruang untuk nama */
                align-items: center;
                gap: 12px;

                padding: 12px 14px;
                margin: 0 0 8px;
                background: #f7fafc;
                /* Warna latar abu-abu halus */
                border: 1px solid #e5e7eb;
                border-radius: 4px;
                line-height: 1.2;
            }

            /* Styling untuk Foto/Avatar di dalam Header */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                object-fit: cover;
                /* Mencegah gambar gepeng */
                border: 1px solid #e5e7eb;
                display: block;
                /* Menghilangkan space bawah default dari gambar */
            }

            /* Styling untuk Nama Agent di dalam Header */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a {
                color: #001f49;
                text-decoration: none;
                font-weight: 800;
                white-space: nowrap;
                /* Pastikan nama dalam satu baris */
                overflow: hidden;
                /* Sembunyikan jika nama terlalu panjang */
                text-overflow: ellipsis;
                /* Tampilkan '...' jika nama terpotong */
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a:hover {
                text-decoration: underline;
                text-underline-offset: 2px;
            }

            /* ===== [Tombol Aksi: WA & Telepon] ===== */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .agent-btn {
                width: 100%;
                height: 44px;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: .5rem;
                font-weight: 700;
                margin: 8px 0 0;
                /* Jarak antar tombol */
                box-shadow: none;
            }

            /* Styling Tombol WA */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-wa {
                background: #25d366;
                color: #fff;
                border: none;
            }

            /* Styling Tombol Telepon */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call {
                background: #fff;
                color: #001f49;
                border: 1px solid #cbd5e1;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call:hover {
                background: #001f49;
                color: #fff;
                border-color: #001f49;
            }
        }
    </style>

    <div class="container-fluid bg-light py-4">

        <div class="container">
            <!-- Breadcrumb -->
            <nav aria-label="breadcrumb" class="mb-4">
                <ol class="breadcrumb mb-0">
                    <li class="breadcrumb-item"><a href="/">Beranda</a></li>
                    <li class="breadcrumb-item"><a href="/listing">Listing Properti</a></li>
                    <li class="breadcrumb-item active">Detail Properti</li>
                </ol>
            </nav>
            <div class="row">
                <!-- LEFT -->
                <div class="col-lg-8">
                    <div class="property-header">
                        <!-- Gallery -->
                        <div class="gallery-container">
                            <div class="main-image">
                                <img id="mainImage" src="{{ $dataProp->main_image_url}}">
                            </div>
                            <div class="thumbnail-container">
                                <div class="thumbnail-scroll">
                                    @for ($i = 0; $i < count($dataProp->verified_images); $i++)
                                        <div class="thumbnail {{ $i == 0 ? 'active' : '' }}">
                                            <img src={{$dataProp->verified_images[$i]}}>
                                        </div>
                                    @endfor
                                </div>
                            </div>
                        </div>
                        <!-- Info -->
                        <div class="property-info">
                            <div class="d-flex flex-wrap gap-2 mb-3">
                                <span class="badge bg-danger px-3 py-1">{{ $dataProp->Status }}</span>
                                <span class="badge bg-success px-3 py-1">{{ $dataProp->Type }}</span>
                                @if ($dataProp->PAP != null)
                                    <span class="badge bg-secondary px-3 py-1">ID:
                                        {{ str_pad($dataProp->PAP, 4, '0', STR_PAD_LEFT) }}</span>
                                @endif

                            </div>
                            <div class="d-flex justify-content-between align-items-center mb-3">
                                <h1 class="property-title">{{ $dataProp->judul }}</h1>
                                <div class="d-flex gap-2">
                                    <a href="{{ route('property.print', $dataProp->property_slug) }}" target="_blank"
                                        class="btn btn-outline-secondary">
                                        <i class="bi bi-printer"></i>
                                    </a>


        /* ===== Rapiin header: foto & nama (sidebar desktop) ===== */
        @media (min-width: 992px) {
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                /* ganti ke grid biar alignment presisi */
                display: grid !important;
                grid-template-columns: 46px 1fr;
                /* foto | nama */
                align-items: center !important;
                gap: 12px !important;

                padding: 10px 12px !important;
                margin: 0 0 8px !important;

                background: #ffffff !important;
                border: 1px solid #e5e7eb !important;
                border-radius: 4px !important;

                color: #001f49;
                font-weight: 700;
                line-height: 1.2;
            }

            /* foto/Logo: bulat, proporsional, anti gepeng */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 46px;
                height: 46px;
                border-radius: 50%;
                object-fit: cover;
                /* foto manusia pas */
                background: #fff;
                /* logo transparan tetap kebaca */
                border: 1px solid #e5e7eb;
                display: block;
            }

            /* nama: ellipsis kalau kepanjangan, baseline rapi */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a {
                display: block;
                color: #001f49;
                text-decoration: none;
                font-weight: 800;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                line-height: 1.15;
                /* biar optically center */
                transform: translateY(1px);
                /* koreksi kecil agar segaris dengan avatar */
            }

            /* opsi: saat hover nama boleh underline tipis */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a:hover {
                text-decoration: underline;
                text-underline-offset: 2px;
            }
        }

        /* ===== sejajarkan avatar + nama (desktop sidebar) ===== */
        @media (min-width: 992px) {

            /* ===== [Wrapper Utama Sidebar Agent] ===== */
            /* Menggunakan selector yang lebih ringkas untuk menargetkan semua elemen di dalamnya */
            .col-lg-4.d-none.d-lg-block .agent-modal-box {
                display: block !important;
                background: #ffffff;
                border: 1px solid #e5e7eb;
                /* Garis tipis agar lebih tegas */
                border-radius: 4px;
                /* Radius lebih ramping */
                box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
                /* Shadow lebih halus */
                padding: 12px;
                /* Padding lebih kecil agar konten terasa padat */
                text-align: left;
                /* Override text-align: center dari style mobile */
            }


            /* ===== [Header: Foto & Nama Agent] ===== */
            /* Menggunakan Grid untuk perataan yang presisi */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                display: grid;
                grid-template-columns: 48px 1fr;
                /* Kolom 1: 48px untuk foto, Kolom 2: sisa ruang untuk nama */
                align-items: center;
                gap: 12px;

                padding: 12px 14px;
                margin: 0 0 8px;
                background: #f7fafc;
                /* Warna latar abu-abu halus */
                border: 1px solid #e5e7eb;
                border-radius: 4px;
                line-height: 1.2;
            }

            /* Styling untuk Foto/Avatar di dalam Header */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                object-fit: cover;
                /* Mencegah gambar gepeng */
                border: 1px solid #e5e7eb;
                display: block;
                /* Menghilangkan space bawah default dari gambar */
            }

            /* Styling untuk Nama Agent di dalam Header */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a {
                color: #001f49;
                text-decoration: none;
                font-weight: 800;
                white-space: nowrap;
                /* Pastikan nama dalam satu baris */
                overflow: hidden;
                /* Sembunyikan jika nama terlalu panjang */
                text-overflow: ellipsis;
                /* Tampilkan '...' jika nama terpotong */
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a:hover {
                text-decoration: underline;
                text-underline-offset: 2px;
            }

            /* ===== [Tombol Aksi: WA & Telepon] ===== */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .agent-btn {
                width: 100%;
                height: 44px;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: .5rem;
                font-weight: 700;
                margin: 8px 0 0;
                /* Jarak antar tombol */
                box-shadow: none;
            }

            /* Styling Tombol WA */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-wa {
                background: #25d366;
                color: #fff;
                border: none;
            }

            /* Styling Tombol Telepon */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call {
                background: #fff;
                color: #001f49;
                border: 1px solid #cbd5e1;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call:hover {
                background: #001f49;
                color: #fff;
                border-color: #001f49;
            }
        }
    </style>

    <div class="container-fluid bg-light py-4">

        <div class="container">
            <!-- Breadcrumb -->
            <nav aria-label="breadcrumb" class="mb-4">
                <ol class="breadcrumb mb-0">
                    <li class="breadcrumb-item"><a href="/">Beranda</a></li>
                    <li class="breadcrumb-item"><a href="/listing">Listing Properti</a></li>
                    <li class="breadcrumb-item active">Detail Properti</li>
                </ol>
            </nav>
            <div class="row">
                <!-- LEFT -->
                <div class="col-lg-8">
                    <div class="property-header">
                        <!-- Gallery -->
                        <div class="gallery-container">
                            <div class="main-image">
                                <img id="mainImage" src="{{ $dataProp->main_image_url}}">
                            </div>
                            <div class="thumbnail-container">
                                <div class="thumbnail-scroll">
                                    @for ($i = 0; $i < count($dataProp->verified_images); $i++)
                                        <div class="thumbnail {{ $i == 0 ? 'active' : '' }}">
                                            <img src={{$dataProp->verified_images[$i]}}>
                                        </div>
                                    @endfor
                                </div>
                            </div>
                        </div>
                        <!-- Info -->
                        <div class="property-info">
                            <div class="d-flex flex-wrap gap-2 mb-3">
                                <span class="badge bg-danger px-3 py-1">{{ $dataProp->Status }}</span>
                                <span class="badge bg-success px-3 py-1">{{ $dataProp->Type }}</span>
                                @if ($dataProp->PAP != null)
                                    <span class="badge bg-secondary px-3 py-1">ID:
                                        {{ str_pad($dataProp->PAP, 4, '0', STR_PAD_LEFT) }}</span>
                                @endif

                            </div>
                            <div class="d-flex justify-content-between align-items-center mb-3">
                                <h1 class="property-title">{{ $dataProp->judul }}</h1>
                                <div class="d-flex gap-2">
                                    <a href="{{ route('property.print', $dataProp->property_slug) }}" target="_blank"
                                        class="btn btn-outline-secondary">
                                        <i class="bi bi-printer"></i>
                                    </a>


        .btn-wa {
            background: #25d366;
            color: #fff;
        }

        .btn-call {
            background: #fff;
            border: 1px solid #001f49;
            color: #001f49;
        }

        .agent-modal-box a:hover {
            text-decoration: underline;
        }

        /* ===== POLISH kotak putih belakang (sidebar desktop) ===== */
        @media (min-width: 992px) {

            /* 1) Rapikan card belakang: tipis, rapat, shadow ringan */
            .col-lg-4.d-none.d-lg-block .agent-modal-box {
                background: #ffffff;
                border: 1px solid #e5e7eb;
                /* kasih garis tipis biar â€œtegasâ€, nggak blur */
                border-radius: 12px;
                /* radius lebih kecil biar gak bulky */
                box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
                /* shadow ringan, bukan tebal */
                padding: 12px;
                /* pad mengecil -> konten lebih â€œisiâ€ */
            }

            /* 2) Hilangkan layout flex bawaan wrapper yang bikin ada ruang kosong */
            .col-lg-4.d-none.d-lg-block .agent-modal-box>div {
                display: block !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box>div>div {
                width: 100% !important;
                flex: 1 1 100% !important;
            }

            /* 3) Header tiap agent dibuat ringkas & rata */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                margin: 0 0 8px !important;
                padding: 10px 12px !important;
                display: flex !important;
                align-items: center !important;
                gap: 10px !important;
                background: #f7fafc !important;
                /* abu sangat muda biar subtle */
                border: 1px solid #e5e7eb !important;
                border-radius: 10px !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 42px;
                height: 42px;
                border-radius: 50%;
                object-fit: cover;
                border: 1px solid #e5e7eb;
                flex: 0 0 42px;
            }

            .col-lg-4.d.none.d-lg-block .agent-modal-box h5 a {
                color: #001f49;
                text-decoration: none;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* 4) Tombol: jarak & lebar konsisten */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .agent-btn {
                width: 100%;
                height: 44px;
                border-radius: 10px !important;
                padding: 0 12px;
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: .5rem;
                font-weight: 700;
                margin: 8px 0 0 !important;
                box-shadow: none !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-wa {
                background: #25d366 !important;
                color: #fff !important;
                border: none !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call {
                background: #fff !important;
                color: #001f49 !important;
                border: 1px solid #cbd5e1 !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call:hover {
                background: #001f49 !important;
                color: #fff !important;
                border-color: #001f49 !important;
            }

            /* 5) Pemisah antar agent biar tidak menempel */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5+a.agent-btn+a.agent-btn {
                margin-bottom: 14px !important;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5:not(:first-of-type) {
                margin-top: 6px !important;
            }
        }

        /* ===== Rapiin header: foto & nama (sidebar desktop) ===== */
        @media (min-width: 992px) {
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                /* ganti ke grid biar alignment presisi */
                display: grid !important;
                grid-template-columns: 46px 1fr;
                /* foto | nama */
                align-items: center !important;
                gap: 12px !important;

                padding: 10px 12px !important;
                margin: 0 0 8px !important;

                background: #ffffff !important;
                border: 1px solid #e5e7eb !important;
                border-radius: 10px !important;

                color: #001f49;
                font-weight: 700;
                line-height: 1.2;
            }

            /* foto/Logo: bulat, proporsional, anti gepeng */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 46px;
                height: 46px;
                border-radius: 50%;
                object-fit: cover;
                /* foto manusia pas */
                background: #fff;
                /* logo transparan tetap kebaca */
                border: 1px solid #e5e7eb;
                display: block;
            }

            /* nama: ellipsis kalau kepanjangan, baseline rapi */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a {
                display: block;
                color: #001f49;
                text-decoration: none;
                font-weight: 800;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                line-height: 1.15;
                /* biar optically center */
                transform: translateY(1px);
                /* koreksi kecil agar segaris dengan avatar */
            }

            /* opsi: saat hover nama boleh underline tipis */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a:hover {
                text-decoration: underline;
                text-underline-offset: 2px;
            }
        }

        /* ===== sejajarkan avatar + nama (desktop sidebar) ===== */
        @media (min-width: 992px) {

            /* ===== [Wrapper Utama Sidebar Agent] ===== */
            /* Menggunakan selector yang lebih ringkas untuk menargetkan semua elemen di dalamnya */
            .col-lg-4.d-none.d-lg-block .agent-modal-box {
                background: #ffffff;
                border: 1px solid #e5e7eb;
                /* Garis tipis agar lebih tegas */
                border-radius: 12px;
                /* Radius lebih ramping */
                box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
                /* Shadow lebih halus */
                padding: 12px;
                /* Padding lebih kecil agar konten terasa padat */
                text-align: left;
                /* Override text-align: center dari style mobile */
            }


            /* ===== [Header: Foto & Nama Agent] ===== */
            /* Menggunakan Grid untuk perataan yang presisi */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 {
                display: grid;
                grid-template-columns: 48px 1fr;
                /* Kolom 1: 48px untuk foto, Kolom 2: sisa ruang untuk nama */
                align-items: center;
                gap: 12px;

                padding: 12px 14px;
                margin: 0 0 8px;
                background: #f7fafc;
                /* Warna latar abu-abu halus */
                border: 1px solid #e5e7eb;
                border-radius: 10px;
                line-height: 1.2;
            }

            /* Styling untuk Foto/Avatar di dalam Header */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 .agent-avatar {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                object-fit: cover;
                /* Mencegah gambar gepeng */
                border: 1px solid #e5e7eb;
                display: block;
                /* Menghilangkan space bawah default dari gambar */
            }

            /* Styling untuk Nama Agent di dalam Header */
            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a {
                color: #001f49;
                text-decoration: none;
                font-weight: 800;
                white-space: nowrap;
                /* Pastikan nama dalam satu baris */
                overflow: hidden;
                /* Sembunyikan jika nama terlalu panjang */
                text-overflow: ellipsis;
                /* Tampilkan '...' jika nama terpotong */
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box h5 a:hover {
                text-decoration: underline;
                text-underline-offset: 2px;
            }

            /* ===== [Tombol Aksi: WA & Telepon] ===== */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .agent-btn {
                width: 100%;
                height: 44px;
                border-radius: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: .5rem;
                font-weight: 700;
                margin: 8px 0 0;
                /* Jarak antar tombol */
                box-shadow: none;
            }

            /* Styling Tombol WA */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-wa {
                background: #25d366;
                color: #fff;
                border: none;
            }

            /* Styling Tombol Telepon */
            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call {
                background: #fff;
                color: #001f49;
                border: 1px solid #cbd5e1;
            }

            .col-lg-4.d-none.d-lg-block .agent-modal-box .btn-call:hover {
                background: #001f49;
                color: #fff;
                border-color: #001f49;
            }
        }
    </style>

    <div class="container-fluid bg-light py-4">

        <div class="container">
            <!-- Breadcrumb -->
            <nav aria-label="breadcrumb" class="mb-4">
                <ol class="breadcrumb mb-0">
                    <li class="breadcrumb-item"><a href="/">Beranda</a></li>
                    <li class="breadcrumb-item"><a href="/listing">Listing Properti</a></li>
                    <li class="breadcrumb-item active">Detail Properti</li>
                </ol>
            </nav>
            <div class="row">
                <!-- LEFT -->
                <div class="col-lg-8">
                    <div class="property-header">
                        <!-- Gallery -->
                        <div class="gallery-container">
                            <div class="main-image">
                                <img id="mainImage" src="{{ $dataProp->main_image_url}}">
                            </div>
                            <div class="thumbnail-container">
                                <div class="thumbnail-scroll">
                                    @for ($i = 0; $i < count($dataProp->verified_images); $i++)
                                        <div class="thumbnail {{ $i == 0 ? 'active' : '' }}">
                                            <img src={{$dataProp->verified_images[$i]}}>
                                        </div>
                                    @endfor
                                </div>
                            </div>
                        </div>
                        <!-- Info -->
                        <div class="property-info">
                            <div class="d-flex flex-wrap gap-2 mb-3">
                                <span class="badge bg-danger px-3 py-1">{{ $dataProp->Status }}</span>
                                <span class="badge bg-success px-3 py-1">{{ $dataProp->Type }}</span>
                                @if ($dataProp->PAP != null)
                                    <span class="badge bg-secondary px-3 py-1">ID:
                                        {{ str_pad($dataProp->PAP, 4, '0', STR_PAD_LEFT) }}</span>
                                @endif

                            </div>
                            <div class="d-flex justify-content-between align-items-center mb-3">
                                <h1 class="property-title">{{ $dataProp->judul }}</h1>
                                <div class="d-flex gap-2">
                                    <a href="{{ route('property.print', $dataProp->property_slug) }}" target="_blank"
                                        class="btn btn-outline-secondary">
                                        <i class="bi bi-printer"></i>
                                    </a>
