/* ASYUT AQAR — premium identity layer (Nov 2026)
   Loaded after every existing stylesheet. Appearance only: no IDs, data
   attributes or behaviour depend on this file. Palette: espresso, sand,
   terracotta, copper. Images use straight edges with soft corners. */

:root {
  --navy: #2B211B;
  --blue: #3A2D25;
  --gold: #C98A64;
  --gold-light: #EBD9C8;
  --red: #A4472A;
  --white: #ffffff;
  --bg: #F6F1E9;
  --text: #2B211B;
  --muted: #6B5D52;
  --border: #E6DACB;
  --shadow: 0 14px 36px rgba(43, 33, 27, .10);

  --aa-espresso: #2B211B;
  --aa-espresso-2: #3A2D25;
  --aa-sand: #F3ECE1;
  --aa-cream: #FFF8F0;
  --aa-terracotta: #A4472A;
  --aa-terracotta-dark: #8C3A21;
  --aa-peach: #E9B08F;
  --aa-copper: #C98A64;
  --aa-line: #E6DACB;
  --aa-radius: 16px;
  --aa-radius-lg: 22px;
  --aa-head: "Alexandria", "Readex Pro", Tahoma, Arial, sans-serif;
  --aa-body: "Readex Pro", "Alexandria", Tahoma, Arial, sans-serif;
}

/* Typography */
body { font-family: var(--aa-body); background: var(--bg); color: var(--text); }
h1, h2, h3, h4, .brand small, .topbar nav, .btn, .eyebrow { font-family: var(--aa-head); }
h1, h2, h3 { letter-spacing: 0; }
.eyebrow, .section-heading .eyebrow { color: var(--aa-terracotta); letter-spacing: .02em; }

/* Header */
body .topbar {
  background: var(--aa-espresso);
  border-bottom: 1px solid rgba(201, 138, 100, .28);
  box-shadow: 0 6px 24px rgba(30, 23, 18, .18);
}
body .topbar nav a { color: #E8DDD1; }
body .topbar nav a:hover,
body .topbar nav a.active,
body .topbar nav a[aria-current="page"] { color: var(--aa-peach); }
body .brand-logo { border-radius: 12px; }
body .brand strong { font-family: var(--aa-head); font-weight: 800; color: var(--aa-sand); }
body .brand small { color: var(--aa-peach); }

/* Buttons */
body .btn { border-radius: 12px; font-weight: 700; }
body .btn-gold,
body .btn-red {
  background: var(--aa-terracotta);
  border-color: var(--aa-terracotta);
  color: var(--aa-cream);
  box-shadow: none;
}
body .btn-gold:hover,
body .btn-red:hover { background: var(--aa-terracotta-dark); border-color: var(--aa-terracotta-dark); color: var(--aa-cream); }
body .topbar .btn-outline,
body .footer .btn-outline { color: var(--aa-sand); border-color: rgba(243, 236, 225, .38); background: transparent; }
body .btn-outline-dark { color: var(--aa-espresso); border-color: var(--aa-espresso); }
body :focus-visible { outline: 3px solid rgba(164, 71, 42, .45); outline-offset: 2px; }

/* Hero — cinematic: full photo on one side, espresso scrim, thin copper frame */
body .design-hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  background: var(--aa-espresso);
  overflow: visible;
}
body .design-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 66%;
  z-index: -2;
  background: url("../demo/hero-villa.jpg?v=20261105-3") center 40% / cover no-repeat;
}
body .design-hero::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(270deg, var(--aa-espresso) 0%, var(--aa-espresso) 36%, rgba(43, 33, 27, .84) 52%, rgba(43, 33, 27, 0) 82%);
}
body .design-hero-content {
  max-width: 640px;
  margin-inline-start: 0;
  position: relative;
}
body .design-hero-content::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--aa-peach);
  margin-bottom: 18px;
}
body .design-hero-content .eyebrow { color: var(--aa-peach); letter-spacing: .06em; }
body .design-hero-content h1 { font-family: var(--aa-head); font-weight: 800; color: var(--aa-sand); line-height: 1.25; }
body .design-hero-content h1 span { color: var(--aa-peach); }
body .design-hero-lead { color: var(--aa-sand); font-family: var(--aa-head); font-weight: 700; }
body .design-hero-sub { color: #D9CCBC; }
body .design-hero .hero-actions .btn-outline,
body .design-hero .hero-actions #addOfferBtn {
  color: var(--aa-sand);
  border: 1px solid rgba(243, 236, 225, .45);
  background: rgba(43, 33, 27, .35);
}
body .design-hero .hero-actions a.btn-gold { background: var(--aa-terracotta); color: var(--aa-cream); border-color: var(--aa-terracotta); }

