/* ==========================================================================
   FONCIER365 — Premium AI-Powered Real Estate Platform
   Design System: Minimalist, Epurate, Professional
   ========================================================================== */

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Colors — ultra-minimal palette */
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray-900: #262626;
  --gray-800: #333333;
  --gray-700: #4a4a4a;
  --gray-600: #666666;
  --gray-500: #888888;
  --gray-400: #aaaaaa;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-bg: #eff6ff;

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  --energy-a: #16a34a;
  --energy-b: #22c55e;
  --energy-c: #84cc16;
  --energy-d: #eab308;
  --energy-e: #f97316;
  --energy-f: #ef4444;
  --energy-g: #dc2626;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

ul, ol {
  list-style: none;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background-color: var(--accent);
  color: var(--white);
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: 56px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

h5 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
}

h6 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.text-sm {
  font-size: 13px;
  color: var(--gray-500);
}

.text-lg {
  font-size: 18px;
  line-height: 1.6;
}

.text-xl {
  font-size: 22px;
  line-height: 1.5;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--gray-500);
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  text-transform: lowercase;
  text-decoration: none;
}

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

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.nav__link:hover {
  color: var(--black);
  text-decoration: none;
}

.nav__link--active {
  color: var(--black);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--black);
  transition: all 0.3s var(--ease);
  border-radius: 1px;
}

.nav__hamburger span:nth-child(1) {
  margin-bottom: 6px;
}

.nav__hamburger span:nth-child(3) {
  margin-top: 6px;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-link {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  gap: var(--space-sm);
}

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

.btn:active {
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--accent);
  color: var(--white);
}

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

.btn--secondary {
  background-color: var(--gray-100);
  color: var(--black);
}

.btn--secondary:hover {
  background-color: var(--gray-200);
}

.btn--outline {
  background-color: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}

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

.btn--ghost {
  background-color: transparent;
  border: none;
  color: var(--gray-600);
}

.btn--ghost:hover {
  color: var(--black);
}

.btn--white {
  background-color: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background-color: var(--gray-100);
}

.btn--danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn--danger:hover {
  background-color: #b91c1c;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn--lg {
  height: 56px;
  padding: 0 36px;
  font-size: 17px;
  border-radius: 12px;
}

.btn--full {
  width: 100%;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

.hero__title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.hero__search {
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  margin: 0 auto;
}

.hero__search-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero__search-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  position: relative;
}

.hero__search-field + .hero__search-field::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background-color: var(--gray-200);
}

.hero__search-field select,
.hero__search-field input {
  width: 100%;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--black);
  appearance: none;
  -webkit-appearance: none;
}

.hero__search-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.hero__search-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s var(--ease);
}

.hero__search-btn:hover {
  background-color: var(--accent-dark);
}

/* ==========================================================================
   8. SEARCH BOX (standalone)
   ========================================================================== */

.search-box {
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-md);
}

.search-box--floating {
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  border-radius: 0;
  padding: 12px var(--space-lg);
}

.search-box__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.search-box__field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
}

.search-box__field + .search-box__field::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background-color: var(--gray-200);
}

.search-box__field input,
.search-box__field select {
  width: 100%;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
}

.search-box__btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s var(--ease);
}

.search-box__btn:hover {
  background-color: var(--accent-dark);
}

/* ==========================================================================
   9. SECTIONS
   ========================================================================== */

.section {
  padding: var(--space-4xl) 0;
}

.section--gray {
  background-color: var(--gray-50);
}

.section--dark {
  background-color: var(--black);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: var(--gray-400);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section__subtitle {
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
}

/* ==========================================================================
   10. CITY CARDS
   ========================================================================== */

.city-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-md);
}

.city-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.city-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.city-card:hover .city-card__img {
  transform: scale(1.05);
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    transparent 50%
  );
  transition: background 0.3s var(--ease);
}

.city-card:hover .city-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.1) 60%
  );
}

.city-card__info {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
}

.city-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.city-card__count {
  font-size: 13px;
  color: var(--white);
  opacity: 0.8;
}

/* ==========================================================================
   11. LISTING CARDS
   ========================================================================== */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.listing-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.listing-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.listing-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.listing-card:hover .listing-card__img {
  transform: scale(1.03);
}

.listing-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.listing-card__badge--vente {
  background-color: var(--accent);
  color: var(--white);
}

.listing-card__badge--location {
  background-color: var(--success);
  color: var(--white);
}

