/* =====================================================================
   نظام التصميم — مبني على لوحة ألوان الموقع المرجعي (قياس فعلي)
   النبيتي #581018 · خلفية دافئة #F6F1F0 · ذهبي #B9883C · تيل #198585
   ===================================================================== */

:root {
    --bg: #F6F1F0;
    --bg-2: #FBF7F6;
    --surface: #FFFFFF;
    --surface-2: #FDFBFA;

    --ink: #292220;
    --ink-2: #5F544F;
    --ink-3: #75695F;

    --line: #E9E1DE;
    --line-2: #F2EAE7;

    --brand: #581018;
    --brand-700: #6A1822;
    --brand-600: #7C1C27;
    --brand-300: #97242D;
    --brand-soft: #FBEDEB;
    --brand-soft-2: #F7DFDC;

    --gold: #B9883C;
    --gold-2: #D7AB63;
    --gold-soft: #F9F0E1;
    --gold-ink: #8A6320;

    --teal: #0F6B6B;
    --teal-soft: #E7F2F2;
    --rose: #F69A9D;

    --ok: #2F7D46;
    --ok-soft: #EAF4EE;
    --warn: #A86A12;
    --warn-soft: #FBF1E2;
    --wa: #12804F;
    --wa-2: #0E6F45;

    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-1: 0 1px 2px rgba(41, 34, 32, .05), 0 8px 24px rgba(41, 34, 32, .045);
    --shadow-2: 0 12px 34px rgba(41, 34, 32, .10);
    --shadow-3: 0 28px 64px rgba(41, 34, 32, .18);

    --spring: cubic-bezier(.2, .9, .2, 1.02);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --wrap: 1200px;

    --font-display: "Cairo", "Tajawal", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Tajawal", "Cairo", ui-sans-serif, system-ui, sans-serif;

    --header-h: 76px;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--brand-300);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.35;
    margin: 0;
    font-weight: 800;
    letter-spacing: -.2px;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    transform: translate(-50%, -140%);
    background: var(--brand);
    color: #fff;
    padding: 12px 22px;
    border-radius: 0 0 12px 12px;
    z-index: 200;
    transition: transform .2s var(--ease);
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.wrap ,
.section > .section-head,
.section > .cards-grid,
.section > .services-grid,
.section > .why-grid,
.section > .steps-grid,
.section > .values-grid,
.section > .about-grid,
.section > .contact-grid,
.section > .request-layout,
.section > .legal-layout,
.section > .detail-grid,
.section > .filters,
.section > .results-bar,
.section > .pagination,
.section > .empty-state,
.section > .map-shell,
.section > .map-empty,
.section > .map-noscript,
.section > .map-actions,
.section > [data-favorites-root] {
    width: min(var(--wrap), 100% - 40px);
    margin-inline: auto;
}

@media (max-width: 640px) {
    .wrap ,
.section > .section-head,
.section > .cards-grid,
.section > .services-grid,
.section > .why-grid,
.section > .steps-grid,
.section > .values-grid,
.section > .about-grid,
.section > .contact-grid,
.section > .request-layout,
.section > .legal-layout,
.section > .detail-grid,
.section > .filters,
.section > .results-bar,
.section > .pagination,
.section > .empty-state,
.section > .map-shell,
.section > .map-empty,
.section > .map-noscript,
.section > .map-actions,
.section > [data-favorites-root] {
        width: min(var(--wrap), 100% - 32px);
    }
}

.ico {
    width: 22px;
    height: 22px;
    flex: none;
}

.ico-sm {
    width: 18px;
    height: 18px;
}

.ico-xs {
    width: 15px;
    height: 15px;
}

.ico-lg {
    width: 34px;
    height: 34px;
}

.muted {
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--brand);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(24, 10, 12, .28);
    background: linear-gradient(180deg, var(--brand-700), var(--brand));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: var(--header-h);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.3px;
    line-height: 1.2;
}

.brand-mark {
    width: 36px;
    height: 36px;
    color: var(--gold-2);
}

