/* ============================================
   PROPERTY DETAIL PAGE
   ============================================ */

/* Page Header */
.detail-header {
    background: linear-gradient(135deg, #09063d 0%, #0a0638 100%);
    padding: 90px 0 24px;
    position: relative;
    overflow: hidden;
}

.detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(52, 101, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover { color: #ffffff; }
.breadcrumb .separator { color: rgba(255, 255, 255, 0.4); }
.breadcrumb .current { color: #ffffff; font-weight: 500; }

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.detail-location svg {
    width: 16px;
    height: 16px;
    color: #7c9eff;
}

/* Gallery */
.gallery-section {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid #edf1f7;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-container {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 200px 200px;
        height: 410px;
    }
    
    .gallery-main {
        grid-row: 1 / 3;
    }
}

.gallery-main {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

@media (min-width: 768px) {
    .gallery-main { aspect-ratio: auto; height: 100%; }
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover img { transform: scale(1.03); }

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: #ef6a1d;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.gallery-counter svg { width: 14px; height: 14px; }

.gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .gallery-side {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-thumb:hover img { transform: scale(1.05); }

.gallery-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(9, 6, 61, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.3s ease;
}

.gallery-thumb:hover .gallery-thumb-more {
    background: rgba(9, 6, 61, 0.85);
}

/* Main Content Layout */
.detail-layout {
    padding: 32px 0 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 360px;
        gap: 32px;
    }
}

/* Property Info */
.property-info {
    min-width: 0;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(9, 6, 61, 0.06);
}

.info-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #09063d;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title svg {
    width: 18px;
    height: 18px;
    color: #3465f6;
}

/* Price & Overview */
.price-overview {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.price-block .price-label {
    font-size: 0.75rem;
    color: #8b93a5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-block .price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #3465f6;
    letter-spacing: -0.8px;
    line-height: 1;
}

.price-block .price-period {
    font-size: 0.88rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

.property-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #2f3545;
    font-weight: 500;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: #3465f6;
}

/* Key Features */
.key-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .key-features { grid-template-columns: repeat(4, 1fr); }
}

.feature-box {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid #edf1f7;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: #3465f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 101, 246, 0.1);
}

.feature-box svg {
    width: 24px;
    height: 24px;
    color: #3465f6;
    margin-bottom: 8px;
}

.feature-box .feature-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #09063d;
    margin-bottom: 2px;
}

.feature-box .feature-label {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Description */
.description-text {
    font-size: 0.92rem;
    color: #2f3545;
    line-height: 1.7;
    white-space: pre-line;
}

.description-text.collapsed {
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

.description-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
}

.read-more-btn {
    background: none;
    border: none;
    color: #3465f6;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn:hover { color: #1e40af; }

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 640px) {
    .amenities-grid { grid-template-columns: repeat(3, 1fr); }
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fc;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #2f3545;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.amenity-item:hover {
    border-color: #d1e3ff;
    background: #eef7ff;
}

.amenity-item svg {
    width: 18px;
    height: 18px;
    color: #3465f6;
    flex-shrink: 0;
}

/* Location */
.location-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fc;
    border-radius: 12px;
    margin-bottom: 16px;
}

.location-info svg {
    width: 20px;
    height: 20px;
    color: #3465f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-info .location-text {
    flex: 1;
}

.location-info .location-text strong {
    display: block;
    font-size: 0.92rem;
    color: #09063d;
    margin-bottom: 4px;
}

.location-info .location-text span {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.map-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #eef7ff 0%, #f8f9fc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #6b7280;
    border: 1px dashed #d1e3ff;
}

.map-placeholder svg {
    width: 32px;
    height: 32px;
    color: #3465f6;
}

.map-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    .detail-sidebar {
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #2f3545;
}

.action-btn svg { width: 16px; height: 16px; }

.action-btn:hover {
    border-color: #3465f6;
    color: #3465f6;
}

.action-btn.saved {
    background: #3465f6;
    border-color: #3465f6;
    color: #fff;
}

/* Agent Card */
.agent-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(9, 6, 61, 0.06);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f7;
}

.agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3465f6, #17d8c2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.agent-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #09063d;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-verified {
    width: 14px;
    height: 14px;
    background: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.agent-verified svg { width: 10px; height: 10px; }

.agent-type {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}

.agent-contact-btn {
    width: 100%;
    height: 48px;
    background: #3465f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(52, 101, 246, 0.25);
}

.agent-contact-btn:hover {
    background: #2952d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 101, 246, 0.35);
}

.agent-contact-btn svg { width: 18px; height: 18px; }

.agent-secondary-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.agent-sec-btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #2f3545;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.agent-sec-btn:hover {
    border-color: #3465f6;
    color: #3465f6;
}

.agent-sec-btn svg { width: 16px; height: 16px; }

/* Similar Properties */
.similar-section {
    padding: 40px 0 60px;
    background: #f8f9fc;
    border-top: 1px solid #edf1f7;
}

.similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.similar-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #09063d;
    letter-spacing: -0.5px;
}

