/**
 * Tighter vertical rhythm — less empty space, fuller page coverage
 */

.site-glass-theme {
    --section-y: 1.75rem;
    --section-y-md: 2.5rem;
    --block-gap: 1.25rem;
    --hero-y: 2rem;
    --hero-y-md: 2.75rem;
}

@media (min-width: 768px) {
    .site-glass-theme {
        --section-y: 2rem;
        --section-y-md: 2.75rem;
    }
}

/* Inner page sections */
.site-glass-theme .damac-page-section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

@media (min-width: 768px) {
    .site-glass-theme .damac-page-section {
        padding-top: var(--section-y-md);
        padding-bottom: var(--section-y-md);
    }
}

.site-glass-theme .damac-page-hero .container {
    padding-top: var(--hero-y) !important;
    padding-bottom: var(--hero-y) !important;
}

/* Homepage + CMS sections (Tailwind padding utilities) */
.site-glass-theme section.py-8,
.site-glass-theme section.py-10,
.site-glass-theme section.py-16,
.site-glass-theme section.py-20 {
    padding-top: var(--section-y) !important;
    padding-bottom: var(--section-y) !important;
}

.site-glass-theme section.md\:py-10,
.site-glass-theme section.md\:py-12,
.site-glass-theme section.md\:py-14 {
    padding-top: var(--section-y) !important;
    padding-bottom: var(--section-y) !important;
}

@media (min-width: 768px) {
    .site-glass-theme section.md\:py-10,
    .site-glass-theme section.md\:py-12,
    .site-glass-theme section.md\:py-14 {
        padding-top: var(--section-y-md) !important;
        padding-bottom: var(--section-y-md) !important;
    }
}

@media (min-width: 768px) {
    .site-glass-theme section.md\:py-24,
    .site-glass-theme section.md\:py-28 {
        padding-top: var(--section-y-md) !important;
        padding-bottom: var(--section-y-md) !important;
    }
}

.site-glass-theme .brand-collaborations {
    padding-top: var(--section-y-md) !important;
    padding-bottom: var(--section-y-md) !important;
}

/* Hero heights — still full-bleed, less excessive viewport lock */
.site-glass-theme .home-hero-block {
    height: min(88svh, 820px) !important;
    min-height: 460px !important;
}

.site-glass-theme .damac-community-hero {
    min-height: min(72vh, 640px) !important;
}

/* Section headers inside blocks */
.site-glass-theme .damac-home-launches .mb-10,
.site-glass-theme .damac-home-destinations .mb-10,
.site-glass-theme .damac-page-section .mb-10,
.site-glass-theme .damac-page-section .mb-12 {
    margin-bottom: 1.25rem !important;
}

.site-glass-theme .mb-12 {
    margin-bottom: 1.5rem !important;
}

.site-glass-theme .gap-12 {
    gap: 1.75rem !important;
}

/* Cards & tiles */
.site-glass-theme .damac-launch-card {
    height: 340px;
}

.site-glass-theme .carousel-projects-card .card-inner {
    height: 340px !important;
}

@media (min-width: 768px) {
    .site-glass-theme .carousel-projects-card .card-inner {
        height: 380px !important;
    }
}

.site-glass-theme .damac-container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}

@media (min-width: 1024px) {
    .site-glass-theme .damac-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Grids */
.site-glass-theme .damac-property-layout,
.site-glass-theme .damac-property-head__grid {
    gap: 1.5rem;
}

.site-glass-theme .damac-filter-panel {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
}

.site-glass-theme .damac-property-head {
    padding: 1.25rem 0;
}

.site-glass-theme .damac-detail-section {
    padding: 1.15rem 0;
}

.site-glass-theme .damac-property-sidebar {
    padding: 1.25rem;
}

.site-glass-theme .damac-empty {
    padding: 2.5rem 1rem;
}

/* Footer */
.site-glass-theme footer.mt-16 {
    margin-top: 2rem !important;
}

.site-glass-theme footer .py-12,
.site-glass-theme footer .py-14 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.site-glass-theme footer .md\:py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

/* Contact / two-column pages */
.site-glass-theme .damac-page-section .gap-12 {
    gap: 1.75rem !important;
}

.site-glass-theme .damac-page-section .p-8 {
    padding: 1.35rem !important;
}

/* Launch / project KPI bands */
.site-glass-theme .damac-project-property-kpi,
.site-glass-theme .damac-property-kpi {
    padding: 0.85rem 0.5rem;
}

/* Breadcrumb */
.site-glass-theme .damac-breadcrumb .damac-container,
.site-glass-theme .damac-breadcrumb ol {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Main: avoid tall empty tail on short pages */
.site-glass-theme.page-public main.min-h-screen {
    min-height: auto;
}
