/*
 * Hudrat Real Estate — white & gold design.
 * Loaded after public.css. Uses logical properties (inline-start/end) so the Arabic page mirrors itself.
 */
:root {
    --hd-ink: #2b2218;
    --hd-muted: #85786a;
    --hd-gold: #a67548;
    --hd-gold-2: #d2a56c;
    --hd-gold-dark: #8a5f37;
    --hd-gold-lite: #dcbb8f;
    --hd-sand: #f3e8d8;
    --hd-sand-2: #fbf6ee;
    --hd-line: #ece3d6;
    --hd-canvas: #fbf8f3;
    --hd-shadow: 0 18px 50px rgba(110, 75, 35, .12);
    --hd-serif: Georgia, "Times New Roman", serif;
    --hd-sans: "Segoe UI", Inter, Arial, sans-serif;
}

html[lang="ar"] {
    --hd-serif: "Noto Naskh Arabic", Georgia, serif;
    --hd-sans: "Tajawal", "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--hd-canvas);
    color: var(--hd-ink);
    font-family: var(--hd-sans);
}

.hd-wrap {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

.hd-i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[dir="rtl"] .hd-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

.hd-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hd-gold);
    font-weight: 700;
}

html[lang="ar"] .hd-eyebrow {
    letter-spacing: 0;
    font-size: 13px;
}

/* ---------- buttons and badges ---------- */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font: 700 14px/1.2 var(--hd-sans);
    padding: 13px 22px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.hd-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(110, 75, 35, .16);
}

.hd-btn--gold {
    background: linear-gradient(135deg, var(--hd-gold-2), var(--hd-gold));
    color: #fff;
}

.hd-btn--dark {
    background: var(--hd-ink);
    color: #fff;
}

.hd-btn--ghost {
    background: #fff;
    border-color: var(--hd-line);
    color: var(--hd-ink);
}

.hd-btn--line {
    background: #fff;
    border-color: var(--hd-gold-lite);
    color: var(--hd-ink);
}

.hd-btn--block {
    width: 100%;
    padding: 15px;
}

.hd-btn--icon {
    padding: 12px;
}

.hd-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hd-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hd-gold);
    color: #fff;
}

.hd-badge--sand {
    background: var(--hd-sand);
    color: #7b5530;
}

.hd-badge--light {
    background: rgba(255, 255, 255, .95);
    color: var(--hd-ink);
}

/* ---------- header ---------- */
.hd-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-top: 3px solid var(--hd-gold);
    border-bottom: 1px solid var(--hd-line);
}

.hd-header--over {
    position: fixed;
    inset-inline: 0;
    background: transparent;
    border-bottom-color: transparent;
    transition: background .2s, border-color .2s;
}

.hd-header--over.scrolled,
.hd-header--over.menu-open {
    background: rgba(255, 255, 255, .97);
    border-bottom-color: var(--hd-line);
    backdrop-filter: blur(8px);
}

.hd-header-row {
    display: flex;
    align-items: center;
    height: 84px;
    gap: 36px;
}

.hd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: none;
}

.hd-logo img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hd-gold-lite);
}

.hd-logo b {
    display: block;
    font: 700 19px/1 Georgia, serif;
    letter-spacing: .22em;
    color: var(--hd-ink);
}

.hd-logo small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .34em;
    color: var(--hd-gold);
    font-weight: 700;
}

.hd-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 600;
}

.hd-nav a {
    color: #4a3d2f;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}

.hd-nav a:hover,
.hd-nav a.on {
    color: var(--hd-gold);
}

.hd-nav > a.on:after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -4px;
    height: 2px;
    background: var(--hd-gold);
}

.hd-nav-phone {
    display: none;
}

.hd-header-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hd-lang {
    display: flex;
    border: 1px solid var(--hd-line);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.hd-lang a {
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hd-muted);
    text-decoration: none;
}

.hd-lang a.on {
    background: var(--hd-gold);
    color: #fff;
}

.hd-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-ink);
    text-decoration: none;
    white-space: nowrap;
}

.hd-lang,
.hd-enquire {
    flex: none;
}

.hd-nav a {
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .hd-header-actions .hd-phone {
        display: none;
    }

    .hd-nav {
        gap: 22px;
    }
}