.brand-text {
    color: #fff;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    border-radius: 10px;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-2);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--spring);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.nav-link.is-active {
    color: #fff;
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    transition: background .2s var(--ease), transform .2s var(--spring), border-color .2s var(--ease);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-1px);
}

.fav-count {
    position: absolute;
    inset-block-start: -5px;
    inset-inline-start: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    background: var(--gold-2);
    color: #3a2410;
    font-size: 11px;
    font-weight: 800;
    border-radius: var(--radius-pill);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: background .2s var(--ease);
}

.header-phone:hover {
    background: rgba(255, 255, 255, .16);
}

.menu-toggle {
    display: none;
}

/* ---------------------------------------------------------------- buttons */
.btn {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: transform .18s var(--spring), box-shadow .22s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(.99);
}

.btn-sm {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    --btn-bg: var(--brand);
    box-shadow: 0 8px 20px -10px rgba(88, 16, 24, .7);
}

.btn-primary:hover {
    --btn-bg: var(--brand-600);
    box-shadow: 0 14px 26px -12px rgba(88, 16, 24, .7);
}

.btn-gold {
    --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold));
    --btn-fg: #38230B;
    box-shadow: 0 8px 20px -12px rgba(185, 136, 60, .9);
}

.btn-gold:hover {
    --btn-bg: linear-gradient(180deg, #E0B879, var(--gold-2));
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--line);
    background: var(--surface);
}

.btn-ghost:hover {
    border-color: var(--brand-300);
    color: var(--brand);
}

.btn-outline-light {
    --btn-bg: rgba(255, 255, 255, .06);
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .38);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .6);
}

.btn-wa {
    --btn-bg: var(--wa);
    box-shadow: 0 8px 20px -12px rgba(18, 128, 79, .8);
}

.btn-wa:hover {
    --btn-bg: var(--wa-2);
}

.btn-wa-outline {
    --btn-bg: transparent;
    --btn-fg: var(--wa);
    border-color: rgba(18, 128, 79, .35);
    background: var(--surface);
}

.btn-wa-outline:hover {
    background: var(--ok-soft);
    border-color: var(--wa);
}

.btn-icon-only {
    padding: 0;
    width: 44px;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s var(--ease), gap .2s var(--ease);
}

.link-more:hover {
    border-bottom-color: var(--gold);
    gap: 12px;
}

.ico.ico-sm + span,
.btn .ico-sm {
    flex: none;
}

/* ---------------------------------------------------------------- forms */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    gap: 4px;
    align-items: center;
}

.field-label em {
    color: var(--brand-300);
    font-style: normal;
}

.field-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    appearance: none;
}

select.field-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F625D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 38px;
}

.field-input::placeholder {
    color: var(--ink-3);
}

.field-input:hover {
    border-color: #DCCFCB;
}

.field-input:focus {
    outline: none;
    border-color: var(--brand-300);
    box-shadow: 0 0 0 4px rgba(151, 36, 45, .12);
}

textarea.field-input {
    min-height: 120px;
    resize: vertical;
}

.field-hint {
    font-size: 12.5px;
    color: var(--ink-3);
}

.field-with-icon {
    position: relative;
    display: block;
}

.field-with-icon .ico {
    position: absolute;
    inset-inline-start: 13px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    pointer-events: none;
}

.field-with-icon .field-input {
    padding-inline-start: 40px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-note {
    font-size: 12.5px;
    color: var(--ink-3);
    text-align: center;
}

.form-note a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #2A0D11;
    color: #fff;
    padding: 78px 0 0;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 120%;
    background:
        radial-gradient(48% 60% at 78% 8%, rgba(214, 146, 92, .5), transparent 62%),
        radial-gradient(42% 52% at 16% 4%, rgba(150, 36, 45, .68), transparent 66%),
        linear-gradient(160deg, #3B1116 0%, #24100F 48%, #1B0B0D 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E7C48B' stroke-width='1'%3E%3Cpath d='M60 6 114 36v48L60 114 6 84V36z'/%3E%3Cpath d='M60 30 92 48v34L60 90 28 82V48z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 8, 9, .1) 40%, rgba(23, 10, 11, .82) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 46px;
    align-items: center;
    padding-bottom: 76px;
}

.hero-copy {
    max-width: 600px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #F3D9B4;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(231, 196, 139, .28);
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    margin-bottom: 22px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-2);
    box-shadow: 0 0 0 4px rgba(215, 171, 99, .18);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    line-height: 1.22;
    letter-spacing: -.8px;
    text-shadow: 0 6px 30px rgba(12, 5, 6, .35);
}

