/* ============================================================
   Samui Dream Homes — Main Stylesheet
   Design System: Sapphire on Snow (5D + 5E footer)
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --deep-navy: #0a0e27;
    --navy: #1a1f4e;
    --cyan: #00e5ff;
    --bg-snow: #f8f9fc;
    --bg-pure: #ffffff;
    --text-main: #0a0e27;
    --text-muted: #5c6285;
    --border-light: rgba(26, 31, 78, 0.08);
    --border-cyan: rgba(0, 229, 255, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-refined: 0 10px 30px -10px rgba(10, 14, 39, 0.05);
    --font-heading: 'Source Serif 4', serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-snow);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* --- Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 2rem;
    padding-right: 2rem;
}
/* Site Logo — S·D·H with roof + gradient — always cyan */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.site-logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2.5px;
    color: var(--cyan);
    display: block;
    text-align: center;
    line-height: 1;
}
.site-logo-line {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    margin: 5px auto;
    border-radius: 2px;
}
.site-logo-city {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 2px;
    color: #fff;
    display: block;
    text-align: center;
}

.logo-link { text-decoration: none; display: inline-flex; flex-shrink: 0; }

/* Legacy .logo class — keep for text fallback */
.logo {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
}
.logo span { color: var(--cyan); }
.navbar.scrolled .logo { color: var(--deep-navy); }

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.nav-links a {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--cyan); opacity: 1; }
.navbar.scrolled .nav-links a { color: var(--text-main); opacity: 1; }
.navbar.scrolled .nav-links a:hover { color: var(--cyan); }

/* Auth links (Espace Client / Espace Pro) */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
    min-width: 180px;
    justify-content: flex-end;
}
.nav-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.nav-auth-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-auth-pro { color: var(--cyan); }
.nav-auth-pro:hover { background: rgba(0,229,255,0.1); color: var(--cyan); }
.navbar.scrolled .nav-auth-link { color: var(--text-muted); }
.navbar.scrolled .nav-auth-link:hover { color: var(--navy); background: var(--bg-snow); }
.navbar.scrolled .nav-auth-pro { color: var(--cyan); }
.navbar.scrolled .nav-auth-pro:hover { background: rgba(0,229,255,0.08); }
.navbar-dark .nav-auth-link { color: var(--text-muted); }
.navbar-dark .nav-auth-link:hover { color: var(--navy); background: var(--bg-snow); }
.navbar-dark .nav-auth-pro { color: var(--cyan); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    cursor: pointer;
    color: white;
}
.navbar.scrolled .menu-toggle { color: var(--deep-navy); }

/* Mobile nav divider */
.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}

/* Dark variant for interior pages */
.navbar-dark .logo { color: var(--deep-navy); }
.navbar-dark .nav-links a { color: var(--text-main); opacity: 1; }
.navbar-dark .menu-toggle { color: var(--deep-navy); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 14, 39, 0.7), rgba(10, 14, 39, 0.5));
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 2rem;
    overflow: visible;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    padding-right: 0.15em;
}
.hero-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Search bar in hero */
.search-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.search-bar input {
    background: transparent;
    border: none;
    padding: 1rem;
    color: white;
    width: 100%;
    font-size: 0.95rem;
}
.search-bar input::placeholder { color: rgba(255, 255, 255, 0.5); }
.search-bar button {
    background: var(--cyan);
    color: var(--deep-navy);
    padding: 0 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   PAGE HEADER (Interior pages)
   ============================================================ */
.page-header {
    background: var(--deep-navy);
    color: white;
    padding: 8rem 0 3rem;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.breadcrumbs a { color: var(--cyan); opacity: 0.8; }
.breadcrumbs a:hover { opacity: 1; }
.breadcrumbs span { opacity: 0.4; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-pure); }
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    display: block;
    margin-bottom: 0.75rem;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}
.accent-line {
    width: 40px;
    height: 3px;
    background: var(--cyan);
    margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-primary {
    background: var(--cyan);
    color: var(--deep-navy);
    border: 1px solid var(--cyan);
}
.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--bg-pure);
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 1px solid #25D366;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
}
.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
}
.btn-visit {
    background: transparent;
    color: #3fb950;
    border: 1px solid #3fb950;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
}
.btn-visit:hover {
    background: #3fb950;
    color: white;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Zones grid — 4 cols desktop, last row centered */
.zones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.zones-grid .location-card { width: calc(25% - 1.125rem); }

/* ============================================================
   ISLAND MAP
   ============================================================ */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 540px;
    margin: 1rem auto 0;
    line-height: 1.7;
}
.island-map {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
.island-map-img {
    width: 550px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10, 14, 39, 0.13);
}

