/* Elite Imobiliare - Vibestate Style */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1A6B8A;
    --primary-hover: #145570;
    --primary-light: #2089B0;
    --primary-10: rgba(26,107,138,0.1);
    --primary-25: rgba(26,107,138,0.25);
    --primary-50: rgba(26,107,138,0.5);
    --text: #333;
    --text-muted: #6c757d;
    --text-light: #9ba5ae;
    --bg: #fff;
    --bg-footer: #f7f7f7;
    --border: #E4E7EB;
    --border-light: #dee2e6;
    --white: #fff;
    --shadow-card: 0px 5px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --radius: 10px;
    --navbar-h: 110px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--navbar-h);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    line-height: 1.3;
    color: var(--text);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 0 32px;
    position: relative;
    height: 100%;
}

.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.navbar-brand img {
    height: 71px;
    max-height: 71px;
    width: auto;
    display: block;
    transform: translateY(-11px);
}

.navbar-brand-text {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.navbar.scrolled .navbar-brand-text {
    color: var(--text);
}

.navbar-brand-tagline {
    position: absolute;
    left: 75px;
    top: 65px;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1;
    letter-spacing: 0.005em;
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.navbar.scrolled .navbar-brand-tagline {
    color: #2a2a2a;
    text-shadow: none;
}

body.has-hero .navbar:not(.scrolled) .navbar-brand-tagline {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.navbar-brand-dots {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 7px;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

.navbar-brand-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid #888;
    background: transparent;
    display: inline-block;
    box-sizing: border-box;
}

body.has-hero .navbar:not(.scrolled) .navbar-brand-dots i {
    border-color: rgba(255,255,255,0.85);
    background: transparent;
}

.navbar-phone {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16.58px;
    line-height: 1;
    transition: color 0.2s ease;
}

.navbar.scrolled .navbar-phone {
    color: var(--text);
}

.navbar-phone i {
    font-size: 16.58px;
    line-height: 1;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    line-height: 1;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 15.91px;
    color: #1a1a1a;
    padding: 10px 10px;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.2s ease;
}

.navbar.scrolled .nav-links a {
    color: #000;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1031;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--text);
}

.mobile-menu-label {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    margin-top: 5px;
}

.navbar.scrolled .mobile-menu-label {
    color: var(--text);
}

/* ===========================
   HERO
   =========================== */
.hero {
    margin-top: calc(var(--navbar-h) * -1);
    position: relative;
    min-height: 575px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 70px;
}

.hero-inner {
    position: relative;
    z-index: 3;
    align-self: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 24px;
    margin-top: 200px;
    text-align: center;
}

.hero-slogan {
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

/* === Hero with left-side panel layout (homepage) === */
.hero-panel-layout .hero-inner {
    align-self: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--navbar-h) + 28px) 24px 28px;
    text-align: left;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}
.hero-panel-layout .hero-slogan { margin-bottom: 28px; }
.hero-panel-layout .hero-slogan h1,
.hero-panel-layout .hero h1 {
    font-size: clamp(20px, 4.4vw, 32px) !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: keep-all !important;
    display: block;
}
.hero-sub {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 360px;
}
.hero-panel {
    width: 480px;
    max-width: 100%;
    margin-top: 40px;
    margin-left: -40px;
    padding: 36px 28px 28px;
    background: linear-gradient(180deg, rgba(20,25,40,0.55) 0%, rgba(15,20,35,0.65) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.08);
    text-align: left;
}
.hero-panel .hero-slogan,
.hero-panel .hero-slogan h1,
.hero-panel .hero-sub {
    text-align: left !important;
    padding-left: 0;
    margin-left: 0;
}

/* Search form inside panel: vertical stack — all rows full width, city + icon button on last row */
.hero-panel .search-form { max-width: none; margin: 0; width: 100%; }
.hero-panel form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.hero-panel .search-row { display: flex; gap: 10px; max-width: none; width: 100%; }
.hero-panel .search-row-pair { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
.hero-panel .search-submit-full { display: none; }
.hero-panel .search-row-city { display: flex; flex-direction: row; gap: 10px; align-items: stretch; width: 100%; }
.hero-panel .search-row-city .search-field-full { flex: 1 1 0; min-width: 0; width: auto; }
.hero-panel .search-row-city .search-field-full select { min-width: 0; }
.hero-panel .search-field { min-width: 0; width: 100%; position: relative; }
.hero-panel .search-field-full { width: 100%; display: block; }
.hero-panel .search-submit-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.hero-panel .search-submit-icon:hover { background: var(--primary-hover); }
.hero-panel .search-submit-icon:active { transform: scale(0.97); }
.hero-panel .search-field .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.hero-panel .search-field:hover .search-icon { color: var(--primary-hover); }
.hero-panel .search-field select,
.hero-panel .search-field input {
    width: 100%;
    height: 54px;
    padding: 0 44px 0 46px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background-color: rgba(255,255,255,0.97);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237a7a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-panel .search-field select:hover,
.hero-panel .search-field input:hover {
    background-color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.hero-panel .search-field select:focus,
.hero-panel .search-field input:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,138,0.22);
}

.hero-panel .search-submit-full {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(26,107,138,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}
.hero-panel .search-submit-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.hero-panel .search-submit-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26,107,138,0.48), inset 0 1px 0 rgba(255,255,255,0.22);
    filter: brightness(1.04);
}
.hero-panel .search-submit-full:hover::before { opacity: 1; }
.hero-panel .search-submit-full:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(26,107,138,0.42);
}
.hero-panel .search-submit-full i {
    font-size: 13px;
    margin-right: 2px;
}

@media (max-width: 768px) {
    .hero-panel-layout .hero-inner {
        padding: calc(var(--navbar-h) + 18px) 16px 24px !important;
        margin-top: 0 !important;
    }
    .hero-panel-layout .hero-slogan h1,
    .hero-panel-layout .hero h1 { font-size: clamp(20px, 6.8vw, 28px) !important; letter-spacing: 0 !important; line-height: 1.15 !important; white-space: nowrap !important; }
    .hero-sub { font-size: 14.5px; max-width: 100%; }
    .hero-panel { padding: 20px 16px 18px; border-radius: 16px; width: 100%; margin: 0; background: linear-gradient(180deg, rgba(20,25,40,0.12) 0%, rgba(15,20,35,0.18) 100%); border-color: rgba(255,255,255,0.08); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
    .hero-panel .hero-slogan { display: none; }
    .hero-panel .search-submit-full { display: none; }
    .hero-panel .search-row-city { display: flex; flex-direction: row; gap: 10px; align-items: stretch; width: 100%; }
    .hero-panel .search-row-city .search-field-full { flex: 1 1 0; min-width: 0; width: auto; }
    .hero-panel .search-row-city .search-field-full select { min-width: 0; }
    .hero-panel .search-submit-icon {
        flex: 0 0 auto;
        width: 56px;
        height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 11px;
        background: var(--primary);
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.18s ease, transform 0.18s ease;
    }
    .hero-panel .search-submit-icon:hover { background: var(--primary-hover); }
    .hero-panel .search-submit-icon:active { transform: scale(0.97); }
    .hero-panel .search-row-pair { grid-template-columns: 1fr; gap: 10px; }
    .hero-panel .search-field .search-icon { left: 16px; font-size: 13px; color: #fff; }
    .hero-panel .search-field select,
    .hero-panel .search-field input {
        height: 50px;
        font-size: 14.5px;
        padding: 0 40px 0 42px;
        border-radius: 11px;
        background-color: rgba(255,255,255,0.10);
        border-color: rgba(255,255,255,0.25);
        color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    .hero-panel .search-field select option { color: #1a1a1a; background-color: #fff; }
    .hero-panel .search-field select:hover,
    .hero-panel .search-field input:hover { background-color: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
    .hero-panel .search-field select:focus,
    .hero-panel .search-field input:focus { background-color: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
    .hero-panel .search-submit-full { height: 52px; font-size: 14.5px; border-radius: 11px; }
    .hero-panel-layout .hero-background { height: 100%; bottom: auto; }
    .hero-panel-layout.hero { padding-bottom: 0; min-height: 80vh; height: 80vh; }
    .properties { padding: 10px 0 30px; }
    .properties .section-header { display: none; }
}
@media (max-width: 480px) {
    .hero-panel-layout .hero-slogan h1,
    .hero-panel-layout .hero h1 { font-size: clamp(18px, 7vw, 26px) !important; white-space: nowrap !important; letter-spacing: 0 !important; }
    .hero-panel { padding: 20px 16px; }
}

/* Hero Video Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: rgba(33,37,41,0.25);
}

.hero-background video,
.hero-background .hero-slides {
    width: 100%;
    height: 100%;
}
.hero-background video {
    object-fit: cover;
    transition: opacity 1.2s ease;
}
.hero-background video.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hero slideshow (plays after video ends) */
.hero-slides {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}
.hero-slides.is-active { opacity: 1; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
    overflow: hidden;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    will-change: transform;
}

/* Subtle Ken Burns — small zoom for cinematic feel without cropping interesting details */
.hero-slide.is-active img {
    animation: hero-kenburns-in 7s ease-out forwards;
}
.hero-slide.is-active:nth-child(2n) img {
    animation: hero-kenburns-out 7s ease-out forwards;
}

@keyframes hero-kenburns-in {
    from { transform: scale(1.00); }
    to   { transform: scale(1.04); }
}
@keyframes hero-kenburns-out {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active img,
    .hero-slide.is-active:nth-child(2n) img {
        animation: none;
        transform: none;
    }
}

/* Search Form - over video */
.search-form {
    max-width: 844px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    max-width: 844px;
    margin: 0 auto;
}

.search-field {
    position: relative;
}

.search-field-type {
    flex: 0 0 200px;
}

.search-field-toggle {
    flex: 0 0 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-field-location {
    flex: 1;
}

.search-field select,
.search-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.search-field-type select {
    border-radius: var(--radius) 0 0 var(--radius);
}

.search-field select:focus,
.search-field input:focus {
    border-color: var(--primary);
}

/* Transaction Toggle (Pill Switch) */
.search-toggle {
    display: flex;
    height: 46px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 85%),
                rgba(77,77,77,0.4);
    border: 2px solid var(--white);
    overflow: hidden;
    width: 100%;
}

.search-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    padding: 0 16px;
}

.search-toggle-btn.active {
    background: var(--white);
    color: #495057;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.search-submit {
    height: 46px;
    padding: 0 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-submit:hover {
    background: var(--primary-light);
}

/* Search Checkboxes */
.search-checks {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    justify-content: center;
}

.search-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    text-shadow: 0px 1px 2px rgba(33,37,41,0.4);
}

.search-check input[type="checkbox"] {
    accent-color: var(--primary);
}

/* ===========================
   PROPERTIES SECTION
   =========================== */
.properties {
    padding: 48px 0 48px;
    text-align: center;
}

.section-header {
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.properties-h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.25;
    margin: 0 0 26px;
}
@media (max-width: 768px) {
    .properties-h1 { font-size: 20px; margin-bottom: 18px; }
}
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    text-align: left;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 1px 3px rgba(20,30,45,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-3px);
    border-color: #d8e3e8;
    box-shadow: 0 14px 32px rgba(20,30,45,0.10);
}

.property-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.property-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.property-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.65);
    transform: scale(1.15);
    z-index: 0;
}

.property-card-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    transition: transform 0.5s ease;
    display: block;
    background: transparent;
}

.property-card-image .property-badge {
    z-index: 2;
}

.property-card:hover .property-card-image img {
    transform: scale(1.04);
}

.property-card-body {
    padding: 16px 18px 18px;
}

.property-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1;
}

.property-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid #f1f1f1;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-detail i {
    font-size: 11px;
    color: var(--primary);
}

.property-labels {
    display: none;
}

.property-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-10);
    padding: 3px 10px;
    border-radius: 4px;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 13px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 1;
}

.badge-sale {
    background: var(--primary);
    color: var(--white);
}

.badge-rent {
    background: #2ABB67;
    color: var(--white);
}

/* ===========================
   QUICK MENU BUTTONS
   =========================== */
.quick-menu {
    padding: 40px 0 60px;
    text-align: center;
}

.quick-menu-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 280px;
    padding: 16px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.quick-menu-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(172,132,0,0.3);
}

.quick-menu-btn i {
    font-size: 16px;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    padding: 60px 0;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--primary-25);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.service-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    padding: 60px 0;
    background: var(--bg-footer);
}

.about .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-content > p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-highlight i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.about-highlight-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.about-highlight-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.about-image {
    flex: 1;
    max-width: 480px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    padding: 60px 0;
    background: var(--bg);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-info > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-detail i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-detail-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-detail-text span,
.contact-detail-text a {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-detail-text a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--bg-footer);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.form-group textarea {
    height: 110px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* ===========================
   WHATSAPP BUTTON
   =========================== */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1031;
    box-shadow: 0 4px 15px rgba(37,211,102,0.35);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

/* ===========================
   MOBILE MENU OVERLAY
   =========================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1028;
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 540px) {
    .properties-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Property badge: smaller on tablet, even smaller on mobile, so it doesn't dominate the card image */
@media (max-width: 991px) {
    .property-badge { font-size: 10px; padding: 3px 9px; top: 8px; left: 8px; border-radius: 5px; }
}
@media (max-width: 540px) {
    .property-badge { font-size: 9.5px; padding: 3px 8px; }
}

@media (max-width: 1100px) {
    :root { --navbar-h: 68px; }
    .navbar .container { padding: 0 16px; }

    .hero-inner { margin-top: 125px; }
    .hero h1 { font-size: 32px; }
    .hero-slogan { margin-bottom: 30px; }
    .search-row { flex-direction: column; gap: 10px; }
    .search-field-type { flex: auto; }
    .search-field-toggle { flex: auto; }
    .search-field-location { flex: auto; }
    .search-field select, .search-field input { border-radius: var(--radius); }
    .search-field-type select { border-radius: var(--radius); }
    .search-submit { border-radius: var(--radius); width: 100%; margin: 4px 0 0; display: block; }

    .properties { padding: 40px 0 30px; }
    .section-header h2 { font-size: 22px; }
    .section-header p { font-size: 13px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 68px 0 24px;
        gap: 0;
        transition: var(--transition);
        z-index: 1029;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transform: none;
        overflow-y: auto;
    }

    .nav-links.active { right: 0; }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        display: block;
    }
    .nav-links a {
        display: flex;
        align-items: center;
        padding: 16px 24px;
        border-radius: 0;
        color: var(--text) !important;
        font-size: 16px;
        font-weight: 500;
        text-shadow: none !important;
        line-height: 1.3;
    }
    .nav-links a:hover, .nav-links a:focus { color: var(--primary) !important; background: rgba(26,107,138,0.06); }

    .nav-links .lang-dropdown { padding: 4px 0; }
    .nav-links .lang-switch { display: none !important; }
    .nav-links .lang-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        padding: 0 24px 8px;
    }
    .nav-links .lang-menu a {
        padding: 8px 12px;
        font-size: 13px;
        display: inline-block;
    }

    /* Mobile menu header (logo + phone) — only visible inside slide-out */
    .nav-links .mobile-menu-head {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 18px 24px 20px;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
    }
    .nav-links .mobile-menu-head img {
        height: 40px;
        width: auto;
        max-width: 100%;
        display: block;
    }
    .nav-links .mobile-menu-head a.mobile-menu-phone {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--text);
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        padding: 0;
        background: transparent;
    }
    .nav-links .mobile-menu-head a.mobile-menu-phone:hover { background: transparent; }
    .nav-links .mobile-menu-head a.mobile-menu-phone i {
        color: var(--primary);
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        width: auto !important;
        height: auto !important;
        padding: 8px 12px !important;
        flex-direction: row !important;
        gap: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        align-self: center !important;
        flex-shrink: 0;
        line-height: 1 !important;
        vertical-align: middle !important;
        margin: 11px 0 0 0 !important;
    }
    .mobile-menu-toggle span { display: none !important; }
    .mobile-menu-toggle .mobile-menu-label {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    .navbar .container { align-items: center !important; flex-wrap: nowrap !important; }
    .navbar-brand { align-self: center !important; flex-shrink: 1; min-width: 0; }
    .navbar-phone { display: none; }

    /* Right-side mobile cluster: RO + MENU stay level with the logo;
       WhatsApp drops just below the MENU button (out of flow). */
    .navbar-actions-mobile {
        position: relative;
        top: 6px;
        display: flex;
        align-items: center;
        margin-left: auto;
        align-self: center;
        flex-shrink: 0;
    }
    .navbar-actions-row {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .navbar-actions-mobile .mobile-menu-toggle { margin: 0 !important; position: relative; left: 10px; }

    .navbar-whatsapp-mobile {
        position: absolute;
        top: calc(100% + 3px);
        right: 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        color: #25D366;
        font-size: 20px;
        line-height: 1;
        text-decoration: none;
        padding: 0;
    }
    body.has-hero .navbar:not(.scrolled) .navbar-whatsapp-mobile {
        color: #fff;
        text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    }

    /* Always-visible RO/EN switch in the mobile top bar (next to the menu) */
    .navbar-lang-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: center !important;
        margin: 0;
        padding: 4px 8px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.3px;
        color: var(--text);
        text-decoration: none;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
    }
    body.has-hero .navbar:not(.scrolled) .navbar-lang-mobile {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.55);
        background: rgba(255, 255, 255, 0.12);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    }

    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/* Hide mobile menu header on desktop (it's only inside the slide-out) */
@media (min-width: 1101px) {
    .mobile-menu-head { display: none !important; }
    .navbar-whatsapp-mobile { display: none !important; }
    .navbar-lang-mobile { display: none !important; }
    .navbar-actions-mobile { display: none !important; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero { min-height: 100vh; min-height: 100dvh; }
    .hero h1 { font-size: 26px; letter-spacing: 0.04em; }
    .hero-inner { margin-top: 100px; padding: 0 16px; }
    .hero-slogan { margin-bottom: 24px; }
    .search-form { max-width: 100%; }
    .search-field select, .search-field input { height: 44px; font-size: 14px; }
    .search-submit { height: 48px; font-size: 14px; }
    .search-toggle { height: 44px; }
    .search-toggle-btn { font-size: 14px; }
    .search-checks { gap: 16px; margin-top: 12px; }
    .search-check { font-size: 13px; }
    .section-header h2 { font-size: 20px; }
    .section-header p { font-size: 12px; }
    .whatsapp-btn { width: 54px; height: 54px; font-size: 24px; bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: 22px; }
    .hero-inner { margin-top: 80px; padding: 0 12px; }
    .hero-slogan { margin-bottom: 20px; }
    .search-toggle-btn { padding: 7px 12px; font-size: 13px; }
    .search-field select, .search-field input { height: 42px; font-size: 13px; padding: 0 12px; }
    .search-submit { height: 46px; font-size: 13px; }
    .navbar-brand-text { font-size: 15px; }
    .navbar-brand-tagline { font-size: 10px; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 19px; }
    .hero-inner { margin-top: 70px; }
    .search-toggle-btn { padding: 6px 10px; font-size: 12px; }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeInUp 0.6s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }
.reveal:nth-child(7) { transition-delay: 0.35s; }
.reveal:nth-child(8) { transition-delay: 0.4s; }

/* ===========================
   PAGE SECTIONS (inner pages)
   =========================== */
.page-section {
    padding: 60px 0;
}

.page-section .section-header {
    text-align: center;
    margin-bottom: 36px;
}

.page-section .section-header h2 {
    font-size: 31px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 15.4px;
    line-height: 1.7;
    color: var(--text-muted);
}

.page-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.page-content p {
    margin-bottom: 12px;
}

.page-contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--bg-footer);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.page-contact-form .form-control {
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    padding: 12px 14px;
}

.page-contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.page-contact-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0 10px;
    margin: 0;
}

.page-contact-form .form-check-input {
    position: static;
    margin: 4px 0 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.page-contact-form .form-check-label {
    margin: 0;
    line-height: 1.5;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.page-contact-form .form-check-label a {
    color: var(--primary);
    text-decoration: underline;
}

.page-contact-form .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius);
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    width: 100%;
}

.page-contact-form .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Services grid on inner page */
.services-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.services-page .service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.services-page .service-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--primary-25);
}

.services-page .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.services-page .service-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.services-page .service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.services-page .service-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About highlights on inner page */
.about .about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.about .about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about .about-highlight i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.about .about-highlight-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.about .about-highlight-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.about .about-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.about .about-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Main content wrapper */
.main-content {
    flex: 1 0 auto;
    min-height: 60vh;
}

.main-content > .container {
    max-width: 1400px;
}

/* Override default styles */
.main-content .card {
    border: none;
    box-shadow: none;
}


/* Property detail page */
.main-content .address {
    color: var(--text-muted);
    font-size: 13px;
}

.main-content .card-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
}

@media (max-width: 768px) {
    .services-page .services-grid {
        grid-template-columns: 1fr;
    }

    .about .about-highlights {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding: 40px 0;
    }
}