/* Thin copper frame inside the hero, drawn with shadows so it never covers the search card */
body .design-hero { box-shadow: inset 0 0 0 18px var(--aa-espresso), inset 0 0 0 19px rgba(233, 176, 143, .42); }

/* Quick search card */
body .design-hero-search {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: var(--aa-radius-lg);
  box-shadow: 0 22px 54px rgba(30, 23, 18, .22);
}
body .design-hero-search label { color: var(--aa-espresso); font-family: var(--aa-head); font-weight: 600; }
body .design-hero-search select,
body .design-hero-search input { border-color: var(--aa-line); border-radius: 12px; color: var(--aa-espresso); }
body .design-hero-search select:focus,
body .design-hero-search input:focus { border-color: var(--aa-terracotta); box-shadow: 0 0 0 3px rgba(164, 71, 42, .16); }

/* Cards and imagery: straight edges, soft corners, no arches */
body .offer-card,
body .category-tile,
body .deal-purpose-card,
body .land-market-card,
body .marketplace-card,
body .how-card,
body .audience-card,
body .pricing-card,
body .company-card,
body .calculator-card {
  border-radius: var(--aa-radius-lg);
  border-color: var(--aa-line);
  box-shadow: 0 8px 26px rgba(43, 33, 27, .06);
}
body .offer-card:hover,
body .marketplace-card:hover,
body .category-tile:hover { box-shadow: 0 18px 40px rgba(43, 33, 27, .12); }
body .offer-image,
body .offer-card-media,
body .details-image,
body .details-thumb,
body .partner-ad-art { border-radius: 14px; }
body .offer-card-media { overflow: hidden; }
body .offer-type,
body .featured-badge,
body .offer-published-badge { border-radius: 8px; font-family: var(--aa-head); }
body .offer-price-main,
body .details-price-highlight { color: var(--aa-terracotta); font-family: var(--aa-head); font-weight: 800; }

/* Dark feature panels use the cinematic palette */
body .land-market-card,
body .marketplace-join,
body .launch-campaign {
  border-radius: var(--aa-radius-lg);
}

