/* property.css - Property Detail Page Styling */

body {
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    /* space for bottom nav on mobile */
}

@media screen and (min-width: 1024px) {
    body {
        padding-bottom: 0 !important;
    }
}

.property-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.2fr 1.2fr;
    gap: 30px;
    box-sizing: border-box;
}

@media screen and (max-width: 992px) {
    .property-detail-container {
        grid-template-columns: 1fr;
        margin: 15px auto;
        padding: 0 15px;
        gap: 20px;
    }
}

/* --- Gallery & Slideshow --- */
.property-gallery {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.gallery-main {
    width: 100%;
    height: 450px;
    position: relative;
    background: #0f172a;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .gallery-main {
        height: 280px;
    }
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    overflow-x: auto;
    border-top: 1px solid #e2e8f0;
}

.thumb-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-item.active {
    border-color: #0d2b5e;
    opacity: 1;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

/* --- Left Column - Details --- */
.property-main-info {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.property-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
    .property-title-section {
        flex-direction: column;
        align-items: stretch;
    }
}

.prop-badge-type {
    display: inline-block;
    padding: 5px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.property-location {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: #ef4444;
}

.property-price-box {
    text-align: right;
}

@media screen and (max-width: 600px) {
    .property-price-box {
        text-align: left;
        margin-top: 10px;
    }
}

.property-price-val {
    font-size: 2rem;
    font-weight: 900;
    color: #0d2b5e;
    margin: 0;
}

.property-price-lbl {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

/* --- Features Row --- */
.property-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

@media screen and (max-width: 480px) {
    .property-features-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.feature-box:last-child {
    border-right: none;
}

@media screen and (max-width: 480px) {
    .feature-box:nth-child(2n) {
        border-right: none;
    }
}

.feature-box i {
    font-size: 1.4rem;
    color: #0d2b5e;
    margin-bottom: 6px;
}

.feature-box span {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-box strong {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

/* --- Description --- */
.property-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    border-left: 4px solid #ffc107;
    padding-left: 12px;
    margin: 0 0 16px 0;
}

.property-desc-text {
    font-size: 0.96rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* --- Amenities Grid --- */
.amenities-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.amenity-card {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.2s;
}

@media screen and (max-width: 768px) {
    .amenities-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        padding: 5px 2px 15px 2px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .amenities-grid::-webkit-scrollbar {
        height: 6px;
    }

    .amenities-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .amenities-grid::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 3px;
    }

    .amenity-card {
        flex-shrink: 0;
    }
}

.amenity-card:hover {
    transform: translateY(-2px);
    background: #e2e8f0;
}

.amenity-card i {
    color: #10b981;
    font-size: 1.1rem;
}

.custom-amenity-card {
    border: 1px dashed #cbd5e1;
    background: #fafafa;
}

.custom-amenity-card i {
    color: #0d2b5e;
}

.amenity-value {
    margin-left: auto;
    background: #0d2b5e;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* --- Right Column - Sticky Sidebar --- */
.property-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.broker-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.broker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0d2b5e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid #ffc107;
}

.broker-details h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.broker-details p {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.broker-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0d2b5e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(13, 43, 94, 0.15);
}

.broker-phone-btn:hover {
    background: #1a3c7a;
    transform: translateY(-2px);
}

.scheduler-widget {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.scheduler-widget h5 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.scheduler-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sched-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}

.sched-btn-talk {
    background: transparent;
    border: 1.5px solid #0d2b5e;
    color: #0d2b5e;
}

.sched-btn-talk:hover {
    background: rgba(13, 43, 94, 0.04);
    transform: translateY(-1px);
}

.sched-btn-visit {
    background: #ffc107;
    color: #111;
}

.sched-btn-visit:hover {
    background: #ffd740;
    transform: translateY(-1px);
}

/* --- RERA / Info Section --- */
.rera-info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #b78103;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 15px;
}

.rera-info-badge i {
    font-size: 1rem;
}

/* --- Related Properties Section --- */
.related-section-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.related-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
}

/* --- Modals Specific Styles --- */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-modal.show {
    display: flex !important;
    opacity: 1;
}

.popup-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    width: 90%;
    max-width: 440px;
    padding: 28px;
    position: relative;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

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

.popup-modal-content .form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}

.popup-modal-content .form-control:focus {
    outline: none;
    border-color: #0d2b5e;
    box-shadow: 0 0 0 3px rgba(13, 43, 94, 0.12);
}

.bottom-modal-btn {
    transition: all 0.2s;
}

.bottom-modal-btn:hover {
    filter: brightness(0.95);
}

/* --- Similar Location Property Cards Styling --- */
.prop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.prop-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.prop-card.visible {
    display: block;
}

.prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.prop-card-imgwrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.prop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prop-card:hover .prop-card-img {
    transform: scale(1.05);
}

.prop-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FFC107;
    color: #111;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.prop-card-body {
    padding: 16px;
}

.prop-card-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0d2b5e;
    margin: 0 0 6px 0;
}

.prop-card-price span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.prop-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-card-location {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.prop-card-location i {
    color: #ef4444;
}

.prop-card-features {
    display: flex;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.prop-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.prop-feature i {
    color: #ffc107;
    font-size: 0.95rem;
}