.details-main {
    padding-top: 120px;
    padding-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: start;
}

.details-left, .details-right {
    min-width: 0;
}

/* New Zonaprop-style Layout */
.details-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.details-title-block h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-dark);
}

.details-location-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.details-price-block {
    text-align: right;
}

.details-price-block .price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.details-price-block .expensas-sub {
    font-size: 0.95rem;
    color: #888;
}

.features-horizontal-bar {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feat-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feat-icon-svg {
    background: #f0f4ff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    width: 44px;
    height: 44px;
}

.feat-icon-svg svg {
    width: 22px;
    height: 22px;
}

.feat-content {
    display: flex;
    flex-direction: column;
}

.feat-bar-label {
    font-size: 0.75rem;
    color: #777;
    font-weight: 600;
}

.feat-bar-value {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
}

.sidebar-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-sidebar-action {
    flex: 1;
    background: #f8f9fa;
    color: #444;
    border: 1px solid #eee;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-sidebar-action:hover {
    background: #eee;
}

.contact-card-v3 {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.contact-card-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.required-note {
    font-size: 0.75rem;
    color: #999;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-sidebar input,
.form-group-sidebar textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group-sidebar input:focus,
.form-group-sidebar textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-dark-sidebar {
    background: #000;
    color: #fff;
    font-weight: 600;
    padding: 14px;
    margin-top: 5px;
}

.btn-dark-sidebar:hover {
    background: #333;
}

.btn-whatsapp-v2 {
    background: #fff;
    color: #25d366;
    border: 2px solid #25d366;
    font-weight: 600;
    padding: 12px;
}

.btn-whatsapp-v2:hover {
    background: #f0fff4;
}

.agent-compact-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.agent-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.agent-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.agent-name {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-data-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff5f5;
    border-radius: 10px;
    border: 1px solid #fed7d7;
}

.admin-label {
    display: block;
    font-size: 0.75rem;
    color: #c53030;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.admin-data-box p {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.details-content-columns {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 16 / 10;
    max-height: 580px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.carousel-inner {
    height: 100%;
    width: 100%;
}

.carousel-item {
    display: none;
    height: 100%;
    width: 100%;
}

.carousel-item.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8f9fa;
    cursor: zoom-in;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
    left: 18px;
}

.carousel-control.next {
    right: 18px;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 10px;
}

.details-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 12px 0;
    color: var(--text-dark);
}

.details-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
}

.property-info-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pill {
    background: #f1f3f9;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.pill.highlight-pill {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.details-features {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-feature .icon {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--surface);
    padding: 10px;
    border-radius: 12px;
    min-width: 46px;
    text-align: center;
}

.detail-feature strong {
    font-size: 1.08rem;
    display: block;
}

.detail-feature p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.agent-box {
    background: var(--surface);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.agent-info,
.owner-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.owner-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #666;
}

.custom-features-section {
    margin-bottom: 34px;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8faff;
    border-radius: 14px;
    border: 1px solid #edf2ff;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 1.4rem;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-card {
    background: var(--text-dark);
    color: white;
    padding: 24px;
    border-radius: 20px;
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-card p {
    margin-bottom: 18px;
    opacity: 0.9;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    margin-bottom: 10px;
}

.btn-whatsapp:hover {
    background: #1fb35c;
}

.floating-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: none;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.floating-contact .btn {
    flex: 1;
    margin: 0;
    padding: 14px 10px !important;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 86vh;
    border-radius: 14px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 42px;
    border: none;
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.6);
}

.lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2600;
}

.lightbox-control:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-control.prev {
    left: 20px;
}

.lightbox-control.next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-control {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-control.prev { left: 10px; }
    .lightbox-control.next { right: 10px; }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}

/* Thumbnail Gallery */
.carousel-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    justify-content: center;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.thumb-item {
    flex: 0 0 100px;
    height: 65px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

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

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 21, 86, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    .details-content-columns {
        grid-template-columns: 1fr;
    }

    .contact-card-v2 {
        position: static;
    }

    .details-header-row {
        flex-direction: column;
        gap: 15px;
    }

    .details-price-block {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .details-main {
        padding-bottom: 90px;
    }

    .thumb-item {
        flex: 0 0 80px;
        height: 55px;
    }

    .footer {
        padding-bottom: 90px;
    }
}

@media (min-width: 769px) {
    .floating-contact {
        display: none !important;
    }
}