.hero-title-accent {
    font-size: clamp(1.05rem, 1.9vw, 1.5rem);
    font-weight: 700;
    color: var(--rose);
    letter-spacing: 0;
}

.hero-lead {
    margin-top: 20px;
    font-size: 16.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .82);
    max-width: 52ch;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--gold-2);
    font-weight: 800;
}

.hero-stat span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
}

.hero-search {
    position: relative;
}

/* search card */
.search-card {
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-3);
    border: 1px solid rgba(255, 255, 255, .5);
}

.search-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: var(--bg);
    border: 0;
    border-radius: var(--radius-sm);
    margin: 0 0 16px;
    min-inline-size: 0;
}

.search-tab {
    flex: 1;
    position: relative;
}

.search-tab input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.search-tab span {
    display: block;
    text-align: center;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.search-tab input:checked + span {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(88, 16, 24, .8);
}

.search-tab input:focus-visible + span {
    outline: 2px solid var(--brand-300);
    outline-offset: 2px;
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.search-submit {
    grid-column: 1 / -1;
    min-height: 50px;
    font-size: 15px;
}

.hero-search-note {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    text-align: center;
}

.hero-search-note a {
    color: #F3D9B4;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- trust strip */
.trust-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 22px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-item .ico {
    color: var(--brand);
    background: var(--brand-soft);
    padding: 9px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.trust-item strong {
    display: block;
    font-size: 14px;
    font-family: var(--font-display);
}

.trust-item span {
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ---------------------------------------------------------------- sections */
.section {
    padding: 64px 0;
}

.section-mesh {
    background:
        radial-gradient(60% 70% at 12% 4%, rgba(247, 223, 220, .75), transparent 62%),
        radial-gradient(52% 60% at 92% 0, rgba(249, 240, 225, .8), transparent 64%),
        var(--bg-2);
    border-block: 1px solid var(--line-2);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.section-kicker.light {
    color: #F3D9B4;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(231, 196, 139, .26);
}

.section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    letter-spacing: -.5px;
}

.section-sub {
    margin-top: 9px;
    font-size: 15px;
    color: var(--ink-2);
    max-width: 62ch;
}

/* ---------------------------------------------------------------- cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.p-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
    border-color: #DED0CC;
}

.p-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--brand-soft);
    overflow: hidden;
}

.p-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.p-card:hover .p-img {
    transform: scale(1.05);
}

.p-badges {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.p-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.4;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}

.p-badge-sale {
    background: var(--brand);
}

.p-badge-rent {
    background: var(--teal);
}

.p-badge-gold {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #38230B;
}

.p-fav {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--brand);
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
    backdrop-filter: blur(8px);
    transition: transform .2s var(--spring), background .2s var(--ease), color .2s var(--ease);
}

.p-fav:hover {
    transform: scale(1.08);
    background: #fff;
}

.p-fav.is-active {
    color: #C0273A;
}

.p-fav.is-active .ico {
    fill: currentColor;
}

.p-status {
    position: absolute;
    inset-block-end: 14px;
    inset-inline-end: 14px;
    padding: 5px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(41, 34, 32, .82);
    color: #fff;
    backdrop-filter: blur(6px);
}

.p-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px 20px 20px;
    flex: 1;
}

.p-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-title a:hover {
    color: var(--brand-300);
}

.p-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-2);
}

.p-loc .ico {
    color: var(--brand-300);
}

.p-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
}

.p-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid var(--line-2);
    padding: 4px 9px;
    border-radius: 8px;
}

.p-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.p-price {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.3;
}

.p-code {
    display: block;
    font-size: 11.5px;
    color: var(--ink-3);
    margin-top: 2px;
}

.p-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink-2);
}

.empty-state .ico {
    color: var(--ink-3);
}

/* skeleton */
.skeleton {
    background: linear-gradient(100deg, var(--bg) 30%, #fff 50%, var(--bg) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 8px;
}

.skeleton-card .p-media {
    aspect-ratio: 4 / 3;
}

.skeleton-line {
    height: 13px;
    margin-bottom: 10px;
}

.skeleton-line.w70 { width: 70%; }
.skeleton-line.w55 { width: 55%; }
.skeleton-line.w40 { width: 40%; }

@keyframes shimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

/* ---------------------------------------------------------------- services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-1);
    transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(160deg, var(--brand-soft), #F6E7E4);
    color: var(--brand);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- why */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 46px;
    align-items: center;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.check-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.75;
}

.check-list li > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.check-list .ico {
    color: var(--ok);
    background: var(--ok-soft);
    padding: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: none;
    margin-top: 2px;
}

.why-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.why-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.why-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    box-shadow: var(--shadow-1);
}

.why-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
}

.why-stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- map */
.map-section .section-head {
    align-items: center;
}

.map-filters {
    display: flex;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 5px;
}

.chip {
    border: 0;
    background: transparent;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.chip:hover {
    color: var(--brand);
}

.chip.is-active {
    background: var(--brand);
    color: #fff;
}

.map-shell {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    background: var(--surface);
}

.map-shell-detail {
    margin-top: 4px;
}

.map-canvas.map-canvas-detail {
    height: 320px;
}

.map-pin-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px 14px 14px 4px;
    background: var(--brand);
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5);
    transform: rotate(45deg);
}

.map-pin-mark svg {
    width: 20px;
    height: 20px;
    transform: rotate(-45deg);
}

.map-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
}

.map-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.map-canvas {
    position: relative;
    z-index: 0;
    isolation: isolate;
    height: 460px;
    width: 100%;
    background: var(--bg);
}

.map-canvas.is-loading::after {
    content: "جارٍ تحميل الخريطة…";
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--ink-3);
    font-size: 14px;
}