.listing-card__favorite {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.15s var(--ease);
}

.listing-card__favorite:hover,
.listing-card__favorite.is-active {
  color: var(--danger);
}

.listing-card__content {
  padding: 20px;
}

.listing-card__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--space-xs);
}

.listing-card__price-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

.listing-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card__location {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-card__details {
  display: flex;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--gray-500);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.listing-card__detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-card__detail-icon {
  color: var(--gray-400);
}

.listing-card__energy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.listing-card__energy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ==========================================================================
   12. FILTERS
   ========================================================================== */

.filters {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.filters__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.filters__item {
  height: 40px;
  padding: 0 var(--space-md);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.15s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.filters__item:hover {
  border-color: var(--gray-400);
}

.filters__item.is-active {
  border-color: var(--accent);
  background-color: var(--accent-bg);
  color: var(--accent);
}

.filters__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background-color: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.filters__more {
  margin-left: auto;
}

.filters__views {
  display: flex;
  gap: 4px;
  margin-left: var(--space-md);
}

.filters__view-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.15s var(--ease);
}

.filters__view-btn:hover,
.filters__view-btn.is-active {
  border-color: var(--black);
  color: var(--black);
}

/* ==========================================================================
   13. MAP
   ========================================================================== */

.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
}

.map-container--detail {
  height: 300px;
}

.map-container--full {
  height: 50vh;
}

.map-popup {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  min-width: 200px;
}

.map-popup__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.map-popup__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================================================
   14. PROPERTY DETAIL
   ========================================================================== */

.detail__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-sm);
  border-radius: 16px;
  overflow: hidden;
  max-height: 480px;
  margin-bottom: var(--space-2xl);
}

.detail__gallery-main {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

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

.detail__gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-sm);
}

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

.detail__gallery-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__gallery-more {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  transition: all 0.15s var(--ease);
}

.detail__gallery-more:hover {
  box-shadow: var(--shadow-lg);
}

.detail__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.detail__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.detail__address {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.detail__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.detail__stat {
  background: var(--gray-50);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
}

.detail__stat-icon {
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.detail__stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.detail__stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

.detail__description {
  margin-bottom: var(--space-2xl);
}

.detail__description h3 {
  margin-bottom: var(--space-lg);
}

.detail__description p {
  line-height: 1.8;
  color: var(--gray-700);
}

.detail__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.detail__option-tag {
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

/* Sidebar */
.detail__sidebar {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--space-lg);
}

.detail__sidebar-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--space-lg);
}

.detail__sidebar-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-500);
}

.detail__sidebar-cta {
  width: 100%;
  margin-bottom: var(--space-lg);
}

.detail__sidebar-agent {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.detail__sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.detail__sidebar-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.detail__sidebar-phone {
  font-size: 13px;
  color: var(--gray-500);
}

.detail__sidebar-share {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
  margin-top: var(--space-lg);
}

.detail__sidebar-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.15s var(--ease);
}

.detail__sidebar-share-btn:hover {
  border-color: var(--gray-400);
  color: var(--black);
}

/* ==========================================================================
   15. LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background 0.15s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.15s var(--ease);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
  left: var(--space-lg);
}

.lightbox__nav--next {
  right: var(--space-lg);
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   16. PUBLISH FORM
   ========================================================================== */

.publish {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Progress steps */
.publish__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-3xl);
}

.publish__step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.2s var(--ease);
}

.publish__step-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.publish__step-dot.is-complete {
  background: var(--accent);
}

.publish__step-line {
  width: 48px;
  height: 2px;
  background: var(--gray-200);
}

.publish__step-line.is-complete {
  background: var(--accent);
}

/* Step card */
.publish__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: var(--space-xl);
}

.publish__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-xl);
}

/* Form elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: all 0.15s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: var(--space-md);
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Photo upload zone */
.upload-zone {
  height: 200px;
  border: 2px dashed var(--gray-300);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  color: var(--gray-500);
  font-size: 15px;
}

.upload-zone:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.upload-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.upload-zone__icon {
  font-size: 32px;
  color: var(--gray-400);
}

.upload-zone__text {
  color: var(--gray-600);
  font-weight: 500;
}

.upload-zone__hint {
  font-size: 13px;
  color: var(--gray-400);
}

/* Photo thumbnails */
.upload-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.upload-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
}

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

.upload-thumb__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Video upload */
.upload-zone--video {
  height: 160px;
}

.video-guidelines {
  background: var(--accent-bg);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-top: var(--space-md);
}