/* ============================================================
   LOCATION CARDS
   ============================================================ */
.location-card {
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    cursor: pointer;
}
.location-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.location-card:hover img { transform: scale(1.05); }
.location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.8), transparent);
    z-index: 1;
}
.location-content {
    color: white;
    z-index: 2;
    position: relative;
}
.location-content span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.25rem;
}
.location-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.location-content .count {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* ============================================================
   PROPERTY CARDS
   ============================================================ */
.property-card {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.property-card:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-refined);
    transform: translateY(-5px);
}
.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.property-card:hover .property-card-image img { transform: scale(1.05); }
.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--deep-navy);
    color: var(--cyan);
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    z-index: 2;
}
.property-badge-sponsored {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    padding: 0.25rem 0.6rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    z-index: 2;
}
.property-card-body { padding: 1.25rem; }
.property-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.property-location {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.property-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    margin-bottom: 0.75rem;
}
.property-specs span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}
.property-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}
.property-availability {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2e7d32;
    margin-top: 0.25rem;
}

/* View toggle (Grid / Map) */
.view-toggle { display: flex; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.view-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: var(--bg-pure);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.8rem;
}
.view-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.property-price .price-monthly {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ============================================================
   CARD (Generic)
   ============================================================ */
.card {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    padding: 2rem;
    transition: var(--transition-smooth);
}
.card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-refined);
}

/* ============================================================
   HOW IT WORKS / STEPS
   ============================================================ */
.step-card { text-align: center; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}
.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   FILTERS BAR
   ============================================================ */
.filters-bar {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.filter-group { flex: 1; min-width: 150px; }
.filter-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-snow);
    color: var(--text-main);
    font-size: 0.85rem;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--cyan); }

/* Advanced filters row */
.filters-advanced { margin-top: 0.5rem; gap: 0.75rem; margin-bottom: 1rem; }
.filters-advanced .filter-group { min-width: 120px; }
.filter-checkbox { flex: 0 0 auto; min-width: auto !important; }
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-main) !important;
    padding: 0.65rem 0;
    margin-bottom: 0 !important;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
    padding: 0;
}

/* ============================================================
   PROPERTY DETAIL
   ============================================================ */
.listing-detail { padding: 2rem 0 4rem; }
.listing-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.listing-gallery-main {
    height: 500px;
    cursor: pointer;
}
.listing-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
}
.listing-gallery-side div {
    overflow: hidden;
    cursor: pointer;
}
.listing-gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.listing-gallery-side div:hover img { transform: scale(1.05); }

.listing-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 1.5rem 0;
    background: #000;
}
.listing-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.listing-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}
.listing-info h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.listing-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.listing-specs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.listing-specs .spec {
    text-align: center;
}
.listing-specs .spec-icon {
    color: var(--cyan);
    margin-bottom: 0.3rem;
}
.listing-specs .spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}
.listing-specs .spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.listing-description { margin-bottom: 2rem; line-height: 1.8; color: var(--text-main); }
.listing-description p { margin-bottom: 1rem; }

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.5rem 0;
}
.amenity-item i { color: var(--cyan); width: 18px; height: 18px; }

/* Rules / costs table */
.listing-table {
    width: 100%;
    margin-bottom: 2rem;
}
.listing-table tr { border-bottom: 1px solid var(--border-light); }
.listing-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}
.listing-table td:first-child {
    color: var(--text-muted);
    width: 40%;
}

/* Sidebar booking card */
.booking-card {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2rem;
    position: sticky;
    top: 6rem;
}
.booking-card .price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.booking-card .price-display small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}
.booking-card .ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.booking-card .btn { width: 100%; justify-content: center; margin-bottom: 0.75rem; }

