/* ══════════════════════════════════════════
   ZAMZAM SUITES — Editorial Modern Theme
   Font: Almarai  •  Palette: Warm Ivory + Charcoal
   ══════════════════════════════════════════ */
:root {
    --cream: #FAF7F2;
    --ivory: #F3EDE4;
    --sand: #E8DFD1;
    --charcoal: #1A1A1A;
    --dark: #2C2C2C;
    --muted: #7A7268;
    --gold: #B8963E;
    --gold-light: #D4B46A;
    --gold-glow: rgba(184, 150, 62, .18);
    --white: #FFFFFF;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .04);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, .08);
    --shadow-premium: 0 30px 60px rgba(184, 150, 62, 0.12);
    --tr: all .5s cubic-bezier(.25, .46, .45, .94);
    --tr-fast: all .3s ease;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Almarai', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.75;
    overflow-x: hidden
}

/* Nav Overlay — hides page content when mobile menu is open */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(10, 10, 10, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (min-width: 769px) {
    .nav-overlay {
        display: none !important;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--tr-fast)
}

ul {
    list-style: none
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--charcoal)
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem)
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem)
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto
}

/* ── Tags & Labels ── */
.section-tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    position: relative;
    padding-right: 50px;
}

.section-tag::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 38px;
    height: 2px;
    background: var(--gold)
}

.section-head {
    text-align: center;
    margin-bottom: 60px
}

.section-head .section-tag {
    padding-right: 0
}

.section-head .section-tag::before {
    display: none
}

.section-head p {
    color: var(--muted);
    max-width: 560px;
    margin: 10px auto 0;
    font-size: 1.05rem
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--charcoal);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    transition: var(--tr);
    border: 2px solid var(--charcoal);
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 150, 62, .2)
}

.btn-whatsapp {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: var(--white) !important;
}

.btn-whatsapp:hover {
    background: #128c4e !important;
    border-color: #128c4e !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .25) !important;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    transition: var(--tr);
    cursor: pointer;
    font-family: inherit;
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white)
}

/* ── Animations ── */
.anim-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .7s ease
}

.anim-up.pending {
    opacity: 0;
    transform: translateY(40px)
}

.anim-up.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ════════════════════════════════════
   PAGE LOADER
   ════════════════════════════════════ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .5s
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none
}

.loader-ring {
    width: 48px;
    height: 48px;
    position: relative
}

.loader-ring span {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid var(--sand);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

body.loading {
    overflow: hidden
}

/* ════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--tr);
    padding: 16px 0
}

header.scrolled {
    background: rgba(250, 247, 242, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    padding: 10px 0
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo img {
    height: 52px;
    border-radius: 8px
}

header.scrolled .nav-logo img {
    height: 44px
}

nav ul {
    display: flex;
    gap: 6px
}

nav ul li a {
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--white);
    transition: var(--tr-fast)
}

header.scrolled nav ul li a {
    color: var(--charcoal)
}

nav ul li a:hover {
    color: var(--gold)
}

.nav-socials {
    display: flex;
    gap: 8px
}

.nav-socials a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-size: .85rem;
    transition: var(--tr-fast)
}

header.scrolled .nav-socials a {
    border-color: var(--sand);
    color: var(--charcoal)
}

.nav-socials a:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold)
}

/* Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 10
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--tr-fast)
}

header.scrolled .mobile-toggle span {
    background: var(--charcoal)
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

.mobile-only {
    display: none !important
}

.desktop-only {
    display: flex
}

.header-mobile-socials {
    display: none !important
}

/* Hidden on desktop */

/* ════════════════════════════════════
   1. HERO
   ════════════════════════════════════ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white)
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(26, 26, 26, .35) 0%, rgba(26, 26, 26, .55) 50%, rgba(250, 247, 242, 1) 100%)
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .9)
}

.hero h1 {
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .3)
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 32px
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap
}

.scroll-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--charcoal);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    opacity: .6
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(10px)
    }
}

/* ════════════════════════════════════
   2. SERVICES RIBBON
   ════════════════════════════════════ */
.services-ribbon {
    padding: 50px 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sand)
}