.map-empty,
.map-noscript {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px;
    text-align: center;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

.map-marker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-body);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
    border: 2px solid #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s var(--spring);
}

.map-marker.marker-sale {
    background: #636A71;
}

.map-marker:hover {
    transform: translateY(-2px) scale(1.03);
}

.leaflet-popup-content {
    margin: 12px 14px;
    font-family: var(--font-body);
    direction: rtl;
}

.map-popup-name {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.map-popup-meta {
    font-size: 12.5px;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.map-popup-link {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* ---------------------------------------------------------------- cta band */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(120deg, #3E1015, var(--brand) 55%, #6E1822);
    color: #fff;
    padding: 52px 0;
}

.cta-band-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin-bottom: 8px;
}

.cta-band p {
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    max-width: 58ch;
}

.cta-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-band-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 80 20v40L40 80 0 60V20z' fill='none' stroke='%23E7C48B' stroke-width='1'/%3E%3C/svg%3E");
}

.cta-band-light {
    background: var(--surface);
    color: var(--ink);
    border-block: 1px solid var(--line);
}

.cta-band-light p {
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- page hero */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(140deg, #3B1116, var(--brand) 60%, #6E1822);
    color: #fff;
    padding: 44px 0 52px;
}

.page-hero-short {
    padding: 40px 0 46px;
}

.page-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .13;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23E7C48B' stroke-width='1'%3E%3Cpath d='M50 4 96 30v40L50 96 4 70V30z'/%3E%3Cpath d='M50 26 76 41v28L50 74 24 69V41z'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), transparent 85%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), transparent 85%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ink-3);
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb.light {
    color: rgba(255, 255, 255, .66);
}

.breadcrumb.light a:hover {
    color: #fff;
}

.breadcrumb.light [aria-current] {
    color: #fff;
}

.page-hero-title {
    font-size: clamp(1.75rem, 3.6vw, 2.7rem);
    letter-spacing: -.8px;
    margin-top: 4px;
}

.page-hero-sub {
    margin-top: 12px;
    max-width: 68ch;
    color: rgba(255, 255, 255, .82);
    font-size: 15.5px;
    line-height: 1.9;
}

.page-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

.page-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------------------------------------------------------------- filters */
.section-list {
    padding-top: 40px;
}

.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-1);
    margin-bottom: 24px;
}

