@import '../../shared/css/common.css';

/* PROPERTY DETAIL STYLING (WIREFRAME PAGES 7-9) */

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 4% 80px;
}

/* PROPERTY HEADER */
.detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.status-badge.available {
    display: inline-block;
    padding: 5px 14px;
    background-color: #d1ead7;
    color: var(--green);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-badge.sold,
.status-badge.reserved {
    display: inline-block;
    padding: 5px 14px;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.property-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1.15;
    margin-bottom: 4px;
}

.property-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    color: var(--green);
    font-weight: 600;
}

.detail-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
}

/* GALLERY CAROUSEL */
.gallery-section {
    margin-bottom: 30px;
}

.main-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

.carousel-zoom-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(18, 38, 25, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media (hover: hover) and (pointer: fine) {
    .carousel-zoom-btn:hover {
        background: var(--green);
        color: #ffffff;
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-arrow:hover {
        background: var(--light-green);
        color: var(--green);
        transform: translateY(-50%) scale(1.08);
    }
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* THUMBNAILS */
.thumbnails-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.thumb {
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

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

@media (hover: hover) and (pointer: fine) {
    .thumb:hover {
        opacity: 0.85;
    }
}

.thumb.active {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(45, 92, 57, 0.25);
}

/* SPECS BAR (PAGE 8) */
.specs-bar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 36px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border: 1px solid #ebf2ec;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .spec-item:hover {
        background: #f4faf6;
        transform: translateY(-2px);
    }
}

.spec-item svg {
    color: var(--text-dark);
    flex-shrink: 0;
}

.spec-info strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.spec-info span {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* DETAILS & FEATURES */
.details-section {
    margin-bottom: 40px;
}

.detail-block {
    margin-bottom: 34px;
}

.detail-block h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 12px;
}

.detail-block p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #435948;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 14px;
}

.amenities-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amenities-grid li {
    font-size: 15px;
    color: #3b5040;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet {
    color: var(--green);
    font-size: 18px;
}

/* LOCATION & INQUIRY SECTION (PAGE 9) - Location map hidden per requirement */
.location-inquiry-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.location-box {
    display: none !important;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.location-header svg {
    color: var(--green);
}

.location-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.location-header p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.view-map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .view-map-link:hover {
        text-decoration: underline;
    }
}

/* INQUIRY CARD */
.inquiry-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #ebf2ec;
    display: flex;
    flex-direction: column;
    max-width: 620px;
    width: 100%;
}

.inquiry-card-header {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.inquiry-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1b2e21;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inquiry-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.inquiry-card-header p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

.submit-inquiry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--green);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-bottom: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .submit-inquiry-btn:hover {
        background-color: var(--dark-green);
    }
}

.submit-inquiry-btn.inquiry-closed {
    background-color: #e5e7eb;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
    .submit-inquiry-btn.inquiry-closed:hover {
        background-color: #e5e7eb;
        color: #64748b;
        cursor: not-allowed;
        box-shadow: none;
    }
}

.inquiry-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Hide inquiry note when user is logged in */
html.logged-in .inquiry-note,
body.logged-in .inquiry-note,
html[data-auth-state="logged-in"] .inquiry-note,
.logged-in .inquiry-note {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .detail-container {
        padding: 24px 4% 60px;
    }

    .specs-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 20px 24px;
    }

    .location-inquiry-grid {
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .location-box,
    .inquiry-card {
        min-width: 0;
        width: 100%;
        max-width: 620px;
    }

    .main-carousel {
        height: 340px;
    }
}

