/* ============================================================================
   KELEBEK APART - Main stylesheet
   Modern, Responsive & Dynamic CSS Variables Design System
   ============================================================================ */

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ffcdd2;
    --accent-color: #ef5350;
    --whatsapp-color: #25d366;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-focus: #cbd5e1;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 35px rgba(0,0,0,0.16);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-surface: #1e293b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --border-color: #334155;
    --border-focus: #475569;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 35px rgba(0,0,0,0.6);
}

/* Dark Mode Component Overrides */
[data-theme="dark"] .site-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1;
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

[data-theme="dark"] .mobile-drawer {
    background: #1e293b;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: #1e293b;
    border-top-color: #334155;
}

[data-theme="dark"] .form-control {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

[data-theme="dark"] .spec-card, 
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .filter-sidebar {
    background: #1e293b;
}

[data-theme="dark"] .brand-logo img {
    filter: brightness(0) invert(1);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: transparent !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: none !important;
}

.btn-theme-toggle:hover {
    transform: scale(1.12);
    background: transparent !important;
    box-shadow: none !important;
}

.btn-theme-toggle .sun-icon {
    display: none;
    color: #ffffff !important;
}

.btn-theme-toggle .moon-icon {
    display: block;
    color: #0f172a !important; /* Dark navy moon icon in light mode */
}

[data-theme="dark"] .btn-theme-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .btn-theme-toggle:hover {
    background: transparent !important;
    box-shadow: none !important;
}

[data-theme="dark"] .btn-theme-toggle .sun-icon {
    display: block;
    color: #ffffff !important; /* Pure white sun icon in dark mode */
}

[data-theme="dark"] .btn-theme-toggle .moon-icon {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* Space for mobile bottom navbar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   HEADER & NAVBAR
   ============================================================================ */
.site-header {
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.brand-logo svg, .brand-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 32px;
    list-style: none;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 991px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .header-action {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 6px;
    }
    .header-action .btn-phone {
        display: none !important;
    }
}

.btn-whatsapp-header {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: none !important;
    flex-shrink: 0;
}

.btn-whatsapp-header:hover {
    background: #20ba5a;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: none !important;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.35);
}

.mobile-nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1050;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.drawer-menu {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-menu .nav-link {
    font-size: 1.1rem;
    display: block;
}

.drawer-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--bg-card);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 990;
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--primary-color);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-body) 100%);
    overflow: hidden;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1.1fr;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

.hero-content h1 .highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 520px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    transition: all 0.2s ease;
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(211, 47, 47, 0.4);
}

.hero-media {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

/* ============================================================================
   FLOATING SEARCH / FILTER BAR
   ============================================================================ */
.search-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .search-form {
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: end;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.btn-search {
    height: 48px;
    padding: 0 28px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
    transition: all 0.2s ease;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================================
   PROPERTY CARDS & GRID
   ============================================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    letter-spacing: -0.3px;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.8rem;
    }
}

.section-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .section-link {
        font-size: 0.95rem;
    }
}

.section-link:hover {
    text-decoration: underline;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.apart-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    flex-wrap: nowrap;
}

.card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.card-price span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-block;
}

.btn-card-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-card-detail:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ============================================================================
   APART DETAIL PAGE & GALLERY LIGHTBOX
   ============================================================================ */
.breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 0 60px;
}

@media (min-width: 992px) {
    .detail-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.gallery-main-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    background: #0f172a;
}

.gallery-main-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-main-wrapper:hover img {
    opacity: 0.92;
    transform: scale(1.02);
}

/* Left & Right White Hover Navigation Arrows (Always visible on mobile, hover on desktop) */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #ffffff;
    color: #0f172a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    visibility: visible;
    transition: all 0.25s ease;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .gallery-arrow {
        opacity: 0;
        visibility: hidden;
    }
    .gallery-main-wrapper:hover .gallery-arrow {
        opacity: 1;
        visibility: visible;
    }
}

.gallery-arrow:hover {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.gallery-arrow.gallery-prev {
    left: 16px;
}

.gallery-arrow.gallery-next {
    right: 16px;
}

/* ============================================================================
   APART DETAIL PAGE & GALLERY LIGHTBOX
   ============================================================================ */
.breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 10px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .detail-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.gallery-main-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 420px;
    box-shadow: var(--shadow-md);
    margin-bottom: 14px;
}

.gallery-main-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb-item {
    height: 75px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.spec-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.spec-val {
    font-weight: 700;
    color: var(--text-main);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 480px) {
    .action-buttons {
        flex-direction: row;
    }
}

.btn-cta-phone {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
    transition: all 0.2s ease;
}

.btn-cta-phone:hover {
    background: var(--primary-dark);
}

.btn-cta-whatsapp {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--whatsapp-color);
    color: var(--whatsapp-color);
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-cta-whatsapp:hover {
    background: var(--whatsapp-color);
    color: #ffffff;
}

.description-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.description-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.map-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.map-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    padding: 20px 24px 14px;
}

/* ============================================================================
   ALL APARTS (LISTING PAGE)
   ============================================================================ */
.listing-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 30px;
    margin-bottom: 20px;
}

.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary-color);
    background: var(--bg-card);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-filter-toggle:hover, .btn-filter-toggle.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 60px;
}

.listing-layout.has-active-filter {
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .listing-layout.sidebar-open {
        grid-template-columns: 280px 1fr;
    }
}

.filter-sidebar {
    display: none; /* Collapsed by default as requested */
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
    animation: fadeIn 0.3s ease;
}

.filter-sidebar.active {
    display: block; /* Expanded on demand */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-inputs .form-control {
    padding-left: 12px;
}

/* ============================================================================
   ABOUT & CONTACT PAGES
   ============================================================================ */
.about-section {
    padding: 50px 0 70px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: rgba(211, 47, 47, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(211, 47, 47, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================================
   LIGHTBOX MODAL & GALLERY ZOOM
   ============================================================================ */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    user-select: none;
    touch-action: pan-y;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-container {
    position: relative;
    max-width: 92vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    transition: transform 0.2s ease;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 18px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100002;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.lightbox-arrow:hover, .lightbox-arrow:active {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow.lightbox-prev { left: 24px; }
.lightbox-arrow.lightbox-next { right: 24px; }

@media (max-width: 640px) {
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.4);
    }
    .lightbox-arrow.lightbox-prev { left: 10px; }
    .lightbox-arrow.lightbox-next { right: 10px; }
}
