:root {
    --maroon: #881E2D;
    --gold: #C8A25D;
    --charcoal: #4A4A4A;
    --light-gray: #B5B5B5;
    --pearl: #F7F7F7;
    --white: #FFFFFF;
    --ink: #202020;
    --line: #E7E0D8;
    --soft: #F1EEE9;
    --shadow: 0 18px 45px rgba(36, 36, 36, .10);
}

* { box-sizing: border-box; }
html { background: var(--pearl); color: var(--ink); font-family: Frutiger, Arial, Helvetica, sans-serif; line-height: 1.5; }
html[lang="ar"] { font-family: "Frutiger Arabic", Tahoma, Arial, sans-serif; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: currentColor; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 12px clamp(18px, 4vw, 58px);
    background: rgba(247, 247, 247, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 250px; }
.brand img { width: 76px; height: 76px; object-fit: contain; }
.brand strong { display: block; color: var(--maroon); font-size: 1.04rem; }
.brand small { display: block; color: var(--charcoal); font-size: .82rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 12px; color: var(--charcoal); text-decoration: none; font-weight: 700; font-size: .92rem; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"], .language-link { color: var(--maroon); background: rgba(200, 162, 93, .13); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--maroon); padding: 10px 13px; border-radius: 6px; font-weight: 700; }

main { min-height: 72vh; }
.home-hero, .section, .page-hero, .properties-layout, .property-gallery, .property-shell, .contact-layout, .content-band { padding-inline: clamp(18px, 4vw, 58px); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr); gap: 24px; padding-block: 34px; min-height: calc(100vh - 102px); }
.hero-panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.hero-intro-card { padding: clamp(24px, 4vw, 46px); }
.hero-logo { width: min(210px, 55vw); height: auto; margin-bottom: 18px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 800; font-size: .78rem; text-transform: uppercase; }
h1, h2, h3 { color: var(--maroon); letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 5rem); line-height: 1.02; }
.page-hero h1 { max-width: 980px; }
.hero-intro-card > p:not(.eyebrow), .page-hero p, .section-heading p, .prose p { color: var(--charcoal); max-width: 760px; }
.arabic-line { margin: 14px 0; color: var(--gold); font-size: clamp(1.35rem, 3vw, 2.15rem); font-weight: 800; }

.hero-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding: 16px; background: var(--pearl); border: 1px solid var(--line); border-radius: 8px; }
.hero-search .button { align-self: end; }
label span { display: block; margin-bottom: 6px; color: var(--charcoal); font-size: .82rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--gold); border-radius: 6px; background: var(--white); color: var(--maroon); text-decoration: none; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.button.ghost { background: transparent; }
.button.small { min-height: 38px; padding: 8px 12px; font-size: .88rem; }
.cta-row, .card-actions, .filter-actions, .summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.text-link, .back-link, .language-inline a { color: var(--maroon); font-weight: 800; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.hero-feature-card { position: relative; overflow: hidden; min-height: 610px; }
.feature-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.feature-slide.is-active { opacity: 1; pointer-events: auto; }
.feature-slide img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 22px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; }
.feature-copy span { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: .8rem; }
.feature-copy h2 { margin: 6px 0; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.feature-copy p { margin: 0; color: var(--maroon); font-weight: 900; }
.carousel-dots { position: absolute; top: 18px; right: 18px; display: flex; gap: 7px; }
.carousel-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.65); border: 1px solid var(--gold); }
.carousel-dots span.is-active { background: var(--gold); }