.filters-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr .8fr .8fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.filters-submit {
    min-height: 46px;
    padding-inline: 22px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.active-filters-label {
    font-size: 12.5px;
    color: var(--ink-3);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 700;
    transition: background .2s var(--ease);
}

.filter-chip:hover {
    background: var(--brand-soft-2);
}

.filter-chip-clear {
    background: transparent;
    border: 1px dashed var(--line);
    color: var(--ink-2);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.results-count {
    font-size: 14px;
    color: var(--ink-2);
}

.results-count strong {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--brand);
}

.results-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
}

.results-map-link:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.page-btn:hover {
    border-color: var(--brand-300);
    color: var(--brand);
}

.page-btn.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.page-prev {
    transform: rotate(180deg);
}

.page-gap {
    color: var(--ink-3);
    padding: 0 4px;
}

/* ---------------------------------------------------------------- detail */
.detail-hero {
    background: linear-gradient(140deg, #35100F, var(--brand) 62%, #6E1822);
    color: #fff;
    padding: 34px 0 40px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
}

.status-available { background: rgba(47, 125, 70, .28); border-color: rgba(120, 220, 150, .45); }
.status-reserved { background: rgba(168, 106, 18, .3); border-color: rgba(240, 190, 120, .45); }
.status-sold,
.status-rented { background: rgba(41, 34, 32, .45); border-color: rgba(255, 255, 255, .25); }

.detail-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -.6px;
    line-height: 1.35;
}

.detail-loc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

.detail-code {
    color: rgba(255, 255, 255, .7);
}

.dot-sep {
    opacity: .5;
}

.detail-section {
    padding-top: 34px;
}

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

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.detail-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.gallery {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-1);
}

.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--brand-soft);
}

.gallery-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-counter {
    position: absolute;
    inset-block-end: 12px;
    inset-inline-start: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(41, 34, 32, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 12px;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: none;
    width: 92px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .2s var(--ease), transform .2s var(--spring);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    border-color: var(--brand);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-1);
}

.panel-soft {
    background: var(--bg-2);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    margin-bottom: 14px;
}

.panel-title .ico {
    color: var(--brand-300);
}

.panel-text {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-2);
}

.panel-text + .panel-text {
    margin-top: 12px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
}

.spec-item dt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-2);
    margin: 0;
}

.spec-item dt .ico {
    color: var(--brand-300);
}

.spec-item dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    background: var(--ok-soft);
    color: var(--ok);
    font-size: 13px;
    font-weight: 600;
}

.price-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12.5px;
    color: var(--ink-3);
}

.price-value {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.3;
}

.price-note {
    font-size: 12.5px;
    color: var(--ink-3);
}

.price-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 16px 0;
}

.price-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--ink-3);
}

.price-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.share-label {
    font-size: 12.5px;
    color: var(--ink-3);
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.icon-btn-soft {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
}

.icon-btn-soft:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand-soft-2);
}

.agent-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.agent-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
}

.agent-head strong {
    display: block;
    font-family: var(--font-display);
    font-size: 14.5px;
}

.agent-head span {
    font-size: 12.5px;
    color: var(--ink-3);
}

.agent-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.agent-lines li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-lines .ico {
    color: var(--brand-300);
}

.similar-section {
    background: var(--bg-2);
    border-top: 1px solid var(--line-2);
}

/* lightbox */
.lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(1100px, 94vw);
    width: 100%;
}

.lightbox::backdrop {
    background: rgba(18, 8, 9, .86);
    backdrop-filter: blur(4px);
}

.lightbox img {
    width: 100%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: fixed;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

/* ---------------------------------------------------------------- about */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 46px;
    align-items: start;
}

