@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #C8A96E;
  --gold-dark: #9E7940;
  --dark: #0E1117;
  --dark2: #161B26;
  --dark3: #1F2637;
  --text: #F0EDE6;
  --muted: #8A8FA8;
  --border: rgba(200, 169, 110, 0.2);
  --card: #1A2033;
}

/* ── LIGHT THEME — Warm Cream & Gold Luxury ── */
html.light {
  --gold: #A17D3A;
  --gold-dark: #86672E;
  --dark: #FBF8F3;
  --dark2: #F3EDE2;
  --dark3: #E8DFCF;
  --text: #2C2418;
  --muted: #6B5D4F;
  --border: rgba(161, 125, 58, 0.18);
  --card: #F5EFE5;
}

html.light nav {
  background: rgba(251, 248, 243, 0.96);
  border-bottom-color: rgba(161, 125, 58, 0.12);
}

html.light .nav-top {
  border-bottom-color: rgba(161, 125, 58, 0.08);
}

html.light .nav-contact a,
html.light .lang-btn {
  color: #6B5D4F;
}

html.light .lang-btn:hover,
html.light .nav-links a:hover,
html.light .nav-contact a:hover {
  color: var(--gold);
}

html.light .nav-links a {
  color: #3D3228;
}

html.light .nav-links a.active {
  color: var(--gold);
}

html.light .nav-cta {
  background: var(--gold);
  color: #fff;
}

html.light .hero-bg {
  background: linear-gradient(135deg, #F3EDE2 0%, #E8DFCF 50%, #F3EDE2 100%);
}

html.light .hero-overlay {
  background: linear-gradient(to bottom, rgba(243, 237, 226, 0.35) 0%, rgba(243, 237, 226, 0.25) 50%, rgba(243, 237, 226, 0.65) 100%);
}

html.light .hero-video-wrap iframe {
  opacity: 0.45;
  filter: saturate(0.8) brightness(1.1) sepia(0.15);
}

html.light .hero-photo {
  opacity: 0.35;
  filter: saturate(0.8) brightness(1.1);
}

html.light .hero h1,
html.light .inner-hero-title {
  color: #2C2418;
}

html.light .hero-sub,
html.light .hero-badge {
  color: #6B5D4F;
}

html.light .card {
  background: #FFFDF9;
  border: 1px solid rgba(161, 125, 58, 0.1);
  box-shadow: 0 2px 12px rgba(44, 36, 24, 0.04);
}

html.light .card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(161, 125, 58, 0.12);
}

html.light .card-body {
  color: #2C2418;
}

html.light .card-title {
  color: #2C2418;
}

html.light .card-price {
  color: var(--gold);
}

html.light .card-location {
  color: #6B5D4F;
}

html.light .card-badge {
  font-weight: 600;
}

html.light .card-img-placeholder {
  background: #F3EDE2;
  color: #6B5D4F;
}

html.light .whatsapp-btn {
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
}

html.light footer {
  background: #F3EDE2;
}

html.light .footer-heading {
  color: var(--gold);
}

html.light .footer-links a {
  color: #6B5D4F;
}

html.light .footer-links a:hover {
  color: var(--gold);
}

html.light .footer-bottom {
  border-top-color: rgba(161, 125, 58, 0.1);
  color: #6B5D4F;
}

html.light .inner-hero {
  background: linear-gradient(135deg, #FBF8F3 0%, #F3EDE2 50%, #E8DFCF 100%);
}

html.light .section-title span {
  color: var(--gold);
}

html.light .btn-primary {
  background: var(--gold);
  color: #fff;
}

html.light .btn-primary:hover {
  background: var(--gold-dark);
}

html.light .btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}

html.light .search-box {
  background: #FFFDF9;
  border-color: rgba(161, 125, 58, 0.12);
  box-shadow: 0 4px 20px rgba(44, 36, 24, 0.06);
}

html.light .search-field select {
  background: #F3EDE2;
  color: #2C2418;
  border-color: rgba(161, 125, 58, 0.12);
}

