:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --white: #fffdf7;
  --ink: #202c24;
  --muted: #555e53;
  --green: #213d32;
  --green-dark: #162e25;
  --accent: #f2bc99;
  --line: #deded2;
  --label: #4a604f;
  --display: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
a, button, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a84d32; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.75rem; }
.layout { width: min(100% - 7rem, 1320px); margin-inline: auto; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 5; transform: translateY(-200%); color: white; background: var(--green); padding: .75rem 1rem; border-radius: .5rem; }
.skip:focus { transform: none; }

.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; font-size: 1.2rem; line-height: 1; letter-spacing: -.06em; white-space: nowrap; text-decoration: none; }
.brand strong { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .72rem; color: var(--white); background: var(--green); }
.brand-mark svg { width: 1.55rem; height: 1.55rem; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2.25rem); }
.main-nav a, .footer-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .footer-link:hover { text-decoration: underline; text-underline-offset: .32em; }
.saved-toggle { display: flex; align-items: center; justify-self: end; gap: .48rem; padding: .63rem .85rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .65rem; background: transparent; cursor: pointer; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.saved-toggle:hover, .saved-toggle[aria-pressed="true"] { background: #e7e9dd; }
.header-tools { display: flex; align-items: center; justify-self: end; gap: .55rem; }
.language-select { min-height: 2.75rem; max-width: 9rem; padding: .5rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); background: var(--paper); font-size: .9rem; font-weight: 650; cursor: pointer; }
.saved-count { display: grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding-inline: .2rem; border-radius: 50rem; font-size: .75rem; background: var(--green); color: white; }

.hero { position: relative; display: grid; align-items: center; min-height: 31.6rem; margin-bottom: 6.5rem; isolation: isolate; border-radius: 1.35rem; background: #343d30; color: var(--white); }
.hero-image, .hero-shade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.hero-image { object-fit: cover; object-position: 50% 56%; }
.hero-shade { background: linear-gradient(90deg, #15221bec 0%, #1b261ac9 23%, #252a1f69 53%, #17281a03 88%), linear-gradient(0deg, #18221550, transparent 60%); }
.hero-content { padding: 3.5rem clamp(2rem, 5vw, 4.6rem) 5.1rem; }
.eyebrow { display: flex; align-items: center; gap: .42rem; margin: 0; text-transform: uppercase; letter-spacing: .125em; font-size: .84rem; font-weight: 700; }
.hero-kicker { color: #f0cdb8; }
.hero h1 { max-width: 15ch; margin: 1.08rem 0 1.28rem; font: 500 clamp(2.65rem, 5.6vw, 5.75rem)/1.03 var(--display); letter-spacing: -.063em; overflow-wrap: anywhere; }
.hero h1 em { font-weight: 400; color: #f5c6a6; }
.hero-copy { max-width: 32rem; margin: 0; color: #fffaf1; font-size: clamp(1rem, 1.45vw, 1.23rem); line-height: 1.55; }

.search { position: absolute; right: clamp(1.4rem, 5vw, 4.6rem); bottom: -3.2rem; left: clamp(1.4rem, 5vw, 4.6rem); padding: .4rem .75rem .72rem; color: var(--ink); background: var(--white); border: 1px solid #eeeadf; border-radius: .96rem; box-shadow: 0 1rem 2rem #272b1d1c; }
.purposes { display: flex; gap: .25rem; padding: 0 .45rem; border-bottom: 1px solid var(--line); }
.purposes button { position: relative; padding: .62rem .95rem .69rem; border: 0; background: transparent; color: var(--muted); font-size: .91rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.purposes button:hover { color: var(--ink); }
.purposes button[aria-pressed="true"] { color: var(--green-dark); }
.purposes button[aria-pressed="true"]::after { position: absolute; content: ''; inset: auto .45rem -1px; height: 3px; border-radius: 3px 3px 0 0; background: #a45339; }
.search-fields { display: grid; grid-template-columns: 1.18fr 1fr .85fr auto; align-items: center; gap: .35rem; padding-top: .7rem; }
.search-field { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: .75rem; min-width: 0; padding: .18rem clamp(.4rem, 1.45vw, 1.2rem); border-inline-end: 1px solid #e7e5da; }
.search-field > span { grid-column: 2; color: var(--muted); font-size: .875rem; font-weight: 650; }
.field-icon { grid-row: 1 / -1; color: var(--label); }
.search-field select { grid-column: 2; width: 100%; min-width: 0; padding: .22rem 1rem .24rem 0; border: 0; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23555e53' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 1rem; color: var(--ink); font-weight: 650; cursor: pointer; }
.search-button, .platform-link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.35rem; padding: .75rem 1.15rem; border: 0; border-radius: .63rem; background: var(--green); color: #fffef8; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; }
.search-button:hover, .platform-link:hover { background: #36584a; }

.section { margin-bottom: 4.65rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-kicker { color: var(--label); }
.section h2, .districts h2, .platform h2, .listing-dialog h2 { margin: .38rem 0 .4rem; font: 500 clamp(2rem, 3.3vw, 3.2rem)/1.06 var(--display); letter-spacing: -.052em; }
.section-copy { margin: .6rem 0 0; color: var(--muted); line-height: 1.55; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem; }
.catalog-link { color: var(--green-dark); font-weight: 700; text-underline-offset: .22em; }
.locale-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: 0 1.2rem; color: var(--label); }
.locale-links:empty { display: none; }
.locale-links a { font-size: .9rem; text-underline-offset: .22em; }
.catalog-source, .plain-button { min-height: 2.3rem; padding: .43rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: #efeee4; color: #495344; font-size: .86rem; font-weight: 650; text-align: center; }
.plain-button { background: transparent; cursor: pointer; }
.plain-button:hover { background: #e7e9dd; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.7vw, 1.5rem); }
.listing-card { position: relative; min-width: 0; overflow: clip; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.listing-media { position: relative; background: #dad8c9; }
.listing-photo { width: 100%; max-height: 17rem; overflow: hidden; aspect-ratio: 1.64; background: #dad8c9; }
.listing-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.listing-card:has(.listing-title:hover) img { transform: scale(1.035); }
.listing-save { position: absolute; top: .77rem; right: .77rem; z-index: 1; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid #ffffffa0; border-radius: 50%; background: #fffdf1f5; color: var(--green); cursor: pointer; box-shadow: 0 .2rem .55rem #24251629; }
.listing-save:hover { background: #f7d4bf; }
.listing-save[aria-pressed="true"] { background: #f7d4bf; color: #873b28; }
.listing-save[aria-pressed="true"] svg, .saved-toggle[aria-pressed="true"] svg { fill: currentColor; }
.listing-info { padding: 1rem 1.1rem 1.12rem; }
.listing-location { margin: 0; color: var(--label); font-size: .88rem; font-weight: 700; }
.listing-info h3 { margin: .35rem 0 .92rem; }
.listing-title { padding: 0; border: 0; background: transparent; text-align: start; color: var(--ink); font: 500 clamp(1.2rem, 1.72vw, 1.62rem)/1.13 var(--display); letter-spacing: -.025em; cursor: pointer; }
.listing-title::after { content: ''; position: absolute; inset: 0; }
.listing-title:hover { text-decoration: underline; text-underline-offset: .18em; }
.listing-facts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.listing-meta, .listing-price { margin: 0; }
.listing-meta { color: var(--muted); font-size: .92rem; }
.listing-price { font-weight: 750; white-space: nowrap; }
.empty-state { padding: 2rem; border: 1px solid var(--line); border-radius: .9rem; color: var(--muted); background: var(--white); }

.districts { display: grid; grid-template-columns: minmax(16rem, .9fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: 2.65rem 3.5rem; border-top: 1px solid #d9dbcf; }
.district-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .68rem; }
.district-grid button { display: grid; gap: .22rem; min-width: 0; min-height: 5rem; padding: .85rem .95rem; text-align: start; border: 1px solid var(--line); border-radius: .65rem; background: #ebede2; cursor: pointer; }
.district-grid button:hover { background: #e1e6d7; border-color: #aab8a4; }
.district-grid span { font: 600 1.18rem/1.15 var(--display); }
.district-grid small { color: var(--muted); font-size: .875rem; }

.platform { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.1rem, 3.1vw, 2.9rem); padding: clamp(1.5rem, 3.25vw, 2.8rem); margin-bottom: 2.6rem; border-radius: 1.05rem; color: #fbf6e9; background: var(--green-dark); }
.platform-mark { display: grid; place-items: center; width: clamp(3.6rem, 6.9vw, 6rem); aspect-ratio: 1; border: 1px solid #b9d7bf60; border-radius: 50%; color: var(--accent); }
.platform-mark svg { width: 53%; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.platform .eyebrow { color: var(--accent); }
.platform h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
.platform p:last-child { margin: .6rem 0 0; color: #e0e8d9; line-height: 1.5; }
.platform-link { background: #f3c4a7; color: #263629; }
.platform-link:hover { background: #ffdbbf; }
.platform :focus-visible { outline-color: #ffdbbf; }
.footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 0 0 2rem; }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }

.listing-dialog { width: min(100% - 2rem, 34rem); max-height: calc(100% - 2rem); padding: 1.6rem; border: 1px solid var(--line); border-radius: 1.05rem; color: var(--ink); background: var(--white); box-shadow: 0 2rem 5rem #13231f47; }
.listing-dialog::backdrop { background: #17251cc2; }
.listing-dialog h2 { padding-right: 1.9rem; font-size: clamp(1.8rem, 4vw, 2.55rem); }
.dialog-close { position: absolute; inset: .85rem .85rem auto auto; width: 2.45rem; height: 2.45rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--green); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: #e7e9dd; }
.dialog-description { line-height: 1.58; }
.dialog-listing-meta { color: var(--muted); }
.dialog-listing-link { display: inline-flex; padding: .7rem .95rem; border-radius: .55rem; background: var(--green); color: var(--white); }

@media (max-width: 1050px) {
  .layout { width: calc(100% - 4rem); }
  .search { right: 1.5rem; left: 1.5rem; }
  .search-fields { grid-template-columns: 1.14fr 1fr .72fr auto; }
  .search-field { column-gap: .45rem; }
  .search-button { padding-inline: .8rem; }
}

@media (max-width: 760px) {
  .layout { width: calc(100% - 2.25rem); }
  .header { grid-template-columns: 1fr auto; gap: 0 1rem; padding-block: .85rem .6rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 1.35rem; margin-top: .65rem; text-align: center; }
  .main-nav a { display: grid; place-items: center; min-height: 2.2rem; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .hero { min-height: auto; margin-bottom: 2.85rem; }
  .hero-image { height: min(100%, 33rem); object-position: 60% 50%; }
  .hero-shade { background: linear-gradient(90deg, #15221be3, #1b261a6b 68%, #1b261a33), linear-gradient(0deg, #1a271e 1%, #1a271e00 70%); }
  .hero-content { padding: 2.7rem 1.4rem 2.3rem; }
  .hero h1 { font-size: clamp(3.35rem, 10vw, 5.3rem); }
  .search { position: relative; right: auto; bottom: auto; left: auto; margin: 0 .75rem .75rem; }
  .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
  .search-field { min-height: 2.8rem; padding-inline: .4rem; }
  .search-field:nth-child(2) { border-inline-end: 0; }
  .search-button { gap: .32rem; min-height: 3rem; padding-inline: .4rem; font-size: .92rem; }
  .search-button .icon { width: 1.05rem; height: 1.05rem; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-bottom: 2.9rem; }
  .districts { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem 2.35rem; }
  .platform { grid-template-columns: auto 1fr; }
  .platform-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 480px) {
  .layout { width: calc(100% - 1.45rem); }
  .header { gap: 0 .4rem; }
  .brand { gap: .42rem; font-size: 1.12rem; }
  .brand-mark { width: 2.1rem; height: 2.1rem; }
  .saved-toggle { padding-inline: .52rem; font-size: .84rem; }
  .saved-label { display: none; }
  .language-select { max-width: 6.9rem; padding-inline: .32rem; font-size: .85rem; }
  .main-nav { gap: .95rem; }
  .main-nav a { font-size: .86rem; }
  .hero { border-radius: .95rem; }
  .hero h1 { font-size: clamp(2.68rem, 12.8vw, 4.2rem); }
  .hero-copy { max-width: 17rem; }
  .purposes { gap: 0; padding: 0; }
  .purposes button { padding-inline: .55rem; font-size: .86rem; white-space: normal; }
  .search-field { column-gap: .28rem; }
  .search-field .icon { display: none; }
  .search-field > span, .search-field select { grid-column: 1 / -1; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .result-actions { justify-content: flex-start; }
  .listing-grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform { grid-template-columns: 1fr; }
  .platform-link { grid-column: 1; }
  .footer { gap: .85rem 1rem; }
  .footer p { width: 100%; order: 2; }
}

@media (max-width: 410px) {
  .search-fields { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .search-field { grid-template-columns: minmax(4.4rem, max-content) minmax(0, 1fr); grid-template-rows: auto; gap: .35rem; min-height: 2.45rem; border-inline-end: 0; border-bottom: 1px solid #e7e5da; }
  .search-field > span { grid-column: 1; }
  .search-field select { grid-column: 2; min-height: 2.35rem; }
  .search-button { margin-top: .2rem; }
}

[dir="rtl"] { --display: Tahoma, 'Segoe UI', sans-serif; }
[dir="rtl"] .hero h1, [dir="rtl"] .eyebrow, [dir="rtl"] h2,
[dir="rtl"] .listing-title { letter-spacing: normal; }
[dir="rtl"] .hero-shade { background: linear-gradient(270deg, #15221bec, #1b261ac9 29%, #252a1f69 59%, #17281a03 95%); }
[dir="rtl"] .search-field select { padding-inline: 0 1rem; background-position: left center; }
[dir="rtl"] .listing-save { inset-inline: auto .77rem; }
[dir="rtl"] .dialog-close { inset-inline: auto .85rem; }
[dir="rtl"] .listing-dialog h2 { padding-inline: 0 1.9rem; }
.brand { direction: ltr; }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