.hd-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hd-line);
    background: #fff;
    color: var(--hd-ink);
    place-items: center;
    cursor: pointer;
}

.hd-burger-close {
    display: none;
}

/* ---------- home: first screen ---------- */
.hd-hero {
    position: relative;
    min-height: 860px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
    overflow: hidden;
}

.hd-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 252, 247, .97) 0%, rgba(255, 250, 242, .9) 36%, rgba(255, 248, 238, .35) 70%, rgba(255, 248, 238, .05)),
        linear-gradient(0deg, rgba(251, 248, 243, .95), transparent 30%);
}

[dir="rtl"] .hd-hero:before {
    background:
        linear-gradient(270deg, rgba(255, 252, 247, .97) 0%, rgba(255, 250, 242, .9) 36%, rgba(255, 248, 238, .35) 70%, rgba(255, 248, 238, .05)),
        linear-gradient(0deg, rgba(251, 248, 243, .95), transparent 30%);
}

.hd-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 190px;
}

.hd-hero h1 {
    font: 700 72px/1.03 var(--hd-serif);
    max-width: 780px;
    margin: 16px 0 22px;
    color: var(--hd-ink);
}

.hd-hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--hd-gold);
}

html[lang="ar"] .hd-hero h1 {
    font-size: 60px;
    line-height: 1.3;
}

html[lang="ar"] .hd-hero h1 em {
    font-style: normal;
}

.hd-lead {
    font-size: 18px;
    color: #6e6253;
    max-width: 560px;
    margin: 0;
}

.hd-search {
    margin-top: 42px;
    max-width: 920px;
    background: #fff;
    border: 1px solid #f0e4d2;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(110, 75, 35, .18);
}

.hd-search-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
}

.hd-search-tabs span {
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hd-muted);
}

.hd-search-tabs .on {
    color: var(--hd-gold);
    box-shadow: inset 0 -2px 0 var(--hd-gold);
}

.hd-search-fields {
    display: flex;
    align-items: center;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--hd-line);
    margin: 0;
}

.hd-sf {
    display: block;
    padding: 6px 18px;
    border-inline-end: 1px solid var(--hd-line);
    min-width: 200px;
}

.hd-sf--grow {
    flex: 1;
}

.hd-sf small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hd-muted);
}

.hd-sf input,
.hd-sf select {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 4px 0;
    background: transparent;
    font: 600 15px var(--hd-sans);
    color: var(--hd-ink);
}

.hd-search-go {
    margin-inline-start: 14px;
    padding: 17px 28px;
    font-size: 15px;
}

.hd-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    margin-top: 50px;
}

.hd-stats b {
    display: block;
    font: 700 34px/1 var(--hd-serif);
    color: var(--hd-ink);
}

.hd-stats small {
    font-size: 13px;
    color: var(--hd-muted);
}

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

.hd-section--tight {
    padding-top: 0;
}

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

.hd-head h2,
.hd-why h2,
.hd-cta h2,
.hd-box h2 {
    font: 700 40px/1.12 var(--hd-serif);
    color: var(--hd-ink);
    margin: 8px 0 0;
}

.hd-head p {
    color: var(--hd-muted);
    max-width: 480px;
    margin: 10px 0 0;
}

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

.hd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--hd-ink);
    transition: box-shadow .2s, transform .2s;
}

.hd-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hd-shadow);
}

.hd-card-photo {
    position: relative;
    height: 240px;
    background: var(--hd-sand);
}

.hd-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-card-photo .hd-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
}

.hd-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    flex: 1;
}

.hd-card-price {
    font: 700 24px var(--hd-serif);
    color: var(--hd-ink);
}

.hd-card-price small {
    font: 600 13px var(--hd-sans);
    color: var(--hd-gold);
}

.hd-card-name {
    font-weight: 700;
    font-size: 16px;
    margin-top: 2px;
}

.hd-card-place {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--hd-muted);
}

.hd-card-place .hd-i {
    width: 14px;
    height: 14px;
    color: var(--hd-gold);
}

.hd-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hd-line);
    font-size: 13px;
    color: #5c5145;
}

