:root {
  color-scheme: dark;
  --review-ink: #f4f3ef;
  --review-muted: #d3d9da;
  --review-base: #151c1f;
  --review-rim: #9da9ae63;
  --review-gold: #f4d59a;
  --review-material: linear-gradient(156deg, #bbc6cb36, #b3c0c609 48%, #070a0a30), #222a2ce0;
  --review-lens: linear-gradient(153deg, #755d34 0%, #5d4a2e 52%, #372c1e 100%);
  --review-reflect: inset 0 1px 0 #f0f5f567, inset 0 -1px 0 #fff1;
  --review-panel: linear-gradient(145deg, #293235, #172025 62%);
  --review-overlay: #10171bed;
  --review-active-rim: #c6ab73;
  --review-gutter: clamp(16px, 3.5vw, 56px);
  --review-font: Manrope, system-ui, sans-serif;
}
html, body { background: var(--review-base); }
body { isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, #131a1fb8, #101519ed 66%), url("/athena-network-glass-room.webp") center 44% / cover no-repeat;
}
.rn-shell, .athena-property:not(.ap-gallery-dialog, .ap-contact-dialog), .communities-page {
  background: transparent !important;
  color: var(--review-ink);
}
:is(.rn-heading, .area-intro, .community-heading, .help-intro, .intro, .seo-public) h1 {
  font-family: var(--review-font) !important;
  letter-spacing: -.04em;
  text-wrap: balance;
  color: var(--review-ink);
}
.rn-shell .rn-heading {
  margin: 0;
  padding: clamp(22px, 2.6vw, 40px) var(--review-gutter) clamp(14px, 1.6vw, 24px);
}
.rn-shell .rn-heading h1 {
  font-size: clamp(1.875rem, 2.9vw, 3rem);
  font-weight: 650;
  line-height: 1.18;
  max-width: none;
}
.rn-result-heading { color: var(--review-muted); }
.rn-shell .rn-review-tools { display: none; }
:is(.an-header, .rn-compact-bar, .rn-quick-preview, .ap-agent, .ap-contact, .area-place, .community-card, .home-card, .route-panel, .faq-item, .tutorial, .seo-card) {
  background: var(--review-material) !important;
  border: 1px solid var(--review-rim) !important;
  box-shadow: var(--review-reflect) !important;
  color: var(--review-ink);
  border-radius: 14px;
}
.an-header {
  margin: 12px auto 0 !important;
  width: calc(100% - min(6vw, 92px)) !important;
  padding-inline: clamp(12px, 2.25vw, 33px) !important;
  -webkit-backdrop-filter: blur(16px) saturate(128%);
  backdrop-filter: blur(16px) saturate(128%);
}
.an-header a { color: var(--review-ink) !important; }
.an-header .an-lang { font-variant-numeric: tabular-nums; }
:is(.an-nav a, .an-account a)[aria-current="page"],
:is(.rn-filter-chips button, .rn-saved-filter, .rn-compact-saved, .date-filters button)[aria-pressed="true"],
:is(.rn-search-bar button.primary, .rn-mobile-map-button, .ap-primary, .tutorial-actions .primary-link, .route-panel .primary) {
  background: var(--review-lens) !important;
  box-shadow: var(--review-reflect);
  border: 1px solid var(--review-active-rim) !important;
  color: #fff8e8 !important;
}
:is(.rn-more-filters, .rn-saved-filter, .rn-compact-search, .rn-compact-saved, .rn-filter-chips button, .rn-mobile-map-button,
  .map-controls button, .sg-catalog-invitation, .ap-button, .ap-gallery-launch, .tutorial-actions a, .date-filters button,
  .area-filters button, .seo-action, .community-tabs button, .route-panel .secondary) {
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid var(--review-rim);
  box-shadow: var(--review-reflect);
}
:is(.rn-more-filters, .rn-saved-filter, .rn-compact-search, .rn-compact-saved,
  .rn-filter-chips button, .map-controls button, .sg-catalog-invitation,
  .ap-button:not(.ap-primary), .tutorial-actions a:not(.primary-link), .area-filters button,
  .community-tabs button, .route-panel .secondary) {
  background: var(--review-material);
  color: var(--review-ink);
}
:is(.rn-search-bar input, .rn-filter-dialog input, .rn-filter-dialog select, .area-filters input, .help-search input) {
  min-height: 44px;
  color: var(--review-ink);
}
.rn-search > div {
  background: #20282bed;
  border: 1px solid var(--review-rim);
  border-radius: 11px;
  box-shadow: inset 0 1px #ffffff2b;
}
.rn-search-tools :is(.rn-more-filters, .rn-saved-filter),
.nc-catalog-bar .nc-button {
  background: var(--review-material);
  border: 1px solid var(--review-rim);
  color: var(--review-ink);
  box-shadow: var(--review-reflect);
  border-radius: 11px;
}
.rn-search-tools .rn-saved-filter[aria-pressed="true"] {
  background: var(--review-lens);
  color: #fff8e8;
  border-color: var(--review-active-rim);
}
.nc-catalog-bar { column-gap: 10px; margin-block-end: 10px; }
.nc-catalog-bar > span { color: var(--review-muted); }
.rn-shell .rn-quick-filters .rn-filter-chips { gap: 6px; }
.rn-shell .rn-filter-chips button {
  color: var(--review-muted);
  border-color: var(--review-rim);
  background: rgb(33 42 45 / 82%);
}
.rn-shell .rn-filter-chips button[aria-pressed="true"] {
  background: var(--review-lens);
  color: #fff8e8;
}
input::placeholder, textarea::placeholder { color: #bfc6c8; opacity: 1; }
:is(.rn-discovery-card, .rn-card, .rn-featured-card, .ap-related-listing) {
  background: #222a2dee !important;
  border-color: var(--review-rim) !important;
  border-radius: 14px;
}
:is(.rn-discovery-price, .rn-price, .ap-price, .home-price, .tutorial-copy a) { color: var(--review-gold); }
:is(.rn-map-wrap, .area-map-wrap, .community-map) { border-radius: 15px; border-color: var(--review-rim); }
.rn-catalog .map-controls, .rn-full-map .map-controls {
  padding: 4px;
  border-radius: 14px;
  background: var(--review-overlay) !important;
}
.rn-area-tools button, .rn-full-map .rn-map-close {
  color: var(--review-ink);
  background: var(--review-overlay);
  border: 1px solid var(--review-rim);
  border-radius: 11px;
  box-shadow: var(--review-reflect);
}
.rn-full-map .rn-map-close { background: var(--review-overlay) !important; }
.rn-area-tools .rn-area-search {
  color: #fff4dd;
  background: var(--review-lens);
  border-color: var(--review-active-rim);
}
.athena-nearby-controls :is(button, .athena-nearby-details),
body:has(#calculator) :is(header, form, aside) {
  background: var(--review-material);
  border: 1px solid var(--review-rim);
  border-radius: 12px;
  box-shadow: var(--review-reflect);
  color: var(--review-ink);
}
.athena-nearby-controls button[aria-pressed="true"],
#calculator button {
  background: linear-gradient(155deg, #534632, #2a2c28 80%);
  color: #fff8e8;
  border-color: var(--review-active-rim);
  box-shadow: var(--review-reflect);
}
.athena-nearby-status, .athena-nearby-reference {
  color: var(--review-muted);
  background: var(--review-overlay);
}
body:has(#calculator) header { margin-top: 12px; padding-inline: 14px; }
.network-map-quiet .property-pin.is-listed .property-pin-price {
  background: linear-gradient(#f2dcac, #cba963) !important;
  color: #181510 !important;
  border-radius: 8px;
  border-color: #f4deb2 !important;
}
.seo-public { color: var(--review-ink); }
.seo-card { padding: 12px; }
.seo-header, .seo-header nav { align-items: center; flex-wrap: wrap; }
.seo-header a, .seo-action { text-underline-offset: .22em; }
.rn-filter-dialog,
.athena-property:is(.ap-gallery-dialog, .ap-contact-dialog),
.nc-dialog {
  color: var(--review-ink) !important;
  background: var(--review-panel) !important;
  border: 1px solid var(--review-rim) !important;
  border-radius: 14px;
  box-shadow: var(--review-reflect);
  color-scheme: dark;
}
:is(body:has(.rn-filter-dialog) [data-slot="dialog-overlay"],
    .athena-property:is(.ap-gallery-dialog, .ap-contact-dialog)::backdrop,
    .nc-dialog::backdrop) {
  background: rgb(6 10 12 / 80%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.rn-filter-dialog [data-slot="dialog-description"] { color: var(--review-muted); }
.rn-filter-dialog :is(input:not([type="checkbox"]), select) {
  background: #131b20;
  border: 1px solid var(--review-rim);
}
.athena-property .ap-property-heading { padding-block: 4px clamp(14px, 2vw, 22px); }
.athena-property .ap-property-heading h1 {
  font-size: clamp(1.65rem, 2.65vw, 2.65rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.athena-property .ap-property-heading .ap-price {
  color: var(--review-gold);
  font-weight: 650;
}
.athena-property .ap-notice {
  background: rgb(23 32 37 / 89%);
  color: var(--review-muted);
}
.athena-property .ap-gallery-top { background: #232d31; }
.athena-property .ap-gallery-top > span {
  font-weight: 650;
  font-size: clamp(.875rem, 2vw, 1rem);
}
.athena-property .ap-gallery-hint,
.athena-property .ap-gallery-count { color: var(--review-muted); }
.athena-property .ap-gallery-stage {
  background: #0b1013;
  border-radius: 10px;
  overflow: hidden;
}
.athena-property :is(.ap-gallery-close, .ap-gallery-prev, .ap-gallery-next) {
  background: var(--review-overlay);
  color: var(--review-ink);
  border-color: var(--review-rim);
  box-shadow: var(--review-reflect);
}
.athena-property .ap-filmstrip button { opacity: .78; }
.athena-property :is(.ap-room-filters, .ap-filmstrip) {
  scrollbar-color: #657378 #182024;
  scrollbar-width: thin;
}
.athena-property .ap-filmstrip button[aria-pressed="true"] {
  border-color: var(--review-gold);
  opacity: 1;
}
.athena-property .ap-mobile-actions {
  background: #182024f5;
  border-color: var(--review-rim);
}
:is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--review-gold) !important;
  outline-offset: 3px;
}
@media (hover: hover) {
  :is(.an-nav a, .rn-filter-chips button, .rn-more-filters, .rn-saved-filter, .ap-button, .sg-catalog-invitation):hover {
    border-color: #c8ae79;
    color: #ffdc9e;
  }
}
@media (max-width: 850px) {
  .an-header { width: calc(100% - 20px) !important; margin-top: 8px !important; }
  .an-header .an-nav a { min-height: 44px; }
}
@media (max-width: 760px) {
  .an-header {
    height: auto !important;
    grid-template-rows: minmax(46px, auto) minmax(44px, auto);
    padding-block: 5px !important;
  }
  .an-header .an-nav { height: auto; }
  .an-header .an-brand img { width: clamp(60px, 19vw, 82px); }
  .rn-shell .rn-heading { padding-block: 16px 12px; }
  .rn-shell .rn-heading h1 { font-size: clamp(1.45rem, 6.7vw, 2rem); }
  .rn-shell :is(.rn-search-tools, .rn-quick-filters) { padding-inline: var(--review-gutter); }
  .rn-search-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-bottom: 0; }
  .rn-search-tools :is(.rn-more-filters, .rn-saved-filter) {
    justify-self: stretch;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
  }
  .nc-catalog-bar {
    margin: 7px var(--review-gutter);
    gap: 7px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
  .nc-catalog-bar .nc-button {
    min-width: 0;
    padding: 5px clamp(5px, 2vw, 12px);
    text-align: center;
    background: rgb(22 30 34 / 65%);
    box-shadow: none;
  }
  .nc-catalog-bar > span { display: none; }
  .rn-shell .rn-quick-filters { padding-bottom: 3px; }
  .rn-shell .rn-quick-filters .rn-filter-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(max-content, 1fr)) minmax(0, 1.45fr);
    overflow: visible;
    gap: 4px;
    padding: 0;
  }
  .rn-shell .rn-filter-chips button {
    padding: 5px 5px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    hyphens: auto;
  }
  .rn-mobile-map-button {
    width: calc(100% - 2 * var(--review-gutter));
    margin: 5px var(--review-gutter) 9px;
    min-height: 46px;
    top: calc(66px + env(safe-area-inset-top));
  }
  .rn-catalog .rn-result-heading { min-height: 40px; }
  .rn-shell .rn-spotlight { padding-top: 6px; }
  .rn-shell .rn-spotlight-heading .text-button { min-height: 44px; }
  .athena-property p.ap-notice { padding: 9px 12px; font-size: 13px; }
  .athena-property.ap-gallery-dialog { padding: 12px; }
  .athena-property .ap-gallery-top { gap: 10px; }
}
@media (max-width: 365px) {
  .an-account { gap: 4px; }
  .an-account a { padding-inline: 5px !important; }
  .an-header { padding-inline: 8px !important; }
  .nc-catalog-bar .nc-button { font-size: 12px; gap: 5px; }
  .rn-shell .rn-search-bar .primary { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
