:root {
  --ink: #172a23;
  --forest: #193d32;
  --forest-dark: #102d25;
  --green: #205744;
  --muted: #5c6b63;
  --border: #e0e6df;
  --page: #f8f9f6;
  --gold: #eddcb3;
  --sage: #eaf0e9;
  --white: #fff;
  color: var(--ink);
  background: var(--page);
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.5;
}
html[lang="fr"] { font-family: Manrope, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .66; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #c68f3a;
  outline-offset: 4px;
}
button:focus:not(:focus-visible), [tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1300px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 10px; z-index: 2000; padding: 10px; border-radius: 6px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.icon { display: inline-flex; width: 20px; height: 20px; flex: none; align-items: center; justify-content: center; vertical-align: middle; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.header { background: var(--white); }
.top { position: relative; min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--forest); line-height: 1.18; }
.brand strong { display: block; font-weight: 700; font-size: 1.35rem; }
.brand small { display: block; font: 700 .67rem/1.4 Manrope, Arial, sans-serif; letter-spacing: .06em; margin-top: 3px; }
.brand-mark { height: 42px; width: 42px; display: grid; place-items: center; background: var(--forest); border-radius: 11px; color: var(--gold); }
.brand-mark > span { display: block; position: relative; width: 17px; height: 22px; border: 1.5px solid currentColor; border-radius: 11px 11px 2px 2px; margin-top: 1px; }
.brand-mark > span::after { content: ""; position: absolute; width: 7px; height: 13px; border: 1.5px solid currentColor; border-block-end: 0; inset: auto 3.5px 0; border-radius: 6px 6px 0 0; }
.nav { position: absolute; inset-inline-start: 50%; transform: translateX(50%); display: flex; align-items: center; gap: 33px; white-space: nowrap; }
[dir="ltr"] .nav { transform: translateX(-50%); }
.nav button, .language, .link-button { background: transparent; border: 0; padding: 6px 0; font-weight: 600; }
.nav button { color: #42564b; position: relative; }
.nav button:hover, .nav button[aria-current="true"], .language:hover, .link-button:hover { color: var(--green); }
.nav button[aria-current="true"]::after { content: ""; position: absolute; height: 2px; border-radius: 2px; width: 18px; background: var(--green); inset-inline-start: calc(50% - 9px); bottom: 0; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.language { font: 800 .82rem/1.2 Manrope, Arial, sans-serif; padding: 8px 2px; min-width: 30px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; line-height: 1.3; font-weight: 600; background: transparent; border-radius: 10px; min-height: 43px; padding: 10px 15px; white-space: nowrap; }
.button, .icon-button, .chips button, .popular button { transition: background-color .16s, border-color .16s, color .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.icon-button { position: relative; min-width: 43px; padding: 0; }
.icon-button:hover, .outline:hover { background: var(--sage); }
.head-heart b { position: absolute; inset-block-start: -2px; inset-inline-end: -2px; min-width: 17px; height: 17px; border-radius: 10px; background: var(--green); color: white; font-size: 11px; text-align: center; line-height: 17px; }
.solid { background: var(--forest); color: white; }
.solid:hover { background: var(--green); }
.outline { background: var(--white); border-color: var(--border); }
.hero { position: relative; isolation: isolate; color: white; background: var(--forest-dark); overflow: hidden; }
.hero-photo, .hero-shade { width: 100%; height: 100%; position: absolute; inset: 0; z-index: -1; }
.hero-photo { object-fit: cover; object-position: 50% 51%; }
.hero-shade { background: linear-gradient(270deg, rgba(12,33,25,.96) 2%, rgba(16,39,29,.85) 26%, rgba(12,31,22,.26) 68%, rgba(15,33,24,.10)), linear-gradient(0deg, rgba(15,34,25,.37), transparent 44%); }
[dir="ltr"] .hero-photo { transform: scaleX(-1); }
[dir="ltr"] .hero-shade { transform: scaleX(-1); }
.hero-body { min-height: 520px; padding-block: 50px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; margin-bottom: 11px; }
.hero-kicker > span:first-child { width: 27px; height: 1px; background: #e0c78e; }
.hero h1 { font-size: clamp(3.25rem, 5.3vw, 5.15rem); line-height: 1.085; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span { display: block; }
.hero h1 span + span { color: #f4dfae; }
.hero p { color: #f1f2ea; margin-top: 15px; font-size: 1.16rem; font-weight: 400; }
.search { margin-top: 27px; width: min(100%, 710px); background: var(--white); color: var(--ink); border-radius: 15px; box-shadow: 0 13px 34px #07150f5e; overflow: hidden; }
.search-tabs { padding-inline: 18px; display: flex; gap: 18px; border-bottom: 1px solid var(--border); min-height: 42px; }
.search-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 7px 8px; min-width: 60px; font-weight: 600; color: var(--muted); }
.search-tabs button.selected { color: var(--green); border-color: var(--green); }
.search-fields { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; padding: 11px 13px; gap: 12px; }
.field { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; padding-inline: 9px; min-height: 45px; }
.field.budget { border-inline-start: 1px solid var(--border); padding-inline-start: 15px; }
.field-icon { color: var(--green); }
.field-label { display: block; color: var(--ink); font-size: .87rem; font-weight: 700; line-height: 1.15; }
.field input, .field select { padding: 2px 0 0; margin: 0; border: none; background-color: transparent; color: var(--muted); outline-offset: 0; width: 100%; min-width: 0; }
.field input::placeholder { color: var(--muted); opacity: 1; }
select { appearance: none; padding-inline-end: 22px !important; background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"); }
.field select, .sort select, .form-grid select { background-image: linear-gradient(45deg, transparent 50%, #4d6258 50%), linear-gradient(135deg, #4d6258 50%, transparent 50%); background-position: 5px 55%, 10px 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="ltr"] .field select, [dir="ltr"] .sort select, [dir="ltr"] .form-grid select { background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; }
.search-button { background-color: var(--green); min-height: 49px; padding-inline: 18px; color: white; }
.search-button:hover { background: #154232; }
.popular { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.popular > span { color: #eee9d9; margin-inline-end: 3px; font-size: .85rem; font-weight: 500; }
.popular button { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.38); border-radius: 24px; color: #fff; font-size: .86rem; padding: 4px 11px; }
.popular button:hover, .popular button[aria-pressed="true"] { background: #faf4e3; color: var(--forest); }
.market { padding-block: 41px 47px; scroll-margin-top: 18px; }
.market-head, .market-meta { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.market h2 { font-size: clamp(1.65rem, 3vw, 2.28rem); line-height: 1.25; letter-spacing: -.028em; }
.market-head p { color: var(--muted); margin-top: 6px; }
.market-tools { display: flex; gap: 8px; }
.market-tools .button[aria-pressed="true"] { background: var(--sage); border-color: #bacfc1; color: var(--green); }
.filter-count { border-radius: 30px; padding: 1px 6px; font-size: .77rem; background: var(--forest); color: white; }
.market-meta { margin-top: 19px; margin-bottom: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { background: transparent; border: 1px solid var(--border); color: #405348; border-radius: 24px; padding: 6px 13px; font-weight: 500; font-size: .875rem; min-height: 35px; }
.chips button:hover, .chips button[aria-pressed="true"] { color: var(--forest); border-color: #b7cabc; background: var(--sage); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; font-size: .875rem; }
.sort select { border: 0; background-color: transparent; padding: 4px 0; font-weight: 700; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: white; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: 0 11px 26px #122d2015; border-color: #b8c9bf; }
.card-launch { display: block; text-align: start; padding: 0; width: 100%; height: 100%; border: 0; background: none; }
.card-launch:focus-visible { outline-offset: -3px; border-radius: 15px; }
.card-picture { display: block; aspect-ratio: 1.49; position: relative; overflow: hidden; background: #e5ece4; }
.card-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-launch:hover img { transform: scale(1.04); }
.card-badge { position: absolute; inset-block-start: 11px; inset-inline-start: 11px; border-radius: 6px; background: #fafff9f0; color: var(--forest); padding: 4px 8px; font-size: .78rem; font-weight: 700; }
.card-heart { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; min-width: 35px; min-height: 35px; border-radius: 50%; background: #fff; color: var(--ink); }
.card-heart[aria-pressed="true"], .detail-save[aria-pressed="true"] { color: #a2443d; }
[aria-pressed="true"] .icon-heart svg { fill: currentColor; }
.card-copy { display: block; padding: 14px 14px 15px; }
.card-price { display: block; font-size: 1.27rem; font-weight: 700; line-height: 1.22; color: var(--green); }
.card-price small { font-weight: 500; color: var(--muted); font-size: .76rem; margin-inline-start: 5px; }
.card-title { display: block; font-size: 1rem; font-weight: 700; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-place { display: flex; align-items: center; gap: 4px; color: var(--muted); margin-top: 3px; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-place .icon, .card-facts .icon { width: 15px; height: 15px; }
.card-facts { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; border-top: 1px solid #ecf0ec; color: #4e6055; padding-top: 10px; margin-top: 10px; font-size: .82rem; }
.card-facts > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.empty { grid-column: 1/-1; padding: 52px 22px; border-radius: 14px; text-align: center; border: 1px dashed #bfcfc4; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 5px; }
.empty .button { margin-top: 16px; }
.map-wrap { border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: white; margin-bottom: 20px; }
#property-map { height: 380px; direction: ltr; background: #e5ece4; }
.map-wrap p { color: var(--muted); padding: 9px 15px; font-size: .85rem; }
.leaflet-container .map-price { width: auto !important; height: auto !important; transform-origin: center; }
.map-price button { color: white; background: var(--green); border: 2px solid white; border-radius: 25px; padding: 5px 9px; font-weight: 700; box-shadow: 0 2px 9px #162b2475; white-space: nowrap; transform: translate(-50%, -50%); }
.market-end { padding-top: 22px; text-align: center; }
.footer { background: white; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 100px; padding-block: 14px; }
.footer-inner p { color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; gap: 13px; flex-wrap: wrap; }
.link-button { color: var(--green); text-decoration: underline; }
dialog { border: none; padding: 0; border-radius: 18px; width: min(715px, calc(100% - 24px)); max-height: 91dvh; overflow: auto; color: var(--ink); background: white; box-shadow: 0 25px 65px #07130f75; }
dialog::backdrop { background: #0b211bc2; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-shell { position: relative; }
.close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; border-radius: 50%; background: white; z-index: 2; box-shadow: 0 2px 11px #14312624; }
.dialog-inner { padding: 28px; }
.dialog-inner h2 { font-size: 1.62rem; padding-inline-end: 39px; line-height: 1.4; }
.dialog-sub { color: var(--muted); margin-top: 4px; margin-bottom: 18px; }
.detail-image { width: 100%; height: min(290px, 36vh); object-fit: cover; }
.detail-head { display: flex; align-items: flex-start; gap: 7px; justify-content: space-between; }
.detail-head h2 { padding-inline-end: 0; }
.detail-summary { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.detail-summary > span { background: var(--sage); color: var(--green); border-radius: 20px; padding: 5px 11px; font-size: .9rem; }
.details-cost { margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.details-cost div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.details-cost div + div { border-top: 1px solid var(--border); }
.details-cost dt, .details-cost dd { margin: 0; }
.details-cost dd { font-weight: 700; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.form-grid label { display: grid; gap: 4px; color: #31483c; font-weight: 600; min-width: 0; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 1px solid #cbd9d0; border-radius: 9px; padding: 8px 10px; background-color: #fff; }
.form-grid textarea { resize: vertical; min-height: 80px; }
.form-grid .wide { grid-column: 1/-1; }
.rent-costs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); margin-inline: 0; }
.table-list { display: grid; gap: 8px; margin: 15px 0; }
.table-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); padding: 11px 13px; border-radius: 10px; }
.table-row small { color: var(--muted); display: block; }
.table-row .dialog-actions { margin-top: 0; justify-content: flex-end; }
.dialog-cards { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; }
.listing-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--sage); border-radius: 12px; padding: 13px; }
.listing-contact p, .availability, .field-hint { color: var(--muted); font-size: .9rem; }
.availability { margin-top: 8px; }
.listing-description { white-space: pre-line; overflow-wrap: anywhere; }
.whatsapp { background: #177644; color: white; white-space: normal; }
.whatsapp:hover { background: #105b34; }
.chat-icon { display: inline-block; position: relative; width: 16px; height: 15px; border: 1.5px solid currentColor; border-radius: 6px; flex: none; }
.chat-icon::after { content: ""; position: absolute; bottom: -3px; left: 2px; width: 4px; height: 4px; border-left: 1.5px solid currentColor; transform: skewY(-35deg); }
.toast { position: fixed; inset-inline: 12px; inset-block-end: 22px; max-width: max-content; margin-inline: auto; background: #16392d; color: white; border-radius: 12px; padding: 10px 17px; box-shadow: 0 6px 28px #10271e50; z-index: 2500; }
.form-feedback { color: #a2362b; margin-top: 9px; }
.form-feedback.is-success { color: var(--green); }
.form-feedback:empty { display: none; }
@media (max-width: 1120px) {
  .container { width: calc(100% - 70px); }
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dialog-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav { gap: 20px; }
}
@media (max-width: 850px) {
  .container { width: calc(100% - 38px); }
  .header .top { min-height: 68px; }
  .nav { display: none; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-body { min-height: 472px; }
  .hero-photo { object-position: 40% 40%; }
  .hero-shade { background: linear-gradient(270deg, rgba(10,34,26,.93), rgba(15,37,27,.48) 77%), linear-gradient(0deg, #0f251c90, transparent 72%); }
  .search { width: min(100%, 660px); }
}
@media (max-width: 550px) {
  .container { width: calc(100% - 30px); }
  .head-actions { gap: 5px; }
  .language { min-width: 28px; }
  .add-button { font-size: .81rem; padding-inline: 8px; gap: 3px; min-height: 37px; }
  .add-button .icon { width: 15px; height: 15px; }
  .head-heart { min-width: 34px; }
  .brand { gap: 6px; }
  .brand strong { font-size: 1.13rem; }
  .brand-mark { width: 35px; height: 35px; }
  .hero-body { padding-block: 32px 27px; min-height: 0; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.7rem); }
  .hero p { font-size: 1rem; margin-top: 12px; }
  .search { margin-top: 20px; }
  .search-fields { padding: 9px 10px; gap: 6px; grid-template-columns: 1fr 1fr; }
  .search-button { grid-column: 1/-1; min-height: 41px; }
  .field { padding-inline: 2px; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; }
  .field.budget { padding-inline-start: 8px; }
  .field .icon { width: 16px; height: 16px; }
  .field input, .field select { font-size: .88rem; }
  .popular > span { display: none; }
  .popular button { font-size: .78rem; padding-inline: 8px; }
  .market { padding-top: 29px; }
  .market-head { align-items: flex-start; }
  .market-head p { font-size: .86rem; }
  .market-tools { gap: 5px; }
  .market-tools .button { gap: 4px; padding-inline: 6px; font-size: .82rem; min-height: 39px; }
  .market-tools .button .icon { width: 16px; height: 16px; }
  .market-meta { flex-wrap: wrap; gap: 9px; margin-block: 12px; }
  .chips { gap: 4px; }
  .chips button { font-size: .82rem; padding: 5px 8px; }
  .cards { gap: 9px; }
  .card { border-radius: 12px; }
  .card-copy { padding: 9px; }
  .card-title { font-size: .94rem; }
  .card-price { font-size: 1.03rem; }
  .card-facts { line-height: 1.2; gap: 6px; justify-content: flex-start; }
  .card-facts > span { font-size: .75rem; }
  .card-badge { inset-block-start: 7px; inset-inline-start: 7px; }
  .card-heart { inset-block-start: 6px; inset-inline-end: 6px; min-width: 32px; min-height: 32px; }
  .card-heart .icon { width: 17px; height: 17px; }
  .table-row { flex-wrap: wrap; }
  .table-row .dialog-actions { justify-content: flex-start; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { flex-basis: 100%; order: 3; }
  .dialog-inner { padding: 17px; }
  #property-map { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