.hd-card-body .hd-card-meta {
    margin-top: 16px;
}

.hd-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hd-card-meta .hd-i {
    width: 16px;
    height: 16px;
    color: var(--hd-gold);
}

.hd-empty {
    grid-column: 1 / -1;
    color: var(--hd-muted);
    text-align: center;
    padding: 40px 0;
}

/* ---------- off-plan block ---------- */
.hd-offplan {
    background: linear-gradient(180deg, #fbf3e6, #f5e8d4);
    position: relative;
    overflow: hidden;
}

.hd-op-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 268px 268px;
    gap: 24px;
}

.hd-op-grid--one {
    grid-template-columns: 1fr;
    grid-template-rows: 460px;
}

.hd-op {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--hd-sand);
}

.hd-op--main {
    grid-row: span 2;
}

.hd-op img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.hd-op:hover img {
    transform: scale(1.03);
}

.hd-op:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(38, 27, 15, .88) 8%, rgba(38, 27, 15, .18) 60%, transparent);
}

.hd-op-tags {
    position: absolute;
    top: 22px;
    inset-inline-start: 24px;
    z-index: 2;
}

.hd-op-in {
    position: absolute;
    inset-inline: 28px;
    bottom: 26px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.hd-op-dev {
    color: var(--hd-gold-lite);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.hd-op-name {
    font: 700 30px/1.1 var(--hd-serif);
}

.hd-op:not(.hd-op--main) .hd-op-name {
    font-size: 24px;
}

.hd-op-title {
    color: #f3e8d8;
    margin-top: 6px;
}

.hd-op-row {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px;
    color: #e6d6c0;
}

.hd-op-row b {
    display: block;
    color: #fff;
    font: 700 16px var(--hd-serif);
}

/* ---------- communities ---------- */
.hd-comm {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 250px 250px;
    gap: 18px;
}

.hd-cm {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #d6b184, #a67548);
}

.hd-cm:nth-child(3n) {
    background: linear-gradient(135deg, #efdcc0, #c99a63);
}

.hd-cm--big {
    grid-column: span 2;
    grid-row: span 2;
}

.hd-cm img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-cm:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(38, 27, 15, .8), rgba(38, 27, 15, .02) 65%);
}

.hd-cm-in {
    position: absolute;
    inset-inline: 22px;
    bottom: 18px;
    z-index: 2;
}

.hd-cm-name {
    display: block;
    font: 700 22px/1.15 var(--hd-serif);
}

.hd-cm--big .hd-cm-name {
    font-size: 32px;
}

.hd-cm small {
    color: #f3e8d8;
    font-size: 13px;
}

/* ---------- developers strip ---------- */
.hd-devs {
    background: #fff;
    border-block: 1px solid var(--hd-line);
    padding: 30px 0;
}

.hd-devs small {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hd-muted);
    margin-bottom: 18px;
}

.hd-devs-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
}

.hd-devs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    text-align: center;
    font: 700 13px/1.3 Georgia, serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #b09a7d;
    text-decoration: none;
    border-inline-start: 1px solid var(--hd-line);
}

.hd-devs a:first-child {
    border-inline-start: 0;
}

.hd-devs a:hover {
    color: var(--hd-gold);
}

/* ---------- why ---------- */
.hd-why {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.hd-why-photo {
    height: 540px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--hd-sand);
}

.hd-why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-why-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 30px;
    margin-top: 32px;
}

.hd-why-item i {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--hd-sand);
    color: var(--hd-gold);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.hd-why-item i .hd-i {
    width: 24px;
    height: 24px;
}

.hd-why-item b {
    display: block;
    font: 700 19px var(--hd-serif);
    margin-bottom: 4px;
}

.hd-why-item p {
    margin: 0;
    color: var(--hd-muted);
    font-size: 14px;
}

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

.hd-sv {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    padding: 28px;
    color: var(--hd-ink);
    text-decoration: none;
    transition: box-shadow .2s;
}

.hd-sv:hover {
    box-shadow: var(--hd-shadow);
}

.hd-sv-num {
    position: absolute;
    top: 20px;
    inset-inline-end: 24px;
    font: 700 40px var(--hd-serif);
    color: var(--hd-sand);
}