.video-guidelines__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
}

.video-guidelines__list {
  font-size: 13px;
  color: var(--gray-600);
  list-style: disc;
  padding-left: var(--space-lg);
}

.video-guidelines__list li {
  margin-bottom: 4px;
}

/* AI buttons */
.btn--ai {
  border: 1.5px solid var(--gray-300);
  background: transparent;
  color: var(--gray-600);
  gap: var(--space-sm);
}

.btn--ai:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Step navigation */
.publish__nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

/* ==========================================================================
   17. DASHBOARD
   ========================================================================== */

.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
}

.dashboard__sidebar {
  background: var(--gray-50);
  padding: var(--space-xl) 0;
  border-right: 1px solid var(--gray-200);
}

.dashboard__sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 10px;
  margin: 0 var(--space-sm);
  transition: all 0.15s var(--ease);
}

.dashboard__sidebar-link:hover {
  background: var(--gray-200);
  color: var(--black);
  text-decoration: none;
}

.dashboard__sidebar-link.is-active {
  background: var(--accent-bg);
  color: var(--accent);
}

.dashboard__main {
  padding: var(--space-xl);
}

.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.dashboard__stat-card {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--space-lg);
}

.dashboard__stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.dashboard__stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

/* Dashboard table */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  text-align: left;
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.table tr:hover td {
  background: var(--gray-50);
}

.table__status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.table__status--active {
  background: #dcfce7;
  color: var(--success);
}

.table__status--pending {
  background: #fef3c7;
  color: var(--warning);
}

.table__status--inactive {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* Messages */
.messages {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
}

.messages__list {
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
}

.messages__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.1s;
}

.messages__item:hover,
.messages__item.is-active {
  background: var(--gray-50);
}

.messages__thread {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  overflow-y: auto;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.message-bubble--sent {
  background: var(--accent);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-bubble--received {
  background: var(--gray-100);
  color: var(--gray-800);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Profile avatar upload */
.avatar-upload {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

.avatar-upload__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.avatar-upload:hover .avatar-upload__overlay {
  opacity: 1;
}

/* ==========================================================================
   18. PRICING
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  background: var(--white);
}

.pricing-card--popular {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.pricing-card__price {
  font-size: 48px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-xs);
}

.pricing-card__period {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 14px;
  color: var(--gray-700);
}

.pricing-card__feature-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-card--free {
  border-color: var(--gray-200);
}

.pricing-card--free .pricing-card__feature-icon {
  color: var(--gray-400);
}

/* FAQ Accordion */
.faq {
  max-width: 680px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq__toggle {
  font-size: 20px;
  color: var(--gray-400);
  transition: transform 0.2s var(--ease);
}

.faq__item.is-open .faq__toggle {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding-bottom: var(--space-lg);
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   19. LOGIN / REGISTER
   ========================================================================== */

.auth {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
}

.auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  padding: 48px;
}

.auth__logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth__tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--space-xl);
}

.auth__tab {
  flex: 1;
  padding: var(--space-md) 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-align: center;
}

.auth__tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth__forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: var(--space-sm);
  text-decoration: none;
}

.auth__forgot:hover {
  color: var(--accent);
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--gray-400);
  font-size: 13px;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.auth__social-btn {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.auth__social-btn:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

/* Password strength */
.password-strength {
  height: 3px;
  border-radius: 2px;
  background: var(--gray-200);
  margin-top: var(--space-sm);
  overflow: hidden;
}

.password-strength__bar {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  width: 0;
}

.password-strength__bar--weak {
  width: 33%;
  background: var(--danger);
}

.password-strength__bar--medium {
  width: 66%;
  background: var(--warning);
}

.password-strength__bar--strong {
  width: 100%;
  background: var(--success);
}

/* ==========================================================================
   20. ADMIN
   ========================================================================== */

.admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin__sidebar {
  background: var(--dark);
  padding: var(--space-xl) 0;
}

.admin__sidebar-logo {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-transform: lowercase;
}

.admin__sidebar-logo span {
  color: var(--accent-light);
}

.admin__sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-lg);
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: all 0.15s var(--ease);
}

.admin__sidebar-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.admin__sidebar-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin__main {
  background: var(--gray-50);
  padding: var(--space-xl);
}

.admin__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.admin__stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.admin__stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}

.admin__stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

.admin .table {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin .table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  left: 3px;
  top: 3px;
  transition: transform 0.2s var(--ease);
}