html.light .search-btn {
  background: var(--gold);
  color: #fff;
}

html.light .stats {
  border-color: rgba(161, 125, 58, 0.12);
}

html.light .stat {
  border-right-color: rgba(161, 125, 58, 0.12);
}

html.light .stat-num {
  color: var(--gold);
}

html.light .filter-btn {
  border-color: rgba(161, 125, 58, 0.12);
  color: #6B5D4F;
}

html.light .filter-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

html.light .cat-btn {
  background: #FFFDF9;
  border-color: rgba(161, 125, 58, 0.08);
}

html.light .cat-btn.active {
  background: rgba(161, 125, 58, 0.08);
  border-right-color: var(--gold);
}

html.light .cta-banner {
  background: linear-gradient(135deg, #2C2418 0%, #3D3228 100%);
}

html.light .cta-banner h2,
html.light .cta-banner p {
  color: #F3EDE2;
}


html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── RTL SUPPORT ── */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .lang-btn {
  border-right: none;
  border-left: 1px solid var(--border);
}

html[dir="rtl"] .lang-btn:last-child {
  border-left: none;
}

html[dir="rtl"] .nav-links {
  gap: 32px;
}

html[dir="rtl"] .hero-badge {
  letter-spacing: 1px;
}

html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-outline {
  letter-spacing: 1px;
}

html[dir="rtl"] .search-field {
  text-align: right;
}

html[dir="rtl"] .search-field select,
html[dir="rtl"] .search-field input {
  padding: 10px 14px;
}

html[dir="rtl"] .stat {
  border-right: none;
  border-left: 1px solid var(--border);
}

html[dir="rtl"] .stat:last-child {
  border-left: none;
}

html[dir="rtl"] .filter-btn {
  border-right: none;
  border-left: 1px solid var(--border);
  letter-spacing: 1px;
}

html[dir="rtl"] .filter-btn:last-child {
  border-left: none;
}

html[dir="rtl"] .card-badge {
  left: auto;
  right: 14px;
}

html[dir="rtl"] .card-ref {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .cat-sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
}

html[dir="rtl"] .cat-btn {
  text-align: right;
}

html[dir="rtl"] .cat-btn.active {
  border-left: none;
  border-right: 2px solid var(--gold);
  padding-left: 20px;
  padding-right: 18px;
}

html[dir="rtl"] .cat-photo-info {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .footer-socials {
  gap: 12px;
}

@media(max-width: 768px) {
  html[dir="rtl"] .stat {
    border-left: none;
  }

  html[dir="rtl"] .cat-sidebar {
    border-left: none;
  }
}

/* ── NAV ── */
.main-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 105;
  background: rgba(14, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

html.light .main-header-nav {
  background: rgba(251, 248, 243, 0.95);
}

.nav-top {
  padding: 6px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.lang-btns {
  display: flex;
  gap: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}

.lang-btn:last-child {
  border-right: none;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--gold);
}

.lang-btn.active {
  font-weight: 500;
}

.nav-contact {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  font-size: 11px;
}

.nav-contact a:hover {
  color: var(--gold);
}

.nav-main {
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.logo img:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--dark);
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.nav-cta:hover {
  background: var(--gold-dark);
  color: white;
}

/* ── MOBILE BOTTOM TAB BAR (hidden on desktop) ── */
.mobile-tab-bar {
  display: none;
}

/* ── MOBILE LANGUAGE SWITCHER ── */
.mobile-lang-switcher {
  display: none;
}

@media(max-width: 768px) {
  .mobile-lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(14, 17, 23, 0.4);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(200, 169, 110, 0.2);
  }

  html.light .mobile-lang-switcher {
    background: rgba(251, 248, 243, 0.5);
    border-color: rgba(161, 125, 58, 0.15);
  }

  .ml-btn {
    font-size: 10px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif;
  }

  .ml-btn.active {
    background: var(--gold);
    color: var(--dark);
  }

  html.light .ml-btn.active {
    background: var(--gold);
    color: #fff;
  }
}

/* ── WHATSAPP BUTTON ── */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 90;
  text-decoration: none;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

html[dir="rtl"] .whatsapp-btn {
  right: auto;
  left: 30px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── COMMON HERO (Inner Pages) ── */
.inner-hero {
  padding: 10px 0% 10px;
  text-align: center;
  background: linear-gradient(135deg, #0E1117 0%, #161B26 40%, #0E1117 100%);
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.inner-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

/* ── HOME HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px 5% 80px;
  gap: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0E1117 0%, #161B26 40%, #0E1117 100%);
}

/* YouTube Video Background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%) scale(1.15);
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.7) brightness(0.8);
}

/* Fallback image (fades out when video plays) */
.hero-photo {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  filter: saturate(0.7);
  transition: opacity 1.5s ease;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 17, 23, 0.55) 0%, rgba(14, 17, 23, 0.45) 50%, rgba(14, 17, 23, 0.85) 100%);
  z-index: 1;
}

.hero-accent {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 6px 18px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}

h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(240, 237, 230, 0.3);
  transition: all .2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── HERO FLOATING CONTAINER ── */
.hero-floating-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  order: -1;
}

/* ── CATEGORY SLIDER SECTION ── */
.category-slider-section {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(200, 169, 110, 0.18);
  border-radius: 18px;
  padding: 18px 28px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-slider-section::-webkit-scrollbar {
  display: none;
}

.cat-slider-track {
  display: flex;
  gap: 8px;
  min-width: min-content;
  margin: 0 auto;
}

.cat-slider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  scroll-snap-align: center;
  flex-shrink: 0;
  padding: 12px 14px 10px;
  border-radius: 14px;
  min-width: 80px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease;
  /* Staggered entrance animation */
  opacity: 0;
  animation: catSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cat-slider-item:nth-child(1) {
  animation-delay: 0.05s;
}

.cat-slider-item:nth-child(2) {
  animation-delay: 0.1s;
}

.cat-slider-item:nth-child(3) {
  animation-delay: 0.15s;
}

.cat-slider-item:nth-child(4) {
  animation-delay: 0.2s;
}

.cat-slider-item:nth-child(5) {
  animation-delay: 0.25s;
}

.cat-slider-item:nth-child(6) {
  animation-delay: 0.3s;
}

.cat-slider-item:nth-child(7) {
  animation-delay: 0.35s;
}

.cat-slider-item:nth-child(8) {
  animation-delay: 0.4s;
}

.cat-slider-item:nth-child(9) {
  animation-delay: 0.45s;
}

.cat-slider-item:nth-child(10) {
  animation-delay: 0.5s;
}

@keyframes catSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-slider-item {
    animation: none;
    opacity: 1;
  }
}

.cat-slider-item:hover {
  transform: translateY(-6px) scale(1.04);
  background: rgba(200, 169, 110, 0.08);
}

.cat-slider-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF9F0 0%, #FFF3E0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A17D3A;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 12px rgba(161, 125, 58, 0.1);
}

/* Gradient border ring */
.cat-slider-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.3), rgba(200, 169, 110, 0.08));
  z-index: -1;
  transition: all 0.35s ease;
}