.hd-sv i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--hd-sand);
    color: var(--hd-gold);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.hd-sv i .hd-i {
    width: 24px;
    height: 24px;
}

.hd-sv b {
    display: block;
    font: 700 21px var(--hd-serif);
}

.hd-sv p {
    color: var(--hd-muted);
    font-size: 14px;
    margin: 6px 0 14px;
}

.hd-more {
    color: var(--hd-gold);
    font-weight: 700;
    font-size: 14px;
}

.hd-sv--hl {
    background: linear-gradient(135deg, #c99a63, #9a6b3f);
    border-color: var(--hd-gold);
    color: #fff;
}

.hd-sv--hl p {
    color: #f6e9d6;
}

.hd-sv--hl i {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.hd-sv--hl .hd-more {
    color: #fff;
}

.hd-sv--hl .hd-sv-num {
    color: rgba(255, 255, 255, .18);
}

/* ---------- consultation ---------- */
.hd-cta {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 56px 60px;
    border-radius: 26px;
    background: linear-gradient(120deg, #fbf3e6, #f1e0c6);
    border: 1px solid #ecdcc4;
}

.hd-cta h2 {
    font-size: 38px;
}

.hd-cta p {
    color: var(--hd-muted);
    margin: 12px 0 0;
}

.hd-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hd-wa-fab {
    display: none;
}

/* ---------- footer ---------- */
.hd-footer {
    background: #fffdf9;
    border-top: 3px solid var(--hd-gold);
    color: var(--hd-muted);
    padding: 64px 0 30px;
    font-size: 14px;
    margin-top: 90px;
}

.hd-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.hd-footer h5 {
    color: var(--hd-ink);
    font-size: 14px;
    margin: 0 0 14px;
}

.hd-footer-grid a,
.hd-footer-grid span {
    display: block;
    color: var(--hd-muted);
    text-decoration: none;
    margin-bottom: 8px;
}

.hd-footer-grid a:hover {
    color: var(--hd-gold);
}

.hd-footer-grid a.hd-logo {
    display: flex;
    margin-bottom: 0;
}

.hd-footer-grid .hd-logo span {
    margin: 0;
}

.hd-footer-grid .hd-logo b {
    color: var(--hd-ink);
}

.hd-footer-bottom {
    border-top: 1px solid var(--hd-line);
    margin-top: 46px;
    padding-top: 22px;
    font-size: 13px;
}

/* ---------- property page ---------- */
.hd-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--hd-muted);
    padding: 26px 0 18px;
}

.hd-crumbs a {
    color: var(--hd-muted);
    text-decoration: none;
}

.hd-crumbs b {
    color: var(--hd-ink);
    font-weight: 600;
}

.hd-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 24px;
}

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

.hd-title-row h1 {
    font: 700 50px/1.05 var(--hd-serif);
    margin: 0;
    color: var(--hd-ink);
}

.hd-loc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--hd-muted);
    margin-top: 12px;
}

.hd-loc .hd-i {
    color: var(--hd-gold);
}

.hd-loc b {
    color: var(--hd-ink);
    font-weight: 600;
}

.hd-price {
    text-align: end;
    flex: none;
}

.hd-price-label {
    display: block;
    font-size: 12px;
    color: var(--hd-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}

.hd-price-value {
    display: block;
    font: 700 38px/1.15 var(--hd-serif);
    color: var(--hd-ink);
}

.hd-price-value em {
    font-style: normal;
    font-size: 20px;
    color: var(--hd-gold);
}

.hd-price-acts {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.hd-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--hd-line);
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--hd-ink);
}

.hd-gallery {
    position: relative;
    display: grid;
    gap: 10px;
    height: 540px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--hd-canvas);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.hd-gallery--1 { grid-template-columns: 2fr 1fr; }
.hd-gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hd-gallery--3,
.hd-gallery--4 { grid-template-columns: 2.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

.hd-gallery--2 .hd-gal-main,
.hd-gallery--3 .hd-gal-main,
.hd-gallery--4 .hd-gal-main { grid-row: 1 / 3; }

/* With three small tiles the last one fills the right column. */
.hd-gallery--3 .hd-gal-tile--last { grid-column: 3; grid-row: 1 / 3; }

.hd-gal-main,
.hd-gal-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: hidden;
    background: var(--hd-sand);
    cursor: zoom-in;
    color: #fff;
    text-decoration: none;
    min-height: 0;
}

