/* ── Property Detail: Tags ──────────────────────────────────────────── */
.prop-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prop-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.prop-tag-success  { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.prop-tag-info     { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.prop-tag-primary  { background: rgba(0,97,255,0.08); color: var(--primary-blue); border-color: rgba(0,97,255,0.2); }
.prop-tag-warning  { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.prop-tag-default  { background: var(--bg-light); color: var(--text-dark); border-color: rgba(0,0,0,0.1); }
.prop-tag-verified { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; border-color: #6ee7b7; font-weight: 800; }

/* ── Property Detail: Spec Grid ─────────────────────────────────────── */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}
.spec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    border-color: var(--primary-gold);
}
.spec-card i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 2px;
}
.spec-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-navy);
    line-height: 1;
}
.spec-value-sm {
    font-size: 0.9rem;
    font-weight: 800;
}
.spec-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

/* Extracted from templates/components/property_card.html */
.property-card-v2 {
        transition: var(--transition-smooth);
        background: #ffffff;
    }
    .property-card-v2:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px -12px rgba(10, 25, 47, 0.15) !important;
    }
    .card-img-container {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .image-wrapper img {
        transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .property-card-v2:hover .image-wrapper img {
        transform: scale(1.1);
    }
    .image-overlay-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60%;
        background: linear-gradient(to top, rgba(10, 25, 47, 0.7) 0%, transparent 100%);
        pointer-events: none;
    }
    .glass-badge {
        background: rgba(10, 25, 47, 0.6) !important;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .btn-favorite {
        width: 42px;
        height: 42px;
        background: rgba(10, 25, 47, 0.3) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s;
    }
    .btn-favorite:hover {
        background: rgba(220, 53, 69, 0.9) !important;
        border-color: transparent !important;
    }
    .price-pill {
        background: #ffffff;
        padding: 8px 20px;
        border-radius: var(--radius-pill);
        border-left: 4px solid var(--primary-gold);
        font-size: 1.1rem;
    }
    .video-badge {
        background: var(--gold-gradient);
        color: var(--primary-navy);
        padding: 6px 14px;
        border-radius: var(--radius-pill);
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    }
    .hover-text-gold:hover {
        color: var(--primary-gold) !important;
    }
    .animate-arrow {
        transition: transform 0.3s ease;
    }
    .btn-premium:hover .animate-arrow {
        transform: translateX(5px);
    }

/* Extracted from templates/properties/map.html */
#map {
        height: calc(100vh - 80px);
        width: 100%;
        z-index: 1;
    }
    .map-popup .leaflet-popup-content-wrapper {
        border-radius: 16px;
        padding: 0;
        overflow: hidden;
    }
    .map-popup .leaflet-popup-content {
        margin: 0;
        width: 240px !important;
    }
    .popup-img {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }
    .popup-content {
        padding: 12px;
    }
    .popup-price {
        color: var(--primary-navy);
        font-weight: 900;
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    .popup-title {
        font-weight: 700;
        font-size: 0.9rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .popup-location {
        font-size: 0.75rem;
        color: #64748b;
    }
    .popup-btn {
        display: block;
        width: 100%;
        text-align: center;
        background: var(--gold-gradient);
        color: var(--primary-navy);
        padding: 8px;
        border-radius: 8px;
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin-top: 10px;
        text-decoration: none;
    }
    
    /* Discovery Overlay */
    .discovery-overlay {
        position: absolute;
        top: 100px;
        left: 20px;
        z-index: 1000;
        max-width: 300px;
    }
    
    .loading-map {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2000;
        background: white;
        padding: 20px 40px;
        border-radius: 50px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        gap: 15px;
    }

/* --- Map Discovery Split View --- */
.map-discovery-wrapper {
    display: flex;
    height: calc(100vh - 80px); /* Adjust based on navbar height */
    overflow: hidden;
}

.map-sidebar {
    width: 380px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.map-sidebar.side-right {
    border-left: 1px solid rgba(0,0,0,0.06);
    box-shadow: -10px 0 30px rgba(0,0,0,0.02);
}

.load-more-indicator {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 991px) {
    .map-discovery-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .map-container-main {
        height: 60vh !important;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .map-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .sidebar-scrollable {
        padding: 1.5rem;
        overflow-y: visible;
    }
}

.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
}

.map-container-main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.map-container-main #map {
    height: 100% !important;
}

/* Sidebar Card Premium Styling */
.map-card-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}

.map-card-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(10, 25, 47, 0.05);
}

.map-card-item.active {
    background: rgba(212, 175, 55, 0.04);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.card-item-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-item-content {
    flex: 1;
    min-width: 0; /* Important for ellipsis */
}

.card-item-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary-navy);
    margin-bottom: 2px;
}

.card-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-item-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Extracted from templates/properties/request_list.html */
.sponsored-request-card {
        border: 2px solid var(--primary-gold) !important;
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15) !important;
    }
    .sponsored-request-card:hover {
        transform: translateY(-8px) scale(1.01) !important;
    }

/* Extracted from templates/properties/home.html */
.max-width-700 { max-width: 700px; }
    .btn-check:checked + .btn-outline-light {
        background-color: var(--primary-navy) !important;
        color: white !important;
        border-color: var(--primary-navy) !important;
    }

/* Extracted from templates/properties/property_form.html */
.leaflet-container { font-family: 'Inter', sans-serif; }

/* Extracted from templates/properties/property_form.html */
.amenities-grid .form-check {
        display: inline-block;
        width: 33.33%;
        margin-bottom: 10px;
    }
    @media (max-width: 768px) {
        .amenities-grid .form-check {
            width: 50%;
        }
    }

/* Extracted from templates/properties/report_form.html */
.btn-check:checked + .btn-outline-light {
        background-color: #f8f9fa !important;
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 1px #0d6efd !important;
    }
    .btn-check:checked + .btn-outline-light .bg-light {
        background-color: #0d6efd !important;
        color: white !important;
    }
    .border-dashed {
        border: 2px dashed #dee2e6;
    }

/* Extracted from templates/properties/detail.html */
.video-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
    }
    .video-container iframe,
    .video-container div#player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .carousel-item .video-container {
        padding-bottom: 0;
        height: 100%;
    }

/* Extracted from templates/properties/detail.html */
.financing-option {
        transition: var(--transition-smooth);
        cursor: pointer;
        background: rgba(10, 25, 47, 0.02);
    }
    .financing-option:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
        border-color: var(--primary-blue) !important;
    }
    .financing-option.active {
        background: rgba(0, 97, 255, 0.06);
        border-color: var(--primary-blue) !important;
        box-shadow: 0 4px 15px rgba(0, 97, 255, 0.12);
    }
    .form-range::-webkit-slider-thumb {
        background: var(--primary-blue);
    }
    .form-range::-moz-range-thumb {
        background: var(--primary-blue);
    }
