@charset "UTF-8";

body {
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(7, 23, 35, 0.48);
    pointer-events: none;
}

main {
    width: min(var(--content-width), calc(100% - 64px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) 0;
}

.property-details {
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.property-details > h1 {
    margin-bottom: 1.4rem;
    color: var(--color-navy-900);
    text-align: left;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.property-details > h2 {
    margin: 2rem 0 0.55rem;
    color: var(--color-navy-800);
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.property-details > p {
    max-width: 920px;
    margin-bottom: 0;
    color: #53626c;
    text-align: left;
    font-size: 1.02rem;
}

.features-amenities {
    margin: 2.4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.features,
.amenities {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface-soft);
}

.features h3,
.amenities h3 {
    margin-bottom: 1rem;
    color: var(--color-navy-900);
    text-align: left;
}

.features ul,
.amenities ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    list-style: none;
}

.features li,
.amenities li {
    min-height: 0;
    padding: 14px 15px;
    border: 1px solid rgba(16, 42, 63, 0.1);
    border-radius: 12px;
    background: #fff;
}

.amenity-title,
.feature-title {
    margin-bottom: 0.25rem;
    color: var(--color-navy-900);
    font-size: 0.97rem;
    font-weight: 750;
}

.amenity-description,
.feature-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 13px;
    background: #e8ecee;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 300ms ease,
        filter 300ms ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
    filter: brightness(0.92);
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: clamp(16px, 3vw, 36px);
    align-items: center;
    justify-content: center;
    background: rgba(3, 10, 16, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: zoom-out;
    overflow: hidden;
}

.image-modal.is-open {
    display: flex;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-modal img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    animation: zoomIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    pointer-events: auto;
}

.modal-close {
    position: fixed;
    top: clamp(16px, 2.5vw, 30px);
    right: clamp(16px, 2.5vw, 30px);
    z-index: 10001;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 29, 44, 0.82);
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition:
        background-color var(--transition),
        transform var(--transition),
        border-color var(--transition);
}

.modal-close:hover {
    background: rgba(24, 59, 86, 0.96);
    border-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

body.modal-open {
    overflow: hidden;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    main {
        width: min(100% - 32px, var(--content-width));
    }

    .features-amenities {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 620px) {
    .property-details {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {
    main {
        width: min(100% - 24px, var(--content-width));
    }
}
