/* Property Details Page Styles */

:root {
    --detail-bg: #f8f9fa;
    --sidebar-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --accent-teal: #00A699;
    --accent-red: #FF385C;
}

.details-page-wrapper {
    background-color: var(--detail-bg);
    padding: 30px 0;
}

/* Premium Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-red);
}

.breadcrumb-item.active {
    color: #888;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #ccc;
    font-size: 0.8rem;
}

/* Gallery Container */
.detail-gallery-container {
    background: transparent;
    box-shadow: none !important;
    border-radius: 0;
}

.gallery-header {
    padding: 0 0 14px;
    background: transparent;
    border-bottom: none;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-date {
    font-size: 0.82rem;
    color: #777;
    font-weight: 400;
}

.gallery-date i {
    color: #00A699;
}

.main-image-swiper {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.main-image-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.main-image-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}

.thumb-image-swiper {
    margin-top: 12px;
    height: 80px;
    box-sizing: border-box;
}

.thumb-image-swiper .swiper-slide {
    width: 80px !important;
    height: 80px;
    flex-shrink: 0;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.thumb-image-swiper .swiper-slide:hover {
    opacity: 0.7;
}

.thumb-image-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary-color, #006A50);
}

.thumb-image-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Styles */
.details-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--sidebar-shadow);
    position: sticky;
    top: 100px;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.seller-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seller-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.verified-badge {
    background: rgba(0, 166, 153, 0.1);
    color: #00A699;
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-badge i {
    color: #00A699;
    font-size: 0.75rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.btn-phone {
    background: #fff;
    color: #444;
}

.btn-chat {
    background: #FFD200;
    color: #333;
    border: none;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

/* Lower Section Content */
.detail-content-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--sidebar-shadow);
    margin-top: 30px;
}

.property-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.price-box .badge {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4em 0.7em;
}

.price-box h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color, #00A699);
    letter-spacing: -0.5px;
}

.meta-info {
    text-align: right;
}

.meta-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.location-tag {
    font-size: 1rem;
    color: #777;
    margin-top: 4px;
}

/* Specs Icon Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.spec-item {
    background: #fff;
    border: 1px solid #eef0f3;
    padding: 14px 10px 12px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.spec-item:hover {
    border-color: var(--primary-color, #006A50);
    transform: translateY(-3px);
}

.spec-icon {
    font-size: 1.15rem;
    color: var(--primary-color, #00A699);
    margin-bottom: 6px;
    opacity: 0.9;
    line-height: 1;
}

.spec-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-label {
    font-size: 0.72rem;
    color: #8a8f9a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
    display: block;
}

/* Features List */
.features-container {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.feature-check i {
    color: var(--primary-color, #006A50);
    font-size: 0.8rem;
}

/* Section Headlines */
.detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.detail-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2.5px;
    background: var(--primary-color, #00A699);
    border-radius: 2px;
}

.description-text {
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

/* Video Container - 50% width */
.video-container-half {
    width: 50%;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .video-container-half {
        width: 100%;
    }
}

/* ========== Mobile Title Section ========== */
.mobile-title-section {
    display: none;
}

.mobile-property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.mobile-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
    max-width: 65%;
    line-height: 1.35;
    word-break: break-word;
}

.mobile-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.1;
}

.mobile-meta-id {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.mobile-furnish-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #f1f3f6;
    border: 1px solid #e1e4ea;
    border-radius: 6px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ========== Mobile Fixed Bottom Agent Bar ========== */
.mobile-agent-bar {
    display: none;
}

@media (max-width: 991px) {
    .main-image-swiper {
        height: 300px;
        border-radius: 12px;
    }

    /* Hide desktop gallery header on mobile */
    .gallery-header {
        display: none;
    }

    /* Show mobile title section */
    .mobile-title-section {
        display: block;
        padding: 0 4px;
    }

    /* Hide desktop header inside detail box on mobile */
    .property-main-header {
        display: none !important;
    }

    /* Hide desktop sidebar on mobile */
    .details-sidebar {
        display: none !important;
    }

    /* Add bottom padding so content isn't hidden behind fixed bar */
    .details-page-wrapper {
        padding-bottom: 90px;
    }

    /* Show fixed bottom agent bar */
    .mobile-agent-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-agent-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .mobile-agent-logo {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        object-fit: contain;
        border: 1px solid #eee;
        flex-shrink: 0;
    }

    .mobile-agent-name {
        font-size: 0.88rem;
        font-weight: 600;
        color: #222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-agent-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    .mobile-action-btn:active {
        transform: scale(0.92);
    }

    .btn-email-m {
        background: #E8820E;
        color: #fff;
    }

    .btn-wa-m {
        background: #25D366;
        color: #fff;
    }

    .btn-phone-m {
        background: #f0f0f0;
        color: #333;
        border: 1px solid #ddd;
    }

    .price-box h2 {
        font-size: 1.5rem;
    }

    .detail-content-box {
        padding: 20px;
        margin-top: 16px !important;
    }

    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 28px;
    }

    .spec-item {
        padding: 10px 6px;
        min-height: 92px;
    }

    .spec-icon {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-check {
        font-size: 0.85rem;
    }

    .detail-section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .description-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* Recommended Section Styling */
.recommended-section {
    border-top: 1px solid #eee;
    padding-top: 50px;
}

.recommended-section .detail-section-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px !important;
}

.recommended-section .detail-section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

.recommended-section .property-card-global {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recommended-section .property-card-global:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.recommended-section .card-title-global {
    font-size: 0.9rem;
    height: auto;
    -webkit-line-clamp: 2;
}

.recommended-section .price-text {
    font-size: 1rem;
}

.recommended-section .card-body-global {
    padding: 15px;
}

.recommended-section .feature-item-global {
    font-size: 0.8rem;
}

.recommended-section .card-footer-global {
    padding: 10px 12px;
}