:root {
    --prop-primary: #1083b9;
    --prop-secondary: #0f172a;
    --prop-accent: #0a6a94;
    --prop-light: #f3f4f6;
    --prop-white: #ffffff;
    --prop-text: #374151;
    --prop-text-light: #6b7280;
    --prop-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--prop-light);
    color: var(--prop-text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
}

.property-detail-main {
    padding: 40px 0 80px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--prop-text-light);
}

.breadcrumbs a {
    color: var(--prop-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--prop-accent);
}

/* Property Header */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--prop-primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.header-left p {
    font-size: 1.1rem;
    color: var(--prop-text-light);
}

.header-left i {
    color: var(--prop-primary);
    margin-right: 8px;
}

.header-right {
    text-align: right;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: #119726;
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--prop-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery */
.property-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .property-gallery {
        grid-template-columns: 3fr 2fr;
        gap: 20px;
        min-height: 550px;
    }

    .property-gallery.single-image {
        grid-template-columns: 1fr;
        min-height: 600px;
    }
}


.main-image {
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--prop-shadow);
    background: #e2e8f0;
}


.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.property-gallery.two-images .thumbnail-grid {
    grid-template-columns: 1fr;
}

.property-gallery.three-images .thumbnail-grid {
    grid-template-columns: 1fr;
}


.thumb {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--prop-shadow);
    border: 2px solid transparent;
    transition: all 0.3s;
    background: #f1f5f9;
}

.thumb.placeholder {
    cursor: default;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.thumb:not(.placeholder):hover {
    transform: scale(1.02);
}

.thumb.active {
    border-color: var(--prop-primary);
}


/* Content Grid */
.property-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.details-column {
    background: var(--prop-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--prop-shadow);
}

.details-column section {
    margin-bottom: 40px;
}

.details-column h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--prop-secondary);
    position: relative;
    padding-bottom: 10px;
}

.details-column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--prop-primary);
    border-radius: 2px;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s;
}

.amenity-item:hover {
    transform: translateY(-3px);
}

.amenity-item i {
    font-size: 1.2rem;
    color: var(--prop-primary);
    width: 24px;
    text-align: center;
}

.amenity-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.amenity-overview-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 92px;
    background: #e5e7eb;
    border-radius: 8px;
    text-align: center;
    padding: 12px 10px;
}

.amenity-overview-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.amenity-overview-value {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.amenity-metric-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.amenity-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-weight: 600;
}

.amenity-label {
    font-size: 1rem;
    line-height: 1.2;
}

.amenity-value {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    margin-left: 34px;
}

/* Sidebar */
.contact-card {
    background: var(--prop-white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--prop-shadow);
    position: sticky;
    top: 100px;
    display: none;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--prop-text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--prop-primary);
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    padding: 14px;
    background: var(--prop-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background: var(--prop-accent);
    transform: scale(1.02);
}

/* Agent Info */
.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-details strong {
    display: block;
    font-size: 1.1rem;
}

.agent-details span {
    color: var(--prop-text-light);
    font-size: 0.85rem;
}

.sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sidebar-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.sidebar-call-btn {
    background: #edf2f7;
    color: var(--prop-secondary);
}

.sidebar-whatsapp-btn {
    background: #25d366;
    color: white;
}

.sidebar-actions a:hover {
    opacity: 0.9;
}

/* Map Placeholder */
.map-placeholder {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .property-content-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-right {
        text-align: right;
        width: 100%;
    }

    .property-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        height: 80px;
    }

    .header-left h1 {
        font-size: 2rem;
    }

    .price-tag {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

    .thumb {
        height: 80px;
    }

    .details-column {
        padding: 25px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--prop-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--prop-primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 10;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}