.cat-slider-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-slider-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-slider-item:hover .cat-slider-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.45);
  transform: scale(1.08);
}

.cat-slider-item:hover .cat-slider-icon::before {
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.5), rgba(200, 169, 110, 0.2));
  inset: -3px;
}

.cat-slider-item:hover .cat-slider-icon svg,
.cat-slider-item:hover .cat-slider-icon img {
  transform: scale(1.12);
}

.cat-slider-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #3D3228;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  transition: color 0.3s ease;
  line-height: 1.3;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-slider-item:hover .cat-slider-title {
  color: var(--gold-dark);
}

/* ── Category Slider: Listing count badge ── */
.cat-slider-count {
  font-size: 9px;
  color: #8A8FA8;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  margin-top: -4px;
}

.cat-slider-item:hover .cat-slider-count {
  color: var(--gold);
}

/* ── Dark theme overrides for category slider ── */
html:not(.light) .category-slider-section {
  background: rgba(26, 32, 51, 0.85);
  border-color: rgba(200, 169, 110, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(200, 169, 110, 0.06) inset;
}

html:not(.light) .cat-slider-icon {
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.12) 0%, rgba(200, 169, 110, 0.06) 100%);
  color: var(--gold);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

html:not(.light) .cat-slider-icon::before {
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.25), rgba(200, 169, 110, 0.05));
}

