/* Single Asset Page - Professional Property Template */

.single-asset-page {
    background: #FBF7F5;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* Override any theme container restrictions */
.single-asset .site-main,
.single-asset .page-content,
.single-asset .entry-content,
.single-asset #content,
.single-asset .content-area,
.single-asset .elementor-section-wrap,
body.single-asset #content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* White header on single asset pages */
body.single-asset .elementor-location-header {
    background: #FBF7F5;
}

/* ============================================
   HERO SECTION
   ============================================ */
.asset-hero-section {
    background: #FBF7F5;
    padding: 80px 24px 0px;
}

.asset-hero-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.asset-hero-content {
    flex: 1;
    max-width: 800px;
}

.asset-type-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #1b1917;
    color: #FBF7F5;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.asset-title {
    font-family: "Besley", serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    color: #1b1917;
    margin: 0 0 24px 0;
}

.asset-location-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(27, 25, 23, 0.1);
}

.location-text {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1b1917;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-divider {
    color: rgba(27, 25, 23, 0.3);
    font-size: 14px;
}

.market-text {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #776F67;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map Section */
.asset-map-section {
    margin-top: 50px;
}

.asset-map {
    width: 100%;
    height: 400px;
    background: #e4e1e0;
    border: 1px solid rgba(27, 25, 23, 0.1);
    border-radius: 8px;
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */
.asset-main-section {
    padding: 40px 24px 80px;
}

.asset-main-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* ============================================
   CONTENT COLUMN (Left)
   ============================================ */
.asset-content-column {
    min-width: 0;
}

/* Gallery Slider */
.asset-gallery-slider {
    margin-bottom: 50px;
}

.gallery-main {
    position: relative;
    background: #1b1917;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gallery-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(27, 25, 23, 0.7);
    border: none;
    color: #FBF7F5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(27, 25, 23, 0.9);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 14px;
    color: #FBF7F5;
    background: rgba(27, 25, 23, 0.7);
    padding: 8px 16px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: #1b1917;
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description Section */
.asset-description {
    margin-bottom: 50px;
}

.section-heading {
    font-family: "Besley", serif;
    font-size: 28px;
    font-weight: 400;
    color: #1b1917;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e1e0;
}

.description-content {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1b1917;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content h2,
.description-content h3,
.description-content h4 {
    font-family: "Besley", serif;
    font-weight: 400;
    color: #1b1917;
    margin-top: 32px;
    margin-bottom: 16px;
}

.description-content ul,
.description-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.description-content li {
    margin-bottom: 8px;
}

/* ============================================
   SIDEBAR (Right)
   ============================================ */
.asset-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: #FBF7F5;
    border: none;
    padding: 32px 0;
    margin-bottom: 24px;
}

.sidebar-title {
    font-family: "Besley", serif;
    font-size: 20px;
    font-weight: 400;
    color: #1b1917;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e1e0;
}

.sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1b1917;
}

.detail-value {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1b1917;
    line-height: 1.4;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1b1917;
    text-decoration: none;
    padding: 14px 24px;
    border: 1px solid #1b1917;
    border-radius: 50px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.back-link:hover {
    background: #1b1917;
    color: #FBF7F5;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

@media only screen and (min-width:1000px) {
    .sidebar-card {
        padding: 0px !important;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .asset-main-container {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }

    .asset-hero-container {
        gap: 40px;
    }

    .asset-title {
        font-size: 44px;
    }
}

@media (max-width: 1024px) {
    .asset-hero-section {
        padding: 50px 30px 40px;
    }

    .asset-hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .asset-hero-content {
        max-width: 100%;
    }

    .asset-hero-map {
        width: 100%;
        max-width: 400px;
        height: 180px;
    }

    .asset-main-section {
        padding: 50px 30px 60px;
    }

    .asset-main-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .asset-content-column {
        order: 2;
    }

    .asset-sidebar {
        order: 1;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .sidebar-card {
        margin-bottom: 0;
    }

    .back-link {
        grid-column: 1 / -1;
    }

    .asset-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .asset-hero-section {
        padding: 40px 20px 30px;
    }

    .asset-main-section {
        padding: 40px 20px 50px;
    }

    .asset-title {
        font-size: 32px;
    }

    .asset-type-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .asset-location-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .location-divider {
        display: none;
    }

    .asset-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 24px;
    }

    .section-heading {
        font-size: 24px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 12px;
    }

    .gallery-next {
        right: 12px;
    }

    .gallery-counter {
        bottom: 12px;
        left: 12px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .gallery-thumbnails {
        gap: 6px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .asset-title {
        font-size: 28px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .asset-hero-map {
        height: 160px;
    }
}

/* ============================================
   LIGHTBOX (Optional Enhancement)
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}