.section { padding-block: clamp(42px, 7vw, 84px); }
.section.tinted { background: var(--soft); }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .contact-details h2, .contact-form h2, .detail-section h2, .prose h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.55rem); }
.section-heading.with-action { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.pillar-grid, .service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar-grid article, .service-grid article, .listing-card, .filters-panel, .summary-panel, .contact-details, .contact-form, .prose { background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.pillar-grid article, .service-grid article, .prose { padding: 24px; }

.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.listing-card { overflow: hidden; box-shadow: 0 12px 30px rgba(36,36,36,.07); transition: transform .2s ease, box-shadow .2s ease; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-image { position: relative; display: block; aspect-ratio: 4 / 3; background: #ECE8E1; overflow: hidden; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.listing-card:hover .listing-image img { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(136,30,45,.94); color: var(--white); font-size: .76rem; font-weight: 900; }
.rtl .badge { left: auto; right: 12px; }
.status-badge { top: auto; bottom: 12px; background: rgba(200,162,93,.95); color: #241B10; }
.static-badge { position: static; display: inline-flex; margin-top: 8px; }
.listing-body { padding: 18px; }
.listing-price, .detail-price { margin: 0 0 8px; color: var(--maroon); font-size: 1.18rem; font-weight: 950; }
.listing-body h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.32; }
.listing-body h3 a { text-decoration: none; }
.listing-meta, .muted, .mini-details, .location-note { color: var(--charcoal); font-size: .93rem; }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.facts-row span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; background: var(--pearl); border: 1px solid var(--line); border-radius: 999px; color: var(--charcoal); font-size: .88rem; }
.facts-row svg { color: var(--maroon); }
.mini-details { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin: 14px 0 0; }
dt { color: #777; font-size: .76rem; text-transform: uppercase; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.page-hero.compact { padding-block: 54px; background: linear-gradient(120deg, rgba(136,30,45,.08), rgba(200,162,93,.13)); }
.properties-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; padding-block: 34px 72px; }
.filters-panel { align-self: start; position: sticky; top: 112px; padding: 18px; }
.filters-form, .contact-form { display: grid; gap: 14px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results-heading { display: flex; justify-content: space-between; margin-bottom: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pagination a { min-width: 38px; padding: 8px 10px; text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.pagination a.is-active { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.empty-state { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }

.property-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; padding-block: 26px 0; }
.gallery-main-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-main { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #ECE8E1; border-radius: 8px; }
.gallery-thumbs { display: grid; grid-template-columns: 1fr; gap: 10px; max-height: 620px; overflow: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; overflow: hidden; }
.gallery-thumbs button:hover, .gallery-thumbs button:focus { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 30px;
    background: rgba(18, 12, 14, .92);
}
.gallery-lightbox[hidden] { display: none; }
.lightbox-image {
    max-width: min(1180px, 88vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}
.lightbox-close,
.lightbox-arrow {
    position: fixed;
    z-index: 205;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 50%;
    background: rgba(136,30,45,.88);
    color: var(--white);
    cursor: pointer;
}
.lightbox-close {
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
}
.lightbox-arrow {
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    font-size: 2.4rem;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--gold); color: #241B10; }
.has-lightbox { overflow: hidden; }
.property-shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-block: 34px 72px; align-items: start; }
.property-main h1 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.6rem); }
.overview-heading { margin: 12px 0 8px; font-size: 1.15rem; color: var(--maroon); }
.summary-panel { position: sticky; top: 116px; padding: 22px; box-shadow: var(--shadow); }
.summary-panel h2 { font-size: 1.25rem; margin: 0 0 8px; }
.agent-card { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.agent-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--pearl); }
.agent-card strong, .agent-card span { display: block; }
.agent-card span { color: var(--charcoal); font-size: .9rem; }
.provider-logo { width: 130px; margin-top: 18px; }
.detail-section { margin-top: 34px; }
.description-copy { margin-top: 14px; color: var(--charcoal); }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.details-grid div { padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.details-grid span { display: block; color: #777; font-size: .78rem; text-transform: uppercase; }
.details-grid strong { color: var(--ink); }
.amenities-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.amenities-list li { padding: 8px 11px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr); gap: 24px; padding-block: 34px 72px; }
.contact-details, .contact-form { padding: 24px; }
.contact-details dl { display: grid; gap: 14px; }
.content-band { padding-block: 40px 76px; }
.prose { max-width: 900px; }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: center; padding: 28px clamp(18px, 4vw, 58px); background: var(--maroon); color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; }
.footer-contact { display: grid; gap: 6px; }
.social-links { display: flex; gap: 9px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; text-decoration: none; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 999px; background: #1FAF61; color: var(--white); font-weight: 900; text-decoration: none; box-shadow: 0 14px 35px rgba(0,0,0,.24); }
.rtl .floating-whatsapp { right: auto; left: 22px; }

@media (max-width: 1100px) {
    .home-hero, .properties-layout, .property-shell, .contact-layout, .property-gallery { grid-template-columns: 1fr; }
    .hero-feature-card { min-height: 520px; }
    .filters-panel, .summary-panel { position: static; }
    .listing-grid, .pillar-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); max-height: none; }
}

@media (max-width: 760px) {
    .site-header { flex-wrap: wrap; align-items: flex-start; }
    .brand { min-width: 0; }
    .brand img { width: 64px; height: 64px; }
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
    .site-nav.is-open { display: flex; }
    h1 { font-size: 2.35rem; }
    .hero-search, .listing-grid, .pillar-grid, .service-grid, .filter-row, .details-grid, .gallery-thumbs, .site-footer { grid-template-columns: 1fr; }
    .section-heading.with-action, .site-footer { align-items: flex-start; flex-direction: column; }
    .home-hero { padding-block: 20px; }
    .hero-feature-card { min-height: 430px; }
    .feature-copy { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
    .floating-whatsapp { width: 52px; height: 52px; padding: 0; justify-content: center; }
    .floating-whatsapp span { display: none; }
}

/* Step 10 final structure corrections */
p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    word-break: normal;
}
.rtl p {
    text-align: justify;
    text-align-last: right;
    line-height: 1.9;
}
.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}
.about-grid.profile-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    align-items: stretch;
}
.about-grid.profile-grid .wide {
    grid-column: span 3;
    display: grid;
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 28px;
}
.about-grid.profile-grid .wide h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
}
.about-grid.profile-grid .wide::after {
    content: "2015";
    justify-self: end;
    color: rgba(136,30,45,.08);
    font-family: var(--font-en-title);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: .8;
}
.rtl .about-grid.profile-grid .wide::after {
    font-family: var(--font-ar-title);
}
.profile-card {
    background:
        linear-gradient(135deg, rgba(200,162,93,.08), rgba(255,255,255,0) 42%),
        var(--white);
}
.profile-card h2 {
    white-space: normal;
}
.value-list {
    columns: 2;
    column-gap: 22px;
}
.profile-card.wide .value-list {
    columns: auto;
}
.profile-service-grid {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
}
.service-card {
    min-height: 210px;
    justify-content: flex-start;
}
.service-card h2 {
    min-height: 2.4em;
    display: flex;
    align-items: flex-end;
}
.final-cta {
    padding-top: 8px;
}
.listing-card {
    position: relative;
}
.card-photo-controls {
    position: absolute;
    top: 92px;
    left: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.card-photo-controls button {
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.64);
    border-radius: 50%;
    background: rgba(36,36,36,.38);
    color: var(--white);
    cursor: pointer;
    opacity: .82;
}
.card-photo-controls button:hover,
.card-photo-controls button:focus-visible {
    background: var(--gold);
    color: #241B10;
    border-color: var(--gold);
    opacity: 1;
}
.compact-actions .share-button {
    flex-basis: 100%;
    min-height: 34px;
}
.share-button.is-copied {
    background: rgba(200,162,93,.18);
    border-color: var(--gold);
    color: #241B10;
}
.property-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    max-width: 1240px;
    margin-inline: auto;
}
.property-main {
    min-width: 0;
}
.description-copy {
    max-width: 82ch;
}
.property-map {
    width: 100%;
    min-height: 320px;
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    box-shadow: inset 0 0 0 1px rgba(200,162,93,.24);
}
.detail-section h2 {
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}
.gallery-main-button {
    max-width: 980px;
    margin-inline: auto;
}
.gallery-main {
    object-fit: cover;
}
.gallery-main[data-contain="true"] {
    object-fit: contain;
}
.gallery-thumbs {
    max-width: 980px;
    margin-inline: auto;
    width: 100%;
}
.gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
}