.hd-gal-main img,
.hd-gal-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.hd-gal-main:hover img,
.hd-gal-tile:hover img {
    transform: scale(1.03);
}

.hd-gal-video {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #c99a63, #9a6b3f);
    font: 700 18px var(--hd-serif);
}

.hd-play {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    transition: transform .2s;
}

.hd-play svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-inline-start: 4px;
}

[dir="rtl"] .hd-play svg {
    transform: scaleX(-1);
}

.hd-gal-video:hover .hd-play {
    transform: scale(1.08);
}

.hd-gal-more:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(60, 40, 20, .55);
}

.hd-gal-more-label {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    text-align: center;
}

.hd-gal-more-label b {
    font: 700 30px var(--hd-serif);
}

.hd-gal-more-label small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f3e2c8;
}

.hd-gal-count {
    display: none;
}

.hd-gal-tabs {
    position: absolute;
    inset-inline-start: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hd-gal-tabs button,
.hd-gal-tabs a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--hd-ink);
    font: 700 13px var(--hd-sans);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.hd-gal-tabs .on {
    background: var(--hd-gold);
    color: #fff;
}

.hd-gal-tabs .hd-i {
    width: 16px;
    height: 16px;
}

.hd-gal-tab-video {
    display: none !important;
}

/* ---------- full-screen viewer ---------- */
.hd-lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 17, 10, .94);
}

.hd-lb[hidden] {
    display: none;
}

.hd-lb-stage {
    max-width: min(1400px, 92vw);
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-lb-stage img {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    user-select: none;
}

.hd-lb-stage iframe {
    width: min(1200px, 92vw);
    aspect-ratio: 16 / 9;
    max-height: 84vh;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.hd-lb-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.hd-lb-btn[hidden] {
    display: none;
}

.hd-lb-btn:hover {
    background: var(--hd-gold);
    border-color: var(--hd-gold);
}

.hd-lb-btn .hd-i {
    width: 24px;
    height: 24px;
}

.hd-lb-close {
    top: 20px;
    inset-inline-end: 20px;
}

.hd-lb-prev {
    inset-inline-start: 24px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
}

.hd-lb-next {
    inset-inline-end: 24px;
    top: 50%;
    transform: translateY(-50%);
}

[dir="rtl"] .hd-lb-prev {
    transform: translateY(-50%);
}

[dir="rtl"] .hd-lb-next {
    transform: translateY(-50%) scaleX(-1);
}

.hd-lb-counter {
    position: absolute;
    top: 30px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    color: #f3e8d8;
    font: 600 14px var(--hd-sans);
}

[dir="rtl"] .hd-lb-counter {
    transform: translateX(50%);
}

.hd-verified {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .94);
    color: var(--hd-ink);
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hd-verified .hd-i {
    width: 16px;
    height: 16px;
    color: var(--hd-gold);
}

.hd-main {
    display: grid;
    grid-template-columns: 1fr 372px;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

.hd-box {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    padding: 30px 32px;
    margin-bottom: 22px;
}

.hd-box h2 {
    font-size: 26px;
    margin: 6px 0 16px;
}

.hd-text {
    color: #5c5145;
}

.hd-text p {
    margin: 0 0 12px;
}

.hd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 0;
    overflow: hidden;
}

.hd-fact {
    padding: 22px 18px;
    border-inline-end: 1px solid var(--hd-line);
}

.hd-fact:last-child {
    border-inline-end: 0;
}

.hd-fact .hd-i {
    width: 24px;
    height: 24px;
    color: var(--hd-gold);
    display: block;
    margin-bottom: 10px;
}

.hd-fact small {
    display: block;
    font-size: 12px;
    color: var(--hd-muted);
}

.hd-fact b {
    font: 700 17px var(--hd-serif);
    color: var(--hd-ink);
}

.hd-feats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hd-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--hd-sand-2);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14px;
}

.hd-feat i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--hd-gold);
    display: grid;
    place-items: center;
    flex: none;
}