.similar-header a {
    font-size: 0.88rem;
    color: #3465f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.similar-header a:hover { color: #1e40af; }

.similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .similar-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Sticky Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #edf1f7;
    padding: 10px 16px;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1023px) {
    .mobile-action-bar {
        display: flex;
    }
    
    body { padding-bottom: 72px; }
}

.mobile-action-bar .mobile-save-btn,
.mobile-action-bar .mobile-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2f3545;
}

.mobile-action-bar .mobile-save-btn svg,
.mobile-action-bar .mobile-share-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-action-bar .mobile-save-btn.saved {
    background: #3465f6;
    border-color: #3465f6;
    color: #fff;
}

.mobile-action-bar .mobile-contact-btn {
    flex: 1;
    height: 48px;
    background: #3465f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(52, 101, 246, 0.25);
}

.mobile-action-bar .mobile-contact-btn svg {
    width: 18px;
    height: 18px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.show { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-nav svg { width: 24px; height: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal.show { display: flex; }

.contact-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09063d;
    font-size: 1.1rem;
}

.contact-modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #09063d;
    margin-bottom: 6px;
}

.contact-modal .modal-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #09063d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #222;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3465f6;
    box-shadow: 0 0 0 3px rgba(52, 101, 246, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-submit {
    width: 100%;
    height: 48px;
    background: #3465f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.contact-submit:hover {
    background: #2952d3;
    transform: translateY(-2px);
}

/* Loading & Error States */
.loading-state, .error-state {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #edf1f7;
    border-top-color: #3465f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-state svg {
    width: 64px;
    height: 64px;
    color: #ef4444;
}

.error-state h2 {
    font-size: 1.5rem;
    color: #09063d;
    font-weight: 700;
}

.error-state p {
    font-size: 0.92rem;
    color: #6b7280;
    max-width: 400px;
}

.error-state button {
    padding: 12px 24px;
    background: #3465f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Mobile refinements */
@media (max-width: 639px) {
    .detail-header { padding: 80px 0 20px; }
    .detail-title { font-size: 1.4rem; }
    .price-block .price-value { font-size: 1.6rem; }
    .info-card { padding: 20px; }
    .info-card-title { font-size: 0.98rem; }
}




.gallery-wrapper {
    margin-bottom: 2rem;
}

.gallery-main-container {
    margin-bottom: 1rem;
}

.gallery-main {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: #f3f4f6;
}

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

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ea580c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 2;
}

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-counter svg {
    width: 18px;
    height: 18px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumb.active {
    border-color: #3b82f6;
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

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


/* =========================================================
   AGENT AVATAR
   ========================================================= */

.agent-avatar {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.agent-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ml-estate-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.24) 0%,
            rgba(255,255,255,0.08) 20%,
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #09063d 0%,
            #17105c 48%,
            #3564ed 100%
        );
    box-shadow:
        0 8px 22px rgba(9, 6, 61, 0.20),
        inset 0 0 0 1px rgba(255,255,255,0.18);
}

.ml-estate-avatar::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
}

.ml-estate-avatar::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: #f1bf0a;
    opacity: 0.18;
    filter: blur(8px);
}

.ml-estate-monogram {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1;
    transform: translateY(-1px);
}

.ml-estate-monogram-main {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.ml-estate-monogram-sub {
    margin-top: 3px;
    color: #f1bf0a;
    font-size: 0.31rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================================
   CONTACT CHOICE MODAL
   ========================================================= */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(9, 6, 61, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(9, 6, 61, 0.22);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.show .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d7d9e2;
    margin: -8px auto 24px;
}

.contact-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f8;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: #e8eaf0;
    transform: rotate(90deg);
}

.contact-modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #eef3ff;
    color: #3564ed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.contact-modal-icon svg {
    width: 29px;
    height: 29px;
}

.contact-modal-content h3 {
    margin: 0;
    padding-right: 45px;
    color: #09063d;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.contact-modal-subtitle {
    margin: 8px 0 4px;
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-modal-property {
    margin: 0 0 22px;
    color: #1f2937;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contact-choice-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-choice-btn {
    width: 100%;
    min-height: 68px;
    border: 1px solid #e3e6ed;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    color: #111827;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.contact-choice-btn:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.contact-choice-btn:active {
    transform: scale(0.985);
}

.contact-choice-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-choice-icon svg {
    width: 24px;
    height: 24px;
}

.contact-choice-call .contact-choice-icon {
    background: #eef2ff;
    color: #315ee8;
}

.contact-choice-whatsapp .contact-choice-icon {
    background: #eafaf3;
    color: #10a76d;
}

.contact-choice-text {
    flex: 1;
    min-width: 0;
}

.contact-choice-text strong {
    display: block;
    color: #09063d;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.contact-choice-text span {
    display: block;
    margin-top: 3px;
    color: #737b8c;
    font-size: 0.76rem;
    line-height: 1.35;
}

.contact-choice-arrow {
    flex: 0 0 auto;
    color: #9aa1af;
}

.contact-choice-arrow svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   MAP
   ========================================================= */

.property-map {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 0.75rem;
}

.property-map .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 0.75rem;
    font-family: "Poppins", sans-serif;
    z-index: 1;
}