html:not(.light) .cat-slider-title {
  color: var(--text);
}

html:not(.light) .cat-slider-item:hover .cat-slider-title {
  color: var(--gold);
}

html:not(.light) .cat-slider-item:hover .cat-slider-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.35);
}

html:not(.light) .cat-slider-count {
  color: var(--muted);
}

/* ── HERO SEARCH BAR (Modern Glassmorphism) ── */
.hero-search {
  width: 100%;
}

.hero-search-toggle {
  display: none;
  /* hidden on desktop */
}

.hero-search-form {
  display: flex;
  flex-direction: column;
  background: rgba(14, 17, 23, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(200, 169, 110, 0.15);
  border-radius: 14px;
  padding: 6px;
  gap: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(200, 169, 110, 0.06) inset;
}

/* Keyword input wrapper */
.hsf-keyword-wrap {
  position: relative;
  padding: 6px 6px 4px;
}

.hsf-keyword-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(200, 169, 110, 0.12);
  border-radius: 10px;
  padding: 0 16px;
  transition: border-color .25s, background .25s;
}

.hsf-keyword-field:focus-within {
  border-color: var(--gold);
  background: rgba(255, 255, 255, .08);
}

.hsf-keyword-field svg {
  color: var(--gold);
  opacity: .6;
  flex-shrink: 0;
}

.hsf-keyword-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 13px 0;
}

.hsf-keyword-field input::placeholder {
  color: var(--muted);
  font-size: 13px;
}

/* Spinner */
.hsf-keyword-spinner {
  flex-shrink: 0;
  animation: hsf-spin 1s linear infinite;
  color: var(--gold);
  opacity: .7;
}

@keyframes hsf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Live search results dropdown */
.hsf-live-results {
  position: absolute;
  top: 100%;
  left: 6px;
  right: 6px;
  z-index: 100;
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: none;
  margin-top: 4px;
}

.hsf-live-results.active {
  display: block;
}

.hsf-live-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  transition: background .15s;
  cursor: pointer;
}

.hsf-live-result:last-child {
  border-bottom: none;
}

.hsf-live-result:hover {
  background: rgba(200, 169, 110, 0.08);
}

.hsf-live-result-img {
  width: 52px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark3);
}

.hsf-live-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hsf-live-result-info {
  flex: 1;
  min-width: 0;
}

.hsf-live-result-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.hsf-live-result-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsf-live-result-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hsf-live-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.hsf-live-footer {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--gold);
  border-top: 1px solid rgba(200, 169, 110, 0.12);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .15s;
}

.hsf-live-footer:hover {
  background: rgba(200, 169, 110, 0.08);
}

/* Filters row (type/category/city + submit) */
.hsf-filters-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hsf-field {
  flex: 1;
  padding: 14px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border-radius: 10px;
  transition: background .2s;
}

.hsf-field:hover {
  background: rgba(200, 169, 110, 0.06);
}

.hsf-field label {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hsf-field label svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.hsf-field select {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 2px 0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.hsf-divider {
  width: 1px;
  background: rgba(200, 169, 110, 0.12);
  margin: 12px 0;
  flex-shrink: 0;
}

.hsf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s ease;
  flex-shrink: 0;
}

.hsf-btn:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(200, 169, 110, 0.3);
}

.hsf-btn svg {
  flex-shrink: 0;
}

