/* ======================================== */
/* listing-show.css - Extracted from blade      */
/* ======================================== */

/* ========== LISTING DETAIL — Modern Card Layout ========== */
.detail-page {
    padding: 28px 0 64px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 10px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.back-btn:hover {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13,148,136,.25);
    transform: translateX(-3px);
}

.back-btn svg {
    transition: transform .2s;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* === Gallery Section (Full-width top) === */
.gallery-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 480px;
}

.gallery-main-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    grid-row: 1 / 3;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    min-height: 300px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    transition: all .2s;
    z-index: 2;
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

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

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

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

.gallery-side-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: opacity .15s;
}

.gallery-side-item:hover {
    opacity: .85;
}

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

.gallery-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.gallery-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.no-image-block {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f8f8;
    border-radius: 16px;
    color: #ccc;
}

@media (max-width: 768px) {
    .gallery-section {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .gallery-side-grid {
        display: none;
    }

    .gallery-main-wrap {
        grid-row: auto;
    }
}

/* === Title + Price + Meta === */
.detail-header {
    margin-bottom: 24px;
}

.detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
}

.detail-price-block {
    text-align: right;
    flex-shrink: 0;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #024A57;
    white-space: nowrap;
}

.detail-price-sub {
    font-size: .8rem;
    color: #888;
    margin-top: 2px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: .8rem;
    margin-top: 8px;
    flex-wrap: wrap;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0fafb;
    color: #04A5B5;
    font-weight: 600;
    font-size: .75rem;
}

/* === Two-Column Layout (info + sidebar) === */
.detail-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 960px) {
    .detail-body {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: -1;
    }
}

/* === Card Block (shared style) === */
.info-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .03);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title svg {
    color: #04A5B5;
    flex-shrink: 0;
}

/* === Specs Table === */
.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid #f5f5f5;
}

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

.specs-table th {
    padding: 10px 12px 10px 0;
    font-size: .84rem;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: top;
    width: auto;
    text-align: left;
}

.specs-table td {
    padding: 10px 0;
    font-size: .88rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* === Key Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.feature-item:nth-child(odd) {
    padding-right: 20px;
    border-right: 1px solid #f5f5f5;
}

.feature-item:nth-child(even) {
    padding-left: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #04A5B5;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-label {
    font-size: .75rem;
    color: #999;
}

.feature-value {
    font-size: .92rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 1px;
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }

    .feature-item:nth-child(even) {
        padding-left: 0;
    }
}

/* === Description === */
.desc-text {
    line-height: 1.75;
    color: #444;
    font-size: .9rem;
    white-space: pre-line;
}

/* === Map === */
#map {
    width: 100%;
    height: 320px;
    border-radius: 12px;
}

/* === Sidebar === */
.seller-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .03);
    position: sticky;
    top: 80px;
}

.seller-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #024A57, #04A5B5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.seller-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.seller-name {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.seller-role {
    font-size: .78rem;
    color: #04A5B5;
    font-weight: 600;
    margin-top: 2px;
}

.seller-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .8rem;
    color: #888;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.seller-price-block {
    margin-bottom: 18px;
}

.seller-price-label {
    font-size: .75rem;
    color: #999;
    margin-bottom: 4px;
}

.seller-price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #024A57;
}

.seller-price-suffix {
    font-size: .8rem;
    color: #888;
    font-weight: 400;
}

.btn-phone-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, #024A57, #04A5B5);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    border: none;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(4, 165, 181, .25);
}

.btn-phone-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(4, 165, 181, .35);
}

.btn-msg-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn-msg-full:hover {
    border-color: #04A5B5;
    color: #04A5B5;
}

/* === Property/Siblings === */
.property-section {
    margin-top: 12px;
    padding: 24px;
    background: #f8fffe;
    border: 1px solid #e0f2f4;
    border-radius: 14px;
}

.property-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.property-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #024A57, #04A5B5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.property-title {
    font-size: 1rem;
    font-weight: 700;
    color: #024A57;
}

.property-subtitle {
    font-size: .78rem;
    color: #999;
    margin-top: 1px;
}

.property-desc {
    font-size: .84rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0f2f4;
}

.siblings-title {
    font-size: .92rem;
    font-weight: 700;
    color: #024A57;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.siblings-count {
    background: #04A5B5;
    color: #fff;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.siblings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}

.siblings-table thead {
    background: #024A57;
    color: #fff;
}

.siblings-table thead th {
    padding: 11px 14px;
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: left;
}

.siblings-table tbody tr {
    transition: background .12s;
}

.siblings-table tbody tr:hover {
    background: #f0fafb;
}

.siblings-table tbody tr.current-listing {
    background: #e6f7f9;
}

.siblings-table tbody td {
    padding: 11px 14px;
    font-size: .84rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

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

.sibling-price {
    font-weight: 700;
    color: #024A57;
    white-space: nowrap;
}

.sibling-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    color: #04A5B5;
    background: #f0fafb;
    transition: all .15s;
}

.sibling-link:hover {
    background: #04A5B5;
    color: #fff;
}

.current-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: .7rem;
    font-weight: 700;
    background: #04A5B5;
    color: #fff;
}

/* === Lightbox Modal === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .4);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .3);
    transform: scale(1.1);
}

.lightbox-close svg {
    stroke: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, .25);
}

.lightbox-nav svg {
    stroke: #fff;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .7);
    font-size: .85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, .4);
    padding: 6px 16px;
    border-radius: 20px;
}

/* === Message Modal === */
.msg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
}
.msg-modal-overlay.active { display: block; }

.msg-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.95);
    z-index: 9999;
    background: #fff;
    border-radius: 18px;
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.msg-modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.msg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.msg-modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.msg-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all .15s;
}
.msg-modal-close:hover { background: #f5f5f5; color: #333; }

.msg-modal-listing {
    padding: 12px 24px;
    background: #f8fffe;
    border-bottom: 1px solid #f0f0f0;
    font-size: .82rem;
    color: #888;
}
.msg-modal-listing strong {
    color: #024A57;
    display: block;
    margin-top: 2px;
}

#msgForm { padding: 20px 24px; }

.msg-field { margin-bottom: 14px; }
.msg-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.msg-field input,
.msg-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: .85rem;
    color: #333;
    background: #fff;
    outline: none;
    transition: border .15s;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}
.msg-field input:focus,
.msg-field textarea:focus { border-color: #04A5B5; }
.msg-field input::placeholder,
.msg-field textarea::placeholder { color: #bbb; }

.msg-actions { margin-top: 6px; }
.msg-btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #024A57, #04A5B5);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
}
.msg-btn-send:hover { box-shadow: 0 4px 14px rgba(4,165,181,.3); }
.msg-btn-send:disabled { opacity: .6; cursor: not-allowed; }

.msg-success {
    text-align: center;
    padding: 40px 24px;
}
.msg-success svg { margin-bottom: 14px; }
.msg-success p {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.msg-btn-close {
    padding: 10px 32px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
}
.msg-btn-close:hover { border-color: #04A5B5; color: #04A5B5; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }