/* ==========================================================================
   SVAR Real Estate (real-estate.php and property.php). Shared look: base.css.
   Accent: terracotta.
   ========================================================================== */
:root {
    --accent: var(--clay);
    --accent-ink: var(--clay-ink);
    --accent-light: var(--clay-light);
    --accent-soft: var(--clay-soft);
    --on-accent: #ffffff;
}

/* ==========================================================================
   1. Tabs (pure CSS switching). The radios are visually hidden (not
   display:none) so they stay keyboard-focusable.
   ========================================================================== */
.tab-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.nav-tabs { display: flex; list-style: none; gap: 0; }
.nav-tabs label {
    display: inline-block;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 9px 13px;
    border-radius: var(--pill);
    white-space: nowrap;
    transition: color .45s var(--ease), background-color .45s var(--ease);
}
.nav-tabs label:hover { color: var(--ink); background: rgba(20, 24, 31, 0.06); }
.nav-tabs .nav-back { display: none; }

#tab-home:checked ~ header .nav-tabs label[for="tab-home"],
#tab-property:checked ~ header .nav-tabs label[for="tab-property"],
#tab-projects:checked ~ header .nav-tabs label[for="tab-projects"],
#tab-branches:checked ~ header .nav-tabs label[for="tab-branches"],
#tab-services:checked ~ header .nav-tabs label[for="tab-services"],
#tab-about:checked ~ header .nav-tabs label[for="tab-about"],
#tab-contact:checked ~ header .nav-tabs label[for="tab-contact"] {
    color: var(--ink);
    background: rgba(20, 24, 31, 0.07);
}

#tab-home:focus-visible ~ header .nav-tabs label[for="tab-home"],
#tab-property:focus-visible ~ header .nav-tabs label[for="tab-property"],
#tab-projects:focus-visible ~ header .nav-tabs label[for="tab-projects"],
#tab-branches:focus-visible ~ header .nav-tabs label[for="tab-branches"],
#tab-services:focus-visible ~ header .nav-tabs label[for="tab-services"],
#tab-about:focus-visible ~ header .nav-tabs label[for="tab-about"],
#tab-contact:focus-visible ~ header .nav-tabs label[for="tab-contact"] {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.back-link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 24, 31, 0.18); }

/* ==========================================================================
   2. Panels and sections
   ========================================================================== */
.tab-panel { display: none; }

#tab-home:checked ~ main #panel-home,
#tab-property:checked ~ main #panel-property,
#tab-projects:checked ~ main #panel-projects,
#tab-branches:checked ~ main #panel-branches,
#tab-services:checked ~ main #panel-services,
#tab-about:checked ~ main #panel-about,
#tab-contact:checked ~ main #panel-contact {
    display: block;
    animation: panelIn 0.7s var(--ease);
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

section { padding: 88px 24px; max-width: 1288px; margin: 0 auto; }
#panel-property, #panel-projects, #panel-branches, #panel-services { padding-top: 0; padding-bottom: 0; }
#panel-home { max-width: none; padding: 0; }

.section-title { margin-bottom: 34px; max-width: 680px; }
.section-title h2 { font-size: clamp(36px, 4vw, 54px); margin: 14px 0 12px; }
.section-title p { color: var(--muted); font-size: 17px; }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-title-row .section-title { margin-bottom: 0; }
.home-section { max-width: 1288px; }
.home-band { max-width: none; }
.home-band > * { max-width: 1240px; margin-inline: auto; }

/* ==========================================================================
   3. Home: photo in a rounded frame under the glass menu, glass search bar
   ========================================================================== */
.hero {
    position: relative;
    margin: var(--under-header) 10px 0;
    min-height: min(88vh, 780px);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: var(--on-ink);
    padding: calc(var(--header-h) + var(--header-gap) + 40px) 48px 150px;
    background:
        linear-gradient(180deg, rgba(20, 24, 31, 0.18) 0%, rgba(20, 24, 31, 0.08) 35%, rgba(20, 24, 31, 0.72) 100%),
        var(--hero-img, none) center/cover no-repeat,
        var(--onyx);
}
/* No hero photo uploaded: a deep terracotta background (the real estate
   colour), with a warm glow and a hint of brass */
.hero.hero-plain {
    background:
        radial-gradient(circle at 80% 15%, rgba(214, 120, 84, 0.45), transparent 55%),
        radial-gradient(circle at 8% 92%, rgba(176, 138, 78, 0.22), transparent 50%),
        linear-gradient(160deg, #5a2a1b 0%, #3b1c13 50%, #24130e 100%);
}
.hero.hero-plain .hero-monogram { color: rgba(240, 201, 184, 0.13); }
.hero.hero-plain h1 span { color: var(--brass-light); }
.hero-monogram {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: clamp(140px, 22vw, 340px);
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(226, 199, 150, 0.12);
    pointer-events: none;
    user-select: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; width: 100%; margin: 0 auto; }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); max-width: 860px; margin-bottom: 16px; color: #fff; animation: rise 1.1s var(--ease) .1s both; }
.hero h1 span { color: var(--clay-light); font-style: italic; }
.hero p { font-size: 18px; max-width: 560px; color: rgba(244, 239, 230, 0.86); margin-bottom: 24px; animation: rise 1.1s var(--ease) .22s both; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; animation: rise 1.1s var(--ease) .34s both; }

.hero-search {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    width: calc(100% - 100px);
    margin: -112px auto 0;
    padding: 8px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr auto;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 20px 50px rgba(20, 24, 31, 0.18);
    animation: rise 1.1s var(--ease) .45s both;
}
.hero-search.has-kind { grid-template-columns: 1fr 1fr 1.3fr 1fr auto; }
.hs-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 18px;
    border-radius: 22px;
    cursor: text;
    transition: background-color .45s var(--ease);
}
.hs-field:hover, .hs-field:focus-within { background: rgba(255, 255, 255, 0.9); }
.hs-field span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.hs-field input, .hs-field select {
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    padding: 2px 0;
    width: 100%;
    outline: none;
}
.hs-field select { cursor: pointer; }
.hs-field input::placeholder { color: #9b9282; font-weight: 500; }
.hero-search .btn { padding: 0 30px; min-height: 60px; border-radius: 24px; }

.center-cta { text-align: center; margin-top: 32px; }

/* ==========================================================================
   4. Property list: type chips, filters, cards
   ========================================================================== */
.type-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    background: var(--white);
    padding: 10px;
    border-radius: 26px;
    margin-bottom: 14px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.filters input[type="search"],
.filters input[type="number"],
.filters select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    background: var(--stone);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.filters input::placeholder { color: #8f887a; font-weight: 500; }
.filters input:focus, .filters select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 5px var(--accent-soft);
}
.filters select { cursor: pointer; }
.filters #fSearch { grid-column: span 2; }
.filters-row2 { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 2px 8px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.btn-reset {
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 7px 16px;
    border-radius: var(--pill);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .4s var(--ease);
}
.btn-reset:hover { border-color: var(--ink); }

.results-count { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 6px 22px; }
.no-results, .empty-note { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

.filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.filters-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

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

.property-card {
    background: var(--white);
    border-radius: 28px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1s var(--ease);
}
.property-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(20, 24, 31, 0.14); }
.js-motion .property-card[data-reveal]:not(.is-visible) { transform: translateY(26px); }

.property-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--stone-2);
    border-radius: 21px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.property-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.property-card:hover .property-image img { transform: scale(1.07); }

/* Placeholder when a listing has no photo yet */
.img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8f8574;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #e6dfd1 0%, #cfc3ae 100%);
}

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: var(--pill);
    background: var(--white);
    color: var(--ink);
    line-height: 1.3;
}
.card-tag {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
.tag-sale { color: var(--ink); }
.card-tag.tag-rent, .tag-rent { background: var(--clay); border-color: var(--clay); color: #fff; }
.tag-sold, .tag-rented { background: var(--onyx); color: var(--on-ink); }

.price-wrap { display: flex; flex-direction: column; }
.property-details { padding: 14px 12px 8px; display: flex; flex-direction: column; flex: 1; }
.property-details .price { font-family: var(--font-serif); font-size: 30px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; }
.property-details .price span { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.property-details .kind { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-top: 6px; }
.pp-head .kind { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-top: 12px; }
.property-details h3 { font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.property-details h3 a { color: inherit; text-decoration: none; transition: color .4s var(--ease); }
.property-details h3 a:hover { color: var(--accent-ink); }
.property-details .location { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.property-details .location svg { width: 15px; height: 15px; flex: none; }

.property-card.is-unavailable .property-image { filter: grayscale(70%); }
.property-card.is-unavailable .img-fallback > * { visibility: hidden; }
.property-card.is-unavailable .property-details h3,
.property-card.is-unavailable .property-details .price { color: #9a9383; }
.unavailable-stamp {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 31, 0.5);
    color: var(--on-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 30px;
    font-style: italic;
    z-index: 1;
}

.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.spec { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--pill); background: var(--stone); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.spec svg { color: var(--muted); flex: none; width: 15px; height: 15px; }
.spec b { font-weight: 700; color: var(--ink); }

.photo-count {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--pill);
}
.photo-count svg { width: 14px; height: 14px; }

.view-hint {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 34px 16px 14px;
    text-align: start;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(20, 24, 31, 0.6));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.property-card:hover .view-hint { opacity: 1; transform: none; }
@media (hover: none) { .view-hint { display: none; } }

.card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.btn-viewing {
    flex: 1;
    background: var(--ink);
    color: var(--white);
    border: 0;
    border-radius: var(--pill);
    padding: 13px 16px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: background-color .5s var(--ease);
}
.btn-viewing:hover { background: var(--accent); }
.btn-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.btn-icon:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa-green); color: #fff; }
.btn-call { background: var(--stone); color: var(--ink); }
.btn-call:hover { background: var(--stone-2); }

/* ==========================================================================
   5. Projects
   ========================================================================== */
.projects-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card {
    background: var(--white);
    border-radius: 28px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-image { position: relative; background: var(--stone-2); min-height: 240px; border-radius: 21px; overflow: hidden; }
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.06); }
.project-info { padding: 20px 18px; }
.project-info .status { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--pill); margin-bottom: 14px; }
.project-info .status.status-completed { background: #e3f1e8; color: var(--ok); }
.project-info .status.status-ongoing { background: var(--brass-soft); color: var(--brass-ink); }
.project-info h3 { font-family: var(--font-serif); font-size: 30px; font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
html[dir="rtl"] .project-info h3 { font-family: var(--font-arabic); font-size: 21px; font-weight: 600; }
.project-info p { font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   6. Branches and services
   ========================================================================== */
.branches-grid, .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.branch-card, .service-card {
    background: var(--white);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1s var(--ease);
}
.branch-card:hover, .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.branch-card { padding: 30px 28px; }
.branch-card h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; line-height: 1.1; margin-bottom: 16px; }
html[dir="rtl"] .branch-card h3 { font-family: var(--font-arabic); font-size: 20px; font-weight: 600; }
.branch-card p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.branch-card p strong { color: var(--ink); font-weight: 600; }
.branch-card a.tel-link, .contact-item a { color: inherit; text-decoration: none; font-weight: 500; }
.branch-card a.tel-link:hover { color: var(--accent-ink); }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--pill);
    background: var(--stone);
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .45s var(--ease);
}
.btn-chip svg { width: 16px; height: 16px; color: var(--accent); }
.btn-chip:hover { background: var(--stone-2); }

.service-card { padding: 34px 28px; }
.service-card .icon-box {
    width: 56px;
    height: 56px;
    background: var(--accent-soft);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-weight: 700;
    color: var(--accent-ink);
    font-size: 18px;
    transition: transform .7s var(--ease);
}
.service-card:hover .icon-box { transform: scale(1.06) rotate(-4deg); }
.service-card .icon-box svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
html[dir="rtl"] .service-card h3 { font-family: var(--font-arabic); font-size: 20px; font-weight: 600; }
.service-card p { font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   7. About
   ========================================================================== */
.about-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about-text h2 { font-size: clamp(36px, 4vw, 54px); margin: 14px 0 20px; }
.about-text p { margin-bottom: 14px; color: var(--muted); font-size: 17px; }
.about-img { border-radius: var(--r-lg); overflow: hidden; }
.about-photo { width: 100%; min-height: 440px; max-height: 560px; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.about-img:hover .about-photo { transform: scale(1.04); }

/* ==========================================================================
   8. Contact (info + inquiry form)
   ========================================================================== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: 34px;
    box-shadow: var(--shadow-sm);
}
.contact-info-panel {
    background:
        radial-gradient(circle at 90% 0%, rgba(166, 73, 43, 0.28), transparent 55%),
        var(--onyx);
    color: var(--on-ink);
    padding: 52px 46px;
    border-radius: 26px;
}
.contact-info-panel .eyebrow { color: var(--clay-light); }
.contact-info-panel h2 { font-size: clamp(36px, 3.6vw, 50px); margin: 14px 0 14px; }
.contact-info-panel > p { color: var(--on-ink-muted); }
.contact-info-panel a:focus-visible { outline-color: var(--on-ink); }
.contact-details { margin-top: 32px; }
.contact-item { margin-bottom: 18px; }
.contact-item strong { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--on-ink-muted); margin-bottom: 2px; }
.contact-item a { transition: color .4s var(--ease); }
.contact-item a:hover { color: var(--clay-light); }
.contact-item ul { list-style: none; }
.contact-item li { padding: 1px 0; }
.contact-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--pill);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill.wa   { background: var(--wa-green); }
.btn-pill.call { background: rgba(244, 239, 230, 0.1); border: 1px solid rgba(244, 239, 230, 0.3); }

.contact-form-panel { padding: 48px 46px; }
.contact-form-panel h3, .modal-body h4 { font-family: var(--font-serif); font-size: 34px; font-weight: 400; line-height: 1.1; margin-bottom: 20px; }
html[dir="rtl"] .contact-form-panel h3, html[dir="rtl"] .modal-body h4 { font-family: var(--font-arabic); font-size: 23px; font-weight: 600; }

/* ==========================================================================
   9. Dialogs (viewing request + property details)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 24, 31, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal.open { display: flex; animation: fadeIn .4s var(--ease); }
.modal.open .modal-box { animation: popIn .6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow: auto;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform .5s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-media { position: relative; min-height: 300px; background: var(--stone-2); }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 32px; }
.modal-body .tag, .details-body .tag { margin-bottom: 10px; background: var(--stone); }
.modal-body .tag.tag-rent, .details-body .tag.tag-rent { background: var(--clay); }
.modal-body .tag.tag-sold, .modal-body .tag.tag-rented,
.details-body .tag.tag-sold, .details-body .tag.tag-rented { background: var(--onyx); color: var(--on-ink); }
.modal-body h3 { font-family: var(--font-serif); font-size: 34px; font-weight: 400; line-height: 1.1; margin-bottom: 4px; }
html[dir="rtl"] .modal-body h3 { font-family: var(--font-arabic); font-size: 24px; font-weight: 600; }
.modal-body .m-loc { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.modal-body .m-price { font-family: var(--font-serif); font-size: 30px; margin-bottom: 20px; }
.modal-alt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.modal-alt .btn-pill.call, .details-actions .btn-pill.call { background: var(--stone); border: 0; color: var(--ink); }

.details-box { display: block; max-width: 980px; }
.gallery { position: relative; aspect-ratio: 16 / 9; background: var(--onyx); }
.gallery-main, .gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-main img { object-fit: contain; animation: fadeIn .5s var(--ease); }
.gallery-main .img-fallback { color: #8f8574; }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: transform .5s var(--ease);
}
.gallery-nav:hover { transform: translateY(-50%) scale(1.06); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { inset-inline-start: 16px; }
.gallery-nav.next { inset-inline-end: 16px; }
html[dir="rtl"] .gallery-nav svg { transform: scaleX(-1); }
.gallery-nav[hidden], .btn-pill[hidden] { display: none; }
.gallery-counter {
    position: absolute;
    bottom: 16px;
    inset-inline-end: 16px;
    padding: 5px 13px;
    border-radius: var(--pill);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}
.gallery-counter:empty { display: none; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--white); }
.gallery-thumbs:empty { display: none; }
.gallery-thumbs button {
    flex: 0 0 88px;
    height: 62px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: var(--stone);
    opacity: 0.6;
    transition: opacity .45s var(--ease), border-color .45s var(--ease);
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.details-body { padding: 28px 32px 32px; }
.details-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.details-body h3 { font-family: var(--font-serif); font-size: 38px; font-weight: 400; line-height: 1.05; margin-bottom: 6px; }
html[dir="rtl"] .details-body h3 { font-family: var(--font-arabic); font-size: 26px; font-weight: 600; }
.details-body .m-loc { color: var(--muted); font-size: 15px; }
.details-body .m-price { font-family: var(--font-serif); font-size: 36px; white-space: nowrap; }

/* Key facts as soft pills (dialog and listing page) */
.details-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.details-specs:empty { display: none; }
.details-specs .spec-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    border-radius: var(--pill);
    background: var(--stone);
}
html[dir="rtl"] .details-specs .spec-box { padding: 10px 12px 10px 18px; }
.details-specs .spec-box svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.details-specs .spec-box small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.details-specs .spec-box b { font-size: 16px; font-weight: 700; }
.pp-grid .details-specs .spec-box { background: var(--white); }
.details-desc { margin-top: 20px; }
.details-desc h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.details-desc p { color: var(--ink-2); white-space: pre-line; }
.details-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.details-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .4s var(--ease);
}
.link-btn svg { width: 16px; height: 16px; color: var(--accent); }
.link-btn:hover { color: var(--accent-ink); }

/* Floating WhatsApp button */
.wa-float {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: transform .6s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   10. Listing page (property.php)
   ========================================================================== */
.pp-links { display: flex; gap: 0; list-style: none; }
.pp-links a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 13px; border-radius: var(--pill); transition: background-color .45s var(--ease); }
.pp-links a:hover { color: var(--ink); background: rgba(20, 24, 31, 0.06); }
.pp-back svg { width: 16px; height: 16px; }
html[dir="rtl"] .pp-back svg { transform: scaleX(-1); }

.pp-main { max-width: 1288px; margin: 0 auto; padding: 18px 24px 88px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pp-notice { background: var(--brass-soft); color: var(--brass-ink); padding: 14px 20px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; }

/* Photo mosaic: one large photo and up to four small ones */
.pp-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: min(62vh, 560px);
    margin-bottom: 34px;
    animation: rise 1s var(--ease) both;
}
.pp-mosaic[data-count="3"] { grid-template-columns: 2fr 1fr; }
.pp-mosaic[data-count="4"] { grid-template-columns: 2fr 1fr 1fr; }
.pp-mosaic[data-count="4"] .pp-tile:nth-child(4) { grid-column: 2 / 4; }
.pp-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--stone-2);
}
.pp-tile:first-child { grid-row: 1 / 3; border-start-start-radius: 28px; border-end-start-radius: 28px; }
.pp-mosaic[data-count="3"] .pp-tile:nth-child(2), .pp-mosaic[data-count="4"] .pp-tile:nth-child(3), .pp-mosaic[data-count="5"] .pp-tile:nth-child(3) { border-start-end-radius: 28px; }
.pp-mosaic .pp-tile:last-child { border-end-end-radius: 28px; }
.pp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pp-tile:hover img { transform: scale(1.06); }
.pp-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 24, 31, 0.45);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 32px;
}
.pp-all-photos { position: absolute; z-index: 2; }

/* Slider: inline when a listing has one or two photos, full screen behind the mosaic otherwise */
.pp-gallery { border-radius: 28px; overflow: hidden; background: var(--onyx); margin-bottom: 34px; animation: rise 1s var(--ease) both; }
.pp-gallery .gallery { aspect-ratio: 21 / 9; }
.pp-gallery .gallery-thumbs { padding: 10px 0 0; background: var(--stone); }
.pp-gallery:has(.gallery-thumbs:not(:empty)) { background: transparent; }
.pp-gallery:has(.gallery-thumbs:not(:empty)) .gallery { border-radius: 28px; overflow: hidden; }
.pp-gallery.is-unavailable .gallery-main img, .pp-mosaic.is-unavailable img { filter: grayscale(60%); }

.pp-gallery.is-lightbox,
.pp-gallery.is-lightbox:has(.gallery-thumbs:not(:empty)) {
    position: fixed;
    inset: 0;
    z-index: 1200;
    margin: 0;
    border-radius: 0;
    background: rgba(14, 16, 20, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 4vw 20px;
    animation: fadeIn .4s var(--ease);
}
.pp-gallery.is-lightbox[hidden] { display: none !important; }
.pp-gallery.is-lightbox .gallery,
.pp-gallery.is-lightbox:has(.gallery-thumbs:not(:empty)) .gallery { aspect-ratio: auto; flex: 1; background: transparent; border-radius: 0; }
.pp-gallery.is-lightbox .gallery-thumbs { background: transparent; justify-content: center; padding-top: 14px; }
.pp-lightbox-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform .5s var(--ease);
}
.pp-lightbox-close:hover { transform: rotate(90deg); }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pp-head .tag { background: var(--white); }
.pp-head .tag.tag-rent { background: var(--clay); }
.pp-head .tag.tag-sold, .pp-head .tag.tag-rented { background: var(--onyx); color: var(--on-ink); }
.pp-head h1 { font-size: clamp(40px, 4.6vw, 68px); margin: 14px 0 10px; }
.pp-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 16px; font-weight: 500; }
.pp-loc svg { color: var(--accent); }
.pp-section { margin-top: 36px; padding: 0; }
.pp-section h2 { font-size: 34px; margin-bottom: 12px; }
.pp-desc { color: var(--ink-2); white-space: pre-line; font-size: 16.5px; line-height: 1.85; }

/* Side card: dark price block, then branch and the viewing form */
.pp-side { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 16px); background: var(--white); border-radius: 30px; padding: 8px; box-shadow: var(--shadow); }
.pp-buy {
    background:
        radial-gradient(circle at 100% 0%, rgba(176, 138, 78, 0.28), transparent 60%),
        var(--onyx);
    color: var(--on-ink);
    border-radius: 24px;
    padding: 24px 24px 20px;
}
.pp-price { font-family: var(--font-serif); font-size: 46px; font-weight: 400; line-height: 1.05; }
.pp-price span { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--on-ink-muted); }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.pp-actions .btn-pill { flex: 1 1 120px; justify-content: center; }
.pp-actions .btn-pill.call { background: transparent; border: 1px solid rgba(244, 239, 230, 0.3); color: var(--on-ink); }
.pp-actions .link-btn { color: var(--on-ink); }
.pp-actions .link-btn svg { color: var(--brass-light); }
.pp-actions .link-btn:hover { color: var(--brass-light); }
.pp-print-btn:hover { color: var(--brass-light); }
.pp-side-body { padding: 20px 18px 16px; }
.pp-branch { display: flex; flex-direction: column; gap: 3px; margin-bottom: 22px; padding: 16px 18px; border-radius: 20px; background: var(--stone); font-size: 14px; }
.pp-branch b { font-size: 15.5px; font-weight: 600; }
.pp-branch a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; font-weight: 500; }
.pp-branch a:hover { color: var(--accent-ink); }
.pp-branch a svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.pp-branch-hours { color: var(--muted); }
.pp-side h3 { font-family: var(--font-serif); font-size: 30px; font-weight: 400; line-height: 1.1; margin-bottom: 6px; }
html[dir="rtl"] .pp-side h3 { font-family: var(--font-arabic); font-size: 21px; font-weight: 600; }
.pp-side-text { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.pp-side .inq-form .btn { justify-self: stretch; }
.pp-similar { margin-top: 88px; padding: 0; }

/* Phones: price and "Request Viewing" stay pinned to the bottom */
.pp-bookbar { display: none; }

@media (max-width: 900px) {
    .pp-grid { grid-template-columns: 1fr; gap: 28px; }
    .pp-side { position: static; }
    .pp-links { display: none; }
    .pp-back { padding: 10px 12px; }
    .pp-back span { display: none; }
    .pp-main { padding: 12px 12px 110px; }
    .pp-mosaic { height: 62vw; min-height: 260px; grid-template-columns: 2fr 1fr; gap: 6px; margin-bottom: 26px; }
    .pp-mosaic .pp-tile:nth-child(n+4) { display: none; }
    .pp-mosaic[data-count="4"] .pp-tile:nth-child(4) { grid-column: auto; }
    .pp-mosaic .pp-tile:nth-child(3) { border-end-end-radius: 22px; }
    .pp-tile:first-child { border-start-start-radius: 22px; border-end-start-radius: 22px; }
    .pp-gallery, .pp-gallery:has(.gallery-thumbs:not(:empty)) .gallery { border-radius: 22px; }
    .pp-gallery .gallery { aspect-ratio: 4 / 3; }
    .pp-gallery.is-lightbox { padding: 64px 0 16px; }
    .pp-bookbar {
        display: flex;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 950;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 8px 8px 20px;
        border-radius: var(--pill);
        background: rgba(20, 24, 31, 0.92);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        color: var(--on-ink);
        box-shadow: 0 16px 40px rgba(20, 24, 31, 0.3);
        animation: rise .8s var(--ease) .4s both;
    }
    html[dir="rtl"] .pp-bookbar { padding: 8px 20px 8px 8px; }
    .pp-bookbar b { font-family: var(--font-serif); font-size: 24px; font-weight: 400; white-space: nowrap; }
    .pp-bookbar b span { font-family: var(--font); font-size: 12px; color: var(--on-ink-muted); }
    .pp-bookbar .btn { padding: 12px 18px; background: var(--brass); color: var(--onyx); }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
/* Header: below 1180px the tabs move into a glass drop-down opened by ☰ */
@media (max-width: 1180px) {
    .menu-toggle { display: inline-flex; }
    .back-link-desktop { display: none; }
    .nav-tabs {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--glass-border);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h) - 40px);
        overflow-y: auto;
    }
    header.menu-open .nav-tabs { display: flex; animation: rise .5s var(--ease) both; }
    .nav-tabs label { display: block; padding: 13px 16px; font-size: 16px; border-radius: 16px; }
    .nav-tabs .nav-back { display: block; margin-top: 8px; }
    .nav-tabs .nav-back .back-link { display: flex; justify-content: center; padding: 13px 16px; font-size: 15px; }
}

@media (max-width: 1000px) {
    .filters { grid-template-columns: 1fr 1fr; }
    .filters input[type="search"] { grid-column: 1 / -1; }
    .property-grid, .branches-grid, .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .hero-search, .hero-search.has-kind { grid-template-columns: 1fr 1fr; width: calc(100% - 64px); border-radius: 28px; }
    .hero-search .btn { grid-column: 1 / -1; min-height: 52px; }
    .hero { padding-bottom: 210px; }
    .hero-search { margin-top: -190px; }
}

@media (max-width: 900px) {
    .projects-list { grid-template-columns: 1fr; }
    .about-wrap, .contact-wrap, .modal-box { grid-template-columns: 1fr; }
    .about-wrap { gap: 36px; }
    .modal-media { min-height: 220px; }
}

@media (max-width: 768px) {
    section { padding: 64px 14px; }
    .hero { margin: var(--under-header) 6px 0; min-height: 92vh; border-radius: 24px; padding: calc(var(--header-h) + var(--header-gap) + 30px) 22px 250px; }
    .hero p { font-size: 16px; }
    .hero-search, .hero-search.has-kind { width: calc(100% - 36px); margin-top: -232px; border-radius: 24px; padding: 6px; }
    .hs-field { padding: 10px 12px; min-width: 0; border-radius: 18px; }
    .hero-search .btn { border-radius: 18px; }
    .section-title p { font-size: 16px; }
    .about-photo { min-height: 280px; }
    .contact-wrap { padding: 6px; border-radius: 26px; }
    .contact-info-panel, .contact-form-panel { padding: 32px 22px; border-radius: 22px; }

    /* Phones: search + a "Filters" button; the rest opens on demand */
    .type-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 0 14px 4px; scrollbar-width: none; }
    .type-chips::-webkit-scrollbar { display: none; }
    .filters { display: flex; flex-wrap: wrap; padding: 8px; gap: 8px; border-radius: 24px; }
    .filters input[type="search"] { flex: 1 1 0; min-width: 0; }
    .filters-toggle { display: inline-flex; flex: none; }
    .filters > :not(#fSearch):not(.filters-toggle) { display: none; }
    .filters.is-open > #fType,
    .filters.is-open > #fSort { display: block; flex: 1 1 100%; }
    .filters.is-open > #fMin,
    .filters.is-open > #fMax,
    .filters.is-open > #fKind,
    .filters.is-open > #fCity { display: block; flex: 1 1 40%; min-width: 0; }
    #filters.is-open > .filters-row2 { display: flex; flex: 1 1 100%; }
    #fSort { order: 5; }
    .filters-row2 { order: 6; }
    .filters-toggle[aria-expanded="true"] { border-color: var(--ink); }

    .modal { padding: 10px; }
    .modal-box { border-radius: 24px; }
    .modal-body, .details-body { padding: 24px 18px; }
    .details-body h3 { font-size: 30px; }
    .details-body .m-price { font-size: 28px; }
    .gallery { aspect-ratio: 4 / 3; }
    .details-actions .btn { flex: 1 1 100%; }
    .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
}

@media (max-width: 640px) {
    .property-grid, .branches-grid, .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .project-card { grid-template-columns: 1fr; }
    .project-image { min-height: 220px; }
}

/* ==========================================================================
   12. Printable property sheet (Print flyer)
   ========================================================================== */
.print-header { display: none; }

@media print {
    @page { size: A4 portrait; margin: 12mm 15mm; }

    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
    }
    body { background: #fff !important; color: #14181f !important; font-size: 11pt; line-height: 1.5; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }

    header, .navbar, .crumbs, .lang-switcher, .pp-links, .pp-back, .pp-actions,
    .inq-form, #viewingForm, .pp-similar, footer, .wa-float, .gallery-nav,
    .gallery-thumbs, .gallery-counter, .view-hint, .pp-side h3, .pp-side-text,
    .pp-bookbar, .pp-lightbox-close, .pp-more {
        display: none !important;
    }
    /* The mosaic prints as its large photo only */
    .pp-mosaic { display: block !important; height: auto !important; margin-bottom: 14px !important; }
    .pp-mosaic .pp-tile { display: none !important; }
    .pp-mosaic .pp-tile:first-child { display: block !important; position: relative !important; height: 300px !important; border-radius: 8px !important; border: 1px solid #ccc !important; }
    .pp-gallery.is-lightbox { display: none !important; }

    .print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        padding-bottom: 12px;
        margin-bottom: 18px;
        border-bottom: 2pt solid #a6492b;
    }
    .print-brand { display: flex; flex-direction: column; }
    .print-logo { font-family: var(--font-serif); font-size: 24pt; color: #14181f !important; line-height: 1; }
    .print-brand b { font-size: 11pt; color: #a6492b !important; text-transform: uppercase; letter-spacing: 1.5px; }
    .print-brand small { font-size: 8pt; color: #6a645a !important; margin-top: 2px; }
    .print-meta { text-align: end; font-size: 9pt; color: #444 !important; }

    .pp-main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    .pp-gallery { margin-bottom: 14px !important; border-radius: 8px !important; }
    .pp-gallery .gallery { aspect-ratio: 16 / 9 !important; max-height: 320px !important; border: 1px solid #ccc !important; border-radius: 8px !important; overflow: hidden !important; }
    .gallery-main img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

    .pp-grid { display: grid !important; grid-template-columns: 1.6fr 1fr !important; gap: 20px !important; }
    .pp-head h1 { font-size: 22pt !important; margin: 6px 0 !important; color: #14181f !important; }
    .pp-loc { font-size: 10pt !important; color: #555 !important; }
    .details-specs { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; margin: 12px 0 !important; }
    .spec-box { border: 1px solid #ddd !important; border-radius: 6px !important; padding: 6px !important; font-size: 9pt !important; }
    .pp-desc { font-size: 9.5pt !important; line-height: 1.6 !important; color: #333 !important; }

    .pp-side { position: static !important; border: 1px solid #ddd !important; border-radius: 8px !important; padding: 14px !important; break-inside: avoid; }
    .pp-buy { padding: 0 !important; }
    .pp-price { font-size: 22pt !important; color: #14181f !important; border-bottom: 1px solid #ddd !important; padding-bottom: 10px !important; margin-bottom: 10px !important; }
    .pp-side-body { padding: 0 !important; }
    .pp-branch { border-top: 1px solid #eee !important; padding-top: 10px !important; margin-top: 10px !important; font-size: 9pt !important; }
    .pp-grid, .pp-head, .pp-desc, .pp-side { break-inside: avoid; }
}

/* ==========================================================================
   13. Dark mode
   ========================================================================== */
html.dark .nav-tabs label:hover,
html.dark #tab-home:checked ~ header .nav-tabs label[for="tab-home"],
html.dark #tab-property:checked ~ header .nav-tabs label[for="tab-property"],
html.dark #tab-projects:checked ~ header .nav-tabs label[for="tab-projects"],
html.dark #tab-branches:checked ~ header .nav-tabs label[for="tab-branches"],
html.dark #tab-services:checked ~ header .nav-tabs label[for="tab-services"],
html.dark #tab-about:checked ~ header .nav-tabs label[for="tab-about"],
html.dark #tab-contact:checked ~ header .nav-tabs label[for="tab-contact"],
html.dark .pp-links a:hover { background: rgba(255, 255, 255, 0.08); }
html.dark .back-link { background: var(--ink); color: var(--onyx); }

html.dark .hero-search { background: rgba(28, 32, 39, 0.82); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
html.dark .hs-field:hover, html.dark .hs-field:focus-within { background: rgba(255, 255, 255, 0.06); }
html.dark .hs-field select option { background: #1c2027; color: #ede7dc; }
html.dark .hs-field input::placeholder, html.dark .filters input::placeholder { color: #7f786d; }

html.dark .filters input[type="search"],
html.dark .filters input[type="number"],
html.dark .filters select { background: #151820; }
html.dark .filters input:focus, html.dark .filters select:focus { background: #151820; }

html.dark .img-fallback { background: linear-gradient(135deg, #252a33 0%, #1c2027 100%); color: #7f786d; }
html.dark .property-card:hover { box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5); }
html.dark .btn-viewing { background: var(--ink); color: var(--onyx); }
html.dark .btn-viewing:hover { background: var(--clay); color: #fff; }
html.dark .btn-call:hover { background: var(--stone-2); }
html.dark .project-info .status.status-completed { background: rgba(111, 207, 151, 0.14); }

html.dark .modal { background: rgba(0, 0, 0, 0.6); }
html.dark .modal-body .tag, html.dark .details-body .tag { background: var(--stone-2); }
html.dark .modal-body .tag.tag-rent, html.dark .details-body .tag.tag-rent { background: var(--clay); }
html.dark .pp-head .tag { background: var(--white); }
html.dark .pp-head .tag.tag-rent { background: var(--clay); }

@media (max-width: 1180px) {
    html.dark .nav-tabs { background: rgba(28, 32, 39, 0.97); }
    html.dark .nav-tabs .nav-back .back-link { background: var(--ink); color: var(--onyx); }
}