/* Light mode overrides */
html.light .hero-search-form {
  background: rgba(251, 248, 243, 0.85);
  border-color: rgba(161, 125, 58, 0.15);
  box-shadow: 0 16px 48px rgba(44, 36, 24, 0.12), 0 0 0 1px rgba(161, 125, 58, 0.08) inset;
}

html.light .hsf-field:hover {
  background: rgba(161, 125, 58, 0.06);
}

html.light .hsf-field select {
  color: #2C2418;
}

html.light .hsf-btn {
  background: var(--gold);
  color: #fff;
}

html.light .hero-search-toggle {
  background: rgba(251, 248, 243, 0.9);
  border-color: rgba(161, 125, 58, 0.15);
  color: #3D3228;
}

/* ── MOBILE: Collapsible search ── */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 4% 40px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: visible;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-badge {
    margin-bottom: 16px;
    font-size: 10px;
    padding: 5px 14px;
    letter-spacing: 2px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 14px;
    margin: 0 auto 24px;
    line-height: 1.6;
  }

  .hero-floating-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-bottom: 16px;
    order: 1;
  }

  .hero-search {
    width: 100%;
  }

  .category-slider-section {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .cat-slider-track {
    gap: 4px;
  }

  .cat-slider-item {
    padding: 8px 10px 6px;
    min-width: 68px;
    gap: 6px;
  }

  .cat-slider-icon {
    width: 44px;
    height: 44px;
  }

  .cat-slider-icon svg {
    width: 20px;
    height: 20px;
  }

  .cat-slider-title {
    font-size: 9px;
    max-width: 68px;
  }

  .cat-slider-count {
    display: none;
  }

  .hero-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(14, 17, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all .2s;
  }

  .hero-search-toggle svg:first-child {
    color: var(--gold);
  }

  .hero-search-chevron {
    margin-left: auto;
    transition: transform .3s ease;
    opacity: 0.5;
  }

  .hero-search.expanded .hero-search-chevron {
    transform: rotate(180deg);
  }

  .hero-search-form {
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-radius: 0 0 12px 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    border: 1px solid transparent;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease, border-color .2s;
  }

  .hero-search.expanded .hero-search-form {
    max-height: 600px;
    opacity: 1;
    padding: 16px;
    border-color: rgba(200, 169, 110, 0.15);
    border-top: none;
  }

  .hsf-filters-row {
    flex-direction: column;
    gap: 4px;
  }

  .hsf-keyword-field input {
    font-size: 16px;
    /* prevent iOS zoom */
  }

  .hero-search.expanded .hero-search-toggle {
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
  }

  .hsf-divider {
    display: none;
  }

  .hsf-field {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  }

  .hsf-field:last-of-type {
    border-bottom: none;
  }

  .hsf-field select {
    font-size: 16px;
    /* prevent iOS zoom */
  }

  .hsf-btn {
    margin-top: 8px;
    padding: 14px;
    border-radius: 8px;
    width: 100%;
  }
}

/* Keep old .search-box for search-results page */
.search-section {
  position: relative;
  z-index: 10;
  margin-top: -1px;
  padding: 0 5% 60px;
}

.search-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 28px 32px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.search-field select,
.search-field input {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--gold);
}

.search-btn {
  background: var(--gold);
  color: var(--dark);
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  height: 42px;
}

.search-btn:hover {
  background: var(--gold-dark);
  color: white;
}

/* ── STATS ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 80px;
  border: 1px solid var(--border);
}

.stat {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ── SECTION ── */
.section {
  padding: 80px 5%;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.section-title span {
  color: var(--gold);
  font-style: italic;
}

.see-all {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color .2s;
  white-space: nowrap;
}

.see-all:hover {
  border-color: var(--gold);
}

/* ── FILTER TABS ── */
.filter-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  width: fit-content;
}

.filter-btn {
  background: transparent;
  color: var(--muted);
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.filter-btn:last-child {
  border-right: none;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--dark);
  font-weight: 500;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 110, 0.5);
}

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--dark3);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.badge-vendre {
  background: var(--gold);
  color: var(--dark);
}

.badge-louer {
  background: #2A5C8A;
  color: white;
}