.ribbon-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--tr);
}

.ribbon-item i {
    color: var(--gold);
    font-size: 1rem
}

.ribbon-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px var(--gold-glow);
    transform: translateY(-2px)
}

/* ════════════════════════════════════
   3. ABOUT
   ════════════════════════════════════ */
.about-section {
    padding: 100px 0;
    background: var(--cream)
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.about-visual {
    position: relative
}

.about-img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md)
}

.about-img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform .6s ease
}

.about-img-main:hover img {
    transform: scale(1.04)
}

.about-accent-box {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--charcoal);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.accent-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1
}

.accent-label {
    font-size: .8rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    opacity: .8
}

.about-body .section-tag {
    margin-bottom: 16px
}

.about-body h2 {
    margin-bottom: 8px
}

.about-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 20px
}

.about-body p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 28px
}

/* ════════════════════════════════════
   4. APARTMENTS — Staggered Grid Redesign
   ════════════════════════════════════ */
/* ── Uniform Grid Arrangement ── */
.apartments-section {
    padding: 100px 0;
    background: var(--ivory);
    position: relative;
}

.apt-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.apt-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(232, 223, 209, 0.4);
    transition: var(--tr);
    position: relative;
    height: 100%;
    /* Ensures cards in the same row match heights */
}

.apt-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-8px);
}

.apt-gallery {
    width: 100%;
    height: 350px;
    /* Uniform height for all galleries */
    overflow: hidden;
    position: relative;
    transition: var(--tr);
    background: #eee;
}

.apt-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only promote to GPU layer on hover, not on page load */
.apt-card:hover .apt-gallery img {
    will-change: transform;
    transform: scale(1.18);
}

.apt-info {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    z-index: 2;
    flex-grow: 1;
    /* Fills the card height */
}

.apt-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.apt-info h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold);
    margin-top: 8px;
    border-radius: 1px;
}

.apt-info p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.apt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.apt-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--sand);
    transition: var(--tr-fast);
}

.apt-tags span:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.apt-tags span i {
    display: none;
}

.apt-info .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    margin-top: auto;
    /* Pushes the button to the bottom */
}

/* ════════════════════════════════════
   5. NEARBY / EXPLORE
   ════════════════════════════════════ */
.nearby-section {
    padding: 100px 0;
    background: var(--cream)
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px
}

.explore-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--sand);
    transition: var(--tr);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.explore-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-8px);
}

.place-swiper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.place-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.explore-card:hover .place-swiper .swiper-slide img {
    transform: scale(1.06);
}

/* Category badge overlay */
.explore-card .place-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--charcoal);
    border: 1px solid rgba(255,255,255,0.6);
}

.explore-info {
    padding: 22px 24px;
    border-top: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--gold), var(--gold-light)) border-box;
    border-image-slice: 1;
    border-top-width: 0;
    position: relative;
}

.explore-info::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 12px;
}

.explore-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--charcoal);
    font-weight: 800;
}

.explore-info p {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.65;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ════════════════════════════════════
   6. GUEST GALLERY — MASONRY
   ════════════════════════════════════ */
.gallery-section {
    padding: 100px 0;
    background: var(--ivory)
}

.masonry-gallery {
    columns: 4;
    column-gap: 16px
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--tr);
    position: relative;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform .5s
}

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

.masonry-item:hover img {
    transform: scale(1.05)
}

/* ════════════════════════════════════
   7. TESTIMONIAL
   ════════════════════════════════════ */
.testimonial-section {
    padding: 100px 0;
    background: var(--charcoal);
    text-align: center
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative
}

.testimonial-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: .4
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    line-height: 2;
    color: rgba(255, 255, 255, .85);
    font-weight: 400;
    font-style: normal
}

.testimonial-stars {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 6px
}