.about-copy .panel-text {
    margin-top: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-1);
}

.about-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--brand);
    line-height: 1.1;
}

.about-stat span {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-1);
}

.step-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-ink);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-1);
}

.value-card .ico {
    color: var(--brand);
    background: var(--brand-soft);
    padding: 10px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    margin-bottom: 14px;
}

.value-card h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-1);
    transition: transform .22s var(--spring), box-shadow .22s var(--ease), border-color .2s var(--ease);
}

a.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: var(--brand-soft-2);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    flex: none;
}

.contact-icon-wa {
    background: var(--ok-soft);
    color: var(--wa);
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
}

.contact-card strong {
    font-size: 15px;
    font-family: var(--font-display);
}

.contact-cards {
    gap: 10px;
}

.contact-form-wrap {
    padding: 28px;
}

.success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 34px 20px;
    background: var(--ok-soft);
    border: 1px solid rgba(47, 125, 70, .2);
    border-radius: var(--radius);
    color: var(--ok);
}

.success-box h2 {
    font-size: 20px;
    color: var(--ink);
}

.success-box p {
    font-size: 14px;
    color: var(--ink-2);
    max-width: 46ch;
}

.success-panel {
    max-width: 620px;
    margin-inline: auto;
}

.success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------------------------------------------------------------- request */
.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
    gap: 26px;
    align-items: start;
}

.request-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.tabs-nav {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-1);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.tab-btn.is-active {
    background: var(--brand);
    color: #fff;
}

html.js .tab-panel {
    display: none;
}

html.js .tab-panel.is-active {
    display: block;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.steps-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.steps-list li > div {
    min-width: 0;
}

.steps-list li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
}

.steps-list strong {
    display: block;
    font-size: 14px;
    font-family: var(--font-display);
    margin-bottom: 2px;
}

.steps-list p {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.8;
}

/* ---------------------------------------------------------------- legal */
.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.legal-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-1);
}

.legal-body h2 {
    font-size: 17px;
    margin: 26px 0 10px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    font-size: 14.5px;
    line-height: 2;
    color: var(--ink-2);
}

.legal-body ul {
    list-style: disc;
    padding-inline-start: 22px;
    margin: 8px 0;
}

.legal-body a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
}

.legal-updated {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--ink-3);
}