.toggle input:checked + .toggle__slider {
  background: var(--accent);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(20px);
}

/* ==========================================================================
   21. DPE / ENERGY DISPLAY
   ========================================================================== */

.dpe {
  margin: var(--space-xl) 0;
}

.dpe__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-md);
}

.dpe__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dpe__bar {
  display: flex;
  align-items: center;
  height: 28px;
  border-radius: 4px 14px 14px 4px;
  padding: 0 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.3;
  transition: all 0.2s var(--ease);
  position: relative;
}

.dpe__bar.is-active {
  opacity: 1;
  height: 36px;
}

.dpe__bar.is-active::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 10px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.dpe__bar--a {
  width: 25%;
  background: var(--energy-a);
}

.dpe__bar--a.is-active::after {
  border-left-color: var(--energy-a);
}

.dpe__bar--b {
  width: 35%;
  background: var(--energy-b);
}

.dpe__bar--b.is-active::after {
  border-left-color: var(--energy-b);
}

.dpe__bar--c {
  width: 45%;
  background: var(--energy-c);
}

.dpe__bar--c.is-active::after {
  border-left-color: var(--energy-c);
}

.dpe__bar--d {
  width: 55%;
  background: var(--energy-d);
}

.dpe__bar--d.is-active::after {
  border-left-color: var(--energy-d);
}

.dpe__bar--e {
  width: 65%;
  background: var(--energy-e);
}

.dpe__bar--e.is-active::after {
  border-left-color: var(--energy-e);
}

.dpe__bar--f {
  width: 80%;
  background: var(--energy-f);
}

.dpe__bar--f.is-active::after {
  border-left-color: var(--energy-f);
}

.dpe__bar--g {
  width: 100%;
  background: var(--energy-g);
}

.dpe__bar--g.is-active::after {
  border-left-color: var(--energy-g);
}

/* ==========================================================================
   22. TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 320px;
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gray-300);
  animation: slideInRight 0.3s var(--ease);
}

.toast--success {
  border-left-color: var(--success);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--info {
  border-left-color: var(--accent);
}

.toast__icon {
  flex-shrink: 0;
  font-size: 18px;
}

.toast__content {
  flex: 1;
}

.toast__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.toast__message {
  font-size: 13px;
  color: var(--gray-500);
}

.toast__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.1s;
  background: none;
  border: none;
}

.toast__close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.toast.is-leaving {
  animation: fadeOutRight 0.3s var(--ease) forwards;
}

/* ==========================================================================
   23. FOOTER
   ========================================================================== */

.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-3xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  text-transform: lowercase;
  margin-bottom: var(--space-md);
}

.footer__logo span {
  color: var(--accent);
}