/* Language switch button */
.nav-links .lang-switch {
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.navbar.scrolled .nav-links .lang-switch {
    border-color: var(--border);
}

.nav-links .lang-switch:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

/* Language dropdown */
.lang-dropdown {
    position: relative;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    min-width: 60px;
    z-index: 1050;
}

.lang-menu.show {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text) !important;
    text-align: center;
}

.lang-menu a:hover {
    background: var(--primary-10);
    color: var(--primary) !important;
}

.lang-menu a.active {
    background: var(--primary);
    color: #fff !important;
}

/* Price per sqm */
.property-price-sqm {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}
.property-price-sqm i {
    margin-right: 4px;
    color: #1A6B8A;
}

/* Map section */
.map-section {
    padding: 50px 0 64px;
    background: #f7f9fb;
    border-top: 1px solid #eef1f4;
}
.map-section .section-header {
    margin-bottom: 24px;
    text-align: center;
}
.map-section-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: stretch;
}
#properties-map {
    height: 380px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20,30,45,0.08);
    z-index: 1;
}
.map-aside {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 18px 18px 12px;
    box-shadow: 0 1px 3px rgba(20,30,45,0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
    max-height: 380px;
}
.map-aside-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.map-aside-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 4px;
    font-size: 13.5px;
    color: var(--text);
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: color 0.15s;
}
.map-aside-item:last-child { border-bottom: none; }
.map-aside-item:hover { color: var(--primary); }
.map-aside-item .city {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.map-aside-item .city i {
    color: var(--primary);
    font-size: 11px;
}
.map-aside-item .count {
    font-size: 12px;
    color: var(--text-muted);
    background: #f5f7f9;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}
@media (max-width: 900px) {
    .map-section-body { grid-template-columns: 1fr; }
    .map-aside { max-height: none; }
}
@media (max-width: 768px) {
    .map-section { padding: 40px 0 50px; }
    #properties-map { height: 280px; border-radius: 8px; }
}
@media (max-width: 480px) {
    .map-section { padding: 32px 0 40px; }
    #properties-map { height: 240px; }
    .map-aside { padding: 14px; }
}
.map-popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.map-popup-price {
    color: #1A6B8A;
    font-weight: 600;
    font-size: 15px;
}
.map-popup-details {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}
.map-popup-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #1A6B8A;
    font-weight: 500;
}


/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #1e2a3a;
    padding: 0;
}
.footer-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 0;
    gap: 24px;
}
.footer-row > .footer-agent {
    justify-self: start;
}
.footer-row > .footer-right {
    grid-column: 2;
    justify-self: center;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.footer-brand-logo {
    height: 36px;
    width: auto;
    display: block;
}
.footer-agent {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-agent:hover {
    opacity: 0.85;
}
.footer-agent-photo {
    width: 80px;
    height: 104px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
    display: block;
}
.footer-agent-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.footer-agent-label {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}
.footer-agent-info strong {
    font-size: 26px;
    color: #fff;
    font-weight: 600;
}
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.footer-bottom-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-contact {
    display: flex;
    gap: 20px;
}
.footer-contact a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: #fff;
}
.footer-contact i {
    color: #3d9ab8;
    margin-right: 4px;
    font-size: 11px;
}
.footer-social {
    display: flex;
    gap: 6px;
}
.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 12px;
}
.footer-social a:hover {
    background: #1A6B8A;
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
    text-align: center;
}
.footer-bottom span {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}
@media (max-width: 768px) {
    .footer-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px 0 16px;
        gap: 14px;
    }
    .footer-row > .footer-agent,
    .footer-row > .footer-right {
        justify-self: auto;
        grid-column: auto;
    }
    .footer-brand {
        flex-direction: column;
        gap: 2px;
    }
    .footer-brand-sep {
        display: none;
    }
    .footer-right {
        width: 100%;
        align-items: center;
    }
    .footer-links {
        gap: 14px;
        justify-content: center;
    }
    .footer-bottom-row {
        gap: 14px;
        justify-content: center;
        width: 100%;
    }
    .footer-contact {
        flex-direction: row;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .navbar-brand-tagline {
        left: 40px;
        top: 43px;
        font-size: 10.5px;
    }
    .navbar-brand-dots {
        gap: 1px;
        margin-left: 4px;
        top: 1px;
    }
    .navbar-brand-dots i {
        width: 4px;
        height: 4px;
        border-width: 1px;
    }
    .navbar-brand img {
        height: 44px !important;
        max-height: none !important;
        width: auto !important;
        max-width: calc(100vw - 160px) !important;
        object-fit: contain;
        object-position: left center;
        transform: translateY(-7px);
        transform: none !important;
    }
}

/* =====================================================
   ABOUT US PAGE - Custom design
   ===================================================== */

.about-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
}
.about-eyebrow.light { color: rgba(255,255,255,0.7); }

/* --- Hero --- */
.about-hero {
    position: relative;
    margin-top: calc(var(--navbar-h) * -1);
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.about-hero-bg {
    position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.about-hero-bg video {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.about-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(11,16,66,0.78) 0%, rgba(26,107,138,0.55) 100%);
}
.about-hero-inner {
    position: relative; z-index: 2;
    padding: 18px 24px;
    max-width: 900px;
}
.about-hero-eyebrow {
    display: inline-block;
    font-size: 11px; letter-spacing: 0.22em; font-weight: 500;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    padding: 5px 14px; border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.about-hero h1 {
    font-size: 28px; font-weight: 700; color: #fff;
    letter-spacing: -0.01em; line-height: 1.15; margin: 0;
}
.about-hero-tagline {
    font-size: 13px; color: rgba(255,255,255,0.85);
    margin: 8px auto 10px; max-width: 640px; line-height: 1.5;
}
.about-hero-divider {
    width: 40px; height: 2px; background: #fff; margin: 0 auto;
    border-radius: 2px;
}

/* --- Story --- */
.about-story { padding: 100px 0 40px; background: #fff; }
.about-story-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start;
}
.about-story-aside {
    position: sticky; top: 100px;
    border-left: 3px solid var(--primary);
    padding: 8px 0 8px 28px;
}
.about-story-year .year-label {
    display: block; font-size: 12px; letter-spacing: 0.3em;
    color: var(--text-muted); font-weight: 600;
}
.about-story-year .year-num {
    display: block; font-size: 96px; font-weight: 800;
    color: var(--text); line-height: 1; margin-top: 4px;
    background: linear-gradient(135deg, #0B1042 0%, #1A6B8A 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-story-locations { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.about-story-locations .loc-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 500; font-size: 15px;
}
.about-story-locations .loc-item i { color: var(--primary); }
.about-story-content h2 {
    font-size: 38px; line-height: 1.2; font-weight: 600;
    color: var(--text); margin-bottom: 22px;
}
.about-story-content h2 .hl {
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(26,107,138,0.18) 50%, rgba(26,107,138,0.18) 100%);
    padding: 0 4px;
}
.about-story-content p {
    font-size: 17px; line-height: 1.75; color: var(--text-muted);
    margin-bottom: 16px;
}
.about-story-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.about-story-content ul li {
    position: relative;
    padding-left: 22px;
    font-size: 17px; line-height: 1.75; color: var(--text-muted);
    margin-bottom: 10px;
}
.about-story-content ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 13px;
    width: 10px; height: 2px;
    background: #1A6B8A;
    border-radius: 2px;
}
.about-story-content ul li strong {
    color: var(--text);
}
.about-story-content ul ul {
    margin: 8px 0 0 0;
}
.about-story-content ul ul li {
    padding-left: 18px;
    font-size: 16px;
    margin-bottom: 6px;
}
.about-story-content ul ul li::before {
    width: 5px; height: 5px;
    border-radius: 50%;
    top: 12px;
    background: #1A6B8A;
}

/* --- Stats --- */
.about-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #0B1042 0%, #1A6B8A 100%);
    color: #fff;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.stat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.stat-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}
.stat-num {
    font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 13px; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 0.12em;
}

/* --- Services --- */
.about-services { padding: 30px 0 100px; background: #fff; }
.section-header.center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header.center h2 { font-size: 36px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.section-header.center p { font-size: 16px; color: var(--text-muted); }

.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.svc-card {
    padding: 32px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.svc-card:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.08); transform: translateY(-4px); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-10);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}
.svc-card:hover .svc-icon {
    background: var(--primary); color: #fff; transform: rotate(-6deg);
}
.svc-card h3 {
    font-size: 19px; font-weight: 600; color: var(--text);
    margin-bottom: 10px;
}
.svc-card p {
    font-size: 14.5px; line-height: 1.65; color: var(--text-muted);
}

/* --- Why us --- */
.about-why {
    padding: 100px 0;
    background: #0E1530;
    color: #fff;
    position: relative; overflow: hidden;
}
.about-why::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,107,138,0.4) 0%, transparent 70%);
}
.why-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
    position: relative; z-index: 1;
}
.why-side h2 {
    font-size: 36px; font-weight: 600; line-height: 1.25;
    color: #fff; margin-bottom: 22px;
}
.why-side p {
    font-size: 16px; line-height: 1.75;
    color: rgba(255,255,255,0.7); margin-bottom: 16px;
}
.why-side strong { color: #fff; }
.why-pillars {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.pillar {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: var(--transition);
}
.pillar:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.pillar i {
    flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.pillar strong {
    display: block; font-size: 15px; font-weight: 600;
    color: #fff; margin-bottom: 4px;
}
.pillar span {
    display: block; font-size: 13px;
    color: rgba(255,255,255,0.6); line-height: 1.5;
}

/* --- CTA --- */
.about-cta { padding: 80px 0 100px; background: #fff; }
.cta-card {
    border-radius: 24px;
    padding: 56px 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 28px;
    box-shadow: 0 24px 60px rgba(26,107,138,0.25);
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.cta-card::after {
    content: ''; position: absolute; bottom: -60px; left: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.cta-text { position: relative; z-index: 1; max-width: 560px; }
.cta-text h2 { font-size: 30px; font-weight: 600; margin-bottom: 8px; color: #fff; line-height: 1.25; }
.cta-text p { font-size: 15px; color: rgba(255,255,255,0.85); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 100px;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}
.cta-btn-primary {
    background: #fff; color: var(--primary);
}
.cta-btn-primary:hover {
    background: #0B1042; color: #fff; transform: translateY(-2px);
}
.cta-btn-ghost {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.cta-btn-ghost:hover {
    background: #fff; color: var(--primary); border-color: #fff;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-story-aside { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-wrap { grid-template-columns: 1fr; gap: 40px; }
    .why-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .about-hero { min-height: 30vh; }
    .about-hero h1 { font-size: 22px; }
    .about-hero-tagline { font-size: 12px; }
    .about-story { padding: 60px 0; }
    .about-story-content h2 { font-size: 28px; }
    .about-story-content p { font-size: 15px; }
    .about-story-year .year-num { font-size: 72px; }
    .about-stats { padding: 50px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stat-num { font-size: 34px; }
    .about-services { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .section-header.center h2 { font-size: 26px; }
    .about-why { padding: 60px 0; }
    .why-side h2 { font-size: 26px; }
    .why-pillars { grid-template-columns: 1fr; }
    .about-cta { padding: 50px 0 70px; }
    .cta-card { padding: 36px 28px; flex-direction: column; align-items: stretch; text-align: center; }
    .cta-text h2 { font-size: 24px; }
    .cta-actions { justify-content: center; }
}

/* =====================================================
   HOMETEST1 - Cinematic Ken Burns hero
   ===================================================== */

.hero-cinematic .hero-cinematic-bg {
    background: #0a0d18;
}
.hero-cinematic-frame {
    position: absolute; inset: 0;
    overflow: hidden;
}
.hero-cinematic-frame picture,
.hero-cinematic-frame img {
    position: absolute;
    top: 50%; left: 50%;
    width: 110%; height: 110%;
    object-fit: cover;
    transform-origin: 60% 45%;
    transform: translate(-50%, -50%) scale(1.08);
    will-change: transform;
    animation:
        kenburns-zoom 32s ease-in-out infinite alternate,
        kenburns-handheld 7s ease-in-out infinite alternate;
}
.hero-cinematic-vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%),
        linear-gradient(180deg, rgba(11,16,66,0.25) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

@keyframes kenburns-zoom {
    0%   { transform: translate(-50%, -50%) scale(1.08) translate(-1.2%, 0.6%); }
    50%  { transform: translate(-50%, -50%) scale(1.22) translate(0.8%, -0.4%); }
    100% { transform: translate(-50%, -50%) scale(1.32) translate(2.0%, -1.4%); }
}

@keyframes kenburns-handheld {
    0%   { filter: none; }
    25%  { filter: none; }
    50%  { filter: none; }
    100% { filter: none; }
}

/* layered handheld jitter via second wrapper */
.hero-cinematic-frame {
    animation: handheld-rotate 9s ease-in-out infinite alternate;
    transform-origin: 50% 50%;
}
@keyframes handheld-rotate {
    0%   { transform: rotate(-0.6deg) translate(-0.3%, 0.2%); }
    33%  { transform: rotate(0.4deg)  translate(0.4%, -0.3%); }
    66%  { transform: rotate(-0.2deg) translate(-0.2%, 0.4%); }
    100% { transform: rotate(0.7deg)  translate(0.3%, -0.2%); }
}

/* darken hero text overlay slightly more for legibility on bright image */
.hero-cinematic .hero-inner {
    text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
@media (prefers-reduced-motion: reduce) {
    .hero-cinematic-frame,
    .hero-cinematic-frame img {
        animation: none !important;
    }
}

/* =====================================================
   Navbar — transparent only on pages with hero (body.has-hero)
   ===================================================== */
.navbar {
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}

body.has-hero .navbar:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
}
body.has-hero .navbar:not(.scrolled) .navbar-phone,
body.has-hero .navbar:not(.scrolled) .nav-links a,
body.has-hero .navbar:not(.scrolled) .lang-switch,
body.has-hero .navbar:not(.scrolled) .mobile-menu-label {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
body.has-hero .navbar:not(.scrolled) .navbar-phone i {
    color: #fff !important;
}
body.has-hero .navbar:not(.scrolled) .mobile-menu-toggle span {
    background: #fff !important;
}
body.has-hero .navbar:not(.scrolled) .navbar-brand-logo {
    content: url('/images/logo-light.png?v=11');
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.55));
}

/* On mobile, the slide-out menu always has a solid white background — items must be dark even on hero pages at top */
@media (max-width: 1100px) {
    body.has-hero .navbar:not(.scrolled) .nav-links a,
    body.has-hero .navbar:not(.scrolled) .nav-links .lang-switch,
    body.has-hero .navbar:not(.scrolled) .nav-links .mobile-menu-head,
    body.has-hero .navbar:not(.scrolled) .nav-links .mobile-menu-head a,
    body.has-hero .navbar:not(.scrolled) .nav-links .mobile-menu-head .mobile-menu-phone {
        color: var(--text) !important;
        text-shadow: none !important;
    }
    body.has-hero .navbar:not(.scrolled) .nav-links .mobile-menu-head .mobile-menu-phone i {
        color: var(--primary) !important;
    }
}

/* =====================================================
   Mobile optimization (post-layout fixes)
   ===================================================== */
@media (max-width: 767px) {
    /* Constrain logo */
    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
    }
    .navbar-brand img {
        height: 48px !important;
        max-height: none !important;
        max-width: calc(100vw - 160px) !important;
        width: auto !important;
        object-fit: contain;
        object-position: left center;
        transform: none !important;
    }
    .mobile-menu-toggle { flex-shrink: 0; }

    /* Hero h1 — keep readable on smallest phones */
    .hero h1 {
        font-size: 24px !important;
        letter-spacing: 0 !important;
        line-height: 1.2;
    }

    /* About-us page mobile tightening */
    .about-hero { min-height: 30vh; }
    .about-hero-inner {
        padding: 12px 16px;
    }
    .about-hero-eyebrow {
        font-size: 10px; padding: 4px 12px; letter-spacing: 0.18em; margin-bottom: 6px;
    }
    .about-hero h1 { font-size: 20px !important; }
    .about-hero-tagline { font-size: 12px; padding: 0 8px; margin: 6px auto 8px; }

    .about-story { padding: 50px 0 30px; }
    .about-story-grid { gap: 28px; }
    .about-story-aside { padding-left: 16px; }
    .about-story-year .year-num { font-size: 64px; }
    .about-story-content h2 { font-size: 26px; line-height: 1.25; }
    .about-story-content p { font-size: 15px; }

    .about-services { padding: 40px 0 60px; }
    .section-header.center { margin-bottom: 32px; }
    .section-header.center h2 { font-size: 24px; line-height: 1.25; }
    .section-header.center p { font-size: 14px; }
    .svc-card { padding: 24px 20px; }
    .svc-card h3 { font-size: 17px; }
    .svc-card p { font-size: 13.5px; }

    .about-why { padding: 50px 0; }
    .why-side h2 { font-size: 24px; }
    .why-side p { font-size: 14.5px; }
    .pillar { padding: 16px; }
    .pillar i { width: 36px; height: 36px; font-size: 14px; }

    .about-cta { padding: 40px 0 60px; }
    .cta-card { padding: 28px 20px; border-radius: 18px; }
    .cta-text h2 { font-size: 21px; }
    .cta-text p { font-size: 13.5px; }
    .cta-btn { padding: 12px 18px; font-size: 13.5px; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-btn { justify-content: center; }

    /* Pricing cards mobile */
    .svc-card .price-row { padding: 10px 0; font-size: 14px; }
    .svc-card .price-row strong { font-size: 17px; }
    .svc-card .price-note { font-size: 12.5px; padding-top: 12px; margin-top: 12px; }

    /* Page content mobile readable */
    .page-section { padding: 40px 0 50px; }
    .page-content { font-size: 14.5px; padding: 0 4px; }
    .page-content p { margin-bottom: 14px; }
}

@media (max-width: 480px) {
    .about-hero h1 { font-size: 18px !important; }
    .about-story-content h2 { font-size: 22px; }
    .about-story-year .year-num { font-size: 56px; }
    .cta-text h2 { font-size: 19px; }
    .hero h1 { font-size: 21px !important; letter-spacing: 0 !important; }
}

@media (max-width: 480px) {
    .navbar-brand img { height: 38px !important; max-height: none !important; }
}

@media (max-width: 380px) {
    .navbar-brand img { height: 34px !important; max-height: none !important; }
    .hero h1 { font-size: 19px !important; letter-spacing: 0 !important; }
    .about-hero h1 { font-size: 16px !important; }
}

/* =====================================================
   Contact page — letterhead style (matches printed letterhead)
   ===================================================== */
.contact-letter {
    padding: 90px 0 60px;
    background: #fff;
}
.contact-letter-intro {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}
.contact-letter-intro h2 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 18px;
}
.contact-letter-intro h2 .hl {
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(26,107,138,0.18) 50%, rgba(26,107,138,0.18) 100%);
    padding: 0 4px;
}
.contact-letter-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.contact-letter-note {
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b5b4b;
    background: #fdf8f2;
    border: 1px solid #e8d5c5;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 0;
    text-align: left;
}
.contact-letter-note strong { color: var(--primary); display: inline-block; margin-right: 4px; }

.contact-letter-card {
    display: flex;
    align-items: flex-end;
    gap: 36px;
    padding: 32px 36px;
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 720px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.contact-letter-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
}
.contact-letter-text p { margin: 0; }
.contact-letter-text .letter-name {
    margin-top: 6px !important;
    font-size: 17px;
}
.contact-letter-text a { color: inherit; text-decoration: none; }
.contact-letter-text a:hover { color: var(--primary); }

.contact-letter-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}
.contact-letter-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.contact-letter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-letter-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}
.contact-letter-list li > span,
.contact-letter-list li > a {
    min-width: 0;
    white-space: nowrap;
}
.contact-letter-list li > span br + * { white-space: nowrap; }
.contact-letter-list li i {
    color: var(--primary);
    font-size: 14px;
    width: 32px;
    height: 32px;
    background: rgba(26,107,138,0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-letter-list li a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}
.contact-letter-list li a:hover { color: var(--primary); }

.contact-letter-photo { flex: 0 0 140px; align-self: flex-end; }
.contact-letter-photo img {
    width: 140px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.contact-letter-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .contact-letter { padding: 50px 0 36px; }
    .contact-letter-intro { margin-bottom: 28px; }
    .contact-letter-intro h2 { font-size: 26px; }
    .contact-letter-lead { font-size: 15px; }
    .contact-letter-note { font-size: 13.5px; padding: 12px 14px; }
    .contact-letter-card {
        padding: 18px 16px;
        gap: 14px;
        border-radius: 12px;
        align-items: center;
    }
    .contact-letter-text { font-size: 13.5px; line-height: 1.55; }
    .contact-letter-list { gap: 12px; }
    .contact-letter-list li { font-size: 13.5px; gap: 10px; }
    .contact-letter-list li i {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .contact-letter-list li > span,
    .contact-letter-list li > a {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 0;
    }
    .contact-letter-text { flex: 1 1 0; min-width: 0; }
    .contact-letter-photo { flex: 0 0 80px; align-self: center; }
    .contact-letter-photo img { width: 80px; }
    .contact-letter-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }
    .contact-letter-actions .agent-btn {
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* === Old contact-agent layout (kept in case page.content uses it) === */
.contact-agent {
    padding: 100px 0 60px;
    background: #fff;
}
.agent-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 72px;
    align-items: start;
}
.agent-photo-wrap {
    position: sticky;
    top: 130px;
}
.agent-photo {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11,16,66,0.18);
    border: 6px solid #fff;
    transform: rotate(-1.2deg);
    transition: var(--transition);
    aspect-ratio: 237 / 314;
}
.agent-photo:hover {
    transform: rotate(0deg);
    box-shadow: 0 30px 70px rgba(11,16,66,0.22);
}
.agent-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}
.agent-photo-caption {
    margin-top: 22px;
    padding-left: 28px;
    border-left: 3px solid var(--primary);
}
.agent-photo-caption .about-eyebrow { margin-bottom: 6px; }
.agent-photo-caption strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.agent-photo-caption .agent-role {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.agent-info > h2 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 18px;
}
.agent-info > h2 .hl {
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(26,107,138,0.18) 50%, rgba(26,107,138,0.18) 100%);
    padding: 0 4px;
}
.agent-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 580px;
}

.agent-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.agent-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f7f8fa;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.agent-contact li:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: transparent;
    transform: translateY(-2px);
}
.agent-contact .ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-10);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}
.agent-contact li:hover .ic {
    background: var(--primary);
    color: #fff;
}
.agent-contact .lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.agent-contact a,
.agent-contact li > div > span:not(.lbl) {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
    word-break: break-word;
}
.agent-contact a:hover { color: var(--primary); }