.testimonial-stars i {
    color: var(--gold-light);
    font-size: 1.1rem
}

/* ════════════════════════════════════
   8. MAP
   ════════════════════════════════════ */
.map-section {
    padding: 80px 0 0;
    background: var(--cream)
}

.map-section .section-head {
    margin-bottom: 40px
}

.map-wrap {
    width: 100%;
    height: 420px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft)
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none
}

/* ════════════════════════════════════
   FLOATING BUTTONS
   ════════════════════════════════════ */
.floating-buttons {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--tr);
    box-shadow: var(--shadow-md)
}

.whatsapp-btn {
    background: #25d366;
    animation: wa-pulse 2s infinite
}

.map-btn {
    background: var(--white);
    border: 1px solid var(--sand)
}

.map-btn img {
    width: 22px
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.06);
    animation: none
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .45)
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
    }
}

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 72px 0 32px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px
}

.footer-logo {
    height: 50px;
    border-radius: 8px;
    margin-bottom: 16px
}

.footer-brand p {
    color: rgba(255, 255, 255, .5);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 20px
}

.footer-socials {
    display: flex;
    gap: 10px
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .5);
    transition: var(--tr-fast)
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold)
}

.footer-nav h4,
.footer-info h4 {
    color: var(--gold-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px
}

.footer-nav ul li {
    margin-bottom: 10px
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, .45);
    font-size: .9rem
}

.footer-nav ul li a:hover {
    color: var(--gold-light);
    padding-right: 6px
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .45);
    font-size: .9rem
}

.info-row i {
    color: var(--gold);
    font-size: .95rem;
    width: 18px;
    text-align: center
}

.info-row a {
    color: var(--gold-light)
}

.info-row a:hover {
    text-decoration: underline
}

.footer-bottom {
    text-align: center;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .3);
    font-size: .82rem
}

/* ════════════════════════════════════
   SWIPER OVERRIDES — Minimalist Luxury
   ════════════════════════════════════ */
/* ════════════════════════════════════
   SWIPER OVERRIDES — Clean Glassmorphism
   ════════════════════════════════════ */
.swiper-button-next,
.swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #000 !important;
    /* Black arrows */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    /* Hidden by default */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide the native Swiper arrows completely (both pseudo-elements and injected SVGs/spans) */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
    content: '' !important;
}

.swiper-button-next>*:not(i),
.swiper-button-prev>*:not(i) {
    display: none !important;
}

/* Style the FontAwesome icons */
.swiper-button-next i,
.swiper-button-prev i {
    font-size: 14px;
    font-weight: 900;
}

/* Show on gallery hover */
.apt-gallery:hover .swiper-button-next,
.apt-gallery:hover .swiper-button-prev {
    opacity: 1 !important;
}

/* Hover effect on the button itself */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) !important;
}