.card-ref {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(14, 17, 23, 0.85);
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffffff;
  font-weight: 500;
  border-radius: 2px;
}

.card-body {
  padding: 20px;
}

.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 400;
}

.card-location {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-location svg {
  flex-shrink: 0;
}

.card-specs {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.spec svg {
  opacity: .7;
}

/* ── 3D CATEGORY CARDS ── */
.cat3d-section {
  overflow: visible;
}

.cat3d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

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

.cat3d-perspective {
  perspective: 800px;
}

.cat3d-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  height: 240px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99), box-shadow 0.4s ease;
  will-change: transform;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
}

.cat3d-card:hover {
  box-shadow:
    0 20px 60px -15px var(--cat-glow),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 30px rgba(255,255,255,0.03);
}

/* Animated gradient bg */
.cat3d-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark3) 0%, var(--dark2) 50%, var(--dark3) 100%);
  z-index: 0;
}

.cat3d-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-from), transparent 60%);
  opacity: 0.15;
  transition: opacity 0.5s ease;
}

.cat3d-card:hover .cat3d-bg::before {
  opacity: 0.3;
}

.cat3d-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at bottom right, var(--cat-to), transparent 70%);
  opacity: 0.1;
  transition: opacity 0.5s ease;
}

.cat3d-card:hover .cat3d-bg::after {
  opacity: 0.25;
}

/* Floating particles */
.cat3d-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cat3d-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cat-from);
  opacity: 0;
  animation: cat3dFloat 6s ease-in-out infinite;
}

.cat3d-particles span:nth-child(1) { left: 15%; top: 80%; animation-delay: 0s; animation-duration: 5s; }
.cat3d-particles span:nth-child(2) { left: 35%; top: 85%; animation-delay: 1.2s; animation-duration: 6s; }
.cat3d-particles span:nth-child(3) { left: 55%; top: 75%; animation-delay: 0.6s; animation-duration: 7s; }
.cat3d-particles span:nth-child(4) { left: 75%; top: 90%; animation-delay: 2s; animation-duration: 5.5s; }
.cat3d-particles span:nth-child(5) { left: 25%; top: 70%; animation-delay: 3s; animation-duration: 6.5s; }
.cat3d-particles span:nth-child(6) { left: 85%; top: 65%; animation-delay: 1.5s; animation-duration: 7.5s; }

@keyframes cat3dFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.4; }
  50% { transform: translateY(-80px) scale(1.5); opacity: 0.2; }
  100% { transform: translateY(-160px) scale(0.5); opacity: 0; }
}

/* Glass shine */
.cat3d-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 55%,
    transparent 70%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  transition: background-position 0.8s ease;
  pointer-events: none;
}

.cat3d-card:hover .cat3d-shine {
  background-position: -50% 0;
}

/* Content */
.cat3d-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  gap: 12px;
}

.cat3d-icon {
  width: 56px;
  height: 56px;
  color: var(--cat-from);
  opacity: 0.7;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.cat3d-icon svg {
  width: 100%;
  height: 100%;
}

.cat3d-card:hover .cat3d-icon {
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 4px 12px var(--cat-glow));
}

.cat3d-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  transition: color 0.3s ease;
}

.cat3d-card:hover .cat3d-name {
  color: var(--cat-from);
}

.cat3d-count {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.cat3d-arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  color: var(--cat-from);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s ease;
}

.cat3d-card:hover .cat3d-arrow {
  opacity: 0.8;
  transform: translateX(0);
}

/* Glowing border animation on hover */
.cat3d-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cat-from), transparent 40%, transparent 60%, var(--cat-to));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
  pointer-events: none;
}

.cat3d-card:hover::before {
  opacity: 1;
}