@media (max-width: 600px) {
    .detail-container {
        padding: 18px 3.5% 50px;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }

    .header-left,
    .header-right {
        width: 100%;
    }

    .property-title {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }

    .property-loc {
        font-size: 14.5px;
    }

    .detail-price {
        font-size: clamp(1.35rem, 5.5vw, 1.95rem);
        word-break: break-word;
    }

    .main-carousel {
        height: clamp(220px, 56vw, 290px);
        border-radius: 14px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .thumbnails-row {
        gap: 8px;
        margin-top: 10px;
    }

    .thumb {
        height: clamp(52px, 15vw, 75px);
        border-radius: 8px;
    }

    .specs-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 14px;
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .spec-item {
        gap: 10px;
    }

    .spec-info strong {
        font-size: 16px;
    }

    .spec-info span {
        font-size: 12px;
    }

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

    .detail-block h2 {
        font-size: 22px;
    }

    .detail-block p {
        font-size: 14.5px;
    }

    .location-box {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .inquiry-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .submit-inquiry-btn {
        padding: 13px 20px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .specs-bar {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   FULLSCREEN IMAGE LIGHTBOX & INTERACTIVE ZOOM
   ======================================================== */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 18, 13, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    z-index: 20;
    color: #ffffff;
}

.lightbox-counter {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

@media (hover: hover) and (pointer: fine) {
    .lightbox-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.08);
    }
}

.lightbox-btn.close-btn {
    background: rgba(220, 38, 38, 0.35);
    border-color: rgba(239, 68, 68, 0.5);
}

@media (hover: hover) and (pointer: fine) {
    .lightbox-btn.close-btn:hover {
        background: rgba(220, 38, 38, 0.9);
        transform: scale(1.08);
    }
}

.lightbox-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    cursor: grab;
}

.lightbox-viewport.is-panning {
    cursor: grabbing !important;
}

.lightbox-viewport.zoom-1 {
    cursor: zoom-in;
}

.lightbox-img-stage {
    display: inline-block;
    will-change: transform;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
}

.lightbox-viewport.is-panning .lightbox-img-stage {
    transition: none; /* instant response while dragging */
}

.lightbox-img-stage img {
    max-width: 90vw;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    display: block;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 15;
}

@media (hover: hover) and (pointer: fine) {
    .lightbox-nav:hover {
        background: var(--green);
        color: #ffffff;
        transform: translateY(-50%) scale(1.1);
    }
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}

.lightbox-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 24px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 20;
}

.lightbox-thumbs {
    display: flex;
    gap: 10px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px 6px;
}

.lightbox-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

@media (hover: hover) and (pointer: fine) {
    .lightbox-thumb:hover {
        opacity: 0.9;
    }
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    transform: scale(1.05);
}

.lightbox-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
    text-align: center;
}

@media (max-width: 768px) {
    .image-lightbox {
        height: 100dvh;
    }
    .lightbox-header {
        padding: 12px 14px;
        gap: 8px;
    }
    .lightbox-controls {
        gap: 6px;
    }
    .lightbox-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
    .lightbox-nav.prev {
        left: 10px;
    }
    .lightbox-nav.next {
        right: 10px;
    }
    .lightbox-hint {
        display: none;
    }
    .carousel-zoom-btn {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        min-height: 34px;
        font-size: 12px;
    }
}

/* ========================================================
   TOTAL CONTRACT PRICE (TCP) & SAMPLE COMPUTATION SECTION
   ======================================================== */
.tcp-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2ef;
}

/* Computation breakdown UI, calculators, and schedules hidden per requirement */
.tcp-section-header,
.tcp-grid,
.tcp-table-wrapper {
    display: none !important;
}

.tcp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid #edf4ee;
}

.tcp-title-group h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 6px 0;
}

.tcp-title-group p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.tcp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5ec;
    color: var(--dark-green);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #c8e6d0;
}

.tcp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.tcp-kpi-card {
    background: #fbfdfb;
    border: 1.5px solid #e3ede5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tcp-kpi-card:hover {
        border-color: #9eccaa;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    }
}

.tcp-kpi-card .kpi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.tcp-kpi-card .kpi-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-green);
    display: block;
    line-height: 1.2;
}

.tcp-kpi-card .kpi-sub {
    font-size: 12.5px;
    color: #718096;
    margin-top: 6px;
    display: block;
}

.tcp-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2ebe4;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tcp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.tcp-table th {
    background: #f4f8f5;
    color: var(--dark-green);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1.5px solid #dbe8dd;
    white-space: nowrap;
}

.tcp-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #edf4ee;
    color: #2d3748;
}

.tcp-table tr:last-child td {
    border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
    .tcp-table tr:hover td {
        background: #fbfdfc;
    }
}

.tcp-table td strong {
    color: var(--dark-green);
    font-weight: 700;
}

.tcp-doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #f0f8f2 0%, #e6f4ea 100%);
    border: 1.5px dashed #a3d2b0;
    border-radius: 12px;
    padding: 18px 22px;
    cursor: default;
    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tcp-doc-card:hover {
        background: #e1f2e6;
        border-color: #67b57e;
        transform: translateY(-2px);
    }
}