.agent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.agent-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.agent-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26,107,138,0.28);
}
.agent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(26,107,138,0.35);
    color: #fff;
}
.agent-btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.agent-btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}

.contact-form-section {
    padding: 0 0 60px;
    background: #fff;
}
.contact-form-section .page-contact-form {
    max-width: 720px;
    margin: 0 auto;
}

/* Small Midilli emblem mark, bottom-right of contact page */
.contact-emblem {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-right: 8px;
}
.contact-emblem img {
    width: 110px;
    height: auto;
    border-radius: 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.contact-emblem img:hover {
    opacity: 1;
    transform: translateY(-2px);
}
@media (max-width: 640px) {
    .contact-emblem { margin-top: 24px; padding-right: 0; }
    .contact-emblem img { width: 88px; }
}

/* === Services grid 3-column variant (for 6 cards) === */
.services-grid.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991px) {
    .services-grid.services-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services-grid.services-grid-3 { grid-template-columns: 1fr; }
}

/* === Pricing card additions on top of svc-card === */
.svc-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
    color: var(--text-muted);
}
.svc-card .price-row:last-of-type {
    border-bottom: none;
}
.svc-card .price-row strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.svc-card .price-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}
.svc-card-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 14px 40px rgba(26,107,138,0.12);
    position: relative;
}
.svc-card-featured::before {
    transform: scaleX(1) !important;
}
.svc-card-featured .svc-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.svc-card-featured:hover .svc-icon {
    transform: rotate(-6deg);
}
.svc-card-featured .price-row strong {
    color: var(--primary);
}