@media (max-width: 1180px) {
    .about-grid.profile-grid,
    .profile-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-grid.profile-grid .wide {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    .about-grid.profile-grid .wide::after {
        justify-self: start;
        font-size: 4rem;
    }
}

@media (max-width: 760px) {
    .about-grid.profile-grid,
    .profile-service-grid {
        grid-template-columns: 1fr;
    }
    .value-list {
        columns: auto;
    }
    .service-card h2 {
        min-height: 0;
    }
    .property-shell {
        grid-template-columns: 1fr;
    }
    .card-photo-controls {
        top: 74px;
    }
}

/* Step 9 final visual corrections */
h1 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.08; }
.page-hero.compact { padding-block: 44px; }
.page-hero.compact h1,
.profile-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3.15rem); }
.section-heading h2,
.contact-details h2,
.contact-form h2,
.detail-section h2,
.prose h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.95rem);
}
.property-main h1 { font-size: clamp(1.55rem, 2.55vw, 2.35rem); }
.profile-hero p,
.page-hero p,
.prose p,
.service-card p,
.description-copy {
    line-height: 1.72;
}
.prose p,
.service-card p,
.description-copy {
    max-width: 68ch;
}
.rtl .prose p,
.rtl .service-card p,
.rtl .description-copy,
.arabic-description {
    text-align: justify;
    text-align-last: start;
}
.profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.profile-grid .wide {
    grid-column: span 2;
}
.profile-card {
    padding: 24px;
    border-top: 3px solid var(--gold);
}
.profile-card::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--maroon);
}
.profile-icon { display: none; }
.profile-card h2 { margin: 0; }
.profile-card .value-list {
    margin-top: 2px;
}
.profile-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-card {
    min-height: 230px;
}
.final-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.office-map {
    min-height: 330px;
    box-shadow: inset 0 0 0 1px rgba(200,162,93,.24);
}
.site-footer {
    padding-block: 32px;
}
.social-links {
    gap: 14px;
}
.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
}
.social-links a:hover,
.social-links a:focus-visible {
    color: var(--gold);
    background: rgba(200,162,93,.12);
}
.floating-whatsapp {
    right: 26px;
    bottom: 110px;
}
.rtl .floating-whatsapp {
    right: auto;
    left: 26px;
}
.gallery-lightbox {
    background: rgba(10, 8, 9, .94);
}
.lightbox-close,
.lightbox-arrow,
.gallery-arrow {
    box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

@media (max-width: 1180px) {
    .profile-grid,
    .profile-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    h1 { font-size: 2rem; }
    .profile-grid,
    .profile-service-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid .wide {
        grid-column: auto;
    }
    .floating-whatsapp {
        right: 18px;
        bottom: 90px;
    }
    .rtl .floating-whatsapp {
        right: auto;
        left: 18px;
    }
}

/* Step 6 refinements */
.site-header { padding-block: 10px; }
.brand { min-width: 220px; }
.brand img { width: 54px; height: 54px; }
.brand small { font-size: .76rem; }
.language-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--maroon);
    font-weight: 900;
    text-decoration: none;
    font-size: .86rem;
}
.language-pill span {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--pearl);
    color: var(--gold);
    font-size: .72rem;
}
.language-pill:hover, .site-nav a:hover, .text-link:hover, .back-link:hover { color: var(--gold); }
.hero-intro-card { display: flex; flex-direction: column; justify-content: center; }
.search-band { padding: 0 clamp(18px, 4vw, 58px) 22px; }
.horizontal-search {
    grid-template-columns: 1.4fr repeat(5, minmax(120px, 1fr)) auto;
    align-items: end;
    box-shadow: var(--shadow);
}
.feature-slide > a { display: block; height: 100%; }
.feature-slide > a img { height: 100%; }
.properties-page {
    padding: 30px clamp(18px, 4vw, 58px) 72px;
}
.properties-page .results-panel { margin-top: 24px; }
.horizontal-panel { position: static; padding: 16px; box-shadow: var(--shadow); }
.advanced-filter {
    display: grid;
    grid-template-columns: 1.3fr repeat(5, minmax(120px, 1fr));
    gap: 12px;
    align-items: end;
}
.advanced-filter .filter-row {
    grid-column: span 2;
}
.advanced-filter .filter-actions {
    margin-top: 0;
    align-self: end;
}
.offer-badge { left: auto; right: 12px; }
.rtl .offer-badge { right: auto; left: 12px; }
.status-badge { left: 12px; right: auto; bottom: 12px; top: auto; }
.rtl .status-badge { left: auto; right: 12px; }
.facts-row span { font-weight: 800; }
.facts-row span:hover svg { color: var(--gold); }
.button:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.button.primary:hover { background: #6f1724; color: var(--white); border-color: var(--gold); }
.site-footer {
    grid-template-columns: minmax(0, 1fr) auto auto;
    background: var(--pearl);
    color: var(--charcoal);
    border-top: 1px solid var(--line);
}
.footer-brand p strong { color: var(--maroon); }
.social-links a {
    border: 1px solid var(--line);
    color: var(--maroon);
    background: var(--white);
    border-radius: 8px;
}
.social-links a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.copyright { margin: 0; font-size: .86rem; color: #777; }
.floating-whatsapp {
    right: 18px;
    bottom: 86px;
    padding: 10px 13px;
    font-size: .9rem;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.floating-whatsapp:hover { background: var(--gold); color: #1b1b1b; }
.rtl .floating-whatsapp { right: auto; left: 18px; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.value-list { margin: 14px 0 0; padding-inline-start: 20px; color: var(--charcoal); }
.service-grid.expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid.expanded article:last-child { grid-column: 1 / -1; }
.contact-form .filter-actions { margin-top: 4px; }

@media (max-width: 1100px) {
    .horizontal-search,
    .advanced-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .advanced-filter .filter-row { grid-column: span 2; }
}

@media (max-width: 760px) {
    .language-pill { margin-inline-start: auto; }
    .horizontal-search,
    .advanced-filter,
    .about-grid,
    .service-grid.expanded {
        grid-template-columns: 1fr;
    }
    .advanced-filter .filter-row,
    .service-grid.expanded article:last-child {
        grid-column: auto;
    }
    .floating-whatsapp {
        bottom: 74px;
        width: 48px;
        height: 48px;
        padding: 0;
    }
}

/* Step 7 final UI/UX corrections */
.hero-intro-card .arabic-line,
.hero-intro-card .arabic-intro { display: none; }

.horizontal-search {
    grid-template-columns: minmax(160px, 1.2fr) repeat(5, minmax(112px, 1fr)) auto;
}

.property-filter { gap: 12px; }
.primary-filter-row,
.advanced-filter-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) repeat(5, minmax(112px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.advanced-filter-row {
    display: none;
    grid-template-columns: repeat(4, minmax(112px, 1fr)) repeat(4, minmax(132px, 1fr)) auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.advanced-filter-row.is-open { display: grid; }
.advanced-toggle {
    justify-self: start;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--maroon);
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
    cursor: pointer;
}
.reset-filter { align-self: end; }

.listing-grid { gap: 16px; }
.listing-card { display: flex; flex-direction: column; min-height: 100%; }
.listing-card-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.listing-image { aspect-ratio: 5 / 3.6; }
.offer-badge { left: 10px; right: auto; top: 10px; }
.status-badge { left: auto; right: 10px; top: 10px; bottom: auto; max-width: 52%; text-align: center; }
.rtl .offer-badge { right: 10px; left: auto; }
.rtl .status-badge { left: 10px; right: auto; }
.listing-body { display: grid; gap: 8px; padding: 14px; }
.listing-title {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.listing-card:hover .listing-title { color: var(--gold); }
.listing-price { display: block; margin: 0; font-size: 1.08rem; }
.listing-meta { display: block; min-height: 1.2em; }
.compact-facts { margin: 4px 0; gap: 7px; }
.compact-facts span { padding: 6px 8px; font-size: .82rem; }
.facts-row svg { width: 18px; height: 18px; fill: currentColor; }
.mini-details {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 8px;
    margin: 4px 0 0;
}
.mini-details small {
    display: block;
    color: #777;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}
.mini-details strong {
    display: block;
    color: var(--ink);
    font-size: .84rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.compact-actions {
    margin: 0;
    padding: 0 14px 14px;
    gap: 7px;
}
.compact-actions .button { flex: 1; min-width: 0; padding-inline: 8px; }

.carousel-arrow,
.gallery-arrow {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(136,30,45,.82);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.carousel-arrow:hover,
.gallery-arrow:hover { background: var(--gold); color: #241B10; }
.carousel-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.carousel-next { right: 16px; top: 50%; transform: translateY(-50%); }

.property-gallery {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 170px;
    max-width: 1180px;
    margin-inline: auto;
}
.gallery-main { max-height: 560px; }
.gallery-prev { left: 18px; top: 45%; }
.gallery-next { right: 205px; top: 45%; }
.gallery-thumbs button.is-active { border-color: var(--gold); }
.location-note + .location-note { margin-top: 8px; }

.map-card {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--pearl);
}
.map-card h3 { margin: 0 0 8px; }
.map-card p { margin: 0 0 14px; color: var(--charcoal); }
.profile-grid .wide { grid-column: 1 / -1; }

.site-footer {
    grid-template-columns: minmax(0, 1fr) auto minmax(220px, auto);
    background: var(--maroon);
    color: var(--white);
    border-top: 0;
}
.footer-brand img { filter: none; }
.footer-brand p strong,
.site-footer a,
.site-footer .copyright { color: var(--white); }
.footer-brand p:last-child,
.copyright { color: rgba(255,255,255,.78); }
.social-links a {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    color: var(--white);
    border-radius: 50%;
}
.social-links a:hover { color: var(--gold); border-color: var(--gold); background: rgba(255,255,255,.12); }
.social-links svg,
.floating-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.floating-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}
.floating-whatsapp span { display: none; }
.rtl .floating-whatsapp { right: auto; left: 18px; }

@media (max-width: 1180px) {
    .horizontal-search,
    .primary-filter-row,
    .advanced-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .gallery-next { right: 18px; }
    .property-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .horizontal-search,
    .primary-filter-row,
    .advanced-filter-row,
    .mini-details,
    .site-footer {
        grid-template-columns: 1fr;
    }
    .carousel-arrow,
    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
    .site-footer { align-items: flex-start; }
}

/* Step 8 final refinement */
@font-face {
    font-family: "OptimaNovaLTProMedium";
    src: url("../fonts/OptimaNovaLTProMedium.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "FrutigerLTProRoman";
    src: url("../fonts/Linotype%20%20FrutigerLTProRoman.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "FrutigerLTArabic65Bold";
    src: url("../fonts/FrutigerLTArabic65Bold.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "FrutigerLTArabic55Roman";
    src: url("../fonts/FrutigerLTArabic55Roman.ttf") format("truetype");
    font-display: swap;
}
:root {
    --font-en-title: "OptimaNovaLTProMedium", Georgia, serif;
    --font-en-body: "FrutigerLTProRoman", Arial, Helvetica, sans-serif;
    --font-ar-title: "FrutigerLTArabic65Bold", Tahoma, Arial, sans-serif;
    --font-ar-body: "FrutigerLTArabic55Roman", Tahoma, Arial, sans-serif;
}
html { font-family: var(--font-en-body); }
html[lang="ar"] { font-family: var(--font-ar-body); }
h1, h2, h3, .brand strong, .listing-title, .feature-copy h2, .detail-price, .listing-price {
    font-family: var(--font-en-title);
    font-weight: 500;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .brand strong,
html[lang="ar"] .listing-title,
html[lang="ar"] .feature-copy h2,
html[lang="ar"] .detail-price,
html[lang="ar"] .listing-price {
    font-family: var(--font-ar-title);
    font-weight: 700;
}
button, input, select, textarea, .button, .site-nav a, .language-pill, .footer-brand, .copyright {
    font-family: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.language-pill:hover,
.language-pill:focus-visible,
.text-link:hover,
.back-link:hover,
.listing-card:hover .listing-title,
.advanced-toggle:hover,
.advanced-toggle:focus-visible {
    color: var(--gold);
}
.button:hover,
.button:focus-visible,
.pagination a:hover,
.pagination a:focus-visible {
    border-color: var(--gold);
    color: #241B10;
    background: rgba(200,162,93,.18);
}
.button.primary:hover,
.button.primary:focus-visible {
    background: var(--gold);
    color: #241B10;
    border-color: var(--gold);
}
.hero-feature-card { min-height: 560px; }
.carousel-dots {
    top: auto;
    right: 18px;
    bottom: 18px;
    align-items: center;
    padding: 8px;
    border-radius: 999px;
    background: rgba(36,36,36,.38);
    backdrop-filter: blur(10px);
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
}
.carousel-dots button.is-active,
.carousel-dots button:hover,
.carousel-dots button:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
}
.carousel-dots .carousel-mini {
    width: 24px;
    height: 24px;
    color: var(--white);
    background: rgba(255,255,255,.12);
    font-size: 1rem;
    line-height: 1;
}
.carousel-arrow { display: none; }
.hero-search { align-items: end; }
.hero-search .advanced-toggle {
    grid-column: 1 / -1;
    margin-top: 2px;
}
.hero-search .advanced-filter-row {
    grid-column: 1 / -1;
}
.listing-card { border-color: rgba(200,162,93,.28); }
.status-badge:empty { display: none; }
.card-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--charcoal);
    font-size: .86rem;
}
.card-location svg { color: var(--gold); }
.amenity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.amenity-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid rgba(200,162,93,.45);
    border-radius: 999px;
    background: rgba(200,162,93,.08);
    color: var(--charcoal);
    font-size: .76rem;
    font-weight: 800;
}
.amenity-tags svg { color: var(--maroon); }
.pagination {
    justify-content: center;
}
.property-main h1 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.16;
}
.property-gallery {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 980px;
    gap: 12px;
    padding-block: 24px 0;
}
.gallery-main {
    width: 100%;
    height: clamp(300px, 48vw, 500px);
    aspect-ratio: auto;
    object-fit: contain;
    background: #eee9e1;
    border-radius: 8px;
}
.gallery-main-button {
    display: grid;
    place-items: center;
    background: #eee9e1;
    border: 1px solid rgba(200,162,93,.24);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(36,36,36,.08);
    overflow: hidden;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    padding: 2px 0 8px;
}
.gallery-thumbs button {
    flex: 0 0 92px;
    border-radius: 6px;
    opacity: .72;
}
.gallery-thumbs button.is-active,
.gallery-thumbs button:hover,
.gallery-thumbs button:focus-visible {
    opacity: 1;
    border-color: var(--gold);
}
.gallery-thumbs img {
    width: 100%;
    height: 64px;
    aspect-ratio: auto;
    object-fit: cover;
}
.gallery-prev,
.gallery-next {
    top: calc(24px + min(250px, 24vw));
    transform: translateY(-50%);
}
.gallery-prev { left: 26px; }
.gallery-next { right: 26px; }
.gallery-counter,
.lightbox-counter {
    position: absolute;
    z-index: 6;
    right: 18px;
    bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(36,36,36,.72);
    color: var(--white);
    font-size: .82rem;
    font-weight: 900;
}
.lightbox-counter {
    position: fixed;
    right: 50%;
    bottom: 24px;
    transform: translateX(50%);
}
.lightbox-image {
    max-width: min(1120px, 86vw);
    max-height: 82vh;
    object-fit: contain;
}
.details-grid div,
.profile-card,
.service-card {
    min-height: 100%;
}
.profile-grid {
    align-items: stretch;
}
.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-color: rgba(200,162,93,.28);
    box-shadow: 0 12px 30px rgba(36,36,36,.05);
}
.profile-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(136,30,45,.08);
    color: var(--gold);
}
.profile-icon svg {
    width: 22px;
    height: 22px;
}
.profile-card h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.profile-card p { margin: 0; }
.profile-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-card .button {
    margin-top: auto;
    align-self: flex-start;
}
.office-map {
    width: 100%;
    min-height: 290px;
    margin: 8px 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
}
.site-footer {
    grid-template-columns: minmax(260px, 1fr) minmax(280px, auto) minmax(180px, 1fr);
    min-height: 112px;
}
.footer-brand img {
    filter: brightness(0) invert(1);
}
.footer-brand p:last-child {
    color: rgba(255,255,255,.82);
}
.copyright {
    text-align: center;
    line-height: 1.55;
}
.social-links {
    justify-content: flex-end;
}
.social-links a {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.social-links a:hover,
.social-links a:focus-visible {
    color: var(--gold);
    background: transparent;
    transform: translateY(-1px);
}
.floating-whatsapp {
    bottom: 92px;
    width: 50px;
    height: 50px;
}
.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    background: var(--gold);
    color: #241B10;
}

@media (max-width: 1180px) {
    .profile-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-counter { right: 18px; }
}

@media (max-width: 760px) {
    .hero-feature-card { min-height: 420px; }
    .carousel-dots { right: 12px; bottom: 12px; }
    .profile-service-grid { grid-template-columns: 1fr; }
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-bottom: 86px;
    }
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    .social-links { justify-content: center; }
    .gallery-counter { right: 12px; bottom: 12px; }
    .floating-whatsapp {
        width: 46px;
        height: 46px;
        bottom: 82px;
    }
}

/* Step 11 final polish */
.about-layout,
.services-layout {
    display: grid;
    gap: 22px;
}
.about-intro-panel,
.services-intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 22px;
    align-items: stretch;
}
.about-who,
.services-intro-panel article {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(136,30,45,.08), rgba(200,162,93,.1)),
        var(--white);
    border: 1px solid rgba(200,162,93,.35);
    box-shadow: 0 16px 36px rgba(36,36,36,.06);
}
.about-who h2,
.services-intro-panel h2 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    line-height: 1.15;
}
.about-who p:last-child,
.services-intro-panel > p {
    margin: 0;
    color: var(--charcoal);
    line-height: 1.78;
}
.about-highlight,
.services-intro-panel > p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 8px;
    background: var(--maroon);
    color: var(--white);
    box-shadow: var(--shadow);
}
.about-highlight span {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .82rem;
}
.about-highlight strong {
    color: var(--gold);
    font-family: var(--font-en-title);
    font-size: clamp(3.4rem, 8vw, 6rem);
    line-height: .95;
}
html[lang="ar"] .about-highlight strong { font-family: var(--font-ar-title); }
.about-highlight p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.88);
}
.about-layout .profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.about-split {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
}
.accent-card {
    background:
        linear-gradient(135deg, rgba(136,30,45,.96), rgba(136,30,45,.88)),
        var(--maroon);
    color: var(--white);
}
.accent-card h2,
.accent-card li { color: var(--white); }
.accent-card::before { background: var(--gold); }
.area-card {
    background:
        linear-gradient(90deg, rgba(200,162,93,.18), rgba(255,255,255,0) 54%),
        var(--white);
}
.services-layout .profile-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}
.services-layout .service-grid.expanded article:last-child {
    grid-column: auto;
}
.services-layout .service-card {
    min-height: 220px;
    border-top: 3px solid var(--gold);
}
.services-layout .list-property-card {
    background:
        linear-gradient(135deg, rgba(136,30,45,.08), rgba(200,162,93,.14)),
        var(--white);
    border-color: rgba(136,30,45,.24);
}
.services-layout .service-card h2 {
    min-height: 0;
    align-items: flex-start;
}
.property-gallery {
    max-width: min(920px, calc(100vw - 36px));
}
.gallery-main-button {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    background: transparent;
    box-shadow: none;
}
.gallery-main {
    height: clamp(280px, 43vw, 470px);
    max-width: 100%;
    margin-inline: auto;
    object-fit: cover;
    background: var(--pearl);
    border: 1px solid rgba(200,162,93,.28);
    box-shadow: 0 14px 34px rgba(36,36,36,.08);
}
.gallery-main[data-contain="true"] {
    object-fit: contain;
    background: transparent;
}
.gallery-prev,
.gallery-next {
    top: calc(24px + min(235px, 21.5vw));
}
.gallery-thumbs {
    justify-content: flex-start;
    max-width: min(920px, 100%);
}
.property-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    max-width: 1320px;
    gap: 34px;
}
.property-main h1 {
    font-size: clamp(1.55rem, 2.45vw, 2.35rem);
}
.property-main,
.detail-section {
    min-width: 0;
}
.description-copy,
.property-description,
.property-description p,
.detail-section p {
    max-width: 96ch;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    word-break: normal;
    line-height: 1.75;
}
.no-hyphen-justify,
.no-hyphen-justify p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    word-break: normal;
}
.property-description p {
    margin: 0 0 1em;
}
[dir="rtl"] .property-description p,
[dir="rtl"] .detail-section p,
html[lang="ar"] .property-description p,
html[lang="ar"] .detail-section p {
    text-align: justify;
    text-align-last: right;
    line-height: 1.9;
}
.property-map {
    aspect-ratio: 16 / 9;
    min-height: 300px;
    border-radius: 8px;
}
.share-icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid rgba(200,162,93,.56);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--maroon);
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.share-icon-button svg {
    width: 17px;
    height: 17px;
}
.share-icon-button:hover,
.share-icon-button:focus-visible,
.share-icon-button.is-copied {
    color: #241B10;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}
.share-copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.share-icon-button.is-copied::after {
    content: attr(data-copied-message);
    position: absolute;
    z-index: 8;
    bottom: calc(100% + 8px);
    inset-inline-end: 0;
    width: max-content;
    max-width: 190px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-size: .76rem;
    font-weight: 900;
}
.compact-actions .share-icon-button {
    flex: 0 0 36px;
}
.summary-actions .detail-share-button {
    margin-inline-start: 0;
}
.summary-actions .detail-share-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.summary-actions .detail-share-button.is-copied {
    color: #241B10;
    background: var(--gold);
    border-color: var(--gold);
}
.card-photo-controls {
    top: 50%;
    left: 9px;
    right: 9px;
    transform: translateY(-50%);
}
.card-photo-controls button {
    width: 26px;
    height: 26px;
    border-color: rgba(255,255,255,.48);
    background: rgba(36,36,36,.28);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.listing-card:hover .card-photo-controls button,
.listing-card:focus-within .card-photo-controls button {
    opacity: .88;
}
.card-photo-controls button:hover,
.card-photo-controls button:focus-visible {
    opacity: 1;
}
.site-footer {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, auto) minmax(220px, 1fr);
    align-items: center;
    padding-bottom: 34px;
}
.copyright {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
}
.social-links {
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.social-links a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1;
}
.social-links a:hover,
.social-links a:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(255,255,255,.12);
}
.social-links svg {
    width: 18px;
    height: 18px;
}
.floating-whatsapp {
    bottom: 24px;
}