.tcp-doc-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tcp-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.tcp-doc-text h4 {
    margin: 0 0 3px 0;
    font-size: 15px;
    color: var(--dark-green);
    font-weight: 700;
}

.tcp-doc-text p {
    margin: 0;
    font-size: 13px;
    color: #4b6354;
}

.tcp-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--dark-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .tcp-doc-btn:hover {
        background: #143e21;
    }
}

.tcp-document-modal {
    width: min(1180px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: var(--dark-green);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.tcp-document-modal::backdrop {
    background: rgba(8, 20, 11, 0.78);
    backdrop-filter: blur(3px);
}

.tcp-document-modal-content {
    display: flex;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    flex-direction: column;
}

.tcp-document-modal-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 22px;
    border-bottom: 1px solid #e4ece5;
}

.tcp-document-modal-header h2 {
    min-width: 0;
    margin: 0;
    color: var(--dark-green);
    font-size: 16px;
    line-height: 1.35;
}

.tcp-document-modal-close {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f0f6f1;
    color: var(--dark-green);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .tcp-document-modal-close:hover {
        background: #e2ede5;
    }
}

.tcp-document-modal-image-wrap {
    display: grid;
    min-height: 0;
    padding: 12px;
    place-items: center;
    overflow: auto;
    background: #f2f5f2;
}

.tcp-document-modal-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    object-fit: contain;
}

.tcp-disclaimer {
    font-size: 12px;
    color: #526456;
    margin-top: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tcp-section {
        padding: 24px 18px;
    }
    .tcp-doc-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .tcp-doc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Dark Mode Overrides for Property Showcase & Official Pricelist Card
   ========================================================================== */
html.dark-mode .status-badge.available,
html[data-theme="dark"] .status-badge.available {
    background-color: rgba(62, 163, 93, 0.22) !important;
    color: #86efac !important;
    border: 1px solid rgba(134, 239, 172, 0.38) !important;
}

html.dark-mode .status-badge.sold,
html.dark-mode .status-badge.reserved,
html[data-theme="dark"] .status-badge.sold,
html[data-theme="dark"] .status-badge.reserved {
    background-color: rgba(239, 68, 68, 0.22) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(252, 165, 165, 0.38) !important;
}

html.dark-mode .s-icon-btn,
html[data-theme="dark"] .s-icon-btn {
    width: 40px;
    height: 40px;
    background-color: #17241c !important;
    border: 1.5px solid #294532 !important;
    color: #e8f5ec !important;
}

html.dark-mode .s-icon-btn svg,
html[data-theme="dark"] .s-icon-btn svg {
    stroke: #e8f5ec !important;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .s-icon-btn:hover,
    html[data-theme="dark"] .s-icon-btn:hover {
        background-color: #213528 !important;
        border-color: #4ade80 !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .s-icon-btn:hover svg,
    html[data-theme="dark"] .s-icon-btn:hover svg {
        stroke: #86efac !important;
    }
}

html.dark-mode .main-carousel img,
html.dark-mode .thumb img {
    filter: none;
    transition: opacity 0.25s ease;
}

html.dark-mode .thumb.active img {
    filter: none;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .main-carousel:hover img,
    html.dark-mode .thumb:hover img {
        filter: none;
    }
}

html.dark-mode .carousel-arrow {
    background: rgba(22, 35, 27, 0.88);
    border: 1px solid rgba(134, 239, 172, 0.32);
    color: #eef6f0;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .carousel-arrow:hover {
        background: #2d5c39;
        border-color: #86efac;
        color: #ffffff;
    }
}

html.dark-mode .specs-bar,
html.dark-mode .inquiry-card {
    background: #16231b;
    border-color: #26392c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .submit-inquiry-btn:hover {
        background-color: #2f8548;
        color: #ffffff;
    }
}

html.dark-mode .submit-inquiry-btn.inquiry-closed {
    background-color: #1c2820;
    color: #7e9485;
    border: 1px solid #2b3d30;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .submit-inquiry-btn.inquiry-closed:hover {
        background-color: #1c2820;
        color: #7e9485;
        border: 1px solid #2b3d30;
    }
}

html.dark-mode .tcp-section {
    background: #16231b;
    border-color: #26392c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html.dark-mode .tcp-badge-pill {
    background: rgba(62, 163, 93, 0.2);
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.38);
}