.hd-plan-box,
.hd-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hd-plan-box p,
.hd-location p {
    color: var(--hd-muted);
    margin: 0;
}

.hd-side {
    position: sticky;
    top: 110px;
    scroll-margin-top: 110px;
}

.hd-agent {
    background: linear-gradient(150deg, #fffaf2, #f5e7d2);
    border: 1px solid #ecdcc4;
    border-radius: 18px;
    padding: 24px;
}

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

.hd-agent-head img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--hd-gold-lite);
}

.hd-agent-head small {
    display: block;
    color: var(--hd-gold);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
}

.hd-agent-head b {
    display: block;
    font: 700 19px var(--hd-serif);
}

.hd-agent-head span {
    font-size: 12px;
    color: var(--hd-muted);
}

.hd-agent-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hd-form {
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    padding: 26px;
    margin-top: 18px;
    box-shadow: var(--hd-shadow);
}

.hd-form h3 {
    font: 700 22px/1.2 var(--hd-serif);
    margin: 6px 0;
}

.hd-form > p {
    font-size: 13px;
    color: var(--hd-muted);
    margin: 0 0 16px;
}

.hd-form label {
    display: block;
    margin-bottom: 10px;
}

.hd-form label > span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hd-form input {
    width: 100%;
    border: 1px solid var(--hd-line);
    border-radius: 10px;
    padding: 12px 14px;
    font: 14px var(--hd-sans);
    background: #fdfaf5;
    color: var(--hd-ink);
}

.hd-form input:focus {
    outline: 2px solid var(--hd-gold-lite);
    border-color: var(--hd-gold);
}

[dir="rtl"] .hd-form input[dir="ltr"] {
    text-align: right;
}

.hd-form .has-error {
    display: block;
    color: #b0412e;
    font-size: 12px;
    margin-top: 4px;
}

.hd-form .hd-btn {
    margin-top: 6px;
}

.hd-form-note {
    display: block;
    font-size: 11px;
    color: #9a8d7f;
    text-align: center;
    margin-top: 10px;
}

.hd-similar {
    background: #fff;
    border-top: 1px solid var(--hd-line);
    margin-top: 60px;
    padding-bottom: 70px;
}

.hd-page-property .hd-footer,
.hd-page-home .hd-footer {
    margin-top: 0;
}

.hd-page-home .hd-footer {
    margin-top: 90px;
}

.hd-mbar {
    display: none;
}

/* ---------- older pages: match the new look ---------- */
.page-hero h1,
.partner-layout h1 {
    font-family: var(--hd-serif);
    color: var(--hd-ink);
}

.hd-cards--grid {
    margin-top: 28px;
}

/* Texts from the CRM are mostly English: on the Arabic page they keep their own direction. */
[dir="rtl"] .hd-op-row b,
[dir="rtl"] .hd-op-title,
[dir="rtl"] .hd-op-name,
[dir="rtl"] .hd-card-name,
[dir="rtl"] .hd-card-place,
[dir="rtl"] .hd-card-meta span,
[dir="rtl"] .hd-cm-name,
[dir="rtl"] .hd-fact b,
[dir="rtl"] .hd-feat,
[dir="rtl"] .hd-text,
[dir="rtl"] .hd-box h2,
[dir="rtl"] .hd-title-row h1,
[dir="rtl"] .hd-loc b,
[dir="rtl"] .hd-crumbs b,
[dir="rtl"] .hd-text * {
    unicode-bidi: plaintext;
    text-align: right;
}

/* A whole English description reads best left to right. */
[dir="rtl"] .hd-text,
[dir="rtl"] .hd-text * {
    text-align: start;
}