@media (max-width: 1180px) {
    .about-layout .profile-grid,
    .services-layout .profile-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-intro-panel,
    .services-intro-panel,
    .about-split {
        grid-template-columns: 1fr;
    }
    .summary-actions .detail-share-button {
        margin-inline-start: 0;
    }
}

@media (max-width: 760px) {
    .about-layout .profile-grid,
    .services-layout .profile-service-grid {
        grid-template-columns: 1fr;
    }
    .gallery-main {
        height: clamp(250px, 72vw, 380px);
    }
    .gallery-prev,
    .gallery-next {
        top: calc(24px + min(190px, 36vw));
    }
    .card-photo-controls button {
        opacity: .84;
    }
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-bottom: 92px;
    }
    .social-links {
        justify-content: center;
    }
    .floating-whatsapp {
        bottom: 22px;
    }
}

/* Step 12 audit fixes: centered circular controls and explicit gold social hover */
.carousel-mini,
.card-photo-controls button,
.gallery-arrow,
.lightbox-arrow,
.lightbox-close,
.share-icon-button,
.floating-whatsapp,
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}
.carousel-mini,
.card-photo-controls button,
.gallery-arrow,
.lightbox-arrow,
.lightbox-close {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    padding: 0;
}
.carousel-mini,
.card-photo-controls button {
    transform: none;
}
.gallery-prev,
.gallery-next,
.lightbox-prev,
.lightbox-next {
    direction: ltr;
}
.lightbox-close {
    font-size: 1.8rem;
    line-height: 1;
}
.gallery-arrow,
.lightbox-arrow {
    line-height: 1;
}
.card-photo-controls button,
.carousel-mini {
    line-height: 1;
}
.gallery-arrow:hover,
.gallery-arrow:focus-visible,
.gallery-arrow:active,
.lightbox-arrow:hover,
.lightbox-arrow:focus-visible,
.lightbox-arrow:active,
.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-close:active,
.carousel-mini:hover,
.carousel-mini:focus-visible,
.carousel-mini:active,
.card-photo-controls button:hover,
.card-photo-controls button:focus-visible,
.card-photo-controls button:active {
    background: var(--gold);
    border-color: var(--gold);
    color: #241B10;
}
.social-links a,
.social-links a span,
.social-links a svg,
.social-links a svg path {
    color: currentColor;
    fill: currentColor;
}

