/* Property Details Page Styles */

/* Floor Plan Section Styles */
.floor-pane-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.floor-pane-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .floor-pane-grid {
        grid-template-columns: 1fr;
    }

    .floor-pane-grid > div:last-child {
        order: -1;
    }
}

.floor-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.floor-tab-btn-style {
    padding: 10px 22px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.floor-tab-price-sub {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

.floor-pane-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.floor-pane-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.floor-pane-price-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.floor-pane-on-request-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.floor-pane-spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.floor-pane-spec-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-navy);
}

.download-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.floor-plan-card-box {
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.floor-plan-img-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.floor-plan-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.floor-plan-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor-plan-overlay-btn {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.floor-plan-enlarge-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    cursor: pointer;
}

.unit-plan-fallback-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.unit-plan-fallback-img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.unit-plan-request-btn {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.floor-plan-fallback-container {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.floor-plan-fallback-img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.floor-plan-fallback-btn {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

/* Master Plan Section */
.master-plan-box {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.master-plan-img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
    transition: transform 0.25s ease;
}

.master-plan-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    text-align: center;
}

.master-plan-iframe {
    display: block;
    width: 100%;
    height: 620px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.master-plan-fallback-wrap {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.master-plan-fallback-img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.master-plan-fallback-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 8px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

/* Location & Map Section */
.location-address-text {
    font-size: 15px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.map-status-alert {
    display: none;
    padding: 15px;
    background: #fff1f2;
    color: #be123c;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
}

/* Reviews & Ratings Section */
.review-success-banner {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.rating-summary-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
}

@media (max-width: 768px) {
    #ratingSummary {
        grid-template-columns: 1fr !important;
    }
}

.rating-summary-left {
    text-align: center;
    padding-right: 24px;
    border-right: 1px solid #cbd5e1;
}

.rating-score-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-navy);
    line-height: 1;
}

.rating-stars-wrap {
    color: #f59e0b;
    font-size: 18px;
    margin: 8px 0 4px;
}

.rating-count-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.rating-bars-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.rating-bar-label {
    width: 50px;
    font-weight: 700;
    color: var(--primary-navy);
}

.rating-bar-bg {
    flex: 1;
    background: #e2e8f0;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.rating-bar-val {
    width: 75px;
    text-align: right;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
}

.review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.review-card-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.review-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.review-card-name {
    font-weight: 800;
    color: var(--primary-navy);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-card-badge {
    color: #f59e0b;
    font-size: 14px;
    background: #fffbe8;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #fef08a;
    white-space: nowrap;
}

.review-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .review-card-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .review-card-name {
        font-size: 14px;
    }

    .review-card-badge {
        font-size: 12px;
        padding: 3px 8px;
    }

    .review-card-footer {
        gap: 10px;
    }
}

.resident-feedback-heading {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.review-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.verified-resident-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-rating-num {
    font-weight: 800;
    color: var(--primary-navy);
    margin-left: 4px;
}

.review-text-paragraph {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-weight: 400;
}

.helpful-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

/* Review Form Section */
.review-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

.review-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.review-form-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    height: 44px;
    gap: 8px;
}

@media (max-width: 576px) {
    .review-form-card {
        padding: 18px;
    }

    .review-form-grid {
        grid-template-columns: 1fr;
    }

    .review-form-rating-row {
        height: auto;
        flex-wrap: wrap;
    }

    #starRatingPicker {
        font-size: 18px;
    }
}

.ajax-review-success {
    display: none;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.review-form-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-navy);
    margin: 0;
}

.review-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.verified-feedback-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.review-input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.review-input-text {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.star-rating-picker-box {
    display: flex;
    gap: 6px;
    cursor: pointer;
    font-size: 20px;
    color: #f59e0b;
}

.rating-label-badge {
    font-weight: 800;
    font-size: 12px;
    color: var(--primary-navy);
    background: #fffbe8;
    border: 1px solid #fef08a;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.review-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    resize: none;
    line-height: 1.5;
}

.review-submit-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* FAQs Section */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.faq-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-accordion-header {
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.faq-question-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-q-badge {
    background: var(--primary-navy);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.faq-chevron {
    color: var(--primary-navy);
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-accordion-body {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

.faq-answer-text {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
}

/* Videos Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
}

/* Sidebar Contact Developer Form */
.contact-developer-msg {
    display: none;
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 600;
    font-size: 12px;
}

.contact-developer-form {
    margin-top: 15px;
}

.contact-input-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-input-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.download-brochure-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    cursor: pointer;
}

.sidebar-btn-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* On Request Modal */
.on-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid var(--accent-orange);
    border-radius: 6px;
    background: #fff7ed;
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.on-request-btn:hover {
    background: var(--accent-orange);
    color: #ffffff;
}

.on-request-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.65);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.on-request-modal-box {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close-icon {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.on-request-modal-title {
    margin: 0 34px 6px 0;
    color: var(--primary-navy);
    font-size: 21px;
    font-weight: 800;
}

.on-request-modal-sub {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.on-request-msg {
    display: none;
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 12px;
}

.on-request-form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.on-request-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 13px;
    outline: none;
}

.on-request-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

/* Floor Plan & Master Plan Lightbox Modal */
@keyframes fpModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.floor-plan-img-wrapper {
    transition: transform 0.2s ease;
}

.floor-plan-img-wrapper:hover .hover-overlay {
    opacity: 1 !important;
}

.floor-plan-img-wrapper:hover .hover-zoom-img {
    transform: scale(1.03);
}

#floorPlanModal.open {
    display: flex !important;
}

.fp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.fp-modal-card {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fpModalFadeIn 0.25s ease-out;
}

.fp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-modal-header-icon {
    color: var(--accent-orange, #f97316);
    font-size: 16px;
}

.fp-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.fp-modal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-modal-close-btn {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: transform 0.15s;
}

.fp-modal-body {
    padding: 20px;
    background: #f8fafc;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(92vh - 65px);
}

.fp-modal-img {
    max-width: 100%;
    max-height: calc(86vh - 90px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}
