:root {
    --bg-primary: #FDFBF7;
    --bg-secondary: #F3EFE6;
    --bg-accent: #E5D9C5;
    --text-main: #3A312A;
    --text-light: #6A5C50;
    --gold-accent: #B0906D;

    --font-head: 'Playfair Display', serif;
    --font-body: 'EB Garamond', serif;

    --shadow-soft: 0 10px 30px rgba(58, 49, 42, 0.06);
    --shadow-hover: 0 20px 40px rgba(58, 49, 42, 0.13);
    --trans-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

img { max-width: 100%; }

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.85;
    overflow-x: hidden;
}

/* Fluid type scale — smooth across all screen sizes */
h1 { font-size: clamp(1.9rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-main);
}

p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; }

/* Keyboard focus ring */
:focus-visible {
    outline: 2px solid var(--gold-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background-color: rgba(253, 251, 247, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 0.55rem 5%;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.97);
    box-shadow: 0 2px 20px rgba(58, 49, 42, 0.08);
    border-bottom-color: var(--bg-accent);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

/* Desktop: absolutely centred */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon-wrap {
    width: 2.42rem;
    height: 1.97rem;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon {
    height: 3.51rem;
    width: auto;
    max-width: none;
    margin-top: -0.567rem;
    margin-left: -0.469rem;
    display: block;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a.nav-item {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a.nav-item.active { color: var(--gold-accent); }

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: 0; left: 0;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after { width: 100%; }

/* Animated hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-toggle:hover { background: var(--bg-accent); }

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.28s ease;
}

.mobile-toggle.active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Semi-transparent backdrop behind the drawer */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(58, 49, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-solid {
    background-color: var(--text-main);
    color: var(--bg-primary) !important;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-solid:hover {
    background-color: transparent;
    color: var(--text-main) !important;
    box-shadow: 0 5px 15px rgba(58, 49, 42, 0.15);
    transform: translateY(-2px);
}

.lang-toggle {
    padding: 0.8rem 1.2rem;
    min-width: 65px;
}

.btn-outline {
    border: 1px solid var(--text-main);
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(58, 49, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-hover);
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.38s ease;
    position: relative;
    max-width: 90%;
    width: 400px;
    will-change: transform, opacity;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none; border: none;
    color: var(--text-light);
    transition: color 0.2s ease, transform 0.25s ease;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-buttons .btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* =========================================
   LAYOUTS
   ========================================= */
.section { padding: 8rem 5%; max-width: 1400px; margin: 0 auto; }
.text-center { text-align: center; }

.split-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 6rem;
}

.split-layout.reverse { flex-direction: row-reverse; }
.half { flex: 1; width: 100%; min-width: 0; }

/* =========================================
   IMAGES
   ========================================= */
.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.42s ease;
    width: 100%;
    will-change: transform;
}

.img-wrapper:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.img-placeholder {
    width: 100%;
    height: 500px;
    background-color: var(--bg-accent);
    background-size: cover;
    background-position: center;
    transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Fixed selector: inner image zooms when wrapper is hovered */
.img-wrapper:hover .img-placeholder { transform: scale(1.05); }

/* Gold gradient overlay on suggestion card images */
.card .img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(176, 144, 109, 0.38) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.card:hover .img-wrapper::after { opacity: 1; }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.85s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-play-state: paused;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

/* =========================================
   HERO BACKGROUND SECTION
   ========================================= */
.hero-bg-section {
    position: relative;
    background-image: url('house_from_above.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4rem 2rem;
    margin: 0;
    width: 100%;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 9, 0.72);
    z-index: 0;
}
.hero-bg-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.hero-bg-content h1,
.hero-bg-content h2 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
    .hero-bg-section { min-height: calc(100vh - 60px); padding: 3rem 1.2rem; }
    .hero-bg-content h1 { font-size: 2.2rem !important; }
}

/* Staggered reveal — used on cards & sections */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* =========================================
   CAROUSEL
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin: 3rem 0;
}

.carousel-slides {
    display: flex;
    width: 100%;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 500px;
    background-color: var(--bg-accent);
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none;
    color: var(--bg-primary);
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
    opacity: 0.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    min-width: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    color: var(--gold-accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dot.active, .dot:hover {
    opacity: 1;
    background: var(--gold-accent);
    transform: scale(1.4);
}

/* =========================================
   GRID CARDS
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.42s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    background: #fff;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-secondary);
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--bg-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo { font-size: 1.2rem; margin-bottom: 1rem; font-family: var(--font-head); }
.footer-col h4 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--gold-accent); }

.footer-link,
.footer-link:hover,
.footer-link:focus,
.footer-link:active {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link svg { display: block; flex-shrink: 0; }

.footer-link:hover {
    color: var(--gold-accent) !important;
    transform: translateX(5px);
}

/* Responsive map wrapper */
.footer-map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    height: 160px;
    box-shadow: var(--shadow-soft);
    margin-top: 1rem;
    margin-bottom: 1rem;
    filter: grayscale(70%) sepia(12%);
    border: 1px solid var(--bg-accent);
    transition: filter 0.4s ease;
}

.footer-map-wrapper:hover { filter: grayscale(20%) sepia(5%); }
.footer-map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================
   RESPONSIVE — LAPTOPS & LARGE TABLETS ≤1280px
   ========================================= */
@media (max-width: 1280px) {
    .split-layout, .split-layout.reverse { flex-direction: column; gap: 3rem; }

    /* Slide-in drawer from right */
    .nav-center {
        position: fixed;
        top: 0; right: 0;
        left: auto;
        transform: translateX(110%);
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        padding: 5rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(58, 49, 42, 0.12);
        transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1001;
        flex-direction: column;
        overflow-y: auto;
    }

    .nav-center.active { transform: translateX(0); }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-links a.nav-item { font-size: 1.15rem; letter-spacing: 2px; }

    .mobile-toggle { display: flex; }

    .section { padding: 6rem 5%; }
}

/* =========================================
   RESPONSIVE — TABLETS ≤768px
   ========================================= */
@media (max-width: 768px) {
    .section { padding: 4rem 5%; }

    .img-placeholder, .carousel-slide { height: 350px !important; }

    .grid-container { gap: 2rem; }

    .footer-col p[style*="text-align: right"] { text-align: center !important; }
    .footer-grid { text-align: center; }
    .footer-col { align-items: center !important; }

    .modal-content { padding: 2rem; width: 95%; }
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.lightbox.active .lightbox-img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--bg-primary);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
    z-index: 10;
}

.lightbox-close:hover { opacity: 1; transform: scale(1.15); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--bg-primary);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    padding: 1rem;
    z-index: 10;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.6;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* =========================================
   PAGE TRANSITION
   ========================================= */
.page-transition { display: none; }

/* =========================================
   FOOTER REDESIGN
   ========================================= */
.footer { position: relative; }

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold-accent);
}

.footer-bottom {
    border-top: 1px solid var(--bg-accent);
    padding-top: 1.5rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-light);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

/* Carousel slides are clickable */
.carousel-slide { cursor: pointer; }

/* =========================================
   RESPONSIVE — SMALL PHONES ≤480px
   ========================================= */
@media (max-width: 480px) {
    .section { padding: 3rem 4%; }

    .img-placeholder, .carousel-slide { height: 260px !important; }

    .logo-text { display: none; }
    .nav-right { gap: 8px; }
    .btn-solid, .btn-outline { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
    .lang-toggle { padding: 0.6rem 0.8rem; min-width: 45px; }

    .carousel-btn { font-size: 2.5rem; padding: 0 10px; min-width: 48px; min-height: 48px; }
    .carousel-dots { bottom: 14px; gap: 10px; }
    /* Larger tap targets on tiny screens */
    .dot { width: 13px; height: 13px; }

    .split-layout { margin-bottom: 3rem; }

    .grid-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-map-wrapper { height: 200px; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* =========================================
   AMENITIES GRID
   ========================================= */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.amenity-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-accent);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--trans-smooth);
}

.amenity-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    background: #fff;
}

.amenity-card svg {
    margin-bottom: 1rem;
    display: block;
}

.amenity-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-main);
}

