/* Rabar Real Estate — mobile-first, tablet & laptop */

/* ── Custom Rabar Fonts ── */
@font-face {
  font-family: 'Rabar';
  src: url('font/Rabar_014.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Estimate form: custom dropdowns that always open DOWNWARD (the native
   <select>/<datalist> popups can open upward when near the viewport bottom). */
.pe-combo { position: relative; }
.pe-combo > select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}
.pe-combo__btn {
  width: 100%;
  text-align: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}
.pe-combo__btn.is-placeholder { color: var(--color-muted, #888); }
.pe-combo__btn::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
}
.pe-combo__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--color-line, #e5e5e5);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 0.5rem;
  max-height: 300px;
  display: flex;
  flex-direction: column;
}
.pe-combo__search {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-line, #e5e5e5);
  border-radius: 8px;
  margin-bottom: 0.45rem;
  font: inherit;
}
.pe-combo__list { overflow-y: auto; }
.pe-combo__opt {
  padding: 0.6rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
}
.pe-combo__opt:hover,
.pe-combo__opt.is-active { background: rgba(46, 37, 126, 0.08); }
.pe-combo__opt.is-selected { background: rgba(46, 37, 126, 0.14); font-weight: 700; }
.pe-combo__empty { padding: 0.6rem 0.7rem; color: var(--color-muted, #888); }
body.dark-mode .pe-combo__panel { background: #1c2130; border-color: #2a3245; }
body.dark-mode .pe-combo__search { background: #141824; border-color: #2a3245; color: #e5e9f2; }
body.dark-mode .pe-combo__opt:hover,
body.dark-mode .pe-combo__opt.is-active { background: rgba(255, 255, 255, 0.06); }
@font-face {
  font-family: 'Rabar';
  src: url('font/Rabar_021.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #fff;
  --color-footer: #2e257e;
  --color-accent: #211c51;
  --color-accent-hover: #322b6e;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-line: #e8e8e8;
  --color-sale: #22c55e;
  --color-rent: #8b5cf6;
  --color-buy: #ea580c;
  --font: "Rabar", "Poppins", "Noto Sans Arabic", system-ui, sans-serif;
  --container-pad: 1.25rem;
  --max-width: 1440px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(46, 37, 126, 0.08);
  --header-h: 118px;
}

/* ——— Dark Mode ——— */
body.dark-mode {
  --color-bg: #0f1117;
  --color-text: #e2e6f0;
  --color-muted: #8892a4;
  --color-line: #252d3e;
  --color-surface: #1c2130;
  --color-footer: #818cf8;
  --color-accent: #6f68c4;
  --color-accent-hover: #837cd6;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Dark: header & nav */
body.dark-mode .site-header {
  background: #13161f;
  border-bottom-color: #252d3e;
}
body.dark-mode .nav {
  background: #13161f;
  border-bottom-color: #252d3e;
}
body.dark-mode .nav-list a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Dark: buttons */
body.dark-mode .btn-filter,
body.dark-mode .btn-property-more {
  background: #1c2130;
  border-color: #252d3e;
  color: #c5cde0;
}
body.dark-mode .btn-filter:hover,
body.dark-mode .btn-property-more:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(91, 155, 255, 0.08);
}
body.dark-mode .btn-filter[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(91, 155, 255, 0.12);
}
body.dark-mode .header-profile-btn {
  background: #1c2130;
  border-color: #252d3e;
  color: #c5cde0;
}

/* Dark: dropdown options panel */
body.dark-mode .glass-options {
  background: #1a2030;
  border-color: #252d3e;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}
body.dark-mode .custom-select__option {
  color: #d8e0f0;
}
body.dark-mode .custom-select__option.is-placeholder {
  color: #8892a4;
}
body.dark-mode .custom-select__option.is-selected {
  background: rgba(91, 155, 255, 0.18);
  color: #a0c4ff;
}
body.dark-mode .custom-select__option:hover,
body.dark-mode .custom-select__option.is-highlighted {
  background: rgba(91, 155, 255, 0.12);
}

/* Dark: property cards */
body.dark-mode .property-card {
  background: linear-gradient(145deg, rgba(28, 33, 52, 0.95), rgba(22, 27, 44, 0.9));
  border-color: rgba(80, 100, 150, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-mode .property-card::before {
  background: linear-gradient(155deg, rgba(91, 155, 255, 0.08), rgba(129, 140, 248, 0.1));
}
body.dark-mode .property-card:hover,
body.dark-mode .property-card:focus-within,
body.dark-mode .property-card:active {
  background: linear-gradient(145deg, rgba(35, 42, 65, 0.95), rgba(28, 35, 58, 0.9));
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}
body.dark-mode .property-body,
body.dark-mode .property-card:hover .property-body,
body.dark-mode .property-card:focus-within .property-body {
  background: #1a2035;
}
body.dark-mode .property-price {
  color: #a0c4ff;
}

/* Dark: category cards */
body.dark-mode .category-card {
  background: #1c2130;
  border-color: #252d3e;
}
body.dark-mode .category-icon {
  background: linear-gradient(145deg, rgba(35, 42, 65, 0.95), rgba(28, 35, 58, 0.8));
  border-color: #2e3a52;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.dark-mode .category-card h3 {
  color: #e2e6f0;
}

/* Dark: testimonial */
body.dark-mode .testimonial {
  background: #0d1018;
}
body.dark-mode .testimonial-quote footer {
  color: #a0c4ff;
}

/* Dark: listings toolbar */
body.dark-mode .listings-toolbar {
  background: linear-gradient(145deg, rgba(28, 33, 52, 0.98), rgba(22, 27, 44, 0.99));
  border-color: #252d3e;
}
body.dark-mode .filter-pill {
  background: #1c2130;
  border-color: #252d3e;
  color: #c5cde0;
}
body.dark-mode .filter-pill:hover {
  border-color: rgba(91, 155, 255, 0.4);
  color: var(--color-accent);
}
body.dark-mode .listings-empty {
  background: rgba(22, 27, 44, 0.6);
  border-color: #252d3e;
}
body.dark-mode .listings-results-meta #listings-count-num {
  color: #a0c4ff;
}

/* Dark: user post cards */
body.dark-mode .user-post-card {
  background: #1c2130;
  border-color: #252d3e;
}
body.dark-mode .user-post-card__title {
  color: #a0c4ff;
}
body.dark-mode .user-posts-ticker__empty {
  background: rgba(22, 27, 44, 0.7);
  border-color: #252d3e;
}

/* Dark: branch & modals */
body.dark-mode .branch-card {
  background: #1c2130;
  border-color: #252d3e;
}
body.dark-mode .branch-body h3 {
  color: #c5cde0;
}
body.dark-mode .branch-modal-card,
body.dark-mode .agent-modal-card,
body.dark-mode .call-popup-card {
  background: #1a2030;
  border-color: #252d3e;
}
body.dark-mode .branch-modal-info {
  border-bottom-color: #252d3e;
}
body.dark-mode .branch-modal-name,
body.dark-mode .branch-agent-name,
body.dark-mode .agent-modal-body h3 {
  color: #c5cde0;
}
body.dark-mode .call-popup-number {
  color: #c5cde0;
}
body.dark-mode .branch-agent-card {
  border-bottom-color: #252d3e;
}
body.dark-mode .branch-modal-close,
body.dark-mode .agent-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #c5cde0;
}
body.dark-mode .call-popup-cancel {
  border-color: #252d3e;
  color: #8892a4;
}
body.dark-mode .call-popup-cancel:hover {
  background: #252d3e;
}
body.dark-mode .branch-slider-btn {
  background: rgba(28, 33, 52, 0.95);
  color: #c5cde0;
}

/* Dark: partner badges */
body.dark-mode .partner-badge {
  border-color: #252d3e;
  background: #1c2130;
}

/* Dark: forms */
body.dark-mode .ui-form input,
body.dark-mode .ui-form select,
body.dark-mode .ui-form textarea,
body.dark-mode .ui-inline-form input {
  background: #1c2130;
  border-color: #252d3e;
  color: #e2e6f0;
}
body.dark-mode .ui-item {
  background: #1c2130;
  border-color: #252d3e;
}

/* Dark: about page */
body.dark-mode .about-video {
  background: #0d1018;
}
body.dark-mode .about-video-meta {
  background: #1c2130;
}
body.dark-mode .about-video-title {
  color: #a0c4ff;
}
body.dark-mode .about-hero {
  background: linear-gradient(180deg, #0d1018 0%, #0f1117 100%);
}
body.dark-mode .about-stats li {
  background: #1c2130;
  border-color: #252d3e;
}
body.dark-mode .about-stats strong {
  color: #a0c4ff;
}
body.dark-mode .about-stat-icon {
  background: rgba(91, 155, 255, 0.12);
  color: #a0c4ff;
}

/* Dark: contact / property detail */
body.dark-mode .property-detail-hero {
  border-color: #252d3e;
  background: #252d3e;
}
body.dark-mode .property-detail-specs {
  border-color: #252d3e;
}
body.dark-mode .property-detail-location {
  background: rgba(91, 155, 255, 0.08);
  border-color: #252d3e;
}
body.dark-mode .property-detail-subheading {
  color: #a0c4ff;
}

/* Dark: pages placeholder code */
body.dark-mode .pages-placeholder__note code {
  background: rgba(91, 155, 255, 0.08);
  color: #a0c4ff;
}

/* ——— Language Switcher (Globe button + dropdown) ——— */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-globe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  height: 40px;
  padding: 0 0.62rem 0 0.72rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.lang-globe-btn .lang-globe-ic {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}
.lang-globe-btn .lang-code {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-globe-btn .lang-chev {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.lang-globe-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(43, 127, 255, 0.06);
}
.lang-globe-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.lang-globe-btn.is-open {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(43, 127, 255, 0.08);
}
.lang-globe-btn.is-open .lang-chev,
.lang-globe-btn[aria-expanded="true"] .lang-chev {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 500;
  min-width: 152px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(15, 20, 50, 0.16), 0 4px 12px rgba(15, 20, 50, 0.08);
  animation: langDropIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: top right;
}
.lang-dropdown[hidden] {
  display: none !important;
}
@keyframes langDropIn {
  from { opacity: 0; transform: scale(0.92) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Individual lang option buttons */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-family: "Noto Sans Arabic", "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(43, 127, 255, 0.07);
  color: var(--color-accent);
}
.lang-btn.is-active {
  color: var(--color-accent);
  font-weight: 700;
}
.lang-btn.is-active::after {
  content: "✓";
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.8;
}
[dir="rtl"] .lang-btn {
  text-align: right;
  flex-direction: row-reverse;
}
[dir="rtl"] .lang-btn.is-active::after {
  margin-left: 0;
  margin-right: auto;
}
.lang-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* ── Smooth auto-translate feedback (admin panel) ── */
@keyframes rabarSpin { to { transform: rotate(360deg); } }
.rabar-tr-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(33, 28, 81, 0.25);
  border-top-color: #211c51;
  border-radius: 50%;
  animation: rabarSpin 0.6s linear infinite;
  vertical-align: -2px;
  margin-inline-end: 4px;
}
@keyframes rabarTrFlash {
  0%   { background-color: #dcfce7; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  100% { background-color: transparent; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0); }
}
.rabar-tr-filled {
  animation: rabarTrFlash 1.1s ease;
}
.rabar-tr-btn {
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.rabar-tr-btn:active { transform: scale(0.97); }
.rabar-tr-btn[disabled] { opacity: 0.75; cursor: progress; }
.rabar-tr-status {
  transition: opacity 0.3s ease;
}

/* Crisp SVG flags that render identically on every OS (Windows shows emoji
   flags as plain country codes like "GB"/"EA", which looked broken). */
.lang-flag {
  flex: none;
  display: inline-block;
  width: 24px;
  height: 17px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.18);
}
.lang-flag--en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23ffffff' stroke-width='6'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23C8102E' stroke-width='3'/%3E%3Crect x='25' width='10' height='30' fill='%23ffffff'/%3E%3Crect y='10' width='60' height='10' fill='%23ffffff'/%3E%3Crect x='27' width='6' height='30' fill='%23C8102E'/%3E%3Crect y='12' width='60' height='6' fill='%23C8102E'/%3E%3C/svg%3E");
}
.lang-flag--ku {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23ffffff'/%3E%3Crect width='60' height='13.34' fill='%23EE2A35'/%3E%3Crect y='26.66' width='60' height='13.34' fill='%23259B45'/%3E%3Ccircle cx='30' cy='20' r='6.4' fill='%23FCBA17'/%3E%3C/svg%3E");
}
.lang-flag--ar {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23ffffff'/%3E%3Crect width='60' height='13.34' fill='%23CE1126'/%3E%3Crect y='26.66' width='60' height='13.34' fill='%23000000'/%3E%3C/svg%3E");
}

/* Dark mode */
body.dark-mode .lang-globe-btn {
  border-color: #2e3a52;
  color: #e2e6f0;
}
body.dark-mode .lang-globe-btn:hover,
body.dark-mode .lang-globe-btn.is-open {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(91, 155, 255, 0.1);
}
body.dark-mode .lang-dropdown {
  background: #1a2030;
  border-color: #252d3e;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
body.dark-mode .lang-btn {
  color: #d8e0f0;
}
body.dark-mode .lang-btn:hover {
  background: rgba(91, 155, 255, 0.1);
  color: var(--color-accent);
}

/* RTL: open dropdown to the left */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

/* RTL: flip layout for nav + header */
[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-list {
  flex-direction: row-reverse;
}
[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .footer-grid {
  direction: rtl;
}
[dir="rtl"] .footer-about p {
  text-align: right;
}
[dir="rtl"] .hero-search {
  direction: rtl;
}
[dir="rtl"] .custom-select__trigger {
  flex-direction: row-reverse;
}
[dir="rtl"] .custom-select__icon {
  margin-right: 0;
  margin-left: 0.4rem;
}
[dir="rtl"] .glass-options {
  text-align: right;
}
[dir="rtl"] .section-eyebrow,
[dir="rtl"] .section-title,
[dir="rtl"] .user-posts-marquee__intro {
  text-align: right;
}
[dir="rtl"] .user-posts-marquee__actions {
  justify-content: flex-start;
}
/* Cards inside the ticker: re-apply RTL direction for correct text rendering */
[dir="rtl"] .user-post-card,
[dir="rtl"] .fast-sales-card {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .fast-sales-filters {
  flex-direction: row-reverse;
}
[dir="rtl"] .testimonial-grid {
  direction: rtl;
}
[dir="rtl"] .cta-grid {
  direction: rtl;
}
[dir="rtl"] .partners-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer-bar-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav {
  right: 0;
  left: 0;
}
@media (max-width: 767px) {
  [dir="rtl"] .header-inner {
    flex-direction: row;
  }
  [dir="rtl"] .header-actions {
    flex-direction: row;
    margin-left: auto;
    margin-right: 0;
  }
}

/* ——— Dark mode toggle button ——— */
.dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.dark-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(43, 127, 255, 0.06);
}
.dark-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: block; }
body.dark-mode .dark-toggle .icon-sun { display: block; }
body.dark-mode .dark-toggle .icon-moon { display: none; }
body.dark-mode .dark-toggle {
  border-color: #2e3a52;
  color: #e2e6f0;
}
body.dark-mode .dark-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(91, 155, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

@keyframes page-fade-up {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.995);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes page-fade-soft {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.is-page-animating .site-header {
    animation: page-fade-soft 850ms ease-out both;
  }

  body.is-page-animating .site-footer {
    animation: page-fade-soft 980ms ease-out 480ms both;
  }

  body.is-page-animating main > section,
  body.is-page-animating main > article {
    opacity: 0;
    transform: translateY(26px);
    animation: page-fade-up 1250ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--enter-delay, 0ms) both;
    will-change: transform, opacity;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: max(var(--container-pad), env(safe-area-inset-left, 0px))
    max(var(--container-pad), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-weight: 700;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 100px;
  width: auto;
  max-width: min(470px, 92vw);
  object-fit: contain;
  flex-shrink: 0;
}

body.dark-mode .logo:not(.logo-footer) .logo-img {
  filter: brightness(0) invert(1);
}

.logo-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  :root {
    --header-h: 72px;
  }

  .logo {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
  }

  .logo-img {
    height: 44px;
    max-width: none;
    width: auto;
  }

  .logo-title {
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
    line-height: 1.2;
    letter-spacing: 0.015em;
    min-width: 0;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  padding: 1rem var(--container-pad) 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  min-width: 0;
  box-sizing: border-box;
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.65rem 0.5rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--color-text);
  text-decoration: none;
  background: rgba(46, 37, 126, 0.06);
}

.nav-list a.is-active {
  color: var(--color-text);
  font-weight: 700;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 28vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
  /* visible so background-attachment: fixed isn’t clipped by some browsers */
  overflow: visible;
  background-color: #1a2040;
  background-image: url("aseet.jpg/01.jpg.jpeg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Image stays fixed in the viewport while you scroll (parallax-style) */
  background-attachment: fixed;
}

@media (max-width: 767px) {
  .hero {
    background-attachment: scroll;
    min-height: min(47vh, 384px);
    align-items: flex-end;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .hero-content {
    padding-bottom: 0.25rem;
  }

  .hero-search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.6rem;
  }

  .glass-options {
    max-height: min(52vh, 280px);
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 40, 0.35) 0%, rgba(15, 15, 40, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 920px;
  margin-inline: auto;
  padding: 0.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 8px 32px rgba(15, 20, 50, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ── Single live-search bar (replaces the multi-dropdown search) ── */
.hero-search--single {
  position: relative;
  padding: 0.4rem;
  overflow: visible;
}
.hero-search-single {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.9rem;
}
[dir="rtl"] .hero-search-single {
  padding-left: 0.4rem;
  padding-right: 0.9rem;
}
.hero-search-single__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}
.hero-search-single__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 0.72rem 0.2rem;
  outline: none;
}
.hero-search-single__input::placeholder { color: rgba(255, 255, 255, 0.72); }
.hero-search-single__clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero-search-single__clear:hover { background: rgba(255, 255, 255, 0.3); }
.hero-search-single__btn { flex-shrink: 0; }

.hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 62vh;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(20, 24, 48, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: start;
}
.hero-search-results[hidden] { display: none; }
.hero-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero-search-result:hover { background: rgba(255, 255, 255, 0.1); }
.hero-search-result__img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}
.hero-search-result__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.hero-search-result__title {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-result__loc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-result__price {
  flex-shrink: 0;
  color: #a0c4ff;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-search-noresult {
  padding: 0.95rem 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ── Advanced search trigger (inside the search bar) ── */
.hero-search-single__adv {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease;
}
.hero-search-single__adv:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
/* Spacing between the search button and the advanced button */
.hero-search-single__btn + .hero-search-single__adv {
  margin-inline-start: 0.15rem;
}
@media (max-width: 767px) {
  .hero-search-single__adv { padding: 0.5rem 0.6rem; }
  .hero-search-single__adv-label { display: none; }
}

/* ── Advanced search modal ── */
.adv-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.adv-modal[hidden] { display: none; }
.adv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.adv-modal.is-open .adv-modal__overlay { opacity: 1; }
.adv-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(10, 14, 30, 0.4);
  padding: 1.5rem;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}
.adv-modal.is-open .adv-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.adv-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.adv-modal__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text, #0f172a);
}
.adv-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-text, #0f172a);
  cursor: pointer;
  transition: background 0.15s ease;
}
.adv-modal__close:hover { background: rgba(15, 23, 42, 0.12); }

.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}
.adv-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.adv-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
}
.adv-input {
  width: 100%;
  padding: 0.66rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 11px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #0f172a);
  font: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adv-input:focus {
  border-color: var(--color-accent, #2b7fff);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.15);
}
.adv-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.adv-reset {
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-text, #0f172a);
  border: none;
}
.adv-reset:hover { background: rgba(15, 23, 42, 0.12); }
.adv-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 560px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-modal__panel { padding: 1.15rem; }
}

/* Dark mode */
body.dark-mode .adv-modal__panel {
  background: #1a2138;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
body.dark-mode .adv-modal__title { color: #f1f5f9; }
body.dark-mode .adv-input {
  background: #0f1526;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}
body.dark-mode .adv-modal__close,
body.dark-mode .adv-reset {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

/* Slimmer hero search controls */
.hero-search .hero-search-row { gap: 0.5rem; }
.hero-search .custom-select__trigger {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.hero-search .btn-search,
.hero-search .btn-filter {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  min-height: 0;
}

/* Fallback when the browser can't blur the backdrop (many mobile browsers).
   Instead of an opaque WHITE box, use a dark translucent tint so it still
   reads as frosted glass over the hero image and the white text stays clear. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-search {
    background: linear-gradient(135deg, rgba(26, 31, 64, 0.58), rgba(26, 31, 64, 0.44));
    border-color: rgba(255, 255, 255, 0.4);
  }
  .hero-search .custom-select__trigger {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
  }
}

.hero-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Mobile: denser layout closer to desktop (2-col grid for controls) */
@media (max-width: 767px) {
  .hero-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    align-items: stretch;
  }

  .hero-search-row > .hero-glass-select:nth-child(1),
  .hero-search-row > .hero-glass-select:nth-child(2) {
    min-width: 0;
  }

  .hero-search-row > .hero-glass-select:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-search-row > .btn-filter {
    grid-column: 1;
    width: 100%;
    min-height: 48px;
  }

  .hero-search-row > .btn-search {
    grid-column: 2;
    width: 100%;
    min-height: 48px;
  }
}

.hero-search-advanced {
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  text-align: left;
}

.hero-search-advanced[hidden] {
  display: none !important;
}

.hero-search-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: rgba(30, 30, 45, 0.78);
  line-height: 1.45;
}

.hero-search-hint strong {
  color: rgba(15, 15, 35, 0.95);
  font-weight: 600;
}

.hero-search-advanced-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

.hero-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c5c5c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}

.hero-search .hero-select {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 14px rgba(15, 20, 50, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-search .hero-select option {
  color: var(--color-text);
  background: #fff;
}

.hero-search .hero-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hero-search .hero-select:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(43, 127, 255, 0.45);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-search .hero-select {
    background-color: rgba(255, 255, 255, 0.82);
    color: var(--color-text);
    text-shadow: none;
    border-color: rgba(255, 255, 255, 0.55);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c5c5c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  }
}

/* Custom glass dropdowns (Category, Property type, Location) */
.custom-select.hero-glass-select {
  position: relative;
  width: 100%;
}

/* Manual price inputs */
.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.price-input-icon {
  position: absolute;
  left: 0.85rem;
  flex-shrink: 0;
  pointer-events: none;
  opacity: 0.7;
  color: #fff;
}

.price-input {
  width: 100%;
  padding: 0 1rem 0 2.4rem;
  height: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  -moz-appearance: textfield;
}

.price-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.price-input:focus {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.26);
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .price-input {
    background: rgba(255,255,255,0.92);
    color: var(--color-text);
    border-color: rgba(200,200,210,0.95);
  }
  .price-input::placeholder { color: var(--color-muted); }
  .price-input-icon { color: var(--color-muted); }
}

.hero-search-row .custom-select.hero-glass-select.is-open {
  z-index: 110;
}

.hero-search-advanced .custom-select.hero-glass-select.is-open {
  z-index: 115;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 14px rgba(15, 20, 50, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.custom-select__trigger:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.custom-select.is-open .custom-select__trigger {
  border-color: rgba(255, 255, 255, 0.75);
}

.custom-select__trigger:focus {
  outline: none;
}

.custom-select__trigger:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(43, 127, 255, 0.45);
}

.custom-select__value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__value.is-placeholder {
  opacity: 0.92;
}

.custom-select__icon {
  flex-shrink: 0;
  opacity: 0.85;
  margin-right: 0.4rem;
}

.opt-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.custom-select__chevron {
  flex-shrink: 0;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}

/* Open list: solid light panel + dark text (readable); trigger stays glass above */
.glass-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 16px 48px rgba(15, 20, 50, 0.18), 0 4px 12px rgba(15, 20, 50, 0.08);
  max-height: 240px;
  overflow-y: auto;
}

.glass-options[hidden] {
  display: none !important;
}

.custom-select__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  margin: 0 0.35rem;
  border-radius: 6px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease;
  font-weight: 500;
}

.custom-select__option:hover,
.custom-select__option.is-highlighted {
  background: rgba(43, 127, 255, 0.1);
}

.custom-select__option.is-selected {
  background: rgba(43, 127, 255, 0.16);
  color: var(--color-footer);
  font-weight: 600;
}

.custom-select__option.is-placeholder {
  color: var(--color-muted);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .custom-select__trigger {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    text-shadow: none;
    border-color: rgba(200, 200, 210, 0.95);
  }
}

/* Hero row + advanced filters: always frosted controls when blur API exists (beats one-class fallback above). */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-search .custom-select__trigger {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 2px 14px rgba(15, 20, 50, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-search .custom-select__trigger:hover {
    border-color: rgba(255, 255, 255, 0.55);
  }

  .hero-search .custom-select.is-open .custom-select__trigger {
    border-color: rgba(255, 255, 255, 0.75);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-search,
.btn-primary {
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(46, 37, 126, 0.28);
}

.btn-search:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(46, 37, 126, 0.35);
  text-decoration: none;
}

.icon-search {
  flex-shrink: 0;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #fff;
  color: var(--color-footer);
  border: 2px solid var(--color-line);
}

.btn-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(33, 28, 81, 0.06);
  text-decoration: none;
}

.btn-filter[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(33, 28, 81, 0.1);
}

.header-profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid var(--color-line);
  background: #fff;
  color: var(--color-footer);
  font-size: 1rem;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}

.header-profile-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(33, 28, 81, 0.06);
  text-decoration: none;
}

/* ============================================================
   Modern header controls — unified soft "chip" design
   Restyles language pill, dark toggle, profile/register and the
   hamburger into one cohesive, modern set of buttons.
   ============================================================ */
.header-actions {
  gap: 0.45rem;
}

.lang-globe-btn,
.dark-toggle,
.header-profile-btn,
.header-actions .btn-filter,
.nav-toggle {
  height: 42px;
  border: 1px solid transparent;
  background: rgba(17, 24, 39, 0.055);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.02);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
}

.dark-toggle,
.header-profile-btn,
.nav-toggle {
  width: 42px;
  border-radius: 999px;
}

.lang-globe-btn {
  border-radius: 999px;
  padding: 0 0.72rem 0 0.82rem;
}

.header-actions .btn-filter {
  border-radius: 999px;
  padding: 0 1.05rem;
  font-weight: 600;
}

.lang-globe-btn:hover,
.dark-toggle:hover,
.header-profile-btn:hover,
.header-actions .btn-filter:hover,
.nav-toggle:hover,
.lang-globe-btn.is-open,
.lang-globe-btn[aria-expanded="true"] {
  background: rgba(43, 127, 255, 0.12);
  color: var(--color-accent);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(43, 127, 255, 0.18);
  text-decoration: none;
}

.lang-globe-btn:active,
.dark-toggle:active,
.header-profile-btn:active,
.header-actions .btn-filter:active,
.nav-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(43, 127, 255, 0.16);
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--color-accent);
}

/* Dark mode chips */
body.dark-mode .lang-globe-btn,
body.dark-mode .dark-toggle,
body.dark-mode .header-profile-btn,
body.dark-mode .header-actions .btn-filter,
body.dark-mode .nav-toggle {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e6f0;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

body.dark-mode .lang-globe-btn:hover,
body.dark-mode .dark-toggle:hover,
body.dark-mode .header-profile-btn:hover,
body.dark-mode .header-actions .btn-filter:hover,
body.dark-mode .nav-toggle:hover,
body.dark-mode .lang-globe-btn.is-open,
body.dark-mode .lang-globe-btn[aria-expanded="true"] {
  background: rgba(91, 155, 255, 0.2);
  color: #cfe0ff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .nav-toggle:hover .nav-toggle-bar {
  background: #cfe0ff;
}

@media (max-width: 767px) {
  .header-actions {
    gap: 0.38rem;
  }

  .lang-globe-btn,
  .dark-toggle,
  .header-profile-btn,
  .header-actions .btn-filter,
  .nav-toggle {
    height: 40px;
  }

  .dark-toggle,
  .header-profile-btn,
  .nav-toggle {
    width: 40px;
  }

  /* Shorten the language pill on phones: hide the chevron, keep globe + code */
  .lang-globe-btn {
    padding: 0 0.6rem;
    gap: 0.32rem;
  }
  .lang-globe-btn .lang-chev {
    display: none;
  }
}

/* Admin nav link — only visible to admins */
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff !important;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 6px;
  padding: 0.25rem 0.7rem !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.admin-nav-link:hover { opacity: 0.85; text-decoration: none; }
body.dark-mode .admin-nav-link { background: linear-gradient(135deg, #1e3a8a, #2563eb); }

.hero-search .btn-filter {
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-search .btn-filter:hover {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero-search .btn-filter[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.38);
  color: #fff;
}

/* Mobile: blur must come *after* base .hero-search or it is overridden. WebKit often needs
   its own layer (translateZ) + saturate(); some devices still throttle blur — see user FAQ. */
@media (max-width: 767px) {
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .hero-search {
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      /* Dark tint (not white): nested blur on the child fields samples this
         panel, so a white tint here made the whole bar look white on phones. */
      background: rgba(26, 31, 64, 0.34);
      -webkit-backdrop-filter: blur(22px) saturate(175%);
      backdrop-filter: blur(22px) saturate(175%);
    }

    .hero-search .custom-select__trigger {
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      -webkit-backdrop-filter: blur(14px) saturate(175%);
      backdrop-filter: blur(14px) saturate(175%);
    }

    .hero-search .btn-filter {
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      -webkit-backdrop-filter: blur(12px) saturate(175%);
      backdrop-filter: blur(12px) saturate(175%);
    }
  }
}

.icon-filter {
  flex-shrink: 0;
}

/* ——— Sections ——— */
.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

.section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-title.centered {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-title-row .section-title {
  margin-bottom: 0;
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-accent, #7c5cfc);
  color: var(--color-accent, #7c5cfc);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn-outline-sm:hover {
  background: var(--color-accent, #7c5cfc);
  color: #fff;
}

/* ——— Categories ——— */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.category-card {
  min-width: 0;
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.category-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

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

.category-card.is-active {
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(43, 127, 255, 0.2);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--color-line);
  border-radius: 14px;
  position: relative;
  background: linear-gradient(145deg, rgba(250, 252, 255, 0.95), rgba(240, 244, 250, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.category-card.is-active .category-icon {
  border-color: var(--color-accent);
  background: rgba(43, 127, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(43, 127, 255, 0.12);
}

.category-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.category-card:hover .category-icon-svg {
  color: var(--color-text);
}

.category-card.is-active .category-icon-svg {
  color: var(--color-accent);
}

.category-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.category-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.category-carousel-viewport {
  overflow: visible;
}

.category-carousel-dots {
  display: none;
}

@media (max-width: 767px) {
  .category-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
  }

  .category-carousel-viewport:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-accent);
    border-radius: var(--radius-sm);
  }

  .category-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .category-carousel .category-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    grid-template-columns: none;
  }

  .category-carousel .category-grid .category-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .category-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .category-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 10px;
    box-sizing: content-box;
    border: none;
    border-radius: 50%;
    background: var(--color-line);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .category-carousel-dot:hover,
  .category-carousel-dot:focus-visible {
    background: #c8c8d0;
    outline: none;
  }

  .category-carousel-dot:focus-visible {
    box-shadow: 0 0 0 2px var(--color-accent);
  }

  .category-carousel-dot.is-current {
    background: var(--color-accent);
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-carousel-viewport {
    scroll-behavior: auto;
  }
}

/* ——— Featured properties ——— */
.property-more-actions {
  margin-top: 1.75rem;
  text-align: center;
}

.btn-property-more {
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--color-line);
  background: #fff;
  color: var(--color-footer);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-property-more:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.btn-property-more:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.property-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .property-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════
   PROPERTY CARD — Social Style
═══════════════════════════════════════════════ */
.property-card {
  position: relative;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06), 0 6px 20px rgba(15,23,42,0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.property-card::before { display: none; }

.property-card-hit {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.property-card-hit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.property-card:hover,
.property-card:focus-within {
  box-shadow: 0 4px 12px rgba(15,23,42,0.1), 0 20px 48px rgba(15,23,42,0.12);
  transform: translateY(-4px);
}

@media (hover: none) {
  .property-card:active { transform: scale(0.985); }
}

/* ── Image wrapper ── */
.pc-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pc-img--empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.property-card:hover .pc-img { transform: scale(1.04); }

/* Dark gradient at bottom of image — for price overlay */
.pc-img-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* ── Type badge (top-left) ── */
.pc-type-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 3;
  padding: 0.22rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pc-type-sale { background: rgba(220,38,38,0.85); }
.pc-type-rent { background: rgba(37,99,235,0.85); }
.pc-type-buy  { background: rgba(234,88,12,0.85); }

/* ── Photo count (top-right) ── */
.pc-fast-badge {
  position: absolute;
  top: 2.55rem;
  left: 0.7rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #ff8a1e, #f5341f);
  border-radius: 999px;
  box-shadow: 0 2px 9px rgba(245, 52, 31, 0.42);
}
.pc-fast-badge svg { flex: none; }

.pc-photo-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Favorite (heart) button — top-right of every property card ── */
.fav-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  /* Must sit ABOVE the full-card link overlay (.property-card-hit, z-index 6),
     otherwise the heart is unclickable and taps just open the property page. */
  z-index: 8;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.fav-btn:hover { transform: scale(1.1); background: #fff; }
.fav-btn svg {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 1.6;
  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.15s ease;
}
.fav-btn.is-fav { background: #fff; }
.fav-btn.is-fav svg { fill: #f59e0b; stroke: #f59e0b; }
.fav-btn.fav-pop svg { animation: favPop 0.32s ease; }
@keyframes favPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
[dir="rtl"] .fav-btn { right: auto; left: 0.6rem; }
body.dark-mode .fav-btn { background: rgba(30,30,40,0.88); }
body.dark-mode .fav-btn:hover { background: #1f1f2a; }

/* On user-post / fast-sale cards the sale tag sits in the top corner, so keep
   the heart on the opposite (top-right) side to avoid overlapping it. */
.user-post-card__media .fav-btn,
[dir="rtl"] .user-post-card__media .fav-btn {
  top: 0.5rem;
  right: 0.5rem;
  left: auto;
  width: 32px;
  height: 32px;
}
.user-post-card__media .fav-btn svg { width: 17px; height: 17px; }

/* property-card has the type/fast badges in the top-left corner, so move the
   heart to the top-right (the bottom corners hold the price + photo count). */
.pc-img-wrap .fav-btn,
[dir="rtl"] .pc-img-wrap .fav-btn {
  top: 0.6rem;
  right: 0.6rem;
  left: auto;
}

/* Header favorites link + count badge */
.fav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}
.fav-link svg { stroke: currentColor; fill: none; stroke-width: 1.6; }
.fav-link:hover svg { stroke: #f59e0b; }
.fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: #f59e0b;
  border-radius: 999px;
}

/* ── Price overlay (bottom of image) ── */
.pc-price-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  letter-spacing: -0.01em;
}

/* ── Card body ── */
.property-body {
  padding: 0.9rem 1rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.property-card:hover .property-body,
.property-card:focus-within .property-body {
  background: #fff;
}

/* ── Title ── */
.pc-title,
.property-body h2,
.property-body h3,
.property-body .h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Address ── */
.property-address {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Meta row (beds / baths / area) ── */
.pc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f1f5f9;
}

.pc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.pc-meta-item svg { opacity: 0.55; flex-shrink: 0; }

.pc-meta-area {
  margin-left: auto;
  color: var(--color-accent, #7c3aed);
  font-weight: 700;
}

.pc-meta-area svg { opacity: 0.7; }

/* ── Agent footer ── */
.pc-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
}

.pc-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-accent,#7c3aed), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-av-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.pc-av-init {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.pc-footer-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pc-agent-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-branch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep old price field hidden inside cards (price is now on the image).
   The property detail page price (#property-price) must stay visible. */
.property-card .property-price { display: none; }

/* Dark mode */
body.dark-mode .property-card { background: #1e293b; box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.3); }
body.dark-mode .property-body,
body.dark-mode .property-card:hover .property-body,
body.dark-mode .property-card:focus-within .property-body { background: #1e293b; }
body.dark-mode .pc-title,
body.dark-mode .property-body h2,
body.dark-mode .property-body h3 { color: #f1f5f9; }
body.dark-mode .pc-meta-item { color: #cbd5e1; }
body.dark-mode .pc-meta-row,
body.dark-mode .pc-footer { border-top-color: rgba(255,255,255,0.07); }
body.dark-mode .pc-agent-name { color: #f1f5f9; }
body.dark-mode .pc-branch { color: #94a3b8; }

/* Legacy tag (keep for any remaining usage) */
.tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
}

.tag-sale { background: var(--color-sale); }
.tag-rent { background: var(--color-rent); }

.tag-buy {
  background: linear-gradient(135deg, #c2410c, var(--color-buy));
}

/* Multi-image sliders (agent + client cards, property detail) */
.property-card:has(.property-media--slider) .property-card-hit {
  z-index: 3;
}

.property-media--slider {
  position: relative;
  z-index: 5;
  touch-action: pan-y;
}

.property-media--slider .property-slider-track {
  display: flex;
  transition: transform 0.35s ease;
  height: 100%;
  will-change: transform;
}

.property-media--slider .property-slider-slide {
  flex: 0 0 auto;
  min-height: 0;
  height: 100%;
}

.property-media--slider .property-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-media--slider .tag {
  z-index: 7;
}

.property-card:has(.property-media--slider):hover .property-media img,
.property-card:has(.property-media--slider):focus-within .property-media img,
.property-card:has(.property-media--slider):has(.property-card-hit:active) .property-media img {
  transform: none;
  filter: none;
}

.property-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-footer);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.property-slider-btn:hover {
  background: #fff;
  color: var(--color-accent);
}

.property-slider-btn--prev {
  left: 0.5rem;
}

.property-slider-btn--next {
  right: 0.5rem;
}

.property-slider-count {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  border-radius: 999px;
  pointer-events: none;
}

.property-slider-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 7;
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 37, 126, 0.9);
  border-radius: 4px;
  pointer-events: none;
}

.property-detail-hero .property-media--detail-slider,
.property-detail-hero .property-hero-slider {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ——— Listings filters ——— */
.listings-toolbar {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.99));
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.listings-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .listings-toolbar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
  }
}

.listings-filter-block {
  flex: 1;
  min-width: min(100%, 260px);
}

.listings-filter-heading {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
}

.listings-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  margin: 0;
  appearance: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-footer);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-pill:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--color-accent);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.28);
}

.filter-pill:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .listings-toolbar {
    margin-bottom: 1.35rem;
    padding: 1rem 0.95rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .listings-filter-block {
    min-width: 0;
  }

  .listings-filter-pills {
    gap: 0.4rem;
  }

  .filter-pill {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .custom-select__trigger {
    min-height: 48px;
  }
}

.listings-filter-reset {
  align-self: flex-start;
  margin: 0;
  padding: 0.35rem 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  background: none;
  border: none;
  cursor: pointer;
}

.listings-filter-reset:hover {
  color: #6d28d9;
}

@media (min-width: 900px) {
  .listings-filter-reset {
    align-self: center;
  }
}

.listings-results-meta {
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.listings-results-meta #listings-count-num {
  font-weight: 700;
  color: var(--color-footer);
}

.listings-empty {
  margin: 0 0 1.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.6);
}

.property-card.is-filter-hidden {
  display: none;
}

.property-body {
  padding: 1rem 1.1rem 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.2s ease;
}

.property-card:hover .property-body,
.property-card:focus-within .property-body,
.property-card:has(.property-card-hit:active) .property-body {
  background: #fff;
}

/* Card title */
.pc-title,
.property-body h2,
.property-body h3,
.property-body .h3 {
  margin: 0 0 0.1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-footer, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Address */
.property-address {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.1rem;
  font-size: 0.8rem;
  color: var(--color-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price — big and bold with accent color */
.property-price {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-accent, #7c3aed);
  letter-spacing: -0.01em;
}

.property-price .per {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Meta chips (beds / baths / area) */
.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-footer, #0f172a);
  background: var(--color-bg2, #f1f5f9);
  border-radius: 999px;
  white-space: nowrap;
}

.pc-chip svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* Agent / branch footer strip */
.pc-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-line, #e2e8f0);
}

.pc-agent-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--color-line, #e2e8f0);
}

.pc-footer-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pc-agent-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-footer, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-branch {
  font-size: 0.72rem;
  color: var(--color-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dark mode */
body.dark-mode .pc-chip {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
}

body.dark-mode .pc-footer {
  border-top-color: rgba(255,255,255,0.1);
}

body.dark-mode .pc-agent-name {
  color: #f1f5f9;
}

body.dark-mode .pc-branch {
  color: #94a3b8;
}

/* Legacy — keep for any remaining meta lists */
.property-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.meta-icon {
  margin-right: 0.2rem;
  opacity: 0.7;
}

/* Agent posts + client posts grids: on phones, one column, same card shell & type scale */
@media (max-width: 767px) {
  .listings-page #listings-property-grid.property-grid,
  .client-posts-page #client-posts-grid.property-grid {
    grid-template-columns: 1fr !important;
    gap: 1.35rem;
  }

  .listings-page .property-card,
  .client-posts-page .property-card {
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  }

  .listings-page .property-card:hover,
  .listings-page .property-card:focus-within,
  .listings-page .property-card:active,
  .client-posts-page .property-card:hover,
  .client-posts-page .property-card:focus-within,
  .client-posts-page .property-card:active {
    transform: none;
  }

  .listings-page .property-card .property-media,
  .client-posts-page .property-card .property-media {
    background: linear-gradient(145deg, rgba(43, 127, 255, 0.08), rgba(46, 37, 126, 0.06));
  }

  .listings-page .property-card .property-media::after,
  .client-posts-page .property-card .property-media::after {
    opacity: 0.28;
  }

  .listings-page .property-card .property-media img,
  .client-posts-page .property-card .property-media img {
    min-height: 200px;
  }

  .listings-page .property-card:hover .property-media img,
  .listings-page .property-card:focus-within .property-media img,
  .listings-page .property-card:has(.property-card-hit:active) .property-media img,
  .client-posts-page .property-card:hover .property-media img,
  .client-posts-page .property-card:focus-within .property-media img,
  .client-posts-page .property-card:has(.property-card-hit:active) .property-media img {
    transform: none;
    filter: none;
  }

  .listings-page .property-card:hover .property-media::after,
  .listings-page .property-card:focus-within .property-media::after,
  .client-posts-page .property-card:hover .property-media::after,
  .client-posts-page .property-card:focus-within .property-media::after {
    opacity: 0.35;
  }

  .listings-page .property-body,
  .client-posts-page .property-body {
    padding: 1rem 1.15rem 1.2rem;
    background: transparent;
  }

  .listings-page .property-card:hover .property-body,
  .listings-page .property-card:focus-within .property-body,
  .client-posts-page .property-card:hover .property-body,
  .client-posts-page .property-card:focus-within .property-body {
    background: transparent;
  }

  .listings-page .property-body .h3,
  .client-posts-page .property-body .h3 {
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--color-footer);
  }

  .listings-page .property-address,
  .client-posts-page .property-address {
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
  }

  .listings-page .property-price,
  .client-posts-page .property-price {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
  }

  .listings-page .property-price .per,
  .client-posts-page .property-price .per {
    font-size: 0.85rem;
  }

  .listings-page .property-meta,
  .client-posts-page .property-meta {
    font-size: 0.88rem;
    gap: 0.45rem 0.85rem;
  }
}

@media (max-width: 767px) and (hover: none) {
  .listings-page .property-card:active,
  .listings-page .property-card:has(.property-card-hit:active),
  .client-posts-page .property-card:active,
  .client-posts-page .property-card:has(.property-card-hit:active) {
    transform: none;
  }
}

/* ——— Property detail page ——— */
.property-detail-section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.property-detail-breadcrumb {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

.property-detail-breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.property-detail-breadcrumb a:hover {
  text-decoration: underline;
}

.property-detail-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.property-detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-line);
}

.property-detail-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-detail-aside .tag {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.property-detail-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.property-detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.property-detail-specs dt {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

.property-detail-specs dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.property-detail-subheading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-footer);
}

.property-detail-location {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(43, 127, 255, 0.07);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.property-detail-address-block {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.property-detail-maplink {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

.property-detail-maplink:hover {
  text-decoration: underline;
}

.property-detail-maplink:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.property-detail-desc {
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.property-detail-back {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}

.property-detail-back a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.property-detail-back a:hover {
  text-decoration: underline;
}

/* ——— Testimonial ——— */
/* ——— Projects we worked with ——— */
.projects-section {
  background: #f7f7fb;
}

body.dark-mode .projects-section {
  background: #14141c;
}

.projects-section .section-eyebrow {
  text-align: center;
}

.projects-section .section-title {
  text-align: center;
  margin-bottom: 0.6rem;
}

.projects-intro {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, #2b3a67 0%, #1b2342 100%);
  box-shadow: 0 10px 30px rgba(15, 20, 50, 0.14);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  isolation: isolate;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(15, 20, 50, 0.28);
}

.project-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card__media img {
  transform: scale(1.1);
}

.project-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 14, 35, 0.92) 0%,
    rgba(10, 14, 35, 0.55) 38%,
    rgba(10, 14, 35, 0.08) 70%,
    rgba(10, 14, 35, 0.18) 100%
  );
  transition: background 0.35s ease;
}

.project-card:hover .project-card__shade {
  background: linear-gradient(
    to top,
    rgba(10, 14, 35, 0.95) 0%,
    rgba(10, 14, 35, 0.62) 42%,
    rgba(10, 14, 35, 0.12) 78%,
    rgba(10, 14, 35, 0.2) 100%
  );
}

.project-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.15rem 1.2rem 1.25rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card__content {
  transform: translateY(-2.4rem);
}

.project-card__name {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.project-card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.project-card__loc svg {
  flex-shrink: 0;
  color: var(--color-accent, #c8a96e);
}

.project-card__view {
  position: absolute;
  left: 1.2rem;
  bottom: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.project-card__view svg {
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__view {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-card__view svg {
  transform: translateX(3px);
}

[dir="rtl"] .project-card__loc {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .project-card__view {
  left: auto;
  right: 1.2rem;
  flex-direction: row-reverse;
}

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

[dir="rtl"] .project-card:hover .project-card__view svg {
  transform: scaleX(-1) translateX(3px);
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .project-card__name { font-size: 1rem; }
  .project-card__content { padding: 0.9rem 0.95rem 1rem; }
}

.testimonial {
  background: #f7f7fb;
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.testimonial-copy .section-title {
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-quote .quote-ar {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-quote .quote-en {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.testimonial-quote footer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-footer);
}

.testimonial-brand {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-footer);
}

.testimonial-brand-img {
  flex: 1;
  width: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ——— CTA / Contact ——— */
.cta-section {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url("aseet.jpg/06.jpg.jpeg") center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.04);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 50, 0.55);
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-form-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 18px 48px rgba(12, 15, 40, 0.28);
  max-width: 480px;
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  backdrop-filter: blur(16px) saturate(165%);
}

.cta-form-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 1px;
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.2);
}

.cta-slogan {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* ——— Partners ——— */
.partners {
  text-align: center;
}

/* ——— About page ——— */
.about-video {
  padding-block: clamp(1.25rem, 4vw, 2.2rem);
  background: #f8f9ff;
}

.about-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #000;
  box-shadow: var(--shadow);
}

.about-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-video-meta {
  background: #fff;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.about-video-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--color-footer);
}

.about-video-copy {
  margin: 0 0 0.9rem;
  color: var(--color-muted);
}

.about-hero {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.about-hero-copy {
  margin: 0;
  max-width: 56rem;
  color: var(--color-muted);
}

.about-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .about-stats li {
    padding: 0.65rem 0.45rem;
  }

  .about-stats strong {
    font-size: 1rem;
  }

  .about-stats span {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .about-stat-icon {
    width: 28px;
    height: 28px;
  }

  .about-stat-icon-svg {
    width: 15px;
    height: 15px;
  }

}

.about-stats li {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.about-stat-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(43, 127, 255, 0.12);
  color: var(--color-footer);
}

.about-stat-icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-stats strong {
  display: block;
  color: var(--color-footer);
  font-size: 1.2rem;
  line-height: 1.2;
}

.about-stats span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.about-image img {
  width: 100%;
  margin-inline: 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}

.about-image-sharp img {
  border-radius: 0;
}

.about-team-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.about-team-track::-webkit-scrollbar {
  display: none;
}

.about-team-track:active {
  cursor: grabbing;
}

.about-team-track .property-card {
  flex: 0 0 min(60vw, 220px);
  cursor: pointer;
  position: relative;
}

/* ── Agent nice grid ── */
.agents-nice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.agent-nice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 1.5rem 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200,169,110,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
}
.agent-nice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(200,169,110,0.22);
}
.agent-nice-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0eb, #e8ddd0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 4px solid var(--color-accent, #c8a96e);
  flex-shrink: 0;
}
.agent-nice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.agent-nice-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.agent-nice-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading, #221a4e);
  margin: 0;
  line-height: 1.3;
}
.agent-nice-role {
  font-size: 0.78rem;
  color: var(--color-muted, #888);
  margin: 0;
}
.agent-nice-branch {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-accent, #c8a96e);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.agent-nice-branch:hover { opacity: 0.85; }

body.dark-mode .agent-nice-card {
  background: rgba(30,25,50,0.6);
  border-color: rgba(200,169,110,0.25);
}
body.dark-mode .agent-nice-name { color: #f0ece4; }

@media (max-width: 600px) {
  .agents-nice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
  .agent-nice-card {
    padding: 0.9rem 0.4rem 0.85rem;
  }
  .agent-nice-avatar { width: 72px; height: 72px; }
  .agent-nice-name { font-size: 0.75rem; }
  .agent-nice-branch { font-size: 0.7rem; }
}

/* About page: agent card images are shown when available */

@media (min-width: 768px) {
  .about-team-track .property-card {
    flex-basis: 210px;
  }
}

.about-senior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  justify-content: center;
  justify-items: stretch;
  gap: 1.1rem;
  margin: 0 auto;
}

.about-senior-grid .property-card {
  width: 100%;
}

.about-senior-grid .property-body {
  text-align: center;
}

@media (max-width: 540px) {
  .about-senior-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    justify-content: center;
  }
}

/* ───── Estimate Your House — Minimal CTA Card ─────────── */
.estimate-cta-section {
  padding: 3rem 0 2.5rem;
}
.estimate-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 3.25rem;
  border-radius: 32px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(130% 130% at 88% 8%, rgba(59,126,248,0.30) 0%, transparent 50%),
    radial-gradient(120% 120% at 0% 100%, rgba(251,191,36,0.22) 0%, transparent 48%),
    linear-gradient(135deg, #131c3a 0%, #0d142b 55%, #0a1024 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 40px 80px -32px rgba(10,16,36,0.6),
    0 16px 40px -20px rgba(59,126,248,0.35);
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.45s ease;
}
.estimate-cta-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 52px 100px -34px rgba(10,16,36,0.7),
    0 24px 52px -22px rgba(59,126,248,0.45);
}

/* Subtle grid texture overlay */
.ecta-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(120% 120% at 80% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 120% at 80% 10%, #000 30%, transparent 75%);
}

/* Floating decorative blobs */
.ecta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}
.ecta-blob--1 {
  width: 280px; height: 280px;
  top: -110px; right: -60px;
  background: radial-gradient(circle, rgba(59,126,248,0.55), transparent 65%);
  animation: ectaFloat 8s ease-in-out infinite;
}
.ecta-blob--2 {
  width: 240px; height: 240px;
  bottom: -100px; left: -70px;
  background: radial-gradient(circle, rgba(251,191,36,0.45), transparent 65%);
  animation: ectaFloat 10s ease-in-out infinite reverse;
}

.ecta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.05rem;
}

.ecta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #d6e4ff;
  background: rgba(59,126,248,0.16);
  border: 1px solid rgba(120,170,255,0.28);
}
.ecta-eyebrow svg { color: #6ea8ff; }

.ecta-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.ecta-title-accent {
  background: linear-gradient(135deg, #7eb0ff 0%, #4f8bff 45%, #fbbf24 120%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ectaGradient 6s ease infinite;
}
@keyframes ectaGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.ecta-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(226,232,240,0.78);
}

.ecta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.1rem 0 0.3rem;
}
.ecta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e6edf9;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.ecta-pill svg { color: #fbbf24; }

.ecta-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.ecta-house {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.35));
  animation: ectaFloat 5s ease-in-out infinite;
}
@keyframes ectaFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Floating glass stat cards */
.ecta-stat {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f3f7ff;
  white-space: nowrap;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ecta-stat svg { color: #fbbf24; }
.ecta-stat--area  { top: 6%;  left: -8%;  animation: ectaStatFloat 4.6s ease-in-out infinite; }
.ecta-stat--price { top: 40%; right: -10%; animation: ectaStatFloat 5.4s ease-in-out infinite 0.4s; }
.ecta-stat--loc   { bottom: 8%; left: -2%; animation: ectaStatFloat 5s ease-in-out infinite 0.8s; }
.ecta-stat--loc svg { color: #6ea8ff; }
@keyframes ectaStatFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Subtle 3D hover tilt on the whole card */
.estimate-cta-card:hover .ecta-illustration {
  transform: rotateY(-6deg) rotateX(3deg);
}
.ecta-illustration {
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
  transform-style: preserve-3d;
}

.ecta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
  box-shadow:
    0 10px 26px -8px rgba(29,78,216,0.7),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.ecta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.estimate-cta-card:hover .ecta-btn {
  transform: translateY(-2px);
  color: #3a2606;
  box-shadow:
    0 14px 30px -8px rgba(251,191,36,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.estimate-cta-card:hover .ecta-btn::before { opacity: 1; }
.estimate-cta-card:hover .ecta-btn svg { transform: translateX(4px); }
.ecta-btn svg { transition: transform 0.3s; }

@media (max-width: 768px) {
  .estimate-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.25rem 1.5rem;
    gap: 0.5rem;
  }
  .ecta-content { align-items: center; }
  .ecta-subtitle { max-width: 38ch; }
  .ecta-pills { justify-content: center; }
  .ecta-illustration { max-width: 210px; order: -1; margin: 0.25rem auto 0.75rem; }
  .ecta-stat { font-size: 0.72rem; padding: 0.32rem 0.55rem; }
  .ecta-stat--area  { left: 2%; }
  .ecta-stat--price { right: 0; }
  .ecta-stat--loc   { left: 6%; }
  .estimate-cta-card:hover .ecta-illustration { transform: none; }
  .ecta-btn { padding: 0.9rem 1.6rem; font-size: 0.97rem; }
}

/* ───── Property Price Estimate Section (estimate.html) ────────────────── */
.price-estimate-section {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59,126,248,0.13), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(37,211,102,0.10), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.price-estimate-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.price-estimate-left { color: #fff; }
.price-estimate-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #93c5fd;
}
.price-estimate-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-estimate-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.75rem;
}
.price-estimate-subtitle strong { color: #93c5fd; }
.price-estimate-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.price-estimate-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.pe-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.price-estimate-right { width: 100%; }
.price-estimate-form {
  background: rgba(255,255,255,0.98);
  color: #1e293b;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.pe-form-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #1e293b;
}
.pe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.pe-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}
.pe-field:last-child { margin-bottom: 0; }
.pe-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.pe-input {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.pe-input:focus {
  outline: none;
  border-color: #3b7ef8;
  box-shadow: 0 0 0 3px rgba(59,126,248,0.13);
}
.pe-file { padding: 0.45rem; font-size: 0.85rem; }
.pe-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pe-divider::before, .pe-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.pe-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(59,126,248,0.4);
}
.pe-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,126,248,0.5);
}
.pe-submit-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}
.pe-msg {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.pe-msg.is-success { color: #16a34a; font-weight: 600; }
.pe-msg.is-error   { color: #dc2626; font-weight: 600; }

@media (max-width: 880px) {
  .price-estimate-section { padding: 3rem 0; }
  .price-estimate-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .price-estimate-form { padding: 1.5rem; }
  .pe-row { grid-template-columns: 1fr; gap: 0; }
}

/* ═════════════════════════════════════════════════════════════════════
   ESTIMATE PAGE — Premium redesign (estimate.html)
   ═════════════════════════════════════════════════════════════════════ */

/* ─── HERO ─────────────────────────────────────────── */
.estimate-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 120% at 85% 5%, rgba(255,255,255,0.12) 0%, transparent 52%),
    radial-gradient(120% 120% at 10% 100%, rgba(60,52,120,0.55) 0%, transparent 56%),
    linear-gradient(160deg, #2b2566 0%, #211c51 55%, #1a163f 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* People/office photo blended into the right side of the hero */
.estimate-hero::after,
.ehero-home::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(60%, 820px);
  background: url("images/hero-people.jpg?v=3") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.45) 30%, #000 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.45) 30%, #000 70%);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 860px) {
  .estimate-hero::after,
  .ehero-home::after { display: none; }
}

/* ─── HERO: property-type selector (estimate) ─── */
.ehero-head { text-align: center; max-width: 720px; margin: 0 auto clamp(1.75rem, 4vw, 2.5rem); }
.ehero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9a7a36;
  background: rgba(184,146,63,0.14);
  border: 1px solid rgba(184,146,63,0.32);
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.ehero-h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 0.9rem;
}
.ehero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.ehero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin: 0.6rem 0 0;
}
.ehero-intro {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
}
.ehero-intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  text-align: right;
}
.ehero-intro-list li {
  position: relative;
  padding-right: 2.1rem;
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  line-height: 1.7;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.ehero-intro-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #b8923f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}
@media (prefers-color-scheme: dark) {
  .ehero-intro { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
  .ehero-intro-list li { color: #f3f3f7; }
}
/* ── Home: Rabar Estimate banner ── */
.esti-banner-section {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
}
.esti-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #211c51 0%, #322b6e 55%, #4a3dad 100%);
  border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.5rem, 4vw, 3.25rem);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 60px -28px rgba(33, 28, 81, 0.6);
}
.esti-banner::before,
.esti-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.esti-banner::before {
  width: 300px; height: 300px;
  inset-inline-end: -70px; top: -100px;
  background: rgba(255, 255, 255, 0.06);
}
.esti-banner::after {
  width: 210px; height: 210px;
  inset-inline-end: 16%; bottom: -120px;
  background: rgba(255, 255, 255, 0.05);
}
.esti-banner-icon {
  flex: 0 0 auto;
  width: clamp(82px, 12vw, 128px);
  height: clamp(82px, 12vw, 128px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.esti-banner-icon svg { width: 66%; height: 66%; }
.esti-banner-body { flex: 1 1 auto; position: relative; z-index: 1; min-width: 0; }
.esti-free {
  display: inline-block;
  background: #ffffff;
  color: #211c51;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 13px;
  border-radius: 100px;
  margin-bottom: 0.55rem;
}
.esti-title {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin: 0 0 0.4rem;
}
.esti-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}
.esti-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.esti-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
}
.esti-banner-cta { flex: 0 0 auto; position: relative; z-index: 1; }
.esti-btn {
  display: inline-block;
  background: #ffffff;
  color: #211c51;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.esti-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.5);
}
@media (max-width: 760px) {
  .esti-banner { flex-direction: column; text-align: center; align-items: center; }
  .esti-pills { justify-content: center; }
  .esti-banner-cta { width: 100%; }
  .esti-btn { display: block; width: 100%; text-align: center; }
}

.ehero-step-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.ehero-pick-hint {
  text-align: center;
  margin: clamp(1.1rem, 3vw, 1.6rem) 0 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.ehero-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(0.6rem, 1.6vw, 1rem);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.7);
}
.ehero-home {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(120% 120% at 85% 5%, rgba(255,255,255,0.12) 0%, transparent 52%),
    radial-gradient(120% 120% at 10% 100%, rgba(60,52,120,0.55) 0%, transparent 56%),
    linear-gradient(160deg, #2b2566 0%, #211c51 55%, #1a163f 100%);
}
.ehero-type {
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  transition: background 0.2s ease;
}
.ehero-type:not(:first-child) {
  border-inline-start: 1px solid rgba(255,255,255,0.16);
}
.ehero-type:hover {
  background: rgba(255,255,255,0.12);
}
.ehero-type.is-active {
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}
.ehero-type-art {
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 0.7rem;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.ehero-type-art svg { width: 100%; height: auto; display: block; max-height: 84px; }
.ehero-type h3 { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 800; color: #ffffff; }
.ehero-type-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.ehero-type p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.78); }
.ehero-cta-wrap { text-align: center; margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }
.ehero-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #211c51;
  font-weight: 700;
  font-size: 1.18rem;
  padding: 1.15rem 3rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 16px 36px -16px rgba(33,28,81,0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: eheroPulse 2.2s ease-in-out infinite;
}
.ehero-quote-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: #f0f1f8;
  box-shadow: 0 22px 44px -16px rgba(255,255,255,0.55);
  animation-play-state: paused;
}
@keyframes eheroPulse {
  0%   { box-shadow: 0 16px 36px -16px rgba(33,28,81,0.7), 0 0 0 0 rgba(255,255,255,0.55); }
  70%  { box-shadow: 0 16px 36px -16px rgba(33,28,81,0.7), 0 0 0 16px rgba(255,255,255,0); }
  100% { box-shadow: 0 16px 36px -16px rgba(33,28,81,0.7), 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ehero-quote-btn { animation: none; }
}
@media (max-width: 680px) {
  .ehero-types { grid-template-columns: 1fr; max-width: 340px; }
  .ehero-type:not(:first-child) { border-inline-start: none; border-top: 1px solid rgba(255,255,255,0.16); }
}
.ehero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}
.ehero-blob--1 { width: 320px; height: 320px; top: -90px;  right: -80px; background: radial-gradient(circle, rgba(59,126,248,0.55), transparent 65%); }
.ehero-blob--2 { width: 280px; height: 280px; bottom: -90px; left:  -90px; background: radial-gradient(circle, rgba(251,191,36,0.42), transparent 65%); }
.ehero-blob--3 { width: 200px; height: 200px; top: 30%;    left: 45%;   background: radial-gradient(circle, rgba(167,139,250,0.30), transparent 65%); }

.estimate-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  direction: ltr; /* keep text column on the left, art on the right even in RTL */
}
.estimate-hero-text { max-width: 560px; direction: rtl; text-align: right; }
.estimate-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 14px;
  background: rgba(59,126,248,0.16);
  color: #d6e4ff;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(120,170,255,0.28);
}
.ehero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: eheroDot 1.8s infinite;
}
@keyframes eheroDot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70%  { box-shadow: 0 0 0 11px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.estimate-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.1rem;
}
.estimate-hero-accent {
  background: linear-gradient(135deg, #7eb0ff 0%, #4f8bff 45%, #fbbf24 120%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ectaGradient 6s ease infinite;
}
.estimate-hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(226,232,240,0.80);
  margin: 0 0 1.75rem;
}
.estimate-hero-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.estimate-hero-perks li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.estimate-hero-perks li > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.estimate-hero-perks li strong { color: #f1f5f9; font-weight: 700; font-size: 0.98rem; }
.estimate-hero-perks li span   { color: rgba(148,163,184,0.95); font-size: 0.85rem; }
.ep-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,126,248,0.18);
  color: #93c5fd;
  border: 1px solid rgba(147,197,253,0.28);
}

.estimate-hero-art {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  animation: ectaFloat 5.5s ease-in-out infinite;
  filter: drop-shadow(0 22px 40px rgba(15,23,42,0.15));
}
.ehero-art-glow {
  position: absolute;
  inset: 8% 8%;
  background: radial-gradient(circle, rgba(59,126,248,0.18), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}

/* ─── STEPS ────────────────────────────────────────── */
.estimate-steps {
  padding: 2.25rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.esteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.esteps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.esteps li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}
.esteps-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.esteps li > div { display: flex; flex-direction: column; line-height: 1.3; }
.esteps li strong { color: #0f172a; font-weight: 700; font-size: 0.95rem; }
.esteps li span   { color: #64748b; font-size: 0.82rem; margin-top: 2px; }

/* ─── FORM SECTION ─────────────────────────────────── */
.estimate-form-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 0% 0%,   rgba(59,126,248,0.05), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(251,191,36,0.05), transparent 50%),
    #f8fafc;
}
.estimate-form-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,0.06);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow:
    0 30px 60px -25px rgba(15,23,42,0.18),
    0 12px 30px -16px rgba(59,126,248,0.10);
}
.ef-card-title {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  letter-spacing: -0.015em;
}
.ef-card-sub {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}
.ef-req { color: #ef4444; font-weight: 700; }

.ef-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(15,23,42,0.08);
}
.ef-section:last-of-type {
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
}
.ef-section-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.ef-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.ef-section-hint {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.82rem;
  margin-left: 4px;
}
.ef-section-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0eaff 0%, #c7d6fb 100%);
  color: #1d4ed8;
  flex-shrink: 0;
  border: 1px solid rgba(59,126,248,0.18);
}

.ef-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.ef-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.ef-field:last-child { margin-bottom: 0; }
.ef-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
}
.ef-input {
  padding: 0.78rem 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  width: 100%;
}
.ef-input::placeholder { color: #94a3b8; }
.ef-input:hover { border-color: #cbd5e1; }
.ef-input:focus {
  outline: none;
  border-color: #3b7ef8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,126,248,0.13);
}
select.ef-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px;
  padding-right: 2.2rem;
}
textarea.ef-input { resize: vertical; min-height: 80px; }

/* Address + map button */
.ef-input-with-btn {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.ef-input-with-btn .ef-input { flex: 1; }
.ef-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.1rem;
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 4px 12px rgba(29,78,216,0.28);
}
.ef-map-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(29,78,216,0.36);
}

/* Photo dropzone */
.ef-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.35rem;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.ef-dropzone:hover {
  border-color: #3b7ef8;
  background: #eff6ff;
  color: #1d4ed8;
}
.ef-dropzone strong {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}
.ef-dropzone span { font-size: 0.82rem; }
.ef-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.ef-photo-preview:empty { display: none; }
.ef-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
  background: #f1f5f9;
}
.ef-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ef-thumb-name { display: none; }
.ef-thumb-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(15,23,42,0.78);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
}
.ef-thumb-x:hover { background: #e23b3b; transform: scale(1.1); }
.ef-thumb-count {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  padding: 0 0.4rem;
}

/* Submit */
.ef-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 1.05rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s ease, filter 0.2s;
  box-shadow:
    0 10px 24px -8px rgba(29,78,216,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.ef-submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 30px -10px rgba(29,78,216,0.65),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.ef-submit-btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.ef-finePrint {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
.ef-msg {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.ef-msg.is-success { color: #16a34a; }
.ef-msg.is-error   { color: #dc2626; }

.ef-hint {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Success screen */
.ef-success {
  text-align: center;
  padding: 1.25rem 0.25rem 0;
  animation: efSuccessIn 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes efSuccessIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ef-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 2px solid rgba(34,197,94,0.25);
  animation: efPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes efPop {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.ef-success h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
}
.ef-success p {
  color: #475569;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ef-success p strong { color: #0f172a; }
.ef-success-hint {
  color: #64748b !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-top: 1.25rem !important;
  margin-bottom: 1rem !important;
}

.ef-agent-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
  max-width: 460px;
  text-align: left;
}
.ef-agent-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.ef-agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
  border-color: #25d366;
}
.ef-agent-card.is-primary {
  border-color: rgba(37,211,102,0.4);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.ef-agent-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1.5px solid rgba(15,23,42,0.08);
}
.ef-agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.ef-agent-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ef-agent-info span {
  font-size: 0.82rem;
  color: #64748b;
}
.ef-agent-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.55rem 0.9rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
  transition: transform 0.15s, filter 0.15s;
}
.ef-agent-card:hover .ef-agent-wa {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.ef-no-agents {
  margin: 0;
  padding: 1rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  font-size: 0.88rem;
  text-align: center;
  border: 1px solid #fde68a;
}

.ef-success-back {
  background: transparent;
  color: #64748b;
  border: 1.5px solid rgba(15,23,42,0.12);
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.ef-success-back:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Dark mode for success screen */
body.dark-mode .ef-success h3 { color: #f1f5f9; }
body.dark-mode .ef-success p { color: #cbd5e1; }
body.dark-mode .ef-success p strong { color: #f1f5f9; }
body.dark-mode .ef-agent-card {
  background: #0f172a;
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .ef-agent-card.is-primary {
  background: linear-gradient(135deg, #052e1633 0%, #0f172a 100%);
  border-color: rgba(37,211,102,0.4);
}
body.dark-mode .ef-agent-info strong { color: #f1f5f9; }
body.dark-mode .ef-agent-info span { color: #94a3b8; }
body.dark-mode .ef-success-back {
  border-color: rgba(255,255,255,0.15);
  color: #cbd5e1;
}
body.dark-mode .ef-success-back:hover {
  background: #1e293b;
  color: #f1f5f9;
}
body.dark-mode .ef-hint { color: #94a3b8; }

/* Trust badges */
.estimate-trust {
  max-width: 760px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.etrust-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}
.etrust-item svg { color: #1d4ed8; flex-shrink: 0; }
.etrust-item > div { display: flex; flex-direction: column; line-height: 1.3; }
.etrust-item strong { color: #0f172a; font-weight: 700; font-size: 0.9rem; }
.etrust-item span   { color: #64748b; font-size: 0.78rem; }

/* Dark mode */
body.dark-mode .estimate-hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(59,126,248,0.18) 0%, transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(251,191,36,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-mode .estimate-hero-title { color: #f1f5f9; }
body.dark-mode .estimate-hero-subtitle { color: #cbd5e1; }
body.dark-mode .estimate-hero-perks li strong { color: #f1f5f9; }
body.dark-mode .estimate-hero-perks li span   { color: #94a3b8; }
body.dark-mode .ep-icon,
body.dark-mode .ef-section-icon {
  background: linear-gradient(135deg, rgba(59,126,248,0.25), rgba(29,78,216,0.15));
  color: #93c5fd;
  border-color: rgba(147,197,253,0.25);
}
body.dark-mode .estimate-steps { background: #0f172a; border-bottom-color: rgba(255,255,255,0.05); }
body.dark-mode .esteps li {
  background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .esteps li strong { color: #f1f5f9; }
body.dark-mode .esteps li span   { color: #94a3b8; }
body.dark-mode .estimate-form-section { background: #0b1220; }
body.dark-mode .estimate-form-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}
body.dark-mode .ef-card-title { color: #f1f5f9; }
body.dark-mode .ef-card-sub { color: #94a3b8; }
body.dark-mode .ef-section { border-bottom-color: rgba(255,255,255,0.08); }
body.dark-mode .ef-section-head h3 { color: #f1f5f9; }
body.dark-mode .ef-label { color: #cbd5e1; }
body.dark-mode .ef-input {
  background: #0f172a;
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .ef-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,0.18);
}
body.dark-mode .ef-dropzone {
  background: #0f172a;
  border-color: rgba(255,255,255,0.15);
  color: #94a3b8;
}
body.dark-mode .ef-dropzone:hover { background: #1e3a8a33; border-color: #60a5fa; color: #93c5fd; }
body.dark-mode .ef-dropzone strong { color: #f1f5f9; }
body.dark-mode .etrust-item {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .etrust-item strong { color: #f1f5f9; }
body.dark-mode .etrust-item span { color: #94a3b8; }
body.dark-mode .etrust-item svg { color: #93c5fd; }

/* Responsive */
@media (max-width: 880px) {
  .estimate-hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .estimate-hero-text  { margin: 0 auto; }
  .estimate-hero-perks { text-align: left; max-width: 360px; margin: 0 auto; }
  .estimate-hero-art   { max-width: 280px; margin: 0 auto; }
  .esteps              { grid-template-columns: 1fr; }
  .ef-row              { grid-template-columns: 1fr; gap: 0; }
  .estimate-trust      { grid-template-columns: 1fr; }
}

/* Home: community listings marquee (user-submitted posts) */
.user-posts-marquee {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(1rem, 3vw, 1.75rem);
}

/* Fast Sales marquee */
.fast-sales-marquee {
  background: var(--color-bg);
}

.fast-sales-marquee .user-posts-marquee__intro {
  text-align: left;
}

.fast-sales-card {
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fast-sales-card:hover {
  box-shadow: 0 14px 36px rgba(43,127,255,0.18) !important;
  transform: translateY(-3px);
}
.fast-sales-card .user-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-bottom: 0.9rem;
}
.fast-sales-card .user-post-card__price {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--color-accent);
}

/* "Call now" button on Fast Sale cards */
.fsc-call-btn {
  margin-top: 0.55rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.58rem 0.75rem;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #2b7fff, #2e257e);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 127, 255, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.fsc-call-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 127, 255, 0.45);
  filter: brightness(1.06);
}
.fsc-call-btn:active { transform: translateY(0); }
.fsc-call-btn svg { flex: none; }

/* On featured / listing property cards the whole card is covered by an
   invisible link (.property-card-hit, z-index 6), so lift the contact button
   above it and keep it tappable. */
.property-card .fsc-call-btn {
  position: relative;
  z-index: 7;
}

/* Keep the agent footer + contact button aligned at the BOTTOM of every card,
   so cards with different amounts of content still line their buttons up. */
.property-card {
  display: flex;
  flex-direction: column;
}
.property-card > .pc-img-wrap {
  flex: 0 0 auto;
}
.property-card > .property-body {
  flex: 1 1 auto;
}
.property-body > .pc-footer {
  margin-top: auto;
}
.property-body > .pc-footer + .fsc-call-btn {
  margin-top: 0.55rem;
}
.property-body > .fsc-call-btn:first-child,
.property-body > .pc-meta-row + .fsc-call-btn {
  margin-top: auto;
}

/* Ticker / client-post cards: pin the contact button to the bottom so every
   card's button lines up on the same row regardless of content length. */
.user-post-card__body > .fsc-call-btn {
  margin-top: auto;
}

.fast-sales-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.fast-sales-filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fast-sales-pill {
  padding: 0.38rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fast-sales-pill:hover {
  background: rgba(43,127,255,0.08);
  border-color: var(--color-accent);
}

.fast-sales-pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.fast-sales-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  text-transform: uppercase;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.user-posts-marquee__intro {
  margin: 0.35rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.user-posts-marquee__demo-note {
  margin: 0.5rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.user-posts-ticker-wrap {
  position: relative;
  margin-top: 1.25rem;
  padding-block: 0.35rem;
  /* Force LTR so the scrolling ticker works correctly in RTL languages too */
  direction: ltr;
}

.user-posts-ticker,
.user-posts-ticker__inner {
  direction: ltr;
}

.user-posts-ticker-wrap::before,
.user-posts-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(56px, 8vw);
  z-index: 1;
  pointer-events: none;
}

.user-posts-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.user-posts-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.user-posts-ticker {
  overflow: hidden;
  padding: 0.25rem var(--container-pad) 0.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.user-posts-ticker.is-dragging {
  cursor: grabbing;
}

.user-posts-ticker.is-dragging .user-post-card {
  pointer-events: none;
}

.user-posts-ticker__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.user-posts-ticker.is-empty {
  display: flex;
  justify-content: center;
  cursor: default;
  overflow: hidden;
}

.user-posts-ticker__empty {
  margin: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 28rem;
  line-height: 1.5;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  background: rgba(46, 37, 126, 0.04);
}

.user-post-card {
  position: relative;
  flex: 0 0 260px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-post-card__demo-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 37, 126, 0.88);
  border-radius: 4px;
  pointer-events: none;
}

.user-post-card--demo {
  border-style: dashed;
  border-color: rgba(43, 127, 255, 0.35);
}

@media (min-width: 768px) {
  .user-post-card {
    flex: 0 0 260px;
    width: 260px;
  }
}

.user-post-card:hover {
  border-color: rgba(43, 127, 255, 0.45);
  box-shadow: 0 14px 36px rgba(46, 37, 126, 0.12);
  transform: translateY(-2px);
}

.user-post-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.user-post-card__media {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(43, 127, 255, 0.08), rgba(46, 37, 126, 0.06));
}

.user-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-post-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.user-post-card__body {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  border-top: 3px solid rgba(43, 127, 255, 0.35);
}

.user-post-card__body .tag {
  align-self: flex-start;
  margin-bottom: 0.1rem;
}

.user-post-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-footer);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-post-card__price {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
}

.user-post-card__by {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.user-post-card__by span {
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.85;
}

.user-post-card__branch-row {
  margin: 0.15rem 0 0.1rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(46, 37, 126, 0.1);
}

.user-post-card__branch {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-footer);
  line-height: 1.3;
}

.user-post-card__branch--muted {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.68rem;
}

.user-post-card__branch-phone {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .user-post-card {
    transition: none;
  }

  .user-post-card:hover {
    transform: none;
  }
}

.user-posts-marquee__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  margin-bottom: 0.15rem;
}

.btn-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(46, 37, 126, 0.28);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-show-more:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(46, 37, 126, 0.35);
}

.btn-show-more:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ——— Pages (client posts placeholder) ——— */
.pages-placeholder__lead {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.pages-placeholder__note {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.pages-placeholder__note code {
  font-size: 0.88em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(46, 37, 126, 0.06);
}

.client-posts-page {
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

.client-posts-page #client-posts-grid.property-grid {
  margin-top: 1.75rem;
}

.client-posts-page .property-card.client-post--highlight {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 18px 44px rgba(43, 127, 255, 0.18);
}

.client-post-demo-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 9;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 37, 126, 0.9);
  border-radius: 4px;
  pointer-events: none;
}

.client-posts-empty {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn-show-more {
    transition: none;
  }

  .btn-show-more:hover {
    transform: none;
  }
}

/* ——— Contact page ——— */
.contact-page {
  padding-top: clamp(1rem, 3vw, 1.8rem);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(142, 127, 110, 0.25);
  background: #d8cec3;
  min-height: 320px;
}

.contact-panel-bg {
  position: absolute;
  inset: 0;
  background: url("aseet.jpg/06.jpg.jpeg") center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.04);
  opacity: 0.55;
}

.contact-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 13, 68, 0.14), rgba(214, 199, 183, 0.72));
}

.contact-split {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  align-items: center;
}

.contact-split .cta-form-card {
  max-width: 480px;
}

.contact-info-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: #171131;
  text-transform: lowercase;
}

.contact-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: #161126;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.contact-info-icon {
  width: 18px;
  height: 18px;
  color: #29214f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ── Branch Slider ── */
.branch-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.branch-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.branch-slide {
  flex: 0 0 100%;
  min-width: 0;
  border-radius: var(--radius);
  margin: 0;
}

.branch-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.branch-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.branch-slider-btn--prev { left: 0.75rem; }
.branch-slider-btn--next { right: 0.75rem; }

.branch-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.branch-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-line);
  border: none;
  cursor: pointer;
  padding: 10px;
  box-sizing: content-box;
  transition: background 0.2s, transform 0.2s;
}

.branch-slider-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

.branch-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.branch-card:hover {
  box-shadow: 0 8px 28px rgba(46,37,126,0.14);
  transform: translateY(-3px);
}

/* ── Senior Team Cards ───────────────────────────────────── */
.senior-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.senior-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 36px rgba(59,126,248,0.15);
  border: 1.5px solid rgba(59,126,248,0.3);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.senior-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(59,126,248,0.25);
}

.senior-card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0eb, #ede8df);
}
.senior-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}
.senior-card:hover .senior-card-img img { transform: scale(1.05); }
.senior-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.senior-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(to bottom, #fff 0%, #fdf9f4 100%);
}
.senior-card-tag {
  display: inline-block;
  background: linear-gradient(135deg, #3b7ef8, #1a5fd4);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  align-self: flex-start;
}
.senior-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text, #111);
}
.senior-card-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #3b7ef8;
  text-decoration: none;
  font-weight: 600;
}
.senior-card-phone:hover { opacity: 0.8; }

@media (max-width: 600px) {
  .senior-cards-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .senior-card-img { height: 300px; }
  /* Show the whole photo on mobile so no part of the face is cropped */
  .senior-card-img img { object-fit: contain; object-position: center; }
}

/* ── Nice Branch Marquee (Contact page) ──────────────────── */
.branch-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.branch-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.branch-nice-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(200,169,110,0.15);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  width: 300px;
}

.branch-nice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(200,169,110,0.22);
}

.bnc-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bnc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.branch-nice-card:hover .bnc-img-wrap img {
  transform: scale(1.05);
}

.bnc-body {
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.bnc-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading, #221a4e);
  margin: 0;
}

.bnc-address, .bnc-phone {
  font-size: 0.83rem;
  color: var(--color-muted, #777);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.4;
}

.bnc-address svg, .bnc-phone svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent, #c8a96e);
}

.bnc-btn {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent, #c8a96e);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--color-line, #eee);
}

.bnc-btn:hover { opacity: 0.75; }

body.dark-mode .branch-nice-card {
  background: #1c2130;
  border-color: #252d3e;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
body.dark-mode .branch-nice-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
body.dark-mode .bnc-name { color: #e2e8f0; }
body.dark-mode .bnc-address,
body.dark-mode .bnc-phone { color: #94a3b8; }
body.dark-mode .bnc-btn { border-top-color: #252d3e; }

@media (max-width: 600px) {
  .branch-nice-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ── Branch Modal ── */
.branch-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.branch-modal[hidden] { display: none; }

.branch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,30,0.6);
  backdrop-filter: blur(4px);
}

.branch-modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  animation: bmSlideIn 0.22s ease;
}

@keyframes bmSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.branch-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.branch-modal-close:hover { background: rgba(0,0,0,0.18); }

.branch-modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.branch-modal-info {
  padding: 1.1rem 1.25rem 0.6rem;
  border-bottom: 1px solid var(--color-line);
}

.branch-modal-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #221a4e;
}

.branch-modal-address,
.branch-modal-email {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.branch-modal-agents {
  padding: 0.9rem 1.25rem 1.25rem;
}

.branch-modal-agents h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.branch-modal-no-agents {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

.branch-agent-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-line);
}

.branch-agent-card:last-child { border-bottom: none; }

.branch-agent-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-line);
}

.branch-agent-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg,#2b7fff22,#2e257e22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.branch-agent-info {
  flex: 1;
  min-width: 0;
}

.branch-agent-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #221a4e;
  margin: 0 0 0.1rem;
}

.branch-agent-number {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
}

.branch-agent-call-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
}

.branch-agent-call-btn:hover { filter: brightness(1.1); }

/* ── Property detail: Branch & Agent card (redesigned) ── */
.pa-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-surface, #f7f8fa);
  box-shadow: 0 10px 30px -20px rgba(15, 39, 68, 0.35);
}

.pa-card__avatar {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eefc, #d7e2fb);
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(43, 127, 255, 0.22);
}

.pa-card__avatar-ic {
  width: 34px;
  height: 34px;
  color: #3b7ef8;
  opacity: 0.75;
}

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

.pa-card__body {
  flex: 1;
  min-width: 0;
}

.pa-card__name {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.pa-card__name a {
  text-decoration: none;
}

.pa-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pa-card__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
  min-width: 0;
}

.pa-card__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3b7ef8;
  opacity: 0.85;
}

.pa-card__meta-label {
  color: #8a93a5;
  font-weight: 500;
  flex-shrink: 0;
}

body.dark-mode .pa-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.7);
}

body.dark-mode .pa-card__avatar {
  background: linear-gradient(135deg, #24304d, #1b2540);
  border-color: #2a3550;
}

body.dark-mode .pa-card__meta-label {
  color: #9aa6bd;
}

/* ── Call Options Popup ── */
.call-popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.call-popup[hidden] { display: none; }

.call-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,30,0.5);
}

.call-popup-card {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  width: min(420px, 100%);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  animation: cpSlideUp 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@keyframes cpSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.call-popup-number {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #221a4e;
  text-align: center;
}

.call-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.call-popup-btn:hover { opacity: 0.88; }

.call-popup-btn--call {
  background: linear-gradient(135deg, var(--color-footer) 0%, #4a3dad 50%, #5b4ec9 100%);
  color: #fff;
}

.call-popup-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.call-popup-cancel {
  background: none;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 0.65rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.15s;
}

.call-popup-cancel:hover { background: var(--color-line); }

.branch-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.branch-body {
  padding: 0.8rem 0.9rem 0.95rem;
}

.branch-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
  color: #221a4e;
}

.branch-body p {
  margin: 0.16rem 0;
  font-size: 0.74rem;
  color: var(--color-muted);
}

@media (min-width: 760px) {
  .contact-split {
    grid-template-columns: minmax(280px, 340px) 1fr;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    gap: clamp(1.4rem, 3vw, 2.4rem);
  }

  .branch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.agent-modal[hidden] {
  display: none;
}

.agent-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 0ms linear 420ms;
}

.agent-modal:not([hidden]) {
  visibility: visible;
}

.agent-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 420ms ease;
}

.agent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 24, 0.68);
  opacity: 0;
  transition: opacity 420ms ease;
}

.agent-modal.is-open .agent-modal-backdrop {
  opacity: 1;
}

.agent-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20, 18, 70, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agent-modal.is-open .agent-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .agent-modal,
  .agent-modal-backdrop,
  .agent-modal-card {
    transition: none;
  }
}

.agent-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-footer);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.agent-modal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.agent-modal-body {
  padding: 1rem 1.1rem 1.15rem;
}

.agent-modal-body h3 {
  margin: 0 0 0.3rem;
  color: var(--color-footer);
}

.agent-modal-info {
  margin: 0.2rem 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.agent-modal-info strong {
  color: var(--color-footer);
}

.agent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.agent-modal-btn {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.agent-modal-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.agent-modal-btn--wa {
  background: #25d366;
  color: #fff;
}

.agent-modal-btn--branch {
  background: rgba(43, 127, 255, 0.1);
  color: var(--color-accent);
  border: 1.5px solid rgba(43, 127, 255, 0.3);
}

.partners-title {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--color-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 767px) {
  .partners-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-snap-type: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
  }

  .partners-row::-webkit-scrollbar {
    display: none;
  }

  .partners-row .partner-badge {
    flex: 0 0 auto;
    justify-content: center;
    scroll-snap-align: none;
    min-height: 70px;
  }
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}

.partner-icon {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #f97316;
}

.partner-logo-image {
  width: 165px;
  height: 52px;
  object-fit: contain;
  display: block;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.88);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-about p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
}

.logo-footer .logo-img {
  height: 88px;
  max-width: 380px;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.newsletter-form input {
  width: 100%;
  max-width: 280px;
  padding: 0.75rem 1rem;
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-subscribe {
  align-self: flex-start;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.25rem;
}

.footer-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

/* ——— Tablet (iPad landscape ~1024, portrait ~768) ——— */
@media (min-width: 768px) {
  :root {
    --container-pad: 1.75rem;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .nav {
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    padding: 0;
    border: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    flex: 1;
    display: flex;
    justify-content: center;
    order: 0;
  }

  .header-inner .nav {
    margin-inline: 0.5rem;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.1rem;
  }

  .nav-list a {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    /* Keep every menu label on a single line — long Kurdish/Arabic labels
       were wrapping onto a second row. */
    white-space: nowrap;
  }

  .hero-search-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero-select {
    flex: 1 1 calc(33.333% - 0.4rem);
    min-width: 0;
  }

  .hero-search-row .hero-glass-select {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-search-row .btn-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-search-row .btn-search {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-search-advanced-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .property-detail-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .testimonial-brand {
    min-height: 100%;
    min-height: 280px;
  }

  .cta-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .cta-slogan {
    text-align: left;
  }

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

  .footer-newsletter {
  display: none;
  }

  .footer-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ——— Laptop / desktop ——— */
@media (min-width: 1024px) {
  :root {
    --container-pad: 2rem;
    --header-h: 124px;
  }

  .hero {
    min-height: 50vh;
    padding-bottom: 2rem;
  }

  .hero-search-row {
    flex-wrap: nowrap;
  }

  .hero-search-row .hero-select {
    flex: 1 1 0;
  }

  .hero-search-row .hero-glass-select {
    flex: 1 1 0;
  }

  .hero-search-row .btn-search {
    flex: 0 0 auto;
    padding-inline: 1.75rem;
  }

  .hero-search-row .btn-filter {
    flex: 0 0 auto;
    padding-inline: 1.25rem;
  }

  .hero-search-advanced-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 1.5rem 2rem;
  }

  .footer-newsletter {
    display: none;
  }
}

/* Large screens: cap readability */
@media (min-width: 1440px) {
  body {
    font-size: 17px;
  }
}

.ui-form {
  display: grid;
  gap: 0.55rem;
}

.ui-form input,
.ui-form select,
.ui-form textarea,
.ui-inline-form input {
  width: 100%;
  padding: 0.68rem 0.8rem;
  font: inherit;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

/* Submit post — multiple photos */
.submit-post-photos-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}
.submit-post-photos-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
}
.submit-post-req { color: #ef4444; }
.submit-post-photos-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}
.submit-post-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.submit-post-dropzone:hover {
  border-color: #3b7ef8;
  background: #eff6ff;
  color: #1d4ed8;
}
.submit-post-dropzone strong {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}
.submit-post-dropzone span { font-size: 0.82rem; }
.submit-post-add-more {
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid rgba(59, 126, 248, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.submit-post-add-more:hover { background: #dbeafe; }
.submit-post-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.submit-post-preview:empty { display: none; }
.submit-post-thumb {
  position: relative;
  width: 100px;
  height: 118px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}
.submit-post-thumb.is-cover {
  border-color: #3b7ef8;
  box-shadow: 0 0 0 3px rgba(59, 126, 248, 0.2);
}
.submit-post-thumb img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.submit-post-cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #3b7ef8;
  color: #fff;
  border-radius: 6px;
  z-index: 1;
}
.submit-post-thumb-actions {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1;
  min-height: 0;
  background: rgba(15, 23, 42, 0.88);
}
.submit-post-cover-btn,
.submit-post-cover-done {
  flex: 1;
  border: none;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 3px;
  cursor: pointer;
  text-align: center;
}
.submit-post-cover-btn {
  background: #3b7ef8;
  color: #fff;
}
.submit-post-cover-btn:hover { background: #2563eb; }
.submit-post-cover-done {
  background: transparent;
  color: #93c5fd;
  cursor: default;
}
.submit-post-thumb-remove {
  width: 28px;
  flex-shrink: 0;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.submit-post-thumb-remove:hover { background: #dc2626; }
.submit-post-photo-count {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3b7ef8;
}
body.dark-mode .submit-post-dropzone {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
body.dark-mode .submit-post-dropzone:hover {
  background: #1e3a8a33;
  border-color: #60a5fa;
  color: #93c5fd;
}
body.dark-mode .submit-post-dropzone strong { color: #f1f5f9; }
body.dark-mode .submit-post-add-more {
  background: #1e293b;
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.3);
}

.ui-inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.ui-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ui-item {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

/* ═══════════════════════════════════════════════
   RABAR CHAT WIDGET
═══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   RABAR CHAT WIDGET — Premium Design
   ══════════════════════════════════════════════════════════════ */

/* ── Floating toggle button ──────────────────────────────────── */
#rabar-chat-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

/* Pulsing glow ring */
#rabar-chat-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent, #c8a96e);
  opacity: 0;
  animation: chatPulse 2.8s ease-out infinite;
  z-index: -1;
}
@keyframes chatPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.1); opacity: 0; }
}

#rabar-chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4aa72 0%, #a07035 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(160,112,53,0.55), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  position: relative;
  flex-shrink: 0;
}
#rabar-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(160,112,53,0.65), 0 2px 8px rgba(0,0,0,0.18);
}

.chat-icon-open,
.chat-icon-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s, transform 0.22s;
}
#rabar-chat-toggle[aria-expanded="false"] .chat-icon-close { opacity: 0; transform: rotate(90deg) scale(0.7); }
#rabar-chat-toggle[aria-expanded="false"] .chat-icon-open  { opacity: 1; transform: scale(1); }
#rabar-chat-toggle[aria-expanded="true"]  .chat-icon-open  { opacity: 0; transform: rotate(-90deg) scale(0.7); }
#rabar-chat-toggle[aria-expanded="true"]  .chat-icon-close { opacity: 1; transform: scale(1); }

.chat-unread-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2.5px solid #fff;
  animation: dotPop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes dotPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Chat panel ──────────────────────────────────────────────── */
#rabar-chat-panel {
  width: min(390px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 6rem));
  background: var(--color-bg, #ffffff);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.17), 0 4px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatPanelOpen 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  border: none;
}
@keyframes chatPanelOpen {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ──────────────────────────────────────────────────── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #c8a96e 0%, #96652e 100%);
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/* Decorative bubble in header */
.chat-header::after {
  content: '';
  position: absolute;
  right: -28px; top: -28px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  pointer-events: none;
}
.chat-header::before {
  content: '';
  position: absolute;
  right: 40px; bottom: -30px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.chat-header-info { display: flex; align-items: center; gap: 0.75rem; position: relative; z-index: 1; }
.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.chat-header-name { font-weight: 700; font-size: 0.97rem; line-height: 1.2; letter-spacing: 0.01em; }
.chat-header-status {
  font-size: 0.75rem; opacity: 0.92;
  display: flex; align-items: center; gap: 0.3rem; margin-top: 2px;
}
.chat-status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2ecc71; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(46,204,113,0.35);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46,204,113,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(46,204,113,0.1); }
}

.chat-header-close {
  position: relative; z-index: 1;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.chat-header-close:hover {
  background: rgba(255,255,255,0.32);
  transform: scale(1.08);
}

/* ── Messages area ───────────────────────────────────────────── */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.1rem 1rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  scroll-behavior: smooth;
  background: var(--color-bg-alt, #f8f6f2);
}
body.dark-mode .chat-messages { background: #161616; }

/* Row: avatar + bubble side by side */
.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 84%;
}
.chat-msg-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #c8a96e, #96652e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(150,101,46,0.35);
}

/* Standalone user bubble (no row) */
.chat-msg { display: flex; flex-direction: column; }
.chat-msg--user  { align-self: flex-end; align-items: flex-end; max-width: 78%; }
.chat-msg--bot,
.chat-msg--admin { align-self: flex-start; align-items: flex-start; }

.chat-msg__text {
  padding: 0.6rem 0.95rem;
  border-radius: 16px;
  font-size: 0.875rem; line-height: 1.55; word-break: break-word;
}
.chat-msg--user .chat-msg__text {
  background: linear-gradient(135deg, #c8a96e, #9b6535);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 12px rgba(155,101,53,0.35);
}
.chat-msg--bot .chat-msg__text,
.chat-msg--admin .chat-msg__text {
  background: var(--color-card, #fff);
  color: var(--color-text, #1a1a1a);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--color-line, #ebebeb);
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}
body.dark-mode .chat-msg--bot .chat-msg__text,
body.dark-mode .chat-msg--admin .chat-msg__text {
  background: var(--color-card, #252525);
  color: var(--color-text, #f0f0f0);
  border-color: #3a3a3a;
}
.chat-msg--admin .chat-msg__text { border-left: 3px solid var(--color-accent, #c8a96e); }
.chat-msg__time { font-size: 0.67rem; color: var(--color-muted, #aaa); margin-top: 3px; padding-inline: 0.25rem; }

/* Typing dots */
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 0.65rem 0.95rem; min-width: 58px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-muted, #bbb);
  animation: typingDot 1.2s infinite ease-in-out;
  display: inline-block;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.45; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* ── Quick-reply pills ───────────────────────────────────────── */
.chat-quick-btns {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--color-line, #efefef);
  flex-shrink: 0;
  background: var(--color-bg-alt, #f8f6f2);
}
body.dark-mode .chat-quick-btns { background: #161616; border-top-color: #2e2e2e; }

.chat-quick-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--color-card, #fff);
  border: 1.5px solid var(--color-line, #e0dcd5);
  border-radius: 22px;
  padding: 0.38rem 0.85rem;
  font-size: 0.79rem;
  cursor: pointer;
  color: var(--color-text, #1a1a1a);
  transition: all 0.18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  white-space: nowrap;
}
.chat-quick-btn svg { flex-shrink: 0; opacity: 0.7; }
.chat-quick-btn:hover {
  background: linear-gradient(135deg, #c8a96e, #9b6535);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(155,101,53,0.32);
}
.chat-quick-btn:hover svg { opacity: 1; }
body.dark-mode .chat-quick-btn {
  background: #252525;
  border-color: #3a3a3a;
  color: var(--color-text, #f0f0f0);
}

/* ── Input row ───────────────────────────────────────────────── */
.chat-input-row {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--color-line, #efefef);
  flex-shrink: 0;
  background: var(--color-card, #fff);
}
body.dark-mode .chat-input-row { background: var(--color-card, #1c1c1c); border-top-color: #2e2e2e; }

.chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--color-line, #ddd);
  border-radius: 24px;
  padding: 0.58rem 1.1rem;
  font-size: 0.875rem;
  background: var(--color-bg-alt, #f7f5f1);
  color: var(--color-text, #1a1a1a);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
body.dark-mode .chat-input-row input {
  background: #141414;
  border-color: #3a3a3a;
  color: #f0f0f0;
}
.chat-input-row input:focus {
  border-color: var(--color-accent, #c8a96e);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.18);
}
.chat-input-row button[type="submit"] {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #c8a96e, #9b6535);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(155,101,53,0.42);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s;
}
.chat-input-row button[type="submit"]:hover {
  transform: scale(1.13);
  box-shadow: 0 6px 18px rgba(155,101,53,0.52);
}

/* ── Mobile: full-width bottom sheet ─────────────────────────── */
@media (max-width: 600px) {
  #rabar-chat-widget {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    align-items: flex-end;
    padding: 0 1rem 1.1rem;
    box-sizing: border-box;
    pointer-events: none;
  }
  #rabar-chat-widget > * { pointer-events: auto; }

  #rabar-chat-toggle {
    width: 62px; height: 62px;
    align-self: flex-end;
    box-shadow: 0 8px 28px rgba(160,112,53,0.55);
  }

  #rabar-chat-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100% !important;
    height: 90dvh;
    max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
    border: none;
    animation: chatSlideUpMobile 0.3s cubic-bezier(0.32,0.72,0,1);
  }
  @keyframes chatSlideUpMobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* Drag handle */
  .chat-header {
    padding-top: 1.3rem;
    border-radius: 24px 24px 0 0;
  }
  .chat-header::after {
    content: '';
    position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px;
    border-radius: 99px;
    background: rgba(255,255,255,0.45);
    right: auto; bottom: auto; width: 42px; height: 4px;
  }

  .chat-avatar { width: 46px; height: 46px; }
  .chat-header-name { font-size: 1rem; }
  .chat-header-status { font-size: 0.8rem; }
  .chat-header-close { width: 38px; height: 38px; }

  .chat-messages { padding: 1rem 1rem 0.5rem; gap: 0.7rem; }
  .chat-msg-row { max-width: 90%; }
  .chat-msg--user { max-width: 88%; }
  .chat-msg__text { font-size: 0.95rem; padding: 0.7rem 1.05rem; }
  .chat-msg__time { font-size: 0.72rem; }

  .chat-quick-btns {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.7rem 1rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }
  .chat-quick-btns::-webkit-scrollbar { display: none; }
  .chat-quick-btn { font-size: 0.86rem; padding: 0.45rem 0.95rem; flex-shrink: 0; }

  .chat-input-row { padding: 0.8rem 1rem; gap: 0.6rem; }
  .chat-input-row input { font-size: 0.95rem; padding: 0.68rem 1.1rem; }
  .chat-input-row button[type="submit"] { width: 46px; height: 46px; }
}

/* Fix: prevent display:flex from overriding [hidden] */
#rabar-chat-panel[hidden] {
  display: none !important;
}

/* ── Location button (address fields) ──────────────────────── */
.loc-field-wrap { display: flex; gap: 0.4rem; align-items: center; }
.loc-field-wrap input { flex: 1; }
.loc-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: linear-gradient(135deg,#c8a96e,#96652e);
  color: #fff; border: none; border-radius: 8px;
  padding: 0.52rem 0.75rem; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(150,101,46,0.32);
  transition: transform 0.18s, box-shadow 0.18s;
}
.loc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(150,101,46,0.42); }
.loc-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.loc-btn svg { flex-shrink: 0; }

/* ── Map Picker Modal ───────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.map-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.18s ease;
}
.map-modal {
  background: var(--color-bg,#fff);
  border-radius: 18px;
  overflow: hidden;
  width: min(700px,100%);
  max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  animation: slideUp 0.22s ease;
}
.map-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg,#c8a96e,#96652e);
  color: #fff; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.map-modal-close {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 1rem; cursor: pointer; padding: 0.25rem 0.6rem;
  border-radius: 8px; transition: background 0.15s; line-height: 1;
}
.map-modal-close:hover { background: rgba(255,255,255,0.3); }
.map-modal-hint {
  padding: 0.45rem 1.25rem;
  font-size: 0.78rem; color: var(--color-text-muted,#888);
  background: var(--color-surface,#f7f7f7);
  border-bottom: 1px solid var(--color-line,#eee);
  flex-shrink: 0;
}
.map-picker-container {
  height: 380px;
  flex: 1;
  min-height: 0;
}
.map-modal-address {
  padding: 0.65rem 1.25rem;
  font-size: 0.83rem; color: var(--color-text,#333);
  background: var(--color-surface,#f7f7f7);
  border-top: 1px solid var(--color-line,#eee);
  min-height: 2.6rem;
  flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-modal-actions {
  display: flex; gap: 0.6rem; padding: 0.75rem 1.25rem;
  background: var(--color-bg,#fff);
  border-top: 1px solid var(--color-line,#eee);
  flex-shrink: 0;
}
.map-confirm-btn {
  flex: 1;
  background: linear-gradient(135deg,#c8a96e,#96652e);
  color: #fff; border: none; border-radius: 10px;
  padding: 0.65rem 1rem; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s;
}
.map-confirm-btn:hover { opacity: 0.88; }
.map-cancel-btn {
  background: none;
  border: 1.5px solid var(--color-line,#ddd);
  color: var(--color-text,#555); border-radius: 10px;
  padding: 0.65rem 1.1rem; font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.15s;
}
.map-cancel-btn:hover { border-color: #bbb; }
@media (max-width: 600px) {
  .map-picker-container { height: 260px; }
  .map-modal { border-radius: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   CHAT WIDGET
═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.chat-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
[dir="rtl"] .chat-widget { right: auto; left: 1.75rem; align-items: flex-start; }

/* ── Toggle button ── */
.chat-widget__toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,99,235,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.chat-widget__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37,99,235,0.55);
}
.chat-toggle-icon { transition: opacity 0.2s, transform 0.2s; position: absolute; }
.chat-toggle-icon--close { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.chat-toggle-icon--open  { opacity: 1; transform: none; }
.chat-widget__toggle.is-open .chat-toggle-icon--open  { opacity: 0; transform: rotate(45deg) scale(0.7); }
.chat-widget__toggle.is-open .chat-toggle-icon--close { opacity: 1; transform: rotate(0) scale(1); }

/* Notification badge */
.chat-toggle-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: chat-badge-pop 0.35s cubic-bezier(.4,0,.2,1);
}
[dir="rtl"] .chat-toggle-badge { right: auto; left: 2px; }
@keyframes chat-badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Chat window ── */
.chat-widget__window {
  width: 330px;
  max-height: 460px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.4,0,.2,1), opacity 0.28s ease;
}
.chat-widget__window:not([hidden]) {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.chat-widget__window[hidden] { display: none !important; }

/* Header */
.chat-win__header {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  position: relative;
  z-index: 60; /* above language picker so Close always works */
}
.chat-win__agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-win__agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.chat-win__agent-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}
.chat-win__agent-status {
  font-size: 0.75rem;
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.chat-win__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: chat-pulse 2s infinite;
}
@keyframes chat-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.chat-win__close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 61;
  pointer-events: auto;
  transition: background 0.15s;
}
.chat-win__close:hover { background: rgba(255,255,255,0.28); }

.chat-win__fullscreen {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
  flex-shrink: 0;
}
.chat-win__fullscreen:hover { background: rgba(255,255,255,0.28); }

/* WhatsApp button in header */
.chat-win__whatsapp {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-right: 4px;
}
.chat-win__whatsapp:hover { background: #25d366; }

/* Messages */
.chat-win__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scroll-behavior: smooth;
}
.chat-win__messages::-webkit-scrollbar { width: 4px; }
.chat-win__messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* Message row */
.chat-msg {
  display: flex;
  max-width: 82%;
}
.chat-msg--agent { align-self: flex-start; }
.chat-msg--user  { align-self: flex-end; flex-direction: row-reverse; }

/* Bubble */
.chat-bubble {
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg--agent .chat-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing .chat-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.9rem;
}
.chat-typing .chat-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typing-dot 1.2s infinite ease-in-out;
  display: inline-block;
}
.chat-typing .chat-bubble span:nth-child(1) { animation-delay: 0s; }
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%,80%,100% { transform: scale(0.7); opacity: 0.5; }
  40%          { transform: scale(1);   opacity: 1; }
}

/* Input row */
.chat-win__input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1.5px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}
.chat-win__input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  transition: border-color 0.15s;
  font-family: inherit;
}
.chat-win__input:focus { border-color: #3b82f6; background: #fff; }
.chat-win__input::placeholder { color: #94a3b8; }
.chat-win__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.chat-win__send:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }

/* Mobile adjustments */
@media (max-width: 600px) {
  .chat-widget { right: 0.75rem; bottom: 0.75rem; }
  [dir="rtl"] .chat-widget { right: auto; left: 0.75rem; }

  /* Full-width window on small phones */
  .chat-widget__window {
    width: calc(100vw - 1.5rem);
    max-height: 75svh;
    max-height: 75vh;
  }

  /* Larger tap targets for close, WhatsApp, send */
  .chat-win__close,
  .chat-win__whatsapp {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .chat-win__send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* Admin nav link - comfortable mobile padding */
  .admin-nav-link {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.88rem !important;
  }
}

/* Dark mode */
.dark-mode .chat-widget__window { background: #1a1f2e; }
.dark-mode .chat-win__input-row { background: #1a1f2e; border-color: #2d3748; }
.dark-mode .chat-win__input     { background: #252d3d; border-color: #334155; color: #e2e8f0; }
.dark-mode .chat-win__input:focus { border-color: #3b82f6; background: #2d3748; }
.dark-mode .chat-msg--agent .chat-bubble { background: #252d3d; color: #e2e8f0; }
.dark-mode .chat-win__messages::-webkit-scrollbar-thumb { background: #334155; }

/* ═══════════════════════════════════════════════════════════════
   Page preloader / loading screen (shown before content is ready)
═══════════════════════════════════════════════════════════════ */
#rabar-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg, #ffffff);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* Never block the page while optional SDKs, fonts, or remote images finish.
     JavaScript may hide it sooner; this is the global safety limit. */
  animation: rabarPreloaderAutoHide 0.3s ease 1.1s forwards;
}
#rabar-preloader.is-hidden {
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.rabar-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}
.rabar-preloader-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  animation: rabarPulse 1.4s ease-in-out infinite;
}
.rabar-preloader-bar {
  width: 168px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.rabar-preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--color-accent, #c8a96e);
  animation: rabarSlide 1.1s ease-in-out infinite;
}
@keyframes rabarPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.9); opacity: 0.65; }
}
@keyframes rabarSlide {
  0%   { transform: translateX(-140%); }
  100% { transform: translateX(340%); }
}
@keyframes rabarPreloaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.dark-mode #rabar-preloader { background: #0f1420; }
.dark-mode .rabar-preloader-bar { background: rgba(255, 255, 255, 0.12); }

/* ─────────────────────────────────────────────────────────────────────
   Rabar logo watermark on post photos
   • New uploads bake this same white logo into the image file (admin.js),
     so it travels with the photo on downloads and social-media shares.
   • The overlay below shows it on the website for every post (including
     posts uploaded before that change). It is matched in size/position so
     that on newer posts it sits on top of the baked logo as one mark.
   ───────────────────────────────────────────────────────────────────── */
.pc-img-wrap,
.user-post-card__media,
.property-media:not(.property-media--detail-slider),
.property-detail-hero,
.bd-post-img,
.pj-post-img {
  position: relative;
}
.pc-img-wrap::after,
.user-post-card__media::after,
.property-media:not(.property-media--detail-slider)::after,
.property-detail-hero::after,
.bd-post-img::after,
.pj-post-img::after {
  content: "";
  position: absolute;
  right: 1.5%;
  bottom: 1.5%;
  width: 26%;
  aspect-ratio: 700 / 597;
  background: url("aseet.png/Rabar Co Logo2.png") no-repeat center / contain;
  opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 6;
}

/* Logo on EVERY image inside the detail-page slider + "All Photos" grid */
.property-media--detail-slider .property-slider-slide {
  position: relative;
}
.property-media--detail-slider .property-slider-slide::after,
.rabar-gallery-thumb::after {
  content: "";
  position: absolute;
  right: 1.5%;
  bottom: 1.5%;
  width: 26%;
  aspect-ratio: 700 / 597;
  background: url("aseet.png/Rabar Co Logo2.png") no-repeat center / contain;
  opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 6;
}

/* ── Contact popup (Call / WhatsApp) shown from post card contact buttons ── */
.rabar-contact-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rabar-contact-popup.is-open { opacity: 1; }
.rabar-contact-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.35rem 1.35rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s ease;
}
.rabar-contact-popup.is-open .rabar-contact-card { transform: translateY(0) scale(1); }
.rabar-contact-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.rabar-contact-num {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #221a4e;
  direction: ltr;
}
.rabar-contact-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.rabar-contact-act:hover { transform: translateY(-1px); filter: brightness(1.05); }
.rabar-contact-act--call { background: linear-gradient(135deg, #2b7fff, #2e257e); }
.rabar-contact-act--wa { background: #25d366; }
body.dark-mode .rabar-contact-card { background: #1e293b; }
body.dark-mode .rabar-contact-num { color: #e2e8f0; }

/* ── Header nav: keep all links on ONE line on narrower desktops/tablets ──
   The Kurdish/Arabic menu labels are long, so on mid widths (≈768–1200px)
   we tighten the spacing and font a touch so the 7 links fit on a single
   row instead of wrapping onto two lines. */
@media (min-width: 768px) and (max-width: 1200px) {
  .nav-list { gap: 0.05rem; }
  .nav-list a {
    padding: 0.45rem 0.5rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }
}
@media (min-width: 768px) and (max-width: 980px) {
  .nav-list a {
    padding: 0.4rem 0.4rem;
    font-size: 0.8rem;
  }
  .header-inner .nav { margin-inline: 0.25rem; }
}

/* ── Suppress Microsoft Edge's "Visual Search" hover menu on images ───────
   Edge injects a magnifier + 3-dot ("...") menu on hover over any image
   wider than ~180px. It links out to Bing and is NOT part of this site;
   there is no official opt-out, but disabling pointer events on <img> hides
   it. Logos, card covers, avatars and project images all sit under a parent
   link or a click-through overlay, so clicks still work through the parent.
   Images that must receive their OWN clicks (photo galleries, the lightbox,
   thumbnails with onclick) re-enable pointer events just below so nothing
   breaks. */
img { pointer-events: none; }

.rabar-gallery-thumb img,
.rabar-lb img,
img[onclick],
.pnlm-render-container img,
.pnlm-container img,
#rabar-360-overlay img,
#rabar-360-overlay canvas {
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   Property 360° tour card + fullscreen viewer
═══════════════════════════════════════════════════════════════ */
.rabar-360-card {
  background: var(--color-surface, #f7f8fa);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border: 1px solid rgba(33, 28, 81, 0.08);
}
.rabar-360-card__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111);
}
.rabar-360-card__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted, #666);
}
.rabar-360-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #211c51, #3b7ef8);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(59, 126, 248, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.rabar-360-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(59, 126, 248, 0.36);
}
.rabar-360-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0b1020;
  display: flex;
  flex-direction: column;
  animation: rabarLbFade 0.2s ease;
  touch-action: none;
}
.rabar-360-overlay,
.rabar-360-overlay * {
  pointer-events: auto;
}
.rabar-360-overlay__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 3;
}
.rabar-360-overlay__title {
  font-weight: 700;
  font-size: 0.95rem;
}
.rabar-360-overlay__hint {
  flex: 1;
  font-size: 0.78rem;
  opacity: 0.75;
}
.rabar-360-overlay__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.rabar-360-overlay__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.rabar-360-overlay__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.rabar-360-overlay__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.rabar-360-overlay__view:active {
  cursor: grabbing;
}
#rabar-360-overlay .pnlm-container,
#rabar-360-overlay .pnlm-render-container,
#rabar-360-overlay .pnlm-dragfix {
  width: 100% !important;
  height: 100% !important;
  touch-action: none !important;
  pointer-events: auto !important;
  cursor: grab;
}
#rabar-360-overlay .pnlm-dragfix:active {
  cursor: grabbing;
}
.rabar-360-nav {
  position: absolute;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.rabar-360-nav:hover {
  background: rgba(255, 255, 255, 0.32);
}
.rabar-360-nav--left {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}
.rabar-360-nav--right {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}
.rabar-360-scene-nav {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100% - 24px);
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rabar-360-scene-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.rabar-360-scene-btn:hover:not(:disabled) {
  background: rgba(59, 126, 248, 0.75);
}
.rabar-360-scene-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.rabar-360-scene-count {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 3.2rem;
  text-align: center;
}
.rabar-360-overlay__loading {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

/* Street View–style door arrows inside the panorama */
#rabar-360-overlay .pnlm-hotspot.rabar-360-door-spot,
#rabar-360-place .pnlm-hotspot.rabar-360-door-spot {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  transform: translate(-50%, -50%);
  pointer-events: auto !important;
  cursor: pointer;
  z-index: 8;
}
.rabar-360-door {
  pointer-events: auto;
}
.rabar-360-door__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}
.rabar-360-door__chevron {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(33, 28, 81, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rabar360DoorPulse 1.8s ease-in-out infinite;
  transition: transform 0.15s ease, background 0.15s ease;
}
.rabar-360-door__chevron::before {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
  margin-top: 4px;
}
.rabar-360-door--prev .rabar-360-door__chevron::before {
  transform: rotate(-135deg) translate(-2px, -2px);
  margin-top: -2px;
}
.rabar-360-door__btn:hover .rabar-360-door__chevron,
.rabar-360-door__btn:focus-visible .rabar-360-door__chevron {
  background: rgba(59, 126, 248, 0.95);
  transform: scale(1.08);
}
.rabar-360-door__label {
  max-width: 140px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes rabar360DoorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
.dark-mode .rabar-360-card {
  background: #161b2e;
  border-color: rgba(255, 255, 255, 0.08);
}