.legal-side {
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.legal-side .btn {
    margin-top: 14px;
}

/* ---------------------------------------------------------------- favorites */
[data-favorites-root] .empty-state {
    margin-top: 8px;
}

/* ---------------------------------------------------------------- flash + cookie */
.flash-stack {
    position: fixed;
    inset-block-start: calc(var(--header-h) + 14px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(520px, calc(100% - 32px));
}

.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    font-size: 13.5px;
    animation: flash-in .4s var(--spring) both;
}

.flash-success {
    border-color: rgba(47, 125, 70, .3);
    background: var(--ok-soft);
    color: #1f5c33;
}

.flash-error {
    border-color: rgba(151, 36, 45, .3);
    background: var(--brand-soft);
    color: var(--brand-700);
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}

.cookie-note {
    position: fixed;
    inset-block-end: 16px;
    inset-inline-start: 16px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 460px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    font-size: 12.5px;
    color: var(--ink-2);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.cookie-more {
    font-size: 12px;
    color: var(--brand);
    text-decoration: underline;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    background: linear-gradient(165deg, #2C0C10, var(--brand) 65%, #4C1218);
    color: #fff;
    padding-top: 52px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 40px;
}

.brand-light .brand-text {
    color: #fff;
}

.footer-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .68);
    max-width: 40ch;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
    transition: background .2s var(--ease);
}

.social-link:hover {
    background: rgba(255, 255, 255, .14);
}

.footer-title {
    font-size: 15px;
    margin-bottom: 14px;
    color: #fff;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .74);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact .ico {
    color: var(--gold-2);
    flex: none;
}

.footer-cta-col .btn {
    margin-top: 10px;
}

.footer-cta-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a:hover {
    color: #fff;
}

/* ---------------------------------------------------------------- mobile bar + drawer */
.mobile-bar {
    display: none;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(20, 8, 9, .5);
    backdrop-filter: blur(2px);
    animation: fade-in .2s var(--ease) both;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 75;
    width: min(360px, 88vw);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: var(--shadow-3);
    padding: 18px;
    animation: drawer-in .32s var(--spring) both;
    overflow-y: auto;
}

@keyframes drawer-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

[dir="rtl"] .mobile-menu {
    inset-inline-end: 0;
    animation-name: drawer-in-rtl;
}

@keyframes drawer-in-rtl {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}

.mobile-menu-head .brand-text {
    color: var(--ink);
}

.mobile-menu-head .brand-mark {
    color: var(--brand);
}

.mobile-menu-head .icon-btn {
    border-color: var(--line);
    background: var(--bg);
    color: var(--ink);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    transition: background .2s var(--ease), color .2s var(--ease);
}

.mobile-nav-link .ico {
    color: var(--ink-3);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.mobile-menu-foot {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 404 */
.error-section {
    padding: 90px 0;
}

.error-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--brand-soft-2);
    letter-spacing: 4px;
}

.error-title {
    font-size: 26px;
}

.error-text {
    color: var(--ink-2);
    font-size: 14.5px;
    max-width: 46ch;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .header-phone {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 56px;
    }

    .hero {
        padding-top: 52px;
    }

    .hero-search {
        max-width: 560px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-grid,
    .about-grid,
    .contact-grid,
    .request-layout,
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side,
    .request-side,
    .legal-side {
        position: static;
    }

    .filters-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-submit {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .btn-sm {
        min-height: 44px;
    }

    .header-cta span {
        display: none;
    }

    .header-cta {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 12px;
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stat {
        padding: 8px 12px;
    }

    .hero-stat strong {
        font-size: 17px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services-grid,
    .steps-grid,
    .why-stat-grid,
    .about-stats,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        gap: 12px;
        padding: 18px 0;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band-actions {
        width: 100%;
    }

    .cta-band-actions .btn {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-bar {
        position: fixed;
        inset-inline: 10px;
        inset-block-end: calc(10px + env(safe-area-inset-bottom));
        z-index: 55;
        display: grid;
        grid-template-columns: .85fr .85fr 1.3fr;
        gap: 6px;
        padding: 6px;
        background: rgba(255, 255, 255, .92);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow-2);
        backdrop-filter: blur(14px) saturate(150%);
    }

    .mobile-bar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 46px;
        border-radius: 13px;
        font-size: 13px;
        font-weight: 700;
        color: var(--ink);
        background: var(--bg);
    }

    .mobile-bar-wa {
        background: var(--ok-soft);
        color: var(--wa-2);
    }

    .mobile-bar-primary {
        background: var(--brand);
        color: #fff;
    }

    body {
        padding-bottom: 78px;
    }

    .cookie-note {
        inset-inline: 10px;
        inset-block-end: calc(74px + env(safe-area-inset-bottom));
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        font-size: 11.5px;
        line-height: 1.65;
    }

    .cookie-note p {
        flex: 1 1 60%;
    }

    .cookie-actions {
        margin-inline-start: auto;
    }

    .flash-stack {
        inset-block-start: calc(var(--header-h) + 8px);
    }

    .gallery-main img {
        aspect-ratio: 4 / 3;
    }

    .panel,
    .legal-body,
    .contact-form-wrap {
        padding: 20px;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .map-canvas {
        height: 380px;
    }

    .map-embed iframe {
        height: 300px;
    }

    .page-hero {
        padding: 32px 0 38px;
    }
}

@media (max-width: 420px) {
    .brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .hero-title {
        font-size: 1.9rem;
    }
}

/* ---------------------------------------------------------------- motion prefs */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .p-card:hover,
    .service-card:hover,
    .contact-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------------- progressive enhancements */
@supports (corner-shape: squircle) {
    .p-card,
    .search-card,
    .panel,
    .service-card,
    .value-card,
    .step-card,
    .filters,
    .map-shell,
    .mobile-bar {
        corner-shape: squircle;
    }
}

@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}