/* Responsive tweaks */
@media(max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        opacity: 1 !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media(max-width:992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .about-img-main img {
        height: 320px
    }

    .about-accent-box {
        bottom: -20px;
        left: 20px
    }

    .apt-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .apt-card:nth-child(even) {
        margin-top: 0;
    }

    .apt-gallery {
        height: 300px;
    }

    .apt-info {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .masonry-gallery {
        columns: 3
    }
}

@media(max-width:768px) {
    .mobile-toggle {
        display: flex
    }

    .desktop-only {
        display: none !important
    }

    /* Glassmorphic Floating Header — Smooth Transitions */
    header {
        top: 12px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-radius: var(--radius) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 10px 0 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .08) !important;
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    header.scrolled {
        background: rgba(250, 247, 242, 0.8) !important;
        border-color: rgba(232, 223, 209, 0.5) !important;
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .06) !important;
    }

    /* Show social icons in header bar */
    .header-mobile-socials {
        display: flex !important;
        gap: 6px;
        order: 2;
    }

    .header-mobile-socials a {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .mobile-toggle {
        order: 3;
    }

    .nav-logo {
        order: 1;
    }

    /* Dropdown Nav — Expands from header */
    nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 0 0 var(--radius) var(--radius) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 0 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .1) !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            opacity 0.4s ease,
            padding 0.5s ease !important;
        z-index: 999;
    }

    nav.active {
        max-height: 500px !important;
        opacity: 1 !important;
        padding: 20px 24px 24px !important;
    }

    /* Match scrolled header background */
    header.scrolled nav {
        background: rgba(250, 247, 242, 0.85) !important;
    }

    /* Adjust header border-radius when nav is open */
    header:has(nav.active) {
        border-radius: var(--radius) var(--radius) 0 0 !important;
    }

    nav ul {
        flex-direction: column;
        gap: 4px
    }

    nav ul li a {
        color: var(--white) !important;
        font-size: 0.95rem;
        padding: 10px 16px;
        display: block;
        border-radius: var(--radius-sm);
        transition: var(--tr-fast);
    }

    header.scrolled nav ul li a {
        color: var(--charcoal) !important;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, .15)
    }

    header.scrolled nav ul li a:hover {
        background: var(--ivory)
    }

    .mobile-only {
        display: flex !important;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        gap: 10px;
        justify-content: center;
    }

    .mobile-only a {
        border-color: rgba(255, 255, 255, 0.3) !important;
        color: var(--white) !important;
    }

    header.scrolled .mobile-only {
        border-top-color: var(--sand);
    }

    header.scrolled .mobile-only a {
        border-color: var(--sand) !important;
        color: var(--charcoal) !important;
    }

    /* Hero buttons centered */
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: auto
    }

    .explore-grid {
        grid-template-columns: 1fr
    }

    .masonry-gallery {
        columns: 2
    }

    .map-wrap {
        height: 300px;
        border-radius: 0
    }

    .scroll-hint {
        bottom: 60px
    }

    /* Hero — Fit Screen Height on Mobile */
    .hero {
        height: 100svh;
        /* Uses small viewport height to account for mobile browser bars */
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .hero-inner {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 16px;
        margin-bottom: 18px;
    }

    /* Services Ribbon — Mobile Grid */
    .services-ribbon {
        padding: 40px 0;
    }

    .ribbon-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ribbon-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 18px 12px;
        border-radius: var(--radius-sm);
        background: var(--white);
        border: 1px solid var(--sand);
    }

    .ribbon-item i {
        font-size: 1.4rem;
        color: var(--gold);
    }

    .ribbon-item span {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media(max-width:576px) {
    .hero h1 {
        font-size: 2rem
    }

    .ribbon-track {
        gap: 8px
    }

    .ribbon-item {
        padding: 14px 10px
    }

    .ribbon-item i {
        font-size: 1.2rem
    }

    .ribbon-item span {
        font-size: .75rem
    }

    .apt-info {
        padding: 24px 20px
    }

    .masonry-gallery {
        columns: 2;
        column-gap: 10px
    }

    .masonry-item {
        margin-bottom: 10px
    }

    .testimonial-card {
        padding: 40px 20px
    }

    .testimonial-card blockquote {
        font-size: 1.05rem
    }

    section {
        padding: 70px 0
    }
}

/* ════════════════════════════════════
   GLIGHTBOX CUSTOMIZATION — Glass UI
   ════════════════════════════════════ */
.gnext, .gprev, .gclose {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.glightbox-container .gbtn {
    display: flex !important;
}

.gnext:hover, .gprev:hover, .gclose:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

.gnext {
    right: 30px !important;
}

.gprev {
    left: 30px !important;
}

.gclose {
    top: 30px !important;
    right: 30px !important;
}

/* Fix icon colors in glass buttons */
.gnext svg path, .gprev svg path, .gclose svg path {
    fill: white !important;
}

@media (max-width: 768px) {
    .gnext, .gprev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .gnext { right: 10px !important; }
    .gprev { left: 10px !important; }
}