/* Step 14 live fix: property detail mobile containment and structured map display */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
.property-gallery,
.property-shell,
.property-main,
.summary-panel,
.detail-section {
    box-sizing: border-box;
}
.property-description,
.property-description p {
    hyphens: auto;
    overflow-wrap: break-word;
}
.location-note {
    color: var(--charcoal);
    font-weight: 800;
}

@media (max-width: 900px) {
    .property-gallery {
        --mobile-gallery-height: clamp(260px, 62vw, 430px);
        width: 100%;
        max-width: 100%;
        padding-inline: clamp(14px, 4vw, 28px);
        overflow: hidden;
    }
    .property-gallery,
    .property-shell {
        grid-template-columns: 1fr;
    }
    .gallery-main-button {
        width: 100%;
        max-width: 100%;
    }
    .gallery-main {
        width: 100%;
        height: var(--mobile-gallery-height);
        max-height: 70vh;
        object-fit: contain;
    }
    .gallery-prev,
    .gallery-next {
        top: calc(24px + (var(--mobile-gallery-height) / 2));
    }
    .gallery-prev { left: clamp(22px, 5vw, 34px); }
    .gallery-next { right: clamp(22px, 5vw, 34px); }
    .gallery-thumbs {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .gallery-thumbs button {
        flex: 0 0 86px;
        scroll-snap-align: start;
    }
    .property-shell {
        width: 100%;
        max-width: 100%;
        padding-inline: clamp(14px, 4vw, 28px);
        gap: 20px;
    }
    .summary-panel {
        order: -1;
        width: 100%;
        max-width: 100%;
    }
    .property-main h1,
    .summary-panel h2 {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
        overflow-wrap: break-word;
    }
    .summary-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .summary-actions .button {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
    }
    .facts-row,
    .amenities-list {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    .details-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }
    .property-map {
        width: 100%;
        min-height: 230px;
    }
    .lightbox-arrow,
    .lightbox-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 460px) {
    .property-gallery {
        --mobile-gallery-height: clamp(230px, 64vw, 300px);
        padding-inline: 12px;
    }
    .property-shell {
        padding-inline: 12px;
    }
    .gallery-arrow,
    .lightbox-arrow,
    .lightbox-close {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .gallery-prev { left: 18px; }
    .gallery-next { right: 18px; }
    .summary-actions {
        grid-template-columns: 1fr 1fr;
    }
    .summary-actions .button {
        font-size: .92rem;
        min-height: 44px;
    }
    .summary-actions .detail-share-button {
        grid-column: 1 / -1;
    }
    .gallery-counter {
        right: 18px;
        bottom: 14px;
    }
    .property-main h1,
    .summary-panel h2 {
        font-size: clamp(1.28rem, 7vw, 1.65rem);
    }
}
.social-links a:hover,
.social-links a:focus-visible,
.social-links a:active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(200,162,93,.12);
}
.social-links a:hover span,
.social-links a:focus-visible span,
.social-links a:active span,
.social-links a:hover svg,
.social-links a:focus-visible svg,
.social-links a:active svg,
.social-links a:hover svg path,
.social-links a:focus-visible svg path,
.social-links a:active svg path {
    color: var(--gold);
    fill: var(--gold);
}

/* Step 12 addendum fixes */
.about-layout .about-intro-panel,
.about-layout .about-grid,
.about-layout .about-split {
    align-items: stretch;
}
.about-layout .profile-card,
.about-layout .about-who,
.about-layout .about-highlight {
    height: 100%;
}
.about-layout .profile-grid {
    grid-auto-rows: 1fr;
}
.about-layout .profile-card {
    justify-content: flex-start;
}
.property-address,
.card-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.property-address {
    margin: 12px 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(200,162,93,.35);
    border-radius: 8px;
    background: rgba(200,162,93,.08);
    color: var(--charcoal);
    font-weight: 900;
}
.property-address svg,
.card-location svg {
    flex: 0 0 auto;
    color: var(--gold);
}
.field-error {
    display: block;
    min-height: 1.2em;
    margin-top: 5px;
    color: var(--maroon);
    font-size: .78rem;
    font-weight: 900;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(136,30,45,.1);
}
.floating-whatsapp {
    bottom: 110px;
}
.rtl .floating-whatsapp {
    right: auto;
    left: 18px;
}

@media (max-width: 760px) {
    .floating-whatsapp {
        bottom: 90px;
    }
}

/* Step 13 targeted fixes */
.profile-hero.page-hero.compact {
    display: grid;
    gap: 12px;
    padding-block: 44px;
}
.profile-hero .eyebrow {
    margin-bottom: 0;
}
.profile-hero h1 {
    max-width: 980px;
    font-size: clamp(1.9rem, 3.4vw, 3.15rem);
    line-height: 1.12;
}
.profile-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
}
.about-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
.about-split .profile-card {
    min-height: 220px;
    height: 100%;
}
.about-split .value-list {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 8px;
}
.area-card {
    justify-content: center;
}
.card-photo-controls {
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    aspect-ratio: 5 / 3.6;
    transform: none;
    align-items: center;
    direction: ltr;
    padding-inline: 9px;
}
.card-photo-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
    text-indent: 0;
}
.card-photo-controls button:hover,
.card-photo-controls button:focus-visible,
.card-photo-controls button:active {
    background: var(--gold);
    border-color: var(--gold);
    color: #241B10;
}