[dir="rtl"] .page-hero,
[dir="rtl"] .section,
[dir="rtl"] .partner-layout {
    text-align: right;
}

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
    .hd-header-row {
        gap: 16px;
    }

    .hd-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--hd-line);
        padding: 8px 16px 18px;
        box-shadow: 0 20px 40px rgba(110, 75, 35, .12);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .menu-open .hd-nav {
        display: flex;
    }

    .hd-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid var(--hd-line);
        font-size: 16px;
    }

    .hd-nav > a.on:after {
        display: none;
    }

    .hd-nav-phone {
        display: block;
        color: var(--hd-gold) !important;
        border-bottom: 0 !important;
    }

    .hd-burger {
        display: grid;
    }

    .menu-open .hd-burger-open {
        display: none;
    }

    .menu-open .hd-burger-close {
        display: block;
    }

    .hd-phone {
        display: none;
    }

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

    .hd-devs-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 10px;
    }

    .hd-devs a:nth-child(3n + 1) {
        border-inline-start: 0;
    }

    .hd-why {
        gap: 40px;
    }

    .hd-main {
        grid-template-columns: 1fr;
    }

    .hd-side {
        position: static;
    }

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

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

/* ---------- phones ---------- */
@media (max-width: 700px) {
    .hd-header-row {
        height: 70px;
    }

    .hd-logo img {
        width: 44px;
        height: 44px;
    }

    .hd-logo b {
        font-size: 16px;
    }

    .hd-enquire {
        display: none;
    }

    .hd-lang a {
        padding: 6px 7px;
        font-size: 11px;
    }

    .hd-section {
        padding: 56px 0;
    }

    .hd-section--tight {
        padding-top: 0;
    }

    .hd-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .hd-head > .hd-btn {
        display: none;
    }

    .hd-head h2,
    .hd-why h2,
    .hd-cta h2 {
        font-size: 28px;
    }

    .hd-hero {
        min-height: 0;
        padding-bottom: 44px;
    }

    .hd-hero-inner {
        padding-top: 110px;
    }

    .hd-hero h1 {
        font-size: 40px;
        margin: 12px 0 14px;
    }

    html[lang="ar"] .hd-hero h1 {
        font-size: 36px;
    }

    .hd-lead {
        font-size: 15px;
    }

    .hd-search {
        margin-top: 26px;
    }

    .hd-search-fields {
        flex-direction: column;
        align-items: stretch;
        padding: 4px 12px 12px;
    }

    .hd-sf {
        border-inline-end: 0;
        border-bottom: 1px solid var(--hd-line);
        padding: 10px 4px;
        min-width: 0;
    }

    .hd-search-go {
        margin: 12px 0 0;
    }

    .hd-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin-top: 30px;
    }

    .hd-stats b {
        font-size: 28px;
    }

    /* cards scroll sideways on a phone */
    .hd-cards:not(.hd-cards--grid) {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin-inline-end: -16px;
        padding-inline-end: 16px;
        padding-bottom: 6px;
    }

    .hd-cards:not(.hd-cards--grid) .hd-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .hd-cards--grid {
        grid-template-columns: 1fr;
    }

    .hd-card-photo {
        height: 200px;
    }

    .hd-op-grid,
    .hd-op-grid--one {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 14px;
    }

    .hd-op {
        height: 240px;
    }

    .hd-op--main {
        grid-row: auto;
        height: 420px;
    }

    .hd-op-in {
        inset-inline: 20px;
        bottom: 20px;
    }

    .hd-op-name,
    .hd-op:not(.hd-op--main) .hd-op-name {
        font-size: 24px;
    }

    .hd-op-row {
        gap: 14px;
    }

    .hd-op-row b {
        font-size: 14px;
        white-space: nowrap;
    }

    .hd-comm {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px;
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .hd-cm--big {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hd-cm-name {
        font-size: 17px;
    }

    .hd-cm--big .hd-cm-name {
        font-size: 24px;
    }

    .hd-cm-in {
        inset-inline: 14px;
        bottom: 12px;
    }

    .hd-devs-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 6px;
    }

    .hd-devs a {
        font-size: 12px;
    }

    .hd-devs a:nth-child(3n + 1) {
        border-inline-start: 1px solid var(--hd-line);
    }

    .hd-devs a:nth-child(odd) {
        border-inline-start: 0;
    }

    .hd-why {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hd-why-photo {
        height: 280px;
    }

    .hd-why-list {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 24px;
    }

    .hd-why-item {
        display: grid;
        grid-template-columns: 50px 1fr;
        gap: 0 14px;
    }

    .hd-why-item i {
        grid-row: span 2;
        margin: 0;
    }

    .hd-svc {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hd-sv {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 0 14px;
        padding: 18px;
    }

    .hd-sv i {
        grid-row: span 3;
        margin: 0;
    }

    .hd-sv-num {
        display: none;
    }

    .hd-sv p {
        margin: 2px 0 6px;
    }

    .hd-cta {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 24px;
        border-radius: 20px;
    }

    .hd-wa-fab {
        display: grid;
        place-items: center;
        position: fixed;
        inset-inline-end: 16px;
        bottom: 18px;
        z-index: 30;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--hd-gold-2), var(--hd-gold));
        color: #fff;
        box-shadow: 0 10px 26px rgba(110, 75, 35, .35);
    }

    .hd-wa-fab .hd-i {
        width: 26px;
        height: 26px;
    }

    .hd-footer {
        padding-top: 44px;
    }

    .hd-page-home .hd-footer {
        margin-top: 56px;
    }

    .hd-footer-grid {
        gap: 28px;
    }

    .hd-footer-grid > div:first-child,
    .hd-footer-grid > div:last-child {
        grid-column: span 2;
    }

    /* property page */
    .hd-page-property {
        padding-bottom: 80px;
    }

    .hd-crumbs {
        font-size: 12px;
        padding: 14px 0 10px;
    }

    .hd-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 16px;
    }

    .hd-title-row h1 {
        font-size: 32px;
    }

    .hd-loc {
        font-size: 13px;
    }

    .hd-price {
        text-align: start;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 0 10px;
    }

    .hd-price-value {
        font-size: 28px;
    }

    .hd-price-acts {
        grid-row: 1 / 3;
        grid-column: 2;
        margin: 0;
    }

    /* On a phone: one big photo with a counter; tapping opens the viewer. */
    .hd-gallery {
        height: 300px;
        margin-inline: -16px;
        border-radius: 0;
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
    }

    .hd-gal-main {
        grid-row: auto !important;
    }

    .hd-gal-tile {
        display: none;
    }

    .hd-gal-count {
        display: block;
        position: absolute;
        top: 12px;
        inset-inline-end: 12px;
        z-index: 3;
        background: rgba(43, 34, 24, .75);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        border-radius: 999px;
        padding: 6px 12px;
    }

    .hd-gal-tabs {
        inset-inline-start: 12px;
        bottom: 12px;
        gap: 6px;
    }

    .hd-gal-tabs button,
    .hd-gal-tabs a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .hd-gal-tab-video {
        display: flex !important;
    }

    .hd-lb-prev,
    .hd-lb-next {
        display: none;
    }

    .hd-main {
        margin-top: 18px;
        gap: 0;
    }

    .hd-box {
        padding: 22px 18px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .hd-box h2 {
        font-size: 22px;
    }

    .hd-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .hd-fact {
        padding: 14px 12px;
        border-bottom: 1px solid var(--hd-line);
    }

    .hd-fact:nth-child(3n) {
        border-inline-end: 0;
    }

    .hd-fact b {
        font-size: 15px;
    }

    .hd-fact .hd-i {
        width: 20px;
        height: 20px;
        margin-bottom: 6px;
    }

    .hd-feats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hd-feat {
        padding: 10px;
        font-size: 13px;
        gap: 8px;
    }

    .hd-feat i {
        width: 30px;
        height: 30px;
    }

    .hd-plan-box,
    .hd-location {
        flex-direction: column;
        align-items: stretch;
    }

    .hd-form {
        box-shadow: none;
    }

    .hd-similar {
        margin-top: 30px;
        padding: 36px 0 40px;
    }

    .hd-mbar {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 30;
        align-items: center;
        gap: 10px;
        background: #fff;
        border-top: 1px solid var(--hd-line);
        padding: 10px 16px 14px;
        box-shadow: 0 -10px 30px rgba(110, 75, 35, .12);
    }

    .hd-mbar-price {
        margin-inline-end: auto;
        line-height: 1.2;
    }

    .hd-mbar-price small {
        display: block;
        font-size: 11px;
        color: var(--hd-muted);
    }

    .hd-mbar-price b {
        font: 700 15px var(--hd-serif);
        white-space: nowrap;
    }

    .hd-mbar .hd-btn {
        padding: 12px 14px;
    }
}