.amenity-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* =========================================
   SPACES GRID (2-column)
   ========================================= */
.spaces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

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

.footer-left-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.footer-privacy-link {
    color: var(--text-light);
    font-size: 0.88rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    
}
.footer-privacy-link:hover { opacity: 1; color: var(--gold-accent); }

/* =========================================
   HOUSE PHOTO GRID (Airbnb-style)
   ========================================= */
.house-photo-grid-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 3rem 0;
    box-shadow: var(--shadow-soft);
}
.house-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 4px;
}
.house-photo-item {
    background: var(--bg-accent);
    cursor: pointer;
    overflow: hidden;
    transition: filter 0.3s ease;
}
.house-photo-item:hover { filter: brightness(0.92); }
.house-photo-item.house-photo-main {
    grid-column: 1;
    grid-row: 1 / 3;
}
.house-photo-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.house-photo-item:hover img { transform: scale(1.04); }
.house-show-all-btn {
    position: absolute;
    bottom: 1.2rem; right: 1.2rem;
    background: white;
    border: 1.5px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.house-show-all-btn:hover { background: var(--text-dark); color: white; }

/* House Lightbox */
.house-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.house-lightbox.open { display: flex; }
.house-lb-placeholder {
    width: min(90vw, 900px);
    aspect-ratio: 4/3;
    background: var(--bg-accent);
    border-radius: 4px;
}
.house-lb-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer;
}
.house-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none;
    color: white; font-size: 2rem; padding: 0.6rem 1rem;
    cursor: pointer; border-radius: 4px; transition: background 0.2s;
}
.house-lb-nav:hover { background: rgba(255,255,255,0.3); }
.house-lb-nav.prev { left: 1rem; }
.house-lb-nav.next { right: 1rem; }
.house-lb-counter {
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* =========================================
   GALLERY PAGE (Masonry)
   ========================================= */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2.5rem;
}
.gallery-item {
    background: var(--bg-accent);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: filter 0.3s ease;
}
.gallery-item:hover { filter: brightness(0.92); }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.gallery-lightbox.open { display: flex; }
.gallery-lb-placeholder {
    width: min(90vw, 900px);
    aspect-ratio: 4/3;
    background: var(--bg-accent);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}
.gallery-lb-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer;
}
.gallery-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none;
    color: white; font-size: 2rem; padding: 0.6rem 1rem;
    cursor: pointer; border-radius: 4px; transition: background 0.2s;
}
.gallery-lb-nav:hover { background: rgba(255,255,255,0.3); }
.gallery-lb-nav.prev { left: 1rem; }
.gallery-lb-nav.next { right: 1rem; }
.gallery-lb-counter {
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .house-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; }
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .house-photo-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 200px); }
    .house-photo-item.house-photo-main { grid-column: 1; grid-row: 1; }
    .gallery-masonry { grid-template-columns: 1fr; }
}

/* CTA button group — flex wrap for mobile */
.cta-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.cta-btn-group .btn-outline {
    margin-top: 0;
}
@media (max-width: 500px) {
    .cta-btn-group { flex-direction: column; }
    .cta-btn-group .btn-outline { text-align: center; }
}

/* =========================================
   AMENITIES GRID — 4 columns
   ========================================= */
.amenities-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .amenities-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .amenities-grid-4 { grid-template-columns: 1fr; } }
