/* Rawal Realty design system */
:root {
  --radius: 0.875rem;
  --background: #ffffff;
  --foreground: #222222;
  --charcoal: #222222;
  --sand: #f8f8f8;
  --card: #ffffff;
  --primary: #F7941D;
  --primary-foreground: #ffffff;
  --muted: #f3f3f3;
  --muted-foreground: #6b6b6b;
  --accent: #fff5eb;
  --accent-foreground: #222222;
  --destructive: #dc2626;
  --border: #e8e8e8;
  --input: #e8e8e8;
  --ring: #F7941D;
  --gradient-primary: linear-gradient(135deg, #F7941D, #ffb347);
  --shadow-elegant: 0 20px 60px -20px rgba(247, 148, 29, 0.3);
  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 6px 20px -8px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gradient-primary { background-image: var(--gradient-primary); }
.text-gradient-primary {
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-card { box-shadow: var(--shadow-card); }
.glass {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.glass-dark {
  background-color: rgba(34, 34, 34, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.container-page {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 80rem;
}
@media (min-width: 768px) {
  .container-page { padding-inline: 2rem; }
}

.text-charcoal { color: var(--charcoal); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-sand { background-color: var(--sand); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-primary { background-color: var(--primary); }
.bg-background { background-color: var(--background); }
.bg-primary\/5 { background-color: rgba(247, 148, 29, 0.05); }
.bg-primary\/10 { background-color: rgba(247, 148, 29, 0.1); }
.border-primary\/30 { border-color: rgba(247, 148, 29, 0.3); }
.border-primary\/40 { border-color: rgba(247, 148, 29, 0.4); }
.border-primary\/50 { border-color: rgba(247, 148, 29, 0.5); }
.border-charcoal\/20 { border-color: rgba(34, 34, 34, 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-white\/60 { border-color: rgba(255, 255, 255, 0.6); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-primary\/40:hover { border-color: rgba(247, 148, 29, 0.4); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-muted:hover { background-color: var(--muted); }
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }
.hover\:text-charcoal:hover { color: var(--charcoal); }
.hover\:text-white:hover { color: #fff; }
.hover\:shadow-elegant:hover { box-shadow: var(--shadow-elegant); }
.hover\:shadow-card:hover { box-shadow: var(--shadow-card); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-\[1\.03\]:hover { transform: scale(1.03); }
.hover\:scale-110:hover { transform: scale(1.1); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:text-primary { color: var(--primary); }
.story-link { transition: color 0.2s; }
.story-link:hover { color: var(--primary); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.font-display { font-family: "Poppins", system-ui, sans-serif; }
[data-accordion-content] { display: none; }
[data-accordion-content].open { display: block; }

.fill-primary { fill: var(--primary); }

/* Testimonial marquee — full width, scrolls right to left */
.testimonial-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.testimonial-marquee-viewport {
  overflow: hidden;
  width: 100%;
}
.testimonial-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}
.testimonial-marquee-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 0.5rem 0.75rem;
}
.testimonial-marquee-fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 4rem;
}
.testimonial-marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--sand) 0%, transparent 100%);
}
.testimonial-marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--sand) 0%, transparent 100%);
}
@media (min-width: 768px) {
  .testimonial-marquee-fade { width: 6rem; }
}
.testimonial-marquee-card {
  flex: 0 0 auto;
  width: min(88vw, 420px);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
  .testimonial-marquee-card { width: 480px; padding: 2.5rem; }
}
.testimonial-marquee-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--primary);
}
.testimonial-marquee-card__quote {
  margin-top: 1.25rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--charcoal);
}
@media (min-width: 768px) {
  .testimonial-marquee-card__quote { font-size: 1.25rem; }
}
.testimonial-marquee-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.testimonial-marquee-card__avatar {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-image: var(--gradient-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.testimonial-marquee-card__meta { min-width: 0; text-align: left; }
.testimonial-marquee-card__stars { display: flex; gap: 2px; }
.testimonial-marquee-card__name {
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--charcoal);
}
.testimonial-marquee-card__role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.testimonial-marquee.is-paused .testimonial-marquee-track {
  animation-play-state: paused !important;
}

/* Partner marquee — same scroll style as testimonials */
.partner-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.partner-marquee-viewport {
  overflow: hidden;
  width: 100%;
}
.partner-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}
.partner-marquee-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0.75rem;
}
.partner-marquee-fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 4rem;
}
.partner-marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--sand) 0%, transparent 100%);
}
.partner-marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--sand) 0%, transparent 100%);
}
.partner-marquee--white .partner-marquee-fade--left {
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.partner-marquee--white .partner-marquee-fade--right {
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}
@media (min-width: 768px) {
  .partner-marquee-fade { width: 6rem; }
}
.partner-marquee-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78vw, 220px);
  height: 120px;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.partner-marquee-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 148, 29, 0.35);
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) {
  .partner-marquee-card {
    width: 240px;
    height: 130px;
    padding: 1.5rem 1.75rem;
  }
}
.partner-marquee-card__logo {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-marquee.is-paused .partner-marquee-track {
  animation-play-state: paused !important;
}

/* Stats counters */
.stat-counter {
  display: inline-block;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stats-strip {
  position: relative;
  z-index: 15;
  overflow: hidden;
  border-radius: 1.5rem;
}
.stats-strip__value {
  line-height: 1.15;
  padding: 0.125rem 0 0.25rem;
}
.stats-strip__item {
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
@media (min-width: 768px) {
  .stats-strip__item { min-height: 8.5rem; }
}

/* Awards — glowing frame */
.award-glow-frame {
  position: relative;
  border-radius: 1.5rem;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(247, 148, 29, 0.55),
    rgba(255, 235, 200, 0.95),
    rgba(247, 148, 29, 0.45)
  );
  box-shadow:
    0 0 0 1px rgba(247, 148, 29, 0.15),
    0 0 28px rgba(247, 148, 29, 0.22),
    0 12px 40px -16px rgba(247, 148, 29, 0.35);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.award-glow-frame::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: 0;
  border-radius: 1.65rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 179, 71, 0.35), transparent 70%);
  filter: blur(14px);
  opacity: 0.85;
  pointer-events: none;
}
.award-glow-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(247, 148, 29, 0.25),
    0 0 36px rgba(247, 148, 29, 0.35),
    0 18px 48px -14px rgba(247, 148, 29, 0.4);
}
.award-glow-frame__inner {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.65);
}
.award-glow-frame__inner--portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  min-height: 22rem;
  padding: 0.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
}
@media (min-width: 768px) {
  .award-glow-frame__inner--portrait {
    min-height: 26rem;
    padding: 0.75rem;
  }
}
.award-glow-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}
.award-glow-frame:hover .award-glow-frame__image {
  transform: scale(1.02);
}