/* Light mode overrides */
html.light .cat3d-bg {
  background: linear-gradient(135deg, #FFFDF9 0%, #F8F5F0 50%, #FFFDF9 100%);
}

html.light .cat3d-card {
  border-color: rgba(0,0,0,0.06);
}

html.light .cat3d-card:hover {
  box-shadow:
    0 20px 60px -15px var(--cat-glow),
    0 0 0 1px rgba(0,0,0,0.05);
}

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.service-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 30px;
  text-align: center;
  transition: transform .3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.service-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
}

/* ── CONTACT PAGE ── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-details p,
.contact-details a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  display: block;
}

.contact-details a:hover {
  color: var(--text);
}

.contact-form {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .3s;
}

.form-control:focus {
  border-color: var(--gold);
}

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

.map-container {
  margin-top: 80px;
  height: 400px;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 60px 5%;
  text-align: center;
}

.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 16px;
}

.cta-banner h2 em {
  color: var(--gold);
  font-style: italic;
}

.cta-banner p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SERVICES SECTION ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.service-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 169, 110, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  color: var(--gold);
  margin-bottom: 24px;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

html.light .service-card {
  background: #FFFDF9;
  border-color: rgba(161, 125, 58, 0.12);
}

/* ── WHY CHOOSE US ── */
.why-section {
  background: var(--dark2);
  padding: 100px 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.why-img-wrap {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.why-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-badge {
  position: absolute;
  bottom: 32px;
  right: -24px;
  background: var(--gold);
  color: var(--dark);
  padding: 32px;
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-badge-num {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 600;
}

.why-badge-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'DM Sans', sans-serif;
}

.why-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.1;
}

.why-content h2 em {
  color: var(--gold);
  font-style: italic;
}

.why-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.why-list li svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

html.light .why-section {
  background: #F3EDE2;
  border-color: rgba(161, 125, 58, 0.1);
}

html.light .why-badge {
  box-shadow: 0 10px 30px rgba(161, 125, 58, 0.2);
}

/* ── TANGER GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(20%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 17, 23, 0.9) 0%, rgba(14, 17, 23, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-title {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-title {
  transform: translateY(0);
}

.gi-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gi-tall {
  grid-row: span 2;
}

.gi-wide {
  grid-column: span 2;
}

@media(max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-badge {
    right: 0;
    bottom: 0;
  }

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

  .gi-large,
  .gi-wide {
    grid-column: span 1;
  }
}

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 48px 5% 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
  font-size: 13px;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-heading {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media(max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {

  .nav-links,
  .nav-cta.desktop-only {
    display: none;
  }

  .logo img {
    height: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
    height: auto;
    padding: 14px;
  }

  .stats {
    flex-direction: column;
    border: none;
    gap: 1px;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* Scroll Reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--dark2);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  font-size: 20px;
  line-height: 1;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

html.light .theme-toggle {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════════════
   MOBILE-FIRST ENHANCEMENTS
   ══════════════════════════════════════════════ */

/* ── Global: Touch-friendly tap targets ── */
button,
.btn-primary,
.btn-outline,
.nav-cta,
.search-btn,
.filter-btn {
  min-height: 44px;
  touch-action: manipulation;
}

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

/* ── Form inputs: prevent iOS zoom (must be 16px+) ── */
input,
select,
textarea,
.form-control,
.search-field select,
.search-field input,
.an-filter-input {
  font-size: 16px;
}

/* ── Flash messages ── */
.flash-message {
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.flash-success {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.flash-warning {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--border);
  color: var(--gold);
}

.flash-danger {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* ── Pagination styling ── */
.pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}

.pagination-wrap .pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-wrap .pagination li a,
.pagination-wrap .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination-wrap .pagination li.active span,
.pagination-wrap .pagination li a:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.pagination-wrap .pagination li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Mobile: ≤768px ── */
@media(max-width: 768px) {

  /* Hide desktop nav elements on mobile */
  .nav-top {
    display: none;
  }

  .nav-links,
  .nav-cta.desktop-only {
    display: none !important;
  }

  /* Add bottom padding so content isn't hidden behind tab bar */
  body {
    padding-bottom: 80px !important;
  }

  /* ── MOBILE HERO COMPACT LAYOUT ── */
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: auto;
    padding: 80px 4% 30px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-badge {
    margin-bottom: 16px;
    font-size: 10px;
    padding: 5px 14px;
    letter-spacing: 2px;
  }

  .hero h1,
  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 14px;
    margin: 0 auto 24px;
    line-height: 1.6;
  }

  .hero-search {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-bottom: 16px;
    order: 1;
  }

  .hero-btns {
    position: fixed;
    bottom: 90px;
    left: 4%;
    right: 4%;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 14px 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* ── MOBILE BOTTOM TAB BAR ── */
  .mobile-tab-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 72px;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(14, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(200, 169, 110, 0.15);
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  }

  html.light .mobile-tab-bar {
    background: rgba(251, 248, 243, 0.96);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(161, 125, 58, 0.15);
  }

  /* Tab item */
  .mtb-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding: 8px 4px;
    min-width: 56px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mtb-tab svg {
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .mtb-tab:active svg {
    transform: scale(0.85);
  }

  .mtb-tab span {
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
  }

  /* Active tab */
  .mtb-active {
    color: var(--gold) !important;
  }

  .mtb-active svg {
    stroke: var(--gold);
  }

  /* Center elevated button (Publier) */
  .mtb-center {
    position: relative;
    margin-top: -28px;
  }

  .mtb-center-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(200, 169, 110, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mtb-center-btn svg {
    stroke: var(--dark) !important;
    color: var(--dark);
  }

  .mtb-center:active .mtb-center-btn {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(200, 169, 110, 0.3);
  }

  .mtb-center span {
    color: var(--gold);
    margin-top: 2px;
  }

  /* Inner hero: reduced padding */
  .inner-hero {
    padding: 120px 5% 60px;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-img {
    height: 200px;
  }

  /* CTA buttons stack */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns .btn-primary,
  .cta-btns .btn-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Section padding reduced */
  .section {
    padding: 60px 4%;
  }

  .section-header {
    margin-bottom: 32px;
  }

  /* Filter bar scrollable */
  .filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Gallery: 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 8px;
  }

  .gi-large,
  .gi-wide,
  .gi-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Map smaller */
  .map-container {
    height: 280px;
    margin-top: 40px;
  }

  /* WhatsApp + theme toggle repositioned ABOVE tab bar */
  .whatsapp-btn {
    bottom: 85px;
    right: 2px;
    width: 46px;
    height: 50px;
  }

  .theme-toggle {
    bottom: 150px;
    right: 4px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  html[dir="rtl"] .whatsapp-btn {
    left: 20px;
    right: auto;
  }

  html[dir="rtl"] .theme-toggle {
    left: 16px;
    right: auto;
  }

  /* Why section */
  .why-section {
    padding: 60px 4%;
  }

  .why-content h2 {
    font-size: 32px;
  }

  /* About page */
  .about-grid {
    gap: 32px;
  }

  .about-img img {
    width: 100%;
  }

  /* Services */
  .services-grid {
    padding: 0;
    gap: 16px;
  }

  .service-card {
    padding: 32px 20px;
  }

  /* Contact */
  .contact-form {
    padding: 24px 16px;
  }

  /* Stats: 2x2 grid */
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    gap: 0;
    flex-direction: initial;
  }

  .stat {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .stat:nth-child(n+3) {
    border-bottom: none;
  }
}


/* ── Extra small phones: ≤480px ── */
@media(max-width: 480px) {
  .hero {
    padding: 70px 4% 24px;
  }

  .hero-badge {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 10px;
  }

  .hero-sub {
    font-size: 13px;
    margin: 0 auto 18px;
  }

  .hero-btns {
    bottom: 220px;
    gap: 8px;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    padding: 12px 24px;
    font-size: 11px;
  }

  .search-box {
    padding: 20px 16px;
  }

  .cat-display-inner {
    min-height: 280px;
  }

  .cat-photo-name {
    font-size: 28px;
  }

  .cat-photo-info {
    padding: 20px;
  }

  /* Gallery: single column on very small */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}