/**
 * Property Details - Clean Design (No Boxes)
 */

.property-details-section {
    background: linear-gradient(135deg, #004C48 0%, #003D3A 100%);
    padding: 3rem 0 5rem;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #E5DCBF;
}

.breadcrumb a {
    color: #E5DCBF;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #AE9357;
}

/* Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* Main Content */
.property-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 1. TITLE */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fffcf3;
    margin: 0;
}

/* 2. CAROUSEL */
.image-carousel {
    background: linear-gradient(145deg, rgba(0, 76, 72, 0.6) 0%, rgba(0, 107, 100, 0.4) 100%);
    border: 2px solid rgba(174, 147, 87, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.badge-purpose {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.badge-purpose.sale {
    background: #d1af6fc4;
    color: #012b2b;
}

.badge-purpose.rent {
    background: linear-gradient(167deg, #03e357cc 0%, #1aad9ccf 100%);
    color: #012b2b;
}

.badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f4ce14b8;
    color: #012b2b;
    padding: 0.5rem 1.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.badge-type {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 42, 40, 0.85);
    backdrop-filter: blur(10px);
    color: #D4B978;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgba(174, 147, 87, 0.4);
    z-index: 10;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 42, 40, 0.8);
    border: 2px solid #AE9357;
    color: #AE9357;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #AE9357;
    color: #002A28;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Thumbnails */
.carousel-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(134deg, #006b5066 0%, rgb(77 53 0 / 15%) 50%, #006b50 100%);
}

.carousel-thumbnails .thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.carousel-thumbnails .thumb:hover {
    transform: translateY(-3px);
}

.carousel-thumbnails .thumb.active {
    border-color: #AE9357;
    box-shadow: 0 0 15px rgba(174, 147, 87, 0.5);
}

/* 3. LOCATION & PRICE (Plain) */
.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid rgba(174, 147, 87, 0.2);
}

.meta-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E8E7E2;
    font-size: 1rem;
}

.meta-location svg {
    fill: #AE9357;
}

.meta-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fffcf3;
}

/* 4. SECTIONS (No Boxes!) */
.detail-section {
    margin: 2rem 0;
}

.detail-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fffcf3;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(174, 147, 87, 0.3);
}

.detail-section p {
    color: #E8E7E2;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 5. SPECS GRID - Card Style */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.spec-card {
    background: rgba(0, 55, 20, 0.15);
    border: 1px solid rgba(174, 147, 87, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.spec-card:hover {
    background: rgba(0, 55, 20, 0.25);
    border-color: rgba(174, 147, 87, 0.4);
    transform: translateY(-3px);
}

.spec-card .spec-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.spec-card .spec-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.spec-card .spec-label {
    font-size: 0.85rem;
    color: #E5DCBF;
}

.spec-card .spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fffcf3;
}

/* 6. FEATURES LIST - Better Style */
.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list li {
    color: #E8E7E2;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 55, 20, 0.15);
    border-radius: 8px;
    border-right: 3px solid #10B981;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(0, 55, 20, 0.25);
    transform: translateX(-5px);
}

.features-list li::before {
    content: '✓ ';
    color: #10B981;
    font-weight: 900;
    margin-left: 0.5rem;
}

/* License */
.license-info {
    background: rgba(174, 147, 87, 0.15);
    border: 2px solid rgba(174, 147, 87, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #E8E7E2;
    margin-top: 2rem;
}

/* SIDEBAR */
.property-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: linear-gradient(145deg, rgba(0, 76, 72, 0.6) 0%, rgba(0, 107, 100, 0.4) 100%);
    border: 2px solid rgba(174, 147, 87, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    color: #fffcf3;
    margin-bottom: 0.5rem;
    text-align: center;
}

.sidebar-card p {
    color: #E5DCBF;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-call {
    background: linear-gradient(135deg, #015f42 0%, #0e4537 100%);
    color: #fffcf3;
    border: 2px solid #005347;
}

.btn-call:hover {
    background: #AE9357;
    color: #002A28;
}

/* Share */
.share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(174, 147, 87, 0.2);
}

.share-section h4 {
    color: #fffcf3;
    margin-bottom: 1rem;
 text-align: center;
}

.share-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.share-btns a,
.share-btns button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 55, 20, 0.25);
    color: #E8E7E2;
    border: 1px solid rgba(174, 147, 87, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btns a:hover,
.share-btns button:hover {
    background: #AE9357;
    color: #002A28;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .meta-price {
        font-size: 1.5rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIGHTBOX - FIXED IMAGE DISPLAY
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgb(22 28 26 / 83%);
    backdrop-filter: blur(15px) saturate(180%);
}

.lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(174, 147, 87, 0.3);
    border-radius: 50%;
    border: 2px solid rgba(174, 147, 87, 0.5);
}

.lightbox-close:hover {
    background: #AE9357;
    transform: rotate(90deg) scale(1.1);
    border-color: #AE9357;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(174, 147, 87, 0.3);
    border: 2px solid #AE9357;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #AE9357;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 30px rgba(174, 147, 87, 0.6);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 42, 40, 0.9);
    color: #AE9357;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid #AE9357;
    z-index: 100000;
    backdrop-filter: blur(10px);
}

/* Cursor indicators */
.carousel-slide img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.carousel-slide img:hover {
    opacity: 0.9;
}

.carousel-thumbnails .thumb {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox img {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
    
    .lightbox-counter {
        bottom: 15px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}