html.dark-mode .tcp-kpi-card {
    background: #121d16;
    border-color: #26392c;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .tcp-kpi-card:hover {
        border-color: #3ea35d;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }
}

html.dark-mode .tcp-kpi-card .kpi-label {
    color: #9ab09f;
}

html.dark-mode .tcp-kpi-card .kpi-val {
    color: #86efac;
}

html.dark-mode .tcp-kpi-card .kpi-sub {
    color: #8da394;
}

html.dark-mode .tcp-table-wrapper {
    border-color: #26392c;
}

html.dark-mode .tcp-table th {
    background: #1c2d22;
    color: #86efac;
    border-bottom-color: #293e2f;
}

html.dark-mode .tcp-table td {
    background: transparent;
    color: #d8ebe0;
    border-bottom-color: #243629;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .tcp-table tr:hover td {
        background: #1b2c22;
    }
}

html.dark-mode .tcp-table td strong {
    color: #86efac;
}

html.dark-mode .tcp-doc-card {
    background: linear-gradient(135deg, #1b2d22 0%, #16251c 100%);
    border-color: #2f573b;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .tcp-doc-card:hover {
        background: linear-gradient(135deg, #213729 0%, #1b2e22 100%);
        border-color: #4ade80;
    }
}

html.dark-mode .tcp-doc-icon {
    background: #132018;
    border: 1px solid #2b4533;
    color: #86efac;
}

html.dark-mode .tcp-doc-text h4 {
    color: #eef6f0;
}

html.dark-mode .tcp-doc-text p {
    color: #a8bdb0;
}

html.dark-mode .tcp-doc-btn {
    background: #2d6a3e;
    border: 1px solid #3ea35d;
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .tcp-doc-btn:hover {
        background: #3ea35d;
        border-color: #4ade80;
        color: #ffffff;
    }
}

html.dark-mode .tcp-disclaimer {
    color: #a7bfae;
}

html.dark-mode .tcp-document-modal {
    background: #16231b;
    color: #eef6f0;
}

html.dark-mode .tcp-document-modal-header {
    background: #19281f;
    border-bottom-color: #26392c;
}

html.dark-mode .tcp-document-modal-header h2 {
    color: #eef6f0;
}

html.dark-mode .tcp-document-modal-close {
    background: #1f3326;
    color: #e7f0e9;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .tcp-document-modal-close:hover {
        background: #2d5c39;
        color: #ffffff;
    }
}

html.dark-mode .tcp-document-modal-image-wrap {
    background: #0f1812;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .spec-item:hover {
        background: #192a1e;
    }
}

/* ============================================================
   20 UI/UX DESIGN SYSTEM POLISHES (RULES 3, 10, 14, 16, 18)
   ============================================================ */
.property-header h1,
.detail-title,
.section-title,
.specs-card h3,
.location-card h3,
.calculator-card h3 {
    text-wrap: balance;
}

.property-description p,
.about-text p,
.tcp-disclaimer {
    text-wrap: pretty;
}

/* Unitalicize random notes (Rule 3) */
.tcp-disclaimer,
.disclaimer-note,
.note-text {
    font-style: normal !important;
}

/* Tabular Nums (Rule 18) */
.property-price,
.hero-price-amount,
.spec-value,
.spec-number,
.amort-val,
.calc-output,
.monthly-amort-amount,
.downpayment-val,
.spec-item span,
.tcp-price-figure {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

/* Emphasize Primary CTA Buttons (Rule 10) */
.inquire-now-btn,
.schedule-viewing-btn,
.calc-btn-primary {
    background: linear-gradient(135deg, var(--green, #1f4928) 0%, var(--forest, #2e7d32) 100%);
    box-shadow: 0 4px 14px rgba(31, 73, 40, 0.28);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .inquire-now-btn:hover,
    .schedule-viewing-btn:hover,
    .calc-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(31, 73, 40, 0.38);
    }
}

.inquire-now-btn:active,
.schedule-viewing-btn:active,
.calc-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(31, 73, 40, 0.25);
}

/* Concentric Radius Math (Rule 14) */
.calculator-card {
    border-radius: 18px;
    padding: 24px;
}
.calculator-card .calc-field input,
.calculator-card .calc-field select {
    border-radius: 10px; /* 18px outer - 8px delta */
}
.calc-result-box {
    border-radius: 12px;
}





