:root {
    --gold: #d4af37;
    --gold-dark: #b89221;
    --dark: #111827;
    --text: #374151;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.12);

    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size:85%;
}

body {
    font-family: "Poppins", sans-serif;
    background: #fafafa;
    color: #111827;
    overflow-x: hidden;
}

.back-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 9999;

    padding: 14px 24px;

    border: none;
    border-radius: 100px;

    cursor: pointer;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);

    font-size: 0.95rem;
    font-weight: 600;

    box-shadow: var(--shadow-md);

    transition: 0.3s ease;
}

.back-btn:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.hero {
    padding: 34px 4%;
}

.hero-content {
    max-width: 1100px;
    margin: auto;
}

.gallery-section {
    margin-bottom: 15px;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
}

.gallery {
    display: flex;
    justify-content: center;
    align-items: flex-end;

    position: relative;

    height: 300px;
    overflow: visible;
}

.gallery img {
    object-fit: cover;
    border-radius: 24px;

    cursor: pointer;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

    transition: 0.4s ease;
}

.gallery img:nth-child(1) {
    width: 360px;
    height: 230px;
    transform: rotate(-7deg) translateX(75px);

    z-index: 1;
}

.gallery img:nth-child(2) {
    width: 530px;
    height: 300px;

    z-index: 5;
}

.gallery img:nth-child(3) {
    width: 360px;
    height: 230px;

    transform: rotate(7deg) translateX(-90px);

    z-index: 2;
}

.gallery img:nth-child(n + 4) {
    display: none;
}

.gallery img:hover {
    transform: scale(1.03);
    z-index: 20;
}

.property-badge {
    display: inline-block;

    padding: 10px 22px;

    border-radius: 50px;

    background: linear-gradient(
        135deg,
        var(--gold),
        #f4d76c
    );

    color: #111;

    font-size: 0.85rem;
    font-weight: 700;

    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;

    margin-bottom: 10px;
}

.price {
    font-size: 1.7rem;
    font-weight: 700;

    color: var(--gold-dark);

    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 30px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 15px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    font-size: 0.85rem;
    font-weight: 500;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-description {
    max-width: 760px;
    margin-bottom: 30px;
}

.hero-description h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.hero-description p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.hero-contact {
    display: flex;
    gap: 12px;
    flex-direction: row;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 13px 24px;
    font-size: 0.9rem;

    text-decoration: none;

    border-radius: 14px;

    font-weight: 600;

    transition: 0.3s ease;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn:not(.secondary) {
    background: linear-gradient(
        135deg,
        var(--gold),
        #f4d76c
    );

    color: #111;
}

.btn.secondary {
    background: white;
    color: #111;

    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.property-details {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 330px;

    gap: 20px;

    padding: 0 5% 60px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;

    position: sticky;
    top: 30px;

    height: fit-content;
}

.info-card,
.agent-card {
    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(20px);

    padding: 20px;

    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.5);

    box-shadow: var(--shadow-md);
}

.info-card h3,
.agent-card h3 {
    margin-bottom: 15px;
}

#features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    list-style: none;
}

#features li {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px;
    font-size: 0.9rem;

    background: #f8fafc;

    border: 1px solid var(--border);
    border-radius: 12px;

    transition: 0.3s ease;
}

#features li:hover {
    background: white;
    transform: translateX(4px);
}

.agent-card p {
    color: var(--text);
    margin-bottom: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;

    outline: none;

    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);

    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

.lightbox {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.95);

    backdrop-filter: blur(15px);

    z-index: 99999;
}

.lightbox.show {
    display: flex;
}

.lightbox-track{
    width:100%;
    height:100vh;

    display:flex;

    overflow-x:auto;
    overflow-y:hidden;

    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;

    scrollbar-width:none;
}

.lightbox-track::-webkit-scrollbar{
    display:none;
}

.lightbox-track img{
    flex:0 0 100%;

    width:100%;
    height:100%;

    object-fit:contain;

    scroll-snap-align:center;

    cursor:zoom-in;

    transition:transform .3s ease;

    border-radius:18px;
}

.lightbox-track img.zoomed{
    transform:scale(1.8);
    cursor:zoom-out;
}

.close-lightbox {
    position: fixed;

    top: 25px;
    right: 25px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    font-size: 1.7rem;

    cursor: pointer;

    transition: 0.3s ease;

    z-index: 1000;
}

.close-lightbox:hover {
    background: var(--gold);
    color: #111;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;

    transform: translateY(-50%);

    width: 55px;
    height: 55px;
    font-size: 1.3rem;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    cursor: pointer;

    transition: 0.3s ease;

    z-index: 1000;
}

.lightbox-arrow:hover {
    background: var(--gold);
    color: #111;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-counter {
    position: fixed;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    font-size: 0.85rem;
    padding: 8px 14px;

    border-radius: 40px;

    background: rgba(255, 255, 255, 0.12);

    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 50px;
}


@media (max-width: 768px) {

    html {
        font-size: 78%;
    }
    
    html,
    body {
    width: 100%;
    overflow-x: hidden;
    } 

    .back-btn {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 15px 5%;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .price {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .hero-content {
        gap: 10px;
    }

    .gallery {
        position: relative;
        height: 220px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .gallery img {
        position: absolute;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: 0 12px 25px rgba(0,0,0,.15);
    }

    .gallery img:nth-child(1) {
        width: 180px;
        height: 130px;
        left: -10px;
        top: 25px;
        transform: rotate(-8deg);
        opacity: .85;
        z-index: 1;
    }

    .gallery img:nth-child(2) {
        width: 240px;
        height: 170px;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        z-index: 5;
    }

    .gallery img:nth-child(3) {
        width: 180px;
        height: 130px;
        right: -10px;
        top: 25px;
        transform: rotate(8deg);
        opacity: .85;
        z-index: 1;
    }

    .hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.hero-meta span{
    display:flex;
    align-items:center;
    gap:6px;

    font-size:0.75rem;
    padding:8px 10px;

    background:#fff;
    border-radius:30px;
    white-space:nowrap;
}

    .hero-contact {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-top: 12px;
    }

    .hero-contact .btn {
        flex: 1;
        width: auto;
        padding: 12px 8px;
        font-size: 0.85rem;
        text-align: center;
    }

    .property-details {
        grid-template-columns: 1fr;
        padding: 0 5% 40px;
    }

    .sidebar {
        position: relative;
        top: auto;
    }

    #features {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #features li {
        padding: 10px;
        font-size: 0.8rem;
    }

    .info-card,
    .agent-card {
        padding: 16px;
    }

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-size: 12px;
    color: #9ca3af;
}

}


@media (max-width: 480px) {

    html {
        font-size: 75%;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .gallery {
        height: 190px;
        margin-top: 8px;
    }

    .gallery img:nth-child(1) {
        width: 140px;
        height: 105px;
        left: -20px;
    }

    .gallery img:nth-child(2) {
        width: 200px;
        height: 145px;
    }

    .gallery img:nth-child(3) {
        width: 140px;
        height: 105px;
        right: -20px;
    }

    #features {
        grid-template-columns: repeat(2, 1fr);
    }

    #features li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 0.75rem;
    }

    .hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}
    
    .hero-contact .btn {
        font-size: 0.8rem;
        padding: 10px 6px;
    }

    .lightbox-track {
        padding: 0 6vw;
        gap: 20px;
    }
}
