.property-detail {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    max-width: 100%;
}

/* Gallery */
.property-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gallery-main {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.gallery-main img#main-image {
    width: 100%;
    height: clamp(220px, 45vw, 500px);
    object-fit: cover;
    display: block;
    z-index: 1;
}

.gallery-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.gallery-badges .badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-badges .badge-sold {
    background: #dc3545 !important;
    color: #fff !important;
}

.gallery-badges .badge-rented {
    background: #6f42c1 !important;
    color: #fff !important;
}

.gallery-badges .badge-sale {
    background: #dc3545 !important;
    color: #fff !important;
}

.gallery-badges .badge-rent {
    background: #0d6efd !important;
    color: #fff !important;
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    pointer-events: auto;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.75);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Gallery Zoom Button */
.gallery-zoom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    pointer-events: auto;
}

.gallery-zoom:hover {
    background: rgba(212,175,55,0.85);
}

/* Gallery Thumbs */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumb {
    flex: 0 0 80px;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--gold);
}

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

.no-image-large {
    width: 100%;
    height: clamp(220px, 45vw, 500px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #aaa;
}

.no-image-large i {
    font-size: 60px;
    margin-bottom: 15px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    pointer-events: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
}

/* Property Info Card */
.property-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee;
}

.property-header-info h1 {
    font-size: 26px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.property-header-info .property-location {
    color: #666;
}

.property-header-info .property-location i {
    color: var(--gold);
    margin-right: 5px;
}

.property-price-box {
    text-align: right;
}

.property-price-box .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    display: block;
    white-space: nowrap;
}

.property-price-box .period {
    color: #888;
    font-size: 14px;
}

/* Key Features */
.key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.key-features .feature {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.key-features .feature i {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

.key-features .feature .value {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.key-features .feature .label {
    font-size: 12px;
    color: #888;
}

/* Property Detail Cards (description, details) */
.property-detail .property-main > .property-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: none;
}

.property-detail .property-main > .property-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.property-detail .property-main > .property-card h2 {
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.description-content {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.detail-item .label {
    color: #888;
}

.detail-item .value {
    font-weight: 500;
    text-align: right;
}

/* Sidebar */
.property-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    word-break: break-word;
}

.sidebar-card h3 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* Inquiry Form */
.inquiry-form .form-group {
    margin-bottom: 15px;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Contact Info */
.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-info i {
    width: 20px;
    color: var(--gold);
}

.contact-info a {
    color: #333;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: break-word;
}

.contact-info a:hover {
    color: var(--gold);
}

/* Share */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #666; }

/* Similar Properties */
.similar-properties {
    margin-top: 50px;
}

.similar-properties h2 {
    font-size: 22px;
    margin-bottom: 25px;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .property-detail {
        padding: 25px 0 40px;
    }

    .property-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-sidebar {
        position: static;
    }

    .property-header-info {
        flex-direction: column;
        gap: 15px;
    }

    .property-price-box {
        text-align: left;
    }

    .gallery-main img#main-image {
        cursor: pointer;
    }

    .property-header-info h1 {
        font-size: 22px;
    }

    .property-price-box .price {
        font-size: 24px;
    }
}

/* Responsive - Small Tablet */
@media (max-width: 768px) {
    .property-detail {
        padding: 15px 0 30px;
    }

    .property-gallery {
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .property-info-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .property-detail .property-main > .property-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .property-header-info h1 {
        font-size: 20px;
    }

    .property-price-box .price {
        font-size: 22px;
    }

    .key-features .feature {
        padding: 10px 12px;
    }

    .key-features .feature i {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .key-features .feature .value {
        font-size: 16px;
    }

    .key-features .feature .label {
        font-size: 11px;
    }

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

    .sidebar-card {
        padding: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .property-detail {
        padding: 8px 0 25px;
    }

    .property-gallery {
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }

    .gallery-main img#main-image {
        height: 220px;
    }

    .gallery-badges {
        top: 8px;
        left: 8px;
    }

    .gallery-badges .badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 13px;
        background: rgba(0,0,0,0.6);
    }

    .gallery-prev { left: 6px; }
    .gallery-next { right: 6px; }

    .gallery-zoom {
        width: 32px;
        height: 32px;
        font-size: 12px;
        background: rgba(212,175,55,0.85);
    }

    .gallery-counter {
        font-size: 10px;
        padding: 2px 8px;
    }

    .gallery-thumbs {
        padding: 6px;
        gap: 4px;
    }

    .thumb {
        flex: 0 0 48px;
        border-radius: 4px;
    }

    /* Property Info Compact */
    .property-info-card {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }

    .property-header-info {
        margin-bottom: 12px;
        padding-bottom: 12px;
        gap: 8px;
    }

    .property-header-info h1 {
        font-size: 17px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .property-header-info .property-location {
        font-size: 13px;
    }

    .property-price-box .price {
        font-size: 20px;
    }

    .property-price-box .period {
        font-size: 11px;
    }

    /* Key Features Compact */
    .key-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .key-features .feature {
        padding: 8px 4px;
        border-radius: 6px;
        min-width: 0;
    }

    .key-features .feature i {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .key-features .feature .value {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .key-features .feature .label {
        font-size: 10px;
    }

    /* Cards Compact */
    .property-detail .property-main > .property-card {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }

    .property-detail .property-main > .property-card h2 {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .description-content {
        font-size: 13px;
        line-height: 1.6;
    }

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

    .detail-item {
        padding: 8px 0;
        font-size: 13px;
    }

    /* Sidebar Compact */
    .sidebar-card {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }

    .sidebar-card h3 {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .inquiry-form .form-group {
        margin-bottom: 10px;
    }

    .inquiry-form input,
    .inquiry-form textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 6px;
    }

    .share-buttons {
        gap: 8px;
    }

    .contact-info li {
        padding: 10px 0;
        gap: 10px;
        font-size: 13px;
    }

    .similar-properties {
        margin-top: 25px;
    }

    .similar-properties h2 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    /* Lightbox Mobile */
    .lightbox-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
        background: rgba(255,255,255,0.25);
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-content img {
        max-height: 80vh;
    }

    .lightbox-counter {
        bottom: 12px;
        font-size: 12px;
        padding: 4px 12px;
    }
}