/* Availability calendar */
.availability-calendar {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-header h4 { font-size: 0.9rem; }
.calendar-header button {
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    gap: 2px;
}
.calendar-grid .day-name {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.4rem 0;
}
.calendar-grid .day {
    padding: 0.4rem;
    border-radius: 2px;
}
.calendar-grid .day.available { color: var(--text-main); background: #c8e6c9; }
.calendar-grid .day.blocked {
    background: #fee;
    color: #c00;
    text-decoration: line-through;
}
.calendar-grid .day.past { color: var(--text-muted); opacity: 0.4; }
.calendar-grid .day.empty { color: transparent; }
.calendar-grid .day.today { border: 2px solid var(--cyan); font-weight: 600; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.blog-card:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-refined);
}
.blog-card-image {
    height: 200px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body { padding: 1.25rem; }
.blog-card-body .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.blog-card-body p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.blog-article { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.blog-article h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.blog-article .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.blog-article .content { line-height: 1.9; font-size: 1rem; }
.blog-article .content p { margin-bottom: 1.25rem; }
.blog-article .content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}
.blog-article .content img {
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.alert {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.alert-error {
    background: #ffeef0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-snow);
    font-size: 0.9rem;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--cyan); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-item .icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan);
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--deep-navy);
    color: white;
    padding: 80px 5% 40px;
}
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand .logo { color: white; }
.footer-brand .logo-link { margin-bottom: 0.5rem; }
.footer-brand p {
    opacity: 0.6;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}
.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1rem;
    color: var(--cyan);
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { opacity: 0.6; font-size: 0.9rem; }
.footer-links ul li a:hover { opacity: 1; color: var(--cyan); }

.footer-cta h4 { margin-bottom: 24px; font-size: 1rem; }
.footer-cta p {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    opacity: 0.65;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}
.page-link:hover { border-color: var(--cyan); color: var(--cyan); }
.page-link.active {
    background: var(--cyan);
    color: var(--deep-navy);
    border-color: var(--cyan);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
/* Floating WhatsApp button */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    padding: 5rem 2rem 2.5rem;
    gap: 1.5rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mobile-nav a:hover { color: var(--cyan); }
.mobile-nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    color: white;
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .zones-grid .location-card { width: calc(50% - 0.75rem); height: 220px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
    .listing-content { grid-template-columns: 1fr; }
    .booking-card { position: static; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-gallery { grid-template-columns: 1fr; }
    .listing-gallery-main { height: 350px; }
    .listing-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 768px) {
    .navbar .container { position: relative; }
    .nav-links { display: none; }
    .navbar .logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-auth { display: none; }
    .menu-toggle { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .search-bar { flex-direction: column; }
    .search-bar button { padding: 0.75rem; }
    .section { padding: 4rem 0; }
    .section-title h2 { font-size: 2rem; }
    .page-header h1 { font-size: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .zones-grid { gap: 0.75rem; }
    .zones-grid .location-card { width: calc(50% - 0.375rem); height: 180px; }
    .zones-grid .location-content h3 { font-size: 1.1rem; }
    .zones-grid .location-content span { font-size: 0.6rem; }
    .zones-grid .location-content .count { font-size: 0.7rem; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .location-card { height: 300px; }
    .listing-gallery-main { height: 250px; }
    .amenities-grid { grid-template-columns: 1fr 1fr; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .listing-info h1 { font-size: 1.5rem; }
}

/* ============================================================
   Favorites
   ============================================================ */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 14, 39, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
    border: none;
    padding: 0;
}
.favorite-btn:hover {
    background: rgba(10, 14, 39, 0.75);
    transform: scale(1.1);
}
.favorite-btn.active {
    background: rgba(255, 71, 87, 0.9);
    color: #fff;
}
.favorite-btn.active:hover {
    background: rgba(255, 71, 87, 1);
}
.favorite-btn svg {
    width: 18px;
    height: 18px;
}
.favorite-btn.active svg {
    fill: #fff;
}
.property-card-image {
    position: relative;
}
.favorite-btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: var(--bg-pure);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}
.favorite-btn-sidebar:hover {
    border-color: #ff4757;
    color: #ff4757;
}
.favorite-btn-sidebar.active {
    border-color: #ff4757;
    background: #fff5f5;
    color: #ff4757;
}
.favorite-btn-sidebar svg {
    width: 16px;
    height: 16px;
}
.favorite-btn-sidebar.active svg {
    fill: #ff4757;
}

/* ============================================================
   Agency Public Profile
   ============================================================ */
.agency-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.agency-profile-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
}
.agency-profile-initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
}
.agency-profile-info h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--navy);
    margin: 0 0 0.25rem;
}
.agency-profile-zones {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
.agency-profile-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.agency-profile-stats strong {
    color: var(--navy);
}
.agency-profile-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-bottom: 3rem;
}
.agency-profile-about h2,
.agency-profile-listings h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1rem;
}
.agency-profile-description {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 0.95rem;
}
.agency-profile-contact-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: 100px;
}
.agency-profile-contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--navy);
    margin: 0 0 1rem;
}
.agency-profile-listings {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .agency-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .agency-profile-zones {
        justify-content: center;
    }
    .agency-profile-stats {
        justify-content: center;
    }
    .agency-profile-grid {
        grid-template-columns: 1fr;
    }
    .agency-profile-contact-card {
        position: static;
    }
}