/* Property search bar */
.property-search {
  width: 100%;
}
.property-search--hero {
  position: relative;
  z-index: 40;
  overflow: visible;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
  box-shadow: var(--shadow-elegant);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.property-search--compact {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem;
  box-shadow: var(--shadow-card);
}
.property-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  overflow: visible;
}
@media (min-width: 768px) {
  .property-search__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 0;
  }
  .property-search__field { grid-column: span 3 / span 3; overflow: visible; }
  .property-search__field:nth-child(4) { grid-column: span 2 / span 2; }
  .property-search__submit { grid-column: span 1 / span 1; display: flex; align-items: center; justify-content: center; }
}
.property-search__field-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
}
@media (min-width: 768px) {
  .property-search__field-inner { padding: 0.35rem 0.75rem; }
  .property-search--hero .property-search__field-inner { padding-left: 1rem; }
}
.property-search__field--border {
  border-top: 1px solid rgba(232, 232, 232, 0.9);
}
@media (min-width: 768px) {
  .property-search__field--border {
    border-top: 0;
    border-left: 1px solid rgba(232, 232, 232, 0.9);
  }
}
.property-search__icon {
  align-items: center;
  justify-content: center;
}
.property-search__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
.property-search__btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  color: var(--primary-foreground);
  background-image: var(--gradient-primary);
  box-shadow: var(--shadow-elegant);
  transition: transform 0.2s ease;
}
.property-search__btn:hover { transform: scale(1.02); }
@media (min-width: 768px) {
  .property-search--hero .property-search__btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    padding: 0;
  }
  .property-search--hero .property-search__btn span { display: none; }
}
.search-dropdown {
  position: relative;
  margin-top: 0.125rem;
}
.search-dropdown__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
}
.search-dropdown__trigger:hover { color: var(--primary); }
.search-dropdown.is-open .search-dropdown__chevron { transform: rotate(180deg); }
.search-dropdown__chevron { transition: transform 0.2s ease; }
.search-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  min-width: 100%;
  width: max-content;
  max-width: min(20rem, 90vw);
  max-height: 15rem;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.35rem;
  box-shadow: var(--shadow-elegant);
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 148, 29, 0.45) transparent;
}
.search-dropdown__menu::-webkit-scrollbar {
  width: 6px;
}
.search-dropdown__menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(247, 148, 29, 0.45);
}
.search-dropdown__menu.is-fixed {
  position: fixed;
  z-index: 9999;
  top: auto;
  left: auto;
}
.search-dropdown__menu.is-portaled {
  min-width: 12.5rem;
}
body.search-dropdown-open {
  overflow: hidden;
}
@media (min-width: 768px) {
  body.search-dropdown-open {
    overflow: auto;
  }
}
.search-dropdown__option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.search-dropdown__option:hover {
  background: var(--accent);
}
.search-dropdown__option.is-selected {
  background: rgba(247, 148, 29, 0.12);
  color: var(--charcoal);
}
.search-dropdown__check {
  opacity: 0;
  color: var(--primary);
}
.search-dropdown__option.is-selected .search-dropdown__check {
  opacity: 1;
}
