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

/* ========================================
   HEADER / HERO
   ======================================== */

.property-detail-header {
    position: relative;
    min-height: 360px;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.property-detail-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75));
    z-index: 1;
}

.property-detail-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3.5rem 0;
}

.property-badges-row--header {
    justify-content: center;
    margin-bottom: 1.25rem;
}

.property-detail-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

.property-detail-header-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
}

.property-detail-header-location svg {
    stroke: rgba(255, 255, 255, 0.95);
}

.property-detail-page {
    background-color: var(--color-bg-white);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.property-detail-gallery {
    width: 100%;
}

.gallery-main-large {
    width: 100%;
    height: 600px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--color-bg-lighter);
}

.main-image-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-lighter) 0%, #E0F2FE 100%);
    color: var(--color-text-secondary);
}

.gallery-thumbnails-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail-item {
    height: 140px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
}

.thumbnail-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.thumbnail-item.active {
    border-color: var(--color-primary);
}

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

/* ========================================
   PROPERTY MAIN CONTENT
   ======================================== */

.property-main-content {
    width: 100%;
}

.property-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge-detail {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

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

.badge-type {
    background-color: #F3F4F6;
    color: var(--color-text-primary);
}

.badge-featured {
    background-color: #F59E0B;
    color: white;
}

.property-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-location-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.property-location-display svg {
    stroke: var(--color-primary);
}

/* ========================================
   FEATURE BOXES GRID
   ======================================== */

.features-grid-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-box-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

.feature-box-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
    transform: translateY(-2px);
}

.feature-box-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-lighter);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.feature-box-icon svg {
    stroke: var(--color-primary);
}

.feature-box-content {
    flex: 1;
}

.feature-box-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.feature-box-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* ========================================
   PROPERTY SECTIONS
   ======================================== */

.property-section {
    margin-bottom: 3rem;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.property-description-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ========================================
   PROPERTY FEATURES LIST
   ======================================== */

.property-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-item-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.feature-item-check:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-lighter);
}

.feature-item-check span {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ========================================
   SIDEBAR
   ======================================== */

.property-sidebar-sticky {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.sidebar-card {
    background: #E0F2FE;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.15), 0 4px 6px -2px rgba(8, 145, 178, 0.1);
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.5);
}

.sidebar-price-section {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #BAE6FD 0%, #E0F2FE 100%);
    text-align: center;
    border-bottom: 2px solid rgba(186, 230, 253, 0.3);
}

.price-label {
    font-size: 0.875rem;
    color: rgba(14, 116, 144, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}

.sidebar-actions {
    padding: 1.5rem;
    background: #E0F2FE;
}

.btn-contact-us {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.btn-contact-us:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.btn-contact-us svg {
    stroke: currentColor;
    stroke-width: 2.5;
}

.sidebar-divider {
    height: 1px;
    background: #BAE6FD;
    margin: 0 1.5rem;
}

.sidebar-agent {
    padding: 2rem 1.5rem;
    background: #E0F2FE;
}

.agent-title {
    font-size: 0.75rem;
    color: rgba(14, 116, 144, 0.7);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.agent-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
    flex-shrink: 0;
}

.agent-details {
    flex: 1;
}

.agent-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.agent-phone {
    font-size: 0.9375rem;
    color: rgba(14, 116, 144, 0.8);
    font-weight: 500;
}

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

@media (max-width: 1024px) {
    .property-main-content {
        grid-column: 1 / -1;
    }
    
    .property-sidebar-sticky {
        position: static;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .property-detail-header {
        min-height: 320px;
        height: 42vh;
    }

    .property-detail-header-title {
        font-size: 2.1rem;
    }

    .gallery-main-large {
        height: 400px;
    }
    
    .gallery-thumbnails-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .property-detail-title {
        font-size: 1.875rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .features-grid-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-box-item {
        padding: 1rem;
    }
    
    .property-features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .property-detail-header-title {
        font-size: 1.75rem;
    }

    .gallery-thumbnails-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-detail-title {
        font-size: 1.5rem;
    }
    
    .features-grid-boxes {
        grid-template-columns: 1fr;
    }
    
    .sidebar-extra-actions {
        flex-direction: column;
    }
}
