/* ===== GoodHome.ge — Property Details Modal Design ===== */

.property-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.property-modal-container {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 980px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-modal-overlay.active .property-modal-container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.property-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.property-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg) scale(1.05);
}

/* Modal Body */
.property-modal-body {
    padding: 0;
}

/* Photo Gallery */
.property-gallery {
    position: relative;
    background: #0f172a;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.property-main-photo-wrap {
    position: relative;
    width: 100%;
    height: 460px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.property-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev { left: 16px; }
.gallery-nav-btn.next { right: 16px; }

.gallery-counter-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

/* Thumbnails Strip */
.property-thumbs-strip {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #0f172a;
    overflow-x: auto;
    scrollbar-width: thin;
}

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

.property-thumb-item:hover {
    opacity: 0.9;
}

.property-thumb-item.active {
    border-color: #ff5a1f;
    opacity: 1;
    transform: scale(1.05);
}

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

/* Content Area */
.property-content-wrap {
    padding: 28px 32px 36px;
}

/* Header & Price */
.property-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.property-header-left {
    flex: 1;
    min-width: 280px;
}

.property-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.prop-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.prop-badge.badge-deal {
    background: #ff5a1f;
    color: #ffffff;
}

.prop-badge.badge-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.prop-badge.badge-type {
    background: #f1f5f9;
    color: #475569;
}

.property-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.35;
}

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

.property-location i {
    color: #ff5a1f;
    font-size: 16px;
}

.property-header-right {
    text-align: right;
}

.property-price-main {
    font-size: 32px;
    font-weight: 900;
    color: #ff5a1f;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.property-price-sub {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* Specs Grid */
.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 24px 0;
}

.property-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-item-label i {
    color: #ff5a1f;
    font-size: 13px;
}

.spec-item-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

/* Amenities Pills */
.property-amenities-section {
    margin: 24px 0;
}

.prop-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-amenities-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amenity-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.amenity-pill i {
    color: #10b981;
    font-size: 12px;
}

/* Description */
.property-desc-section {
    margin: 24px 0;
}

.property-desc-text {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    white-space: pre-line;
}

/* Contact & Action Box */
.property-contact-card {
    background: linear-gradient(135deg, rgba(255,90,31,0.06), rgba(255,138,80,0.08));
    border: 1.5px solid rgba(255, 90, 31, 0.25);
    border-radius: 18px;
    padding: 22px 26px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-agent-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5a1f, #ff8a50);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.3);
}

.agent-details .agent-name {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.agent-details .agent-role {
    font-size: 12px;
    color: #ff5a1f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.contact-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.contact-btn.btn-call {
    background: #ff5a1f;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 90, 31, 0.35);
}

.contact-btn.btn-call:hover {
    background: #e04810;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 90, 31, 0.45);
}

.contact-btn.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.contact-btn.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.contact-btn.btn-viber {
    background: #7360f2;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(115, 96, 242, 0.3);
}

.contact-btn.btn-viber:hover {
    background: #604be8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(115, 96, 242, 0.4);
}

/* Footer / Meta info */
.property-modal-footer-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 10px;
}

.property-meta-tags {
    display: flex;
    gap: 16px;
}

/* Skeleton Loading State */
.property-skeleton-wrap {
    padding: 32px;
}
.skeleton-box {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-modal-container {
        border-radius: 16px;
        max-height: 96vh;
    }
    .property-main-photo-wrap {
        height: 280px;
    }
    .property-content-wrap {
        padding: 20px 18px 28px;
    }
    .property-header-row {
        flex-direction: column;
        gap: 12px;
    }
    .property-header-right {
        text-align: left;
    }
    .property-title {
        font-size: 20px;
    }
    .property-price-main {
        font-size: 26px;
    }
    .property-contact-card {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-actions-row {
        width: 100%;
    }
    .contact-btn {
        flex: 1;
        justify-content: center;
    }
}