@media (max-width: 1180px) {
    .about-split {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .about-split {
        grid-template-columns: 1fr;
    }
    .about-split .value-list {
        grid-template-columns: 1fr;
    }
}

/* Step 13 follow-up: About and Services top alignment consistency */
.page-hero.compact.profile-hero {
    min-height: 236px;
    padding-block: 44px;
    align-content: center;
    gap: 12px;
}
.page-hero.compact.profile-hero .eyebrow {
    margin: 0;
    line-height: 1.2;
}
.page-hero.compact.profile-hero h1 {
    width: min(980px, 100%);
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 3.15rem);
    line-height: 1.12;
}
.page-hero.compact.profile-hero p:not(.eyebrow) {
    width: min(760px, 100%);
    margin: 0;
}
.about-layout.content-band,
.services-layout.section {
    padding-block: 38px 76px;
}
.about-intro-panel,
.services-intro-panel {
    margin-top: 0;
}

@media (max-width: 760px) {
    .page-hero.compact.profile-hero {
        min-height: auto;
        padding-block: 36px;
    }
    .about-layout.content-band,
    .services-layout.section {
        padding-block: 28px 58px;
    }
}

/* Final top rhythm: compact page heroes and first content sections */
.page-hero.compact {
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 236px;
    padding-block: 44px;
}
.page-hero.compact .eyebrow {
    margin: 0;
    line-height: 1.2;
}
.page-hero.compact h1 {
    width: min(980px, 100%);
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 3.15rem);
    line-height: 1.12;
}
.page-hero.compact p:not(.eyebrow) {
    width: min(760px, 100%);
    margin: 0;
}
.page-hero.compact .cta-row {
    margin-top: 4px;
}
.about-layout.content-band,
.services-layout.section,
.properties-page,
.contact-layout {
    padding-top: 38px;
}
.page-hero.compact + .content-band,
.page-hero.compact + .section,
.page-hero.compact + .properties-page,
.page-hero.compact + .contact-layout {
    padding-top: 38px;
}