@media (max-width: 991px) {
    .contact-agent { padding: 70px 0 40px; }
    .agent-grid { grid-template-columns: 280px 1fr; gap: 44px; }
    .agent-photo-wrap { position: static; }
}
@media (max-width: 640px) {
    .contact-agent { padding: 56px 0 32px; }
    .agent-grid { grid-template-columns: 1fr; gap: 32px; }
    .agent-photo-wrap { max-width: 280px; margin: 0 auto; text-align: left; }
    .agent-photo { transform: none; }
    .agent-photo:hover { transform: none; }
    .agent-info > h2 { font-size: 28px; }
    .agent-lead { font-size: 15px; margin-bottom: 26px; }
    .agent-contact { grid-template-columns: 1fr; }
    .agent-actions { flex-direction: column; }
    .agent-btn { justify-content: center; }
}


/* =============================================================
   PROPERTY DETAIL (show.html.twig) — pd-* prefix
   ============================================================= */
.pd-hero {
    background: #f7f9fb;
    padding: 24px 0 36px;
    border-bottom: 1px solid #eef1f4;
}

.pd-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pd-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.pd-breadcrumbs a:hover { color: var(--primary); }
.pd-breadcrumbs .sep { color: #c8d0d8; }
.pd-breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.pd-gallery {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20,30,45,0.08);
}
.pd-gallery .carousel,
.pd-gallery .carousel-item img,
.pd-gallery img.card-img-top {
    border-radius: 0;
    background: #000;
}
.pd-gallery .pd-photo-frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pd-gallery .pd-photo-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.6);
    transform: scale(1.15);
    z-index: 0;
}
.pd-gallery .carousel-item img,
.pd-gallery img.card-img-top {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
}
.pd-gallery .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 0;
    margin: 0 4px;
}
.pd-gallery .carousel-indicators .active { background: #fff; }
.pd-gallery .carousel-control-prev,
.pd-gallery .carousel-control-next {
    width: 8%;
    opacity: 0.85;
}

.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.pd-summary {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 22px 22px 20px;
    box-shadow: 0 2px 10px rgba(20,30,45,0.05);
}
.pd-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 12px;
}
.pd-badge-sale { background: #1A6B8A; }
.pd-badge-rent { background: #3d9ab8; }

.pd-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.pd-address {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 0 16px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}
.pd-address i {
    color: var(--primary);
    font-size: 12px;
    margin-top: 3px;
}

.pd-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.pd-price-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}
.pd-price-sqm {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.pd-quick-facts {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.pd-quick-facts li {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
}
.pd-quick-facts li i {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 4px;
}
.pd-quick-facts li strong {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.pd-quick-facts li small {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pd-agent {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 18px 22px 20px;
    box-shadow: 0 2px 10px rgba(20,30,45,0.05);
}
.pd-agent-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
}
.pd-agent-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f4f6f8;
}
.pd-agent-head > div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.pd-agent-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pd-agent-head strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.pd-agent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
    border: 1px solid transparent;
    line-height: 1;
}
.pd-btn i { font-size: 14px; }
.pd-btn-primary {
    background: var(--primary);
    color: #fff;
}
.pd-btn-primary:hover {
    background: #155a76;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(26,107,138,0.25);
}
.pd-btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.pd-btn-whatsapp:hover {
    background: #1ebb56;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37,211,102,0.30);
}
.pd-btn-ghost {
    background: #fff;
    color: var(--text);
    border-color: #d8dde2;
}
.pd-btn-ghost:hover {
    background: #f6f8fa;
    color: var(--primary);
    border-color: var(--primary);
}

/* === Body sections === */
.pd-body {
    padding: 40px 0 40px;
    background: #fff;
}
.pd-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}
.pd-panel {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 22px 24px 24px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(20,30,45,0.04);
}
.pd-panel:last-child { margin-bottom: 0; }
.pd-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -0.01em;
}
.pd-description {
    font-size: 14.5px;
    line-height: 1.65;
    color: #3a4250;
}
.pd-description p { margin: 0 0 12px; }
.pd-description p:last-child { margin-bottom: 0; }