.footer__tagline {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.footer__link:hover {
  color: var(--gray-900);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid var(--gray-200);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 13px;
  color: var(--gray-500);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social {
  color: var(--gray-400);
  transition: color 0.15s var(--ease);
  font-size: 20px;
}

.footer__social:hover {
  color: var(--gray-700);
}

/* ==========================================================================
   24. LANGUAGE SWITCHER
   ========================================================================== */

.lang-switcher {
  position: relative;
}

.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  border: none;
  background: none;
  transition: all 0.15s var(--ease);
}

.lang-switcher__current:hover {
  color: var(--black);
  background: var(--gray-100);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 160px;
  z-index: 100;
}

.lang-switcher.is-open .lang-switcher__dropdown {
  display: block;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-switcher__option:hover {
  background: var(--gray-100);
}

/* ==========================================================================
   25. BADGES & TAGS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge--accent {
  background: var(--accent-bg);
  color: var(--accent);
}

.badge--success {
  background: #dcfce7;
  color: var(--success);
}

.badge--warning {
  background: #fef3c7;
  color: var(--warning);
}

.badge--danger {
  background: #fee2e2;
  color: var(--danger);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--gray-100);
  color: var(--gray-700);
}

/* ==========================================================================
   26. EMPTY STATES
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.empty-state__icon {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: var(--space-lg);
}

.empty-state__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.empty-state__description {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 360px;
  margin: 0 auto var(--space-lg);
}

/* ==========================================================================
   27. SKELETON LOADING
   ========================================================================== */

.skeleton {
  background: var(--gray-200);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

.skeleton--text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.skeleton--text:last-child {
  width: 60%;
}

.skeleton--title {
  height: 24px;
  width: 70%;
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.skeleton--circle {
  border-radius: 50%;
}

.skeleton--card {
  border-radius: 16px;
  height: 320px;
}

.skeleton--image {
  aspect-ratio: 4 / 3;
  border-radius: 16px 16px 0 0;
}

/* ==========================================================================
   28. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

/* Reveal animation (for IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   29. UTILITIES
   ========================================================================== */

.hidden {
  display: none !important;
}

.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;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

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

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

/* Gaps */
.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

/* Margins */
.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* Text alignment */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

/* Border radius */
.rounded {
  border-radius: 10px;
}

.rounded-lg {
  border-radius: 16px;
}

.rounded-full {
  border-radius: 999px;
}

/* Shadows */
.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   30. RESPONSIVE
   ========================================================================== */

/* Large tablets */
@media (max-width: 1200px) {
  h1 {
    font-size: 44px;
    line-height: 52px;
  }

  h2 {
    font-size: 34px;
    line-height: 42px;
  }

  .hero__title {
    font-size: 52px;
  }

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

  .city-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .pricing-grid {
    gap: var(--space-md);
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .detail__layout {
    grid-template-columns: 1fr;
  }

  .detail__sidebar {
    position: static;
    order: -1;
  }

  .detail__gallery {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .detail__gallery-side {
    display: none;
  }

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

  .dashboard__sidebar {
    display: none;
  }

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

  .admin__sidebar {
    display: none;
  }

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

  .messages__list {
    display: none;
  }

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

/* Mobile landscape */
@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-5xl: 96px;
  }

  h1 {
    font-size: 36px;
    line-height: 42px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__title {
    font-size: 40px;
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__search-inner {
    flex-direction: column;
    gap: 0;
  }

  .hero__search-field + .hero__search-field::before {
    display: none;
  }

  .hero__search-field {
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }

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

  .hero__search-btn {
    width: 100%;
    margin-top: var(--space-sm);
    border-radius: 10px;
  }

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

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

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

  .pricing-card--popular {
    transform: none;
  }

  .filters__inner {
    flex-wrap: wrap;
  }

  .publish__card {
    padding: var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth__card {
    padding: var(--space-xl);
    border: none;
    border-radius: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  h1 {
    font-size: 30px;
    line-height: 36px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__search {
    border-radius: 12px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-2xl);
  }

  .detail__stat {
    padding: var(--space-md);
  }

  .detail__stat-value {
    font-size: 18px;
  }

  .listing-card__content {
    padding: var(--space-md);
  }

  .listing-card__price {
    font-size: 20px;
  }

  .btn--lg {
    height: 48px;
    font-size: 15px;
  }

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

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
  }

  .toast {
    min-width: auto;
  }
}

/* ==========================================================================
   31. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .nav,
  .footer,
  .btn,
  .filters,
  .search-box,
  .hero__search,
  .toast-container,
  .lightbox,
  .nav__hamburger,
  .nav__mobile-menu {
    display: none !important;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .detail__layout {
    display: block;
  }

  .detail__sidebar {
    border: 1px solid #ccc;
    padding: 10pt;
    margin-top: 20pt;
  }
}

/* ==========================================================================
   Q&A SECTION
   ========================================================================== */

.qa-form { margin-bottom: 24px; }
.qa-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 12px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 60px; }
.qa-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg, #eff6ff); }
.qa-form__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qa-char-count { font-size: 12px; color: var(--gray-400, #aaa); }
.qa-login-prompt { text-align: center; padding: 20px; background: var(--gray-50, #fafafa); border-radius: 12px; margin-bottom: 24px; }
.qa-login-prompt p { margin-bottom: 12px; color: var(--gray-500, #888); }
.qa-item { border-bottom: 1px solid var(--gray-100, #f5f5f5); padding: 16px 0; }
.qa-item:last-child { border-bottom: none; }
.qa-question__header, .qa-answer__header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.qa-question p, .qa-answer p { margin: 0; font-size: 15px; line-height: 1.6; }
.qa-answer { margin-top: 12px; padding-left: 20px; border-left: 3px solid var(--accent, #2563eb); }
.qa-answer__header i { color: var(--accent, #2563eb); }
.qa-pending { margin-top: 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.qa-pending i { color: var(--gray-400, #aaa); }

/* ==========================================================================
   WATERMARK OVERLAY - foncier365.com
   ========================================================================== */

.listing-card__image::after {
  content: "foncier365.com";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.02em;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.detail__gallery-main::after,
.detail__gallery-side-item::after {
  content: "foncier365.com";
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.02em;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