.property-map .leaflet-control-container {
    z-index: 1000;
}

.map-loading-state {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background:
        linear-gradient(
            135deg,
            #f8f9fc 0%,
            #eef2f7 100%
        );
    color: #6b7280;
}

.map-loading-state p {
    margin: 0;
    font-size: 0.88rem;
}

.map-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #dbe1ec;
    border-top-color: #3564ed;
    border-radius: 50%;
    animation: moonlatMapSpin 0.8s linear infinite;
}

@keyframes moonlatMapSpin {
    to {
        transform: rotate(360deg);
    }
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    background:
        linear-gradient(
            135deg,
            #f8f9fc 0%,
            #eef2f7 100%
        );
    border-radius: 0.75rem;
    border: 2px dashed #d1d5db;
    box-sizing: border-box;
}

.map-placeholder svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #9ca3af;
}

.map-placeholder p {
    margin: 0;
}

.map-placeholder-main {
    color: #6b7280;
    font-size: 0.9rem;
}

.map-placeholder-sub {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 0.5rem !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 641px) {

    .contact-modal {
        align-items: center;
        padding: 20px;
    }

    .contact-modal-content {
        border-radius: 28px;
        padding: 32px;
        box-shadow: 0 25px 80px rgba(9, 6, 61, 0.25);
        transform: translateY(30px) scale(0.97);
    }

    .contact-modal.show .contact-modal-content {
        transform: translateY(0) scale(1);
    }

    .contact-choice-list {
        grid-template-columns: 1fr 1fr;
    }

    .contact-choice-btn {
        min-height: 150px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 18px;
    }

    .contact-choice-arrow {
        align-self: flex-end;
    }

}

@media (max-width: 640px) {

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-main {
        aspect-ratio: 4/3;
    }

    .agent-avatar {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        min-width: 58px;
        min-height: 58px;
    }

}

@media (max-width: 480px) {

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .gallery-thumb {
        border-width: 2px;
    }

    .contact-modal-content {
        padding-left: 18px;
        padding-right: 18px;
    }

}



/* =========================================================
   MOONLAT MAPS — FINAL ATTRIBUTION
   Prevent Leaflet branding/link from being clickable
   ========================================================= */

.property-map {
    position: relative !important;
    overflow: hidden !important;
}

/* Attribution container */
.property-map .leaflet-control-attribution {
    background: rgba(9, 6, 61, 0.94) !important;
    color: rgba(255, 255, 255, 0.72) !important;

    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 12px 0 0 0 !important;

    padding: 7px 12px !important;
    margin: 0 !important;

    font-family: 'Poppins', sans-serif !important;
    font-size: 0 !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;

    box-shadow: 0 -4px 20px rgba(9, 6, 61, 0.18) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    cursor: default !important;
}

/* ---------------------------------------------------------
   Completely remove Leaflet's clickable branding
   --------------------------------------------------------- */

.property-map
.leaflet-control-attribution
a[href*="leafletjs.com"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Remove Leaflet flag */
.property-map
.leaflet-control-attribution
.leaflet-attribution-flag {
    display: none !important;
}

/* ---------------------------------------------------------
   MoonLat Maps
   --------------------------------------------------------- */

.property-map
.leaflet-control-attribution::before {
    content: 'MoonLat Maps';

    display: inline-block;

    color: #ffffff;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: -0.01em;

    margin-right: 8px;

    pointer-events: none;
}

/* ---------------------------------------------------------
   Separator
   --------------------------------------------------------- */

.property-map
.leaflet-control-attribution::after {
    content: '|  © OpenStreetMap contributors';

    display: inline-block;

    color: rgba(255, 255, 255, 0.70);

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 400;

    pointer-events: none;
}

/* ---------------------------------------------------------
   Disable accidental interaction with hidden branding
   --------------------------------------------------------- */

.property-map
.leaflet-control-attribution a {
    cursor: default !important;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .property-map
    .leaflet-control-attribution {
        padding: 6px 10px !important;
        border-radius: 10px 0 0 0 !important;
    }

    .property-map
    .leaflet-control-attribution::before {
        font-size: 8px;
        margin-right: 6px;
    }

    .property-map
    .leaflet-control-attribution::after {
        font-size: 8px;
    }

}