@media (max-width: 760px) {
    .page-hero.compact {
        min-height: auto;
        padding-block: 36px;
    }
    .about-layout.content-band,
    .services-layout.section,
    .properties-page,
    .contact-layout {
        padding-top: 28px;
    }
    .page-hero.compact + .content-band,
    .page-hero.compact + .section,
    .page-hero.compact + .properties-page,
    .page-hero.compact + .contact-layout {
        padding-top: 28px;
    }
}

/* Locked compact-page rhythm: About, Services, Properties, Contact */
body:not(.home-page) .page-hero.compact {
    display: grid;
    align-content: start;
    gap: 12px;
    box-sizing: border-box;
    height: 282px;
    min-height: 0;
    padding-top: 54px;
    padding-bottom: 44px;
    overflow: hidden;
}
body:not(.home-page) .page-hero.compact .eyebrow {
    margin: 0;
    line-height: 1.2;
}
body:not(.home-page) .page-hero.compact h1 {
    width: min(980px, 100%);
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 3.15rem);
    line-height: 1.12;
}
body:not(.home-page) .page-hero.compact p:not(.eyebrow) {
    width: min(760px, 100%);
    margin: 0;
}
.page-hero.compact + .about-layout.content-band,
.page-hero.compact + .services-layout.section {
    padding-top: 38px;
}

@media (max-width: 760px) {
    body:not(.home-page) .page-hero.compact {
        height: auto;
        min-height: auto;
        padding-top: 36px;
        padding-bottom: 36px;
        overflow: visible;
    }
    .page-hero.compact + .about-layout.content-band,
    .page-hero.compact + .services-layout.section {
        padding-top: 28px;
    }
}