/* Footer and mobile navigation */
body .footer { background: var(--aa-espresso); color: #D9CCBC; border-top: 1px solid rgba(201, 138, 100, .25); }
body .footer a { color: #E8DDD1; }
body .mobile-nav { background: #fff; border-top: 1px solid var(--aa-line); box-shadow: 0 -8px 24px rgba(43, 33, 27, .08); }
body .mobile-nav a,
body .mobile-nav button { color: var(--aa-espresso); }

/* Dialogs and forms */
body dialog { border-radius: var(--aa-radius-lg); border: 1px solid var(--aa-line); }
body input:focus,
body select:focus,
body textarea:focus { border-color: var(--aa-terracotta); box-shadow: 0 0 0 3px rgba(164, 71, 42, .14); outline: none; }

@media (max-width: 760px) {
  body .design-hero { min-height: 0; box-shadow: none; }
  body .design-hero::before { inset: 0 0 auto 0; width: 100%; height: 300px; background-position: center 45%; }
  body .design-hero::after {
    background: linear-gradient(180deg, rgba(43, 33, 27, .10) 0px, rgba(43, 33, 27, .55) 200px, var(--aa-espresso) 300px, var(--aa-espresso) 100%);
  }
  body .design-hero-content { padding-top: 210px; }
}

/* ---- Overrides for earlier layers that use !important ---- */
body .hero.design-hero {
  background: var(--aa-espresso) !important;
  border-bottom: 0 !important;
  padding: 72px clamp(20px, 5vw, 72px) 44px !important;
  min-height: 600px;
}
body .hero.design-hero::before {
  inset: 0 auto 0 0 !important;
  width: 64% !important; height: auto !important;
  z-index: -2 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: url("../demo/hero-villa.jpg?v=20261105-3") center 42% / cover no-repeat !important;
  background-image: image-set(url("../demo/hero-villa.webp?v=20261105-3") type("image/webp"), url("../demo/hero-villa.jpg?v=20261105-3") type("image/jpeg")) !important;
}
body .hero.design-hero::after {
  display: block !important;
  inset: 0 !important; left: 0 !important; bottom: 0 !important;
  width: auto !important; height: auto !important;
  z-index: -1 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: linear-gradient(270deg, var(--aa-espresso) 0%, var(--aa-espresso) 38%, rgba(43, 33, 27, .86) 54%, rgba(43, 33, 27, 0) 84%) !important;
}
body .hero.design-hero .design-hero-content { max-width: 600px !important; align-self: flex-start; padding: 0 !important; }
body .hero.design-hero h1,
body .hero.design-hero p,
body .hero.design-hero .eyebrow { text-shadow: none !important; }
body .hero.design-hero h1 { color: var(--aa-sand) !important; font-size: clamp(36px, 4.6vw, 62px) !important; }
body .hero.design-hero h1 span { color: var(--aa-peach) !important; }
body .hero.design-hero .design-hero-lead { color: var(--aa-sand) !important; }
body .hero.design-hero .design-hero-sub { color: #D9CCBC !important; max-width: 560px; }
body .hero.design-hero .eyebrow { color: var(--aa-peach) !important; border-color: rgba(233, 176, 143, .4) !important; background: rgba(43, 33, 27, .4) !important; }
body .hero.design-hero .design-hero-search { margin-top: 26px !important; }

body .btn-gold,
body .btn-red,
body .top-actions .btn-gold,
body .hero-actions .btn-gold,
body .hero.design-hero .hero-actions a.btn-gold {
  background: var(--aa-terracotta) !important;
  color: var(--aa-cream) !important;
  border: 1px solid var(--aa-terracotta) !important;
  box-shadow: none !important;
}
body .btn-gold:hover,
body .btn-red:hover { background: var(--aa-terracotta-dark) !important; border-color: var(--aa-terracotta-dark) !important; }
body .btn-outline { border-color: #D2BFAB !important; color: var(--aa-espresso) !important; background: #fff; }
body .topbar .btn-outline,
body .hero .btn-outline,
body .launch-campaign .btn-outline,
body .footer .btn-outline {
  color: var(--aa-sand) !important;
  border-color: rgba(243, 236, 225, .42) !important;
  background: rgba(43, 33, 27, .3) !important;
}

/* Brand lockup: Arabic name first, Latin underneath */
body .brand > span { display: flex; flex-direction: column-reverse; gap: 2px; }
body .brand small { font-family: var(--aa-head); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--aa-sand); letter-spacing: 0; }
body .brand strong { font-family: var(--aa-head); font-weight: 600; font-size: 10px; letter-spacing: .3em; color: var(--aa-peach); }
body .brand-logo { background: transparent; }

@media (max-width: 760px) {
  body .hero.design-hero { padding: 0 16px 28px !important; min-height: 0; }
  body .hero.design-hero::before { inset: 0 0 auto 0 !important; width: 100% !important; height: 290px !important; }
  body .hero.design-hero::after {
    background: linear-gradient(180deg, rgba(43, 33, 27, .05) 0, rgba(43, 33, 27, .6) 190px, var(--aa-espresso) 290px, var(--aa-espresso) 100%) !important;
  }
  body .hero.design-hero .design-hero-content { padding-top: 200px !important; }
  body .hero.design-hero h1 { font-size: 34px !important; }
}

/* Share buttons (styles injected by share.js) */
body .asyut-share-button,
body .asyut-item-share,
body .asyut-category-share {
  background: var(--aa-espresso) !important;
  color: var(--aa-sand) !important;
  border: 1px solid rgba(201, 138, 100, .55) !important;
  border-radius: 12px !important;
  font-family: var(--aa-head);
}
body .asyut-item-share { background: #fff !important; color: var(--aa-espresso) !important; border-color: #D2BFAB !important; }

/* Cards: even border on all sides */
body .offer-card,
body .offer-card:has(.featured-badge) { border: 1px solid var(--aa-line) !important; }
body .offer-card:has(.featured-badge) { box-shadow: 0 0 0 2px rgba(164, 71, 42, .25), 0 14px 34px rgba(43, 33, 27, .10) !important; }
body .design-search-button span[aria-hidden="true"] { display: none; }
body .topbar nav a.active { background: rgba(233, 176, 143, .14) !important; color: var(--aa-peach) !important; }

body .offer-card::before { display: none !important; }

/* Dark header panels on inner pages: light text, cinematic palette */
body .companies-hero,
body .company-profile-hero { background: var(--aa-espresso) !important; box-shadow: inset 0 0 0 1px rgba(233, 176, 143, .28); }
body .companies-hero h1,
body .companies-hero h2,
body .company-profile-hero h1 { color: var(--aa-sand) !important; text-shadow: none !important; }
body .companies-hero .eyebrow,
body .company-profile-hero .eyebrow { color: var(--aa-peach) !important; }
body .companies-hero p,
body .company-profile-hero p { color: #D9CCBC !important; }
body .company-contact-primary { background: var(--aa-terracotta) !important; color: var(--aa-cream) !important; }

/* Footer info links */
body .footer-legal { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 8px; font-size: 14px; }
body .footer-legal a { color: var(--aa-peach); }

/* =====================================================================
   Layout polish (2026-11-05): one content column, aligned header,
   hero that fits the first screen, consistent section rhythm.
   Appearance only — no IDs or JS hooks change.
   ===================================================================== */
:root {
  --aa-container: 1240px;
  --aa-gutter: max(24px, calc((100% - var(--aa-container)) / 2));
  --aa-topbar-h: 80px;
  --aa-section-y: 88px;
}

/* Header: logo + navigation together on the start side, actions on the end */
@media (min-width: 1181px) {
  body .topbar {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    min-height: var(--aa-topbar-h);
    padding: 0 var(--aa-gutter) !important;
  }
  body .topbar .brand { flex: 0 0 auto; }
  body .topbar nav {
    flex: 0 1 auto;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin-inline-start: 40px;
    font-size: 15px !important;
  }
  body .topbar nav a {
    padding: 8px 12px !important;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
  }
  body .topbar .top-actions {
    margin-inline-start: auto;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  body .topbar .top-actions .btn { min-height: 44px; padding: 10px 20px; white-space: nowrap; }
}
body .brand-logo { width: 48px; height: 48px; }

/* Install prompt: a quiet toast instead of a bar that pushes the page down */
@media (min-width: 701px) {
  body .install-app-banner {
    position: fixed !important;
    top: auto !important; left: auto !important;
    right: 24px; bottom: 24px;
    z-index: 60;
    width: min(420px, calc(100% - 48px));
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid var(--aa-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 44px rgba(43, 33, 27, .22) !important;
  }
}

/* Hero: the whole first screen, search box fully visible at the bottom */
@media (min-width: 761px) {
  body .hero.design-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: clamp(20px, 3.5vh, 40px);
    min-height: calc(100svh - var(--aa-topbar-h)) !important;
    padding: clamp(28px, 6vh, 72px) var(--aa-gutter) clamp(20px, 3.5vh, 36px) !important;
  }
  body .hero.design-hero .design-hero-content { margin-block: auto; }
  body .hero.design-hero h1 { font-size: clamp(36px, min(4.2vw, 6.6vh), 64px) !important; margin: 14px 0 12px !important; }
  body .hero.design-hero .design-hero-lead { margin: 0 0 10px !important; font-size: clamp(18px, 2.4vh, 22px); }
  body .hero.design-hero .design-hero-sub { margin: 0 0 clamp(16px, 3vh, 28px) !important; line-height: 1.85; }
  body .hero.design-hero .design-hero-search {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-shadow: 0 24px 60px rgba(20, 14, 10, .35) !important;
  }
}

/* Floating share: compact round button so it never covers content */
body .asyut-share-button {
  width: 52px; height: 52px; min-height: 52px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  left: 20px !important; bottom: 20px !important;
}
body .asyut-share-button::before {
  content: "";
  width: 22px; height: 22px;
  background: var(--aa-sand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 700px) { body .asyut-share-button { bottom: 88px !important; left: 14px !important; width: 48px; height: 48px; min-height: 48px !important; } }

/* Sections: full-width bands, content on one aligned column */
body main > section.design-benefits,
body main > section.category-explorer,
body main > section.offers-section,
body main > section.marketplace-hub,
body main > section.buyer-match-section,
body main > section.calculator-section,
body main > section.how-section,
body main > section.company-section,
body main > section.audience-section,
body main > section.my-offers-section,
body main > section.partner-ads-section,
body main > section.pricing-section {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--aa-section-y) var(--aa-gutter) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--aa-sand) !important;
}
body main > section.category-explorer,
body main > section.marketplace-hub,
body main > section.calculator-section,
body main > section.company-section,
body main > section.partner-ads-section { background: #FFFCF8 !important; }
body main > section.design-benefits { padding-block: 28px !important; background: #FFFCF8 !important; border-bottom: 1px solid var(--aa-line) !important; }

body main > section.design-benefits > *,
body main > section.category-explorer > *,
body main > section.offers-section > *,
body main > section.marketplace-hub > *,
body main > section.buyer-match-section > *,
body main > section.calculator-section > *,
body main > section.how-section > *,
body main > section.company-section > *,
body main > section.audience-section > *,
body main > section.my-offers-section > *,
body main > section.partner-ads-section > *,
body main > section.pricing-section > * {
  width: auto !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

/* Card sections: same column width, generous inner spacing */
body main > section.launch-campaign,
body main > section.layan-ai-section {
  width: auto !important;
  max-width: none !important;
  margin: 56px var(--aa-gutter) !important;
  padding: clamp(28px, 4vw, 48px) !important;
  border-radius: 24px !important;
}

/* Headings: one rhythm, start-aligned like the hero */
body main > section .section-heading,
body main > section .category-explorer-intro,
body main > section .marketplace-heading {
  text-align: start !important;
  align-items: flex-end !important;
  margin: 0 0 32px !important;
}
body main > section .category-explorer-intro p,
body main > section .marketplace-heading p,
body main > section .section-heading p { max-width: 720px; margin-inline: 0 !important; }
body main > section h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.3; margin-bottom: 8px; }

/* Calmer form controls in the brand colour */
body input[type="checkbox"], body input[type="radio"] { accent-color: var(--aa-terracotta); }

/* The visible count already says how many offers exist */

/* Footer on the same column */
body .footer { padding-inline: var(--aa-gutter) !important; padding-block: 48px 28px !important; }

@media (max-width: 760px) {
  :root { --aa-section-y: 56px; --aa-gutter: 16px; }
  body main > section.launch-campaign,
  body main > section.layan-ai-section { margin: 32px 16px !important; padding: 24px 18px !important; }
}
body .offer-details:not(:has(> div)) { display: none !important; }

/* Hero photo framing for the wide villa image */
@media (min-width: 761px) {
  body .hero.design-hero::before { width: 66% !important; background-position: 30% 55% !important; background-size: cover !important; }
  body .hero.design-hero::after {
    background: linear-gradient(270deg, var(--aa-espresso) 0%, var(--aa-espresso) 34%, rgba(43, 33, 27, .82) 50%, rgba(43, 33, 27, .18) 74%, rgba(43, 33, 27, 0) 88%) !important;
  }
  body .hero.design-hero .design-hero-content { max-width: 640px !important; }
  body .hero.design-hero h1 span { display: block; }
}
/* Short laptop screens: keep the search box inside the first screen */
@media (min-width: 761px) and (max-height: 780px) {
  body .hero.design-hero .design-hero-content::before { display: none !important; }
  body .hero.design-hero .eyebrow { margin: 0 !important; padding-block: 4px !important; font-size: 13px !important; }
  body .hero.design-hero h1 { font-size: clamp(32px, 6.2vh, 46px) !important; margin: 10px 0 8px !important; line-height: 1.2 !important; }
  body .hero.design-hero .design-hero-lead { font-size: 17px; margin-bottom: 6px !important; }
  body .hero.design-hero .design-hero-sub { font-size: 15px; line-height: 1.7; margin-bottom: 14px !important; }
  body .hero.design-hero .hero-actions .btn { min-height: 44px; padding-block: 9px; }
}
/* Install toast sits over the photo, clear of the search box */
@media (min-width: 701px) {
  body .install-app-banner { top: calc(var(--aa-topbar-h) + 16px) !important; bottom: auto !important; left: 24px !important; right: auto !important; }
}
@media (max-width: 760px) {
  body .hero.design-hero h1 span { display: block; }
  body .hero.design-hero::before { background-position: 40% 50% !important; }
}
@media (max-width: 700px) { body .asyut-share-button { left: 10px !important; width: 44px; height: 44px; min-height: 44px !important; opacity: .94; } }

/* Partner ads band (beats the id-level legacy rule) */
body main > #partner-ads.partner-ads-section {
  width: auto !important; max-width: none !important; margin: 0 !important;
  padding: var(--aa-section-y) var(--aa-gutter) !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #FFFCF8 !important;
}
body main > #partner-ads.partner-ads-section > * { max-width: none !important; margin-inline: 0 !important; }

/* Pricing / audience cards fill the column evenly */
body .pricing-grid,
body .audience-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; gap: 20px !important; }

/* Buyer match: form fields in two columns on wide screens */
@media (min-width: 1100px) {
  body .buyer-match-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important; gap: 28px !important; align-items: start; }
  body .buyer-preference-form { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px !important; align-content: start; }
  body .buyer-preference-form > label:has(textarea),
  body .buyer-preference-form > :not(label) { grid-column: 1 / -1; }
  body .buyer-preference-form > label { margin: 0 !important; }
}

/* Footer: brand + social, description + contact, then legal row */
@media (min-width: 761px) {
  body .footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 40px !important;
    text-align: start !important;
  }
  body .footer > * { grid-column: 1 / -1; margin: 0 !important; }
  body .footer > .footer-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  body .footer > .social-links { grid-column: 2; grid-row: 1; justify-self: end; }
  body .footer > p:nth-of-type(1) { grid-column: 1; grid-row: 2; color: #D9CCBC; }
  body .footer > p:nth-of-type(2) { grid-column: 2; grid-row: 2; justify-self: end; }
  body .footer > p:nth-of-type(3) { grid-row: 3; padding-top: 18px; border-top: 1px solid rgba(233, 176, 143, .2); color: #B9A898; font-size: 13px; }
  body .footer > .footer-legal { justify-content: flex-start !important; gap: 24px !important; }
}
body .footer p { color: #D9CCBC; }
body .footer a { color: var(--aa-peach); }
body .footer > a:last-child:not(.footer-brand) { justify-self: start; }

/* ---- Inner page heroes: light text on espresso, brand accents ---- */
body .directory-hero {
  background: linear-gradient(120deg, #241B16 0%, var(--aa-espresso) 55%, #3A2C24 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(233, 176, 143, .22), 0 22px 50px rgba(43, 33, 27, .18) !important;
  border-radius: 24px !important;
}
body .directory-hero::after { display: none !important; }
body .directory-hero h1 { color: var(--aa-sand) !important; font-family: var(--aa-head); }
body .directory-hero p { color: #D9CCBC !important; }
body .directory-hero .directory-eyebrow { color: var(--aa-peach) !important; }
body .directory-hero .btn-outline { color: var(--aa-sand) !important; border-color: rgba(243, 236, 225, .42) !important; background: rgba(43, 33, 27, .3) !important; }
body .directory-hero-panel {
  align-items: stretch !important; justify-content: flex-start !important; text-align: start !important;
  gap: 14px; padding: 24px 26px; min-height: 0 !important;
  border: 1px solid rgba(233, 176, 143, .3) !important; border-radius: 18px !important;
  background: rgba(255, 248, 240, .05) !important; letter-spacing: 0 !important; color: var(--aa-sand) !important;
}
body .directory-panel-title { font-family: var(--aa-head); font-weight: 700; font-size: 15px !important; color: var(--aa-peach); }
body .directory-hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
body .directory-hero-panel li { display: grid; gap: 2px; padding-inline-start: 14px; border-inline-start: 2px solid var(--aa-terracotta); }
body .directory-hero-panel b { font-family: var(--aa-head); font-weight: 700; font-size: 15px; color: var(--aa-sand); }
body .directory-hero-panel small { font-size: 13px !important; letter-spacing: 0 !important; color: #C9B8A7; }
@media (max-width: 820px) { body .directory-hero-panel { max-width: none !important; } }

/* Active menu item: one clear treatment (soft chip), no extra underline */
body .topbar nav a.active,
body .topbar nav a[aria-current="page"] {
  background: rgba(233, 176, 143, .16) !important;
  color: var(--aa-peach) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body .topbar nav a.active::after,
body .topbar nav a[aria-current="page"]::after,
body .topbar nav a.active::before,
body .topbar nav a[aria-current="page"]::before { display: none !important; }
body .topbar nav a:hover { background: rgba(243, 236, 225, .07); }
body .topbar nav a::after { display: none !important; }
/* Phones: the six menu links in a tidy 3 x 2 grid instead of a clipped scroller */
@media (max-width: 700px) {
  body .topbar nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px !important;
    width: 100%;
    overflow: visible !important;
    order: 3;
  }
  body .topbar nav a { text-align: center; padding: 9px 4px !important; font-size: 14px; border-radius: 10px; white-space: nowrap; background: rgba(243, 236, 225, .05); }
}

/* ---- Home: latest offers preview (full search lives on offers.html) ---- */
body.page-home .offers-preview .filters,
body.page-home .offers-preview .results-toolbar,
body.page-home .offers-preview .property-map-toolbar,
body.page-home .offers-preview #propertyMapPanel,
body.page-home .offers-preview .offers-pagination { display: none !important; }
body.page-home .offers-preview .offer-card:nth-child(n+7) { display: none !important; }
body.page-home .offers-preview .section-heading { display: flex !important; justify-content: space-between !important; align-items: flex-end !important; gap: 20px; flex-wrap: wrap; }
body .offers-preview-all { flex: 0 0 auto; }

/* ---- Page hero for inner listing pages ---- */
body .page-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 0;
  padding: clamp(40px, 7vw, 72px) var(--aa-gutter);
  background:
    linear-gradient(270deg, rgba(43, 33, 27, .97) 0%, rgba(43, 33, 27, .9) 45%, rgba(43, 33, 27, .62) 100%),
    image-set(url("../demo/hero-villa.webp?v=20261105-3") type("image/webp"), url("../demo/hero-villa.jpg?v=20261105-3") type("image/jpeg")) center 55% / cover no-repeat;
  color: var(--aa-sand);
}
body .page-hero-copy { max-width: 760px; }
body .page-hero .eyebrow { color: var(--aa-peach) !important; }
body .page-hero h1 { margin: 10px 0 12px; color: var(--aa-sand) !important; font-family: var(--aa-head); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
body .page-hero h1 span { color: var(--aa-peach); display: block; }
body .page-hero p { margin: 0; color: #D9CCBC; line-height: 1.9; font-size: 16px; }
body.page-offers main > section.offers-section { padding-top: 48px !important; }

/* Listing page: static preview shown before live details load; listing dates */
body .property-static-preview { text-align: start; }
body .property-static-preview img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }
body .property-dates { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 8px; font-size: 13px; color: #6B5D52; }
body .property-dates time { font-weight: 600; color: var(--aa-espresso); }

/* Contextual services block on listing pages (partner placement) */
body .property-services-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body .property-services-head a { color: var(--aa-terracotta); font-weight: 600; font-size: 14px; }
body .property-services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
body .property-services-grid a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--aa-line); border-radius: 14px; background: #FFFCF8; color: var(--aa-espresso); text-decoration: none; transition: border-color .2s, transform .2s; }
body .property-services-grid a:hover { border-color: var(--aa-terracotta); transform: translateY(-1px); }
body .property-services-grid b { font-family: var(--aa-head); font-weight: 700; }
body .property-services-grid small { color: #6B5D52; }

/* Inline sponsor cards in the listings grid */
body .sponsor-inline { border: 1px dashed rgba(164, 71, 42, .45) !important; background: linear-gradient(160deg, #FFFCF8, #F6EADF) !important; }
body .sponsor-cta { display: flex; flex-direction: column; justify-content: center; min-height: 320px; padding: 8px 4px; }
body .sponsor-cta .offer-card-content { display: grid; gap: 12px; }
body .sponsor-cta h3 { font-family: var(--aa-head); font-size: 21px; line-height: 1.5; margin: 0; color: var(--aa-espresso); }
body .sponsor-cta p { margin: 0; color: #5A4C42; line-height: 1.8; }
body .sponsor-cta .sponsor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body .sponsor-inline .sponsor-label { align-self: flex-start; margin: 14px 16px 0; padding: 4px 10px; border-radius: 8px; background: rgba(164, 71, 42, .1); color: var(--aa-terracotta); font-size: 12px; font-weight: 700; }