.pd-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}
.pd-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text);
    padding: 6px 0;
}
.pd-features li i {
    color: var(--primary);
    font-size: 12px;
    width: 16px;
    flex-shrink: 0;
}

.pd-panel-map { padding: 22px 24px 18px; }
#map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(20,30,45,0.06);
}
.pd-map-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 10px 0 0;
    text-align: center;
}

.pd-details-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.pd-details-list dt,
.pd-details-list dd {
    padding: 10px 0;
    border-bottom: 1px solid #f3f3f3;
    margin: 0;
    font-size: 13.5px;
}
.pd-details-list dt {
    color: var(--text-muted);
    font-weight: 500;
}
.pd-details-list dd {
    color: var(--text);
    text-align: right;
    font-weight: 600;
}
.pd-details-list dd a {
    color: var(--primary);
    text-decoration: none;
}
.pd-details-list dd a:hover { text-decoration: underline; }
.pd-details-list .pd-details-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}
.pd-details-list dt:last-of-type,
.pd-details-list dd:last-of-type {
    border-bottom: none;
}

.pd-similar {
    padding: 36px 0 56px;
    background: #f7f9fb;
    border-top: 1px solid #eef1f4;
}
.pd-similar h4 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 28px;
}

/* === Detail responsive === */
@media (max-width: 1100px) {
    .pd-grid,
    .pd-body-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 22px;
    }
}
@media (max-width: 991px) {
    .pd-grid,
    .pd-body-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .pd-sidebar { position: static; }
    .pd-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pd-hero { padding: 16px 0 24px; }
    .pd-title { font-size: 18px; }
    .pd-price { font-size: 26px; }
    .pd-summary,
    .pd-agent,
    .pd-panel { padding: 16px 16px 18px; border-radius: 10px; }
    .pd-quick-facts { grid-template-columns: repeat(3, 1fr); }
    .pd-features { grid-template-columns: 1fr; }
    .pd-details-list { grid-template-columns: 1fr 1fr; }
    .pd-details-list dt,
    .pd-details-list dd { font-size: 12.5px; padding: 8px 0; }
    .pd-similar { padding: 28px 0 36px; }
    .pd-similar h4 { font-size: 18px; margin-bottom: 18px; }
}

/* =====================================================
   COOKIE BANNER + SETTINGS MODAL
   ===================================================== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.06);
    padding: 11px 14px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateY(160%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.06);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.cookie-banner-text {
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    margin: 0;
    flex: 1;
}
.cookie-banner-text a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    justify-content: flex-end;
}
.cookie-btn {
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
}
.cookie-btn-primary { background: var(--primary, #1a6b8a); color: #fff; }
.cookie-btn-primary:hover { background: #145771; }
.cookie-btn-secondary { background: #f1f3f6; color: #1a1a1a; }

/* Compact stack on small phones */
@media (max-width: 560px) {
    .cookie-banner { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 14px; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .cookie-btn { flex: 1; }
}
.cookie-btn-secondary:hover { background: #e6e9ee; }
.cookie-btn-ghost { background: transparent; color: #1a6b8a; border-color: transparent; }
.cookie-btn-ghost:hover { color: #145771; text-decoration: underline; }

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cookie-modal.show { display: flex; }
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 40, 0.55);
    backdrop-filter: blur(2px);
}
.cookie-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    padding: 26px 26px 22px;
}
.cookie-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #6c7280;
    border-radius: 50%;
}
.cookie-modal-close:hover { background: #f1f3f6; color: #1a1a1a; }
.cookie-modal h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}
.cookie-modal-intro {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0 0 16px;
}
.cookie-category {
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.cookie-category-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1a1a;
}
.cookie-category-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: #5a6270;
    margin: 0;
}
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: #cdd3dc;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cookie-switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
}
.cookie-switch input:checked + .cookie-switch-slider { background: var(--primary, #1a6b8a); }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(18px); }
.cookie-switch input:disabled + .cookie-switch-slider {
    background: #b6e4b8;
    opacity: 0.85;
    cursor: not-allowed;
}
.cookie-switch input:disabled + .cookie-switch-slider::before { background: #fff; }
.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
}
.cookie-locked-label {
    font-size: 12px;
    color: #1a6b8a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 540px) {
    .cookie-banner { padding: 18px; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; min-width: 0; padding: 11px 10px; font-size: 13px; }
    .cookie-modal-actions .cookie-btn { flex: 1; min-width: 0; }
}

/* =====================================================
   LEGAL PAGES (privacy / cookies / terms)
   ===================================================== */
.legal-container {
    padding: calc(var(--navbar-h) + 36px) 0 60px;
    background: #fafbfc;
    min-height: 100vh;
}
.legal-container .container { max-width: 880px; }
.legal-container h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.2;
}
.legal-updated {
    color: #6c7280;
    font-size: 13px;
    margin: 0 0 26px;
}
.legal-container h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 12px;
    line-height: 1.3;
}
.legal-container h3 {
    font-size: 17px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 22px 0 10px;
}
.legal-container p,
.legal-container li {
    font-size: 15px;
    line-height: 1.65;
    color: #2f3640;
}
.legal-container ul {
    padding-left: 22px;
    margin: 8px 0 14px;
}
.legal-container li { margin-bottom: 6px; }
.legal-container a { color: var(--primary, #1a6b8a); text-decoration: underline; }
.legal-container a:hover { color: #145771; }
.legal-container strong { color: #1a1a1a; }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e6e9ee;
}
.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f4;
    font-size: 13.5px;
    line-height: 1.5;
    vertical-align: top;
}
.legal-table th {
    background: #f4f6f9;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.legal-table tr:last-child td { border-bottom: none; }

.legal-link-btn {
    background: none;
    border: none;
    color: var(--primary, #1a6b8a);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
.legal-link-btn:hover { color: #145771; }

@media (max-width: 768px) {
    .legal-container { padding: calc(var(--navbar-h) + 24px) 0 40px; }
    .legal-container h1 { font-size: 26px; }
    .legal-container h2 { font-size: 19px; margin-top: 26px; }
    .legal-container h3 { font-size: 16px; }
    .legal-container p,
    .legal-container li { font-size: 14.5px; }
    .legal-table th,
    .legal-table td { font-size: 12.5px; padding: 8px 10px; }
}

/* =====================================================
   FOOTER LEGAL LINKS
   ===================================================== */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.footer-legal a,
.footer-legal button {
    color: rgba(255,255,255,0.75);
    font-size: 12.5px;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.footer-legal a:hover,
.footer-legal button:hover { color: #fff; text-decoration: underline; }
.footer-legal-sep {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

/* Contact page: legal company info section */
.contact-legal-info {
    background: #f4f6f9;
    padding: 36px 0 44px;
    margin-top: 30px;
    border-top: 1px solid #e6e9ee;
}
.contact-legal-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 24px;
}
.contact-legal-list li {
    font-size: 14px;
    color: #2f3640;
    padding: 6px 0;
}
.contact-legal-list strong {
    color: #1a1a1a;
    margin-right: 6px;
}
