/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --cream: #F9F5EE;
  --cream-2: #F1EBE0;
  --orange: #D95F2B;
  --orange-2: #F07040;
  --green: #1E3A2F;
  --green-2: #2D5443;
  --gold: #C9933A;
  --gold-light: #F5E6C8;
  --text: #1A1612;
  --text-2: #5C5248;
  --text-3: #9C9088;
  --white: #FFFFFF;
  --card: #FFFCF8;
  --border: #E8E0D4;
  --shadow-sm: 0 2px 8px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 22, 18, 0.10);
  --shadow-lg: 0 20px 60px rgba(26, 22, 18, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: var(--font-body);
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream-2);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-pg {
  background: #FEF3C7;
  color: #92400E;
}

.badge-room {
  background: #D1FAE5;
  color: #065F46;
}

.badge-flat {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-roommate {
  background: #FCE7F3;
  color: #9D174D;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.empty-state-sub {
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 245, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo svg {
  width: 20px;
  height: 20px;
  fill: var(--cream);
}

.navbar-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.navbar-name span {
  color: var(--orange);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--cream-2);
  color: var(--text);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-post {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-post:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 95, 43, 0.3);
}

.btn-login {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--green);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--green);
  color: var(--white);
}

.nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-user-avatar:hover {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════
   PAGE: HOME — HERO
═══════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 147, 58, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(30, 58, 47, 0.07) 0%, transparent 70%),
    var(--cream);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  text-align: center;
  max-width: 900px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title em {
  color: var(--orange);
  font-style: italic;
}

.hero-title .line2 {
  color: var(--green);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  text-align: center;
  max-width: 520px;
  margin-bottom: 48px;
  animation: fadeUp 0.7s 0.2s ease both;
  font-weight: 300;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Search Box */
.search-box {
  width: 100%;
  max-width: 780px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: fadeUp 0.7s 0.3s ease both;
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}

.search-tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.search-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.search-tab:hover {
  color: var(--text-2);
}

.search-inputs {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 0;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.search-field:last-of-type {
  border-right: none;
}

.search-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.search-field input,
.search-field select {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  width: 100%;
}

.search-field select {
  cursor: pointer;
}

.search-field input::placeholder {
  color: var(--text-3);
  font-weight: 400;
}

.search-btn {
  flex-shrink: 0;
  margin-left: 16px;
  width: 52px;
  height: 52px;
  background: var(--orange);
  color: var(--white);
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  background: var(--orange-2);
  transform: scale(1.05);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeUp 0.7s 0.4s ease both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   HOME — FEATURED CITIES
═══════════════════════════════════════════ */
.section {
  padding: 80px 0;
}

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

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: gap 0.2s;
}

.section-link:hover {
  gap: 10px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.city-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--green-2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.city-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.city-card:first-child {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: auto;
}

.city-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 40%, transparent 100%);
}

.city-thumb-img {
  position: absolute;
  inset: 0;
  font-size: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
}

.city-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.city-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   LISTING CARDS
═══════════════════════════════════════════ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.listing-img {
  width: 100%;
  height: 200px;
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

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

.listing-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26, 22, 18, 0.5) 100%);
}

.listing-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.listing-save:hover {
  background: var(--white);
  transform: scale(1.1);
}

.listing-save.saved {
  background: #fee2e2;
}

.listing-save.saved svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.listing-save svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 2;
}

.listing-body {
  padding: 18px;
}

.listing-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.listing-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-2);
  gap: 4px;
}

.listing-rating {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
}

.listing-locality {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.listing-locality svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.listing-rent {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.listing-rent span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--font-body);
}

.listing-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--cream-2);
  color: var(--text-2);
  font-weight: 500;
}

.listing-owner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.owner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.owner-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════
   HOW IT WORKS SECTION
═══════════════════════════════════════════ */
.how-section {
  background: var(--green);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(201, 147, 58, 0.1);
}

.how-section .section-label {
  color: var(--gold);
}

.how-section .section-title {
  color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
}

.step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PAGE: BROWSE
═══════════════════════════════════════════ */

/* ── Prominent City / Locality Search Bar ── */
.browse-search-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  position: relative;
}

.browse-search-inner {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 8px 8px 8px 20px;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.browse-search-inner:focus-within {
  border-color: var(--orange);
  box-shadow: 0 6px 20px rgba(217, 95, 43, 0.15);
}

.browse-search-icon {
  flex-shrink: 0;
  color: var(--text-3);
}

.browse-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.browse-search-input::placeholder {
  color: var(--text-3);
}

.browse-search-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.browse-search-btn:hover {
  background: var(--orange-2);
}

/* ── Suggestion Dropdown ── */
.browse-suggestions {
  position: absolute;
  top: 100%;
  left: 24px;
  right: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.browse-suggestions.open {
  display: block;
}

.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: var(--cream);
}

.suggestion-item .suggestion-area {
  font-weight: 600;
  color: var(--text);
}

.suggestion-item .suggestion-city {
  color: var(--text-3);
  font-size: 12px;
}

.suggestion-item .suggestion-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
  min-width: 0;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-clear {
  font-size: 12px;
  color: var(--orange);
  cursor: pointer;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
}

.filter-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-chip.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.range-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.range-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
}

.range-input:focus {
  border-color: var(--orange);
}

.range-sep {
  color: var(--text-3);
  font-size: 13px;
}

.filter-apply-btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  margin-top: 8px;
}

.filter-apply-btn:hover {
  background: var(--orange-2);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 14px;
  color: var(--text-2);
}

.results-count strong {
  color: var(--text);
  font-weight: 700;
}

.sort-select {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ═══════════════════════════════════════════
   PAGE: LISTING DETAIL
═══════════════════════════════════════════ */
.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.detail-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.detail-back:hover {
  color: var(--orange);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.detail-photos {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
}

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

.photo-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, backdrop-filter 0.2s;
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-btn.prev-btn {
  left: 16px;
}

.slider-btn.next-btn {
  right: 16px;
}

.detail-photos-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.detail-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  overflow: hidden;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.detail-thumb:hover {
  opacity: 1;
}

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

.detail-type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.detail-location svg {
  width: 16px;
  height: 16px;
}

.detail-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.amenity-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 28px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.spec-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
}

.spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Contact Card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 84px;
}

.contact-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.contact-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--font-body);
}

.contact-deposit {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.contact-owner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  margin-bottom: 20px;
}

.contact-owner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

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

.contact-owner-name {
  font-size: 15px;
  font-weight: 600;
}

.contact-owner-tag {
  font-size: 12px;
  color: var(--text-3);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  margin-bottom: 10px;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 95, 43, 0.3);
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--green);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.contact-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
}

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

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

.contact-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}

.contact-stat-label {
  font-size: 11px;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════
   PAGE: POST LISTING
═══════════════════════════════════════════ */
.post-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}

.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-subtitle {
  color: var(--text-2);
  font-size: 15px;
}

.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(217, 95, 43, 0.1);
}

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

.type-selector {
  display: flex;
  gap: 12px;
}

.type-option {
  flex: 1;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.type-option:hover {
  border-color: var(--orange);
}

.type-option.selected {
  border-color: var(--orange);
  background: rgba(217, 95, 43, 0.05);
}

.type-option-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.type-option-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.type-option.selected .type-option-name {
  color: var(--orange);
}

.amenities-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-pick {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-2);
}

.amenity-pick:hover {
  border-color: var(--green);
  color: var(--green);
}

.amenity-pick.selected {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.photo-upload-area:hover {
  border-color: var(--orange);
  background: rgba(217, 95, 43, 0.02);
}

.photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.upload-text {
  font-size: 14px;
  color: var(--text-2);
}

.upload-text strong {
  color: var(--orange);
}

.upload-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.photo-preview-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  margin-top: 8px;
}

.submit-btn:hover {
  background: var(--green-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 58, 47, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════
   PAGE: MESSAGES
═══════════════════════════════════════════ */
.messages-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - 64px);
  max-width: 100%;
  overflow: hidden;
}

.inbox-panel {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--card);
}

.inbox-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.inbox-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.inbox-search {
  position: relative;
}

.inbox-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--cream);
  transition: border-color 0.2s;
}

.inbox-search input:focus {
  border-color: var(--orange);
}

.inbox-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conv-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}

.conv-item:hover {
  background: var(--cream);
}

.conv-item.active {
  background: rgba(217, 95, 43, 0.06);
  border-right: 3px solid var(--orange);
}

.conv-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

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

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

.conv-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.conv-preview {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-meta {
  text-align: right;
  flex-shrink: 0;
}

.conv-time {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 5px;
}

.conv-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

/* Chat Area */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-back-btn {
  display: none;
}

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}

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

.chat-header-name {
  font-size: 15px;
  font-weight: 600;
}

.chat-header-status {
  font-size: 12px;
  color: #22c55e;
}

.chat-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--cream-2);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
  min-height: 0;
}

.msg-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 70%;
}

.msg-bubble.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-content {
  background: var(--white);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.msg-bubble.mine .msg-content {
  background: var(--green);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
}

.msg-bubble.mine.pending .msg-content {
  background: var(--text-3);
  opacity: 0.85;
}

.msg-bubble.mine.pending .msg-time::after {
  content: ' · Sending';
  opacity: 0.9;
}

.msg-text {
  font-size: 14px;
  line-height: 1.5;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.msg-time {
  font-size: 10px;
  color: var(--text-3);
}

.msg-bubble.mine .msg-meta {
  justify-content: flex-end;
}

.msg-bubble.mine .msg-time {
  color: rgba(255, 255, 255, 0.6);
}

.msg-read-status {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.msg-bubble:not(.mine) .msg-read-status {
  color: var(--text-3);
}

.msg-bubble.msg-enter {
  animation: msgEnter 0.2s ease-out;
}

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

.msg-date-separator {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  position: relative;
  margin: 8px 0;
}

.msg-date-separator::before,
.msg-date-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}

.msg-date-separator::before {
  left: 0;
}

.msg-date-separator::after {
  right: 0;
}

.chat-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.chat-input-wrap {
  flex: 1;
  position: relative;
}

.chat-input {
  width: 100%;
  padding: 13px 48px 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  background: var(--cream);
  resize: none;
  max-height: 120px;
  transition: border-color 0.2s;
  font-family: var(--font-body);
  line-height: 1.5;
}

.chat-input:focus {
  border-color: var(--orange);
  outline: none;
}

.chat-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-send:hover {
  background: var(--orange-2);
  transform: scale(1.05);
}

.chat-send svg {
  width: 18px;
  height: 18px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: var(--cream);
}

.chat-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.chat-empty-text {
  font-size: 16px;
  font-weight: 500;
}

.chat-empty-sub {
  font-size: 13px;
  margin-top: 6px;
}

.listing-snippet {
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.listing-snippet-thumb {
  font-size: 24px;
  flex: 0 0 80px;
  max-width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-snippet-thumb img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.listing-snippet-title {
  font-size: 13px;
  font-weight: 600;
}

.listing-snippet-price {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }
}

/* ═══════════════════════════════════════════
   PAGE: ONBOARDING
═══════════════════════════════════════════ */
.onboarding-page {
  max-width: 500px;
  margin: 60px auto;
  padding: 0 24px;
}

.onboarding-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.onboarding-sub {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PAGE: PROFILE
═══════════════════════════════════════════ */
.profile-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.profile-avatar-big {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  flex-shrink: 0;
  border: 4px solid var(--cream-2);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

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

.profile-avatar-big .avatar-change {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 20px;
  border-radius: 50%;
}

.profile-avatar-big:hover .avatar-change {
  opacity: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-info {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-edit {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit:hover {
  background: var(--cream-2);
}

.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.profile-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.profile-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.profile-tab:hover {
  color: var(--text-2);
}

.edit-profile-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ═══════════════════════════════════════════
   AUTH MODAL
═══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 22, 18, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-2);
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--border);
}

.modal-logo {
  text-align: center;
  margin-bottom: 28px;
}

.modal-logo .navbar-name {
  font-size: 28px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  font-family: var(--font-display);
}

.modal-sub {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.phone-input-group {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  overflow: hidden;
  transition: border-color 0.2s;
}

.phone-input-group:focus-within {
  border-color: var(--orange);
}

.country-select {
  background: var(--cream-2);
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.auth-input-phone {
  flex: 1;
  padding: 13px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.auth-input {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--orange);
  outline: none;
}

.auth-btn {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.auth-btn:hover {
  background: var(--orange-2);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.google-btn {
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.google-btn:hover {
  background: var(--cream);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 8px;
}

.auth-switch a {
  color: var(--orange);
  font-weight: 600;
  cursor: pointer;
}

.auth-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

#recaptcha-container {
  margin: 10px 0;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--green);
  padding: 60px 0 32px;
  margin-top: 80px;
}

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

.footer-brand .navbar-name {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

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

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

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

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #166534;
}

.toast.error {
  background: #dc2626;
}

/* ── Toggle Switch (iOS-style) ── */
.share-contact-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
  background-color: var(--orange);
}

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

.toggle-label {
  font-size: 14px;
  color: var(--text-2);
}

/* ── Owner Contact Row (detail page) ── */
.owner-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 8px 0;
}

.owner-contact-icon {
  font-size: 20px;
}

.owner-contact-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.owner-contact-number:hover {
  color: var(--orange);
}

/* ═══════════════════════════════════════════
   STATIC PAGES (About, Blog, Careers, etc.)
═══════════════════════════════════════════ */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.static-page-back {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.static-page-back:hover {
  opacity: 0.7;
}

.static-page-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 32px;
}

.static-page-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.static-page-content h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin: 32px 0 12px;
}

.static-page-content ul {
  padding-left: 24px;
  margin: 12px 0;
}

.static-page-content li {
  margin-bottom: 8px;
}

.static-page-content p {
  margin-bottom: 16px;
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

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

.blog-card-emoji {
  font-size: 32px;
  margin-bottom: 12px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── Careers ── */
.career-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.career-role {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
}

.career-meta {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  margin: 4px 0 8px;
}

.career-card p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.contact-sub {
  font-size: 12px !important;
  color: var(--text-3) !important;
  margin-top: 4px !important;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

/* ── Legal ── */
.legal-content h2 {
  font-size: 18px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 24px;
}

/* ── Cookie Table ── */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.cookie-table th,
.cookie-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.cookie-table th {
  background: var(--cream);
  font-weight: 700;
  color: var(--green);
}

.cookie-table td {
  color: var(--text-2);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }

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

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

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

  .city-card:first-child {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAVBAR ── */
  .navbar {
    padding: 0 16px;
    height: 56px;
  }

  .navbar-name {
    font-size: 18px;
  }

  .navbar-nav {
    display: none;
  }

  /* hide desktop nav links */
  .navbar-actions {
    gap: 6px;
  }

  .btn-post {
    padding: 7px 14px;
    font-size: 13px;
  }

  .btn-login {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* ── MOBILE NAV (hamburger) ── */
  .mobile-menu-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--cream-2);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 18px;
  }

  .mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(26, 22, 18, 0.5);
    backdrop-filter: blur(4px);
    display: none;
  }

  .mobile-nav-drawer.open {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-panel {
    background: var(--white);
    width: 78%;
    max-width: 300px;
    min-height: 100svh;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-2);
    cursor: pointer;
    margin-bottom: 16px;
  }

  .mobile-nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
    background: none;
    border: none;
    text-align: left;
  }

  .mobile-nav-link:hover {
    background: var(--cream-2);
  }

  .mobile-nav-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-nav-actions .btn-post,
  .mobile-nav-actions .btn-login {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  /* ── HERO ── */
  .hero {
    padding: 48px 16px 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 56px);
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
  }

  .hero-stat-num {
    font-size: 24px;
  }

  /* ── SEARCH BOX (stack inputs vertically) ── */
  .search-box {
    border-radius: var(--radius);
  }

  .search-tabs {
    padding: 0 4px;
    overflow-x: auto;
  }

  .search-tab {
    padding: 12px 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .search-inputs {
    flex-direction: column;
    padding: 12px 16px;
    gap: 12px;
  }

  .search-field {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 0 0 12px 0 !important;
  }

  .search-field:last-of-type {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  .search-field input,
  .search-field select {
    font-size: 15px;
  }

  .search-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-sm);
    margin-left: 0;
  }

  /* ── SECTIONS ── */
  .section {
    padding: 48px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .container {
    padding: 0 16px;
  }

  /* ── CITIES GRID ── */
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .city-card:first-child {
    grid-column: span 2;
  }

  /* ── LISTING CARDS ── */
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── HOW IT WORKS ── */
  .how-section {
    padding: 48px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .steps-grid::before {
    display: none;
  }

  /* ── BROWSE PAGE ── */
  .browse-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }

  .filter-sidebar {
    position: static;
  }

  /* ── DETAIL PAGE ── */
  .detail-page {
    padding: 20px 16px;
  }

  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .detail-layout > div {
    display: contents; /* Allows children from different columns to be interleaved via order */
  }

  #detail-main-photo { order: 1; }
  #detail-photos-row { order: 2; margin-top: -10px !important; }
  .contact-card { 
    order: 3; 
    position: static; 
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  }
  .detail-layout > div:first-child > div:last-child { 
    order: 4; 
    margin-top: 5px !important;
  }

  .detail-title {
    font-size: clamp(22px, 5vw, 32px);
  }

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

  .contact-price {
    font-size: 32px;
  }

  /* ── MESSAGES PAGE ── */
  .messages-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    overflow: hidden;
  }

  /* Inbox takes full width & height; hidden if chat-active */
  .inbox-panel {
    border-right: none;
    border-bottom: none;
    flex: 1;
    width: 100%;
    display: flex;
  }

  .messages-layout.chat-active .inbox-panel {
    display: none;
  }

  /* Chat is hidden by default; takes full width & height if chat-active */
  .chat-panel {
    display: none;
    flex: 1;
    width: 100%;
    flex-direction: column;
  }

  .messages-layout.chat-active .chat-panel {
    display: flex;
  }

  .chat-back-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    margin-right: 12px;
  }

  .chat-back-btn svg {
    width: 24px;
    height: 24px;
  }

  .chat-messages {
    padding: 12px;
  }

  .msg-bubble {
    max-width: 90%;
    padding: 10px 14px;
    font-size: 14px;
  }

  .conv-item {
    padding: 12px 16px;
  }

  .conv-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* ── LISTING POST MOBILE SIZES ── */
  .listing-card {
    border-radius: 12px;
  }

  .listing-img {
    height: 180px;
    /* smaller img */
  }

  .listing-body {
    padding: 14px;
  }

  .listing-title {
    font-size: 16px;
  }

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

  .listing-tags .tag {
    padding: 4px 8px;
    font-size: 11px;
  }

  .owner-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .owner-name {
    font-size: 13px;
  }

  /* ── BROWSE FILTER & SEARCH UI ── */
  .filter-chips {
    gap: 8px;
    flex-wrap: wrap;
  }

  .filter-chip {
    padding: 8px 14px;
    font-size: 12px;
  }

  .range-inputs {
    gap: 8px;
  }

  /* Hide sidebar on mobile by default */
  .filter-sidebar {
    display: none;
    margin-bottom: 20px;
  }

  .filter-sidebar.show-filters {
    display: block;
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    background: var(--cream-2);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
  }

  .mobile-filter-apply-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
  }

  .results-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .results-header-right {
    flex: 1;
    min-width: 100%;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .browse-search-inner {
    flex: 1;
    min-width: unset;
  }

  .sort-select {
    min-width: 120px;
  }

  .post-page {
    padding: 32px 16px;
  }

  .post-title {
    font-size: 28px;
  }

  .form-section {
    padding: 20px;
  }

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

  .form-group.full {
    grid-column: span 1;
  }

  .type-selector {
    flex-wrap: wrap;
  }

  .type-option {
    flex: 1 1 45%;
    min-width: 120px;
  }

  /* ── PROFILE PAGE ── */
  .profile-page {
    padding: 32px 16px;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .profile-actions {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .profile-info {
    justify-content: center;
  }

  .profile-name {
    font-size: 24px;
  }

  /* ── STATIC PAGES ── */
  .static-page-title {
    font-size: 26px;
  }

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

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

  /* ── FOOTER ── */
  .footer {
    padding: 40px 0 24px;
    margin-top: 48px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  /* ── AUTH MODAL ── */
  .modal {
    padding: 28px 20px;
    margin: 16px;
    max-width: calc(100vw - 32px);
  }

  /* ── EDIT PROFILE MODAL ── */
  #edit-profile-modal .modal {
    padding: 24px 16px;
  }
}

/* ── hide mobile elements on all screens by default ── */
.mobile-menu-btn,
.mobile-filter-btn,
.mobile-filter-apply-btn {
  display: none;
}

.mobile-nav-drawer {
  display: none;
}

.mobile-nav-drawer.open {
  display: flex;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — LAPTOP / SMALL DESKTOP (≤ 1024px)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .steps-grid::before {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    background: var(--cream-2);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
  }

  .mobile-filter-apply-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
  }

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

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

  .type-option {
    flex: 1 1 100%;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-actions button {
    width: 100%;
  }

  .search-tabs {
    gap: 0;
  }

  .search-tab {
    padding: 10px 10px;
    font-size: 11px;
  }

  .range-inputs {
    flex-direction: column;
  }

  .range-sep {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .cities-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-stats {
    gap: 12px;
  }

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

  .results-header-right {
    flex-direction: column;
    align-items: stretch !important;
  }

  .browse-search-inner {
    min-width: 100% !important;
  }

  .sort-select {
    width: 100% !important;
  }

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

  .type-option {
    flex: 1 1 100%;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-actions button {
    width: 100%;
  }

  .search-tabs {
    gap: 0;
  }

  .search-tab {
    padding: 10px 10px;
    font-size: 11px;
  }

  .range-inputs {
    flex-direction: column;
  }

  .range-sep {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   REVIEWS & RATINGS
═══════════════════════════════════════════ */
.reviews-section {
  margin-top: 56px;
  padding: 40px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.review-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  background: var(--cream-2);
  padding: 6px 14px;
  border-radius: 20px;
}

.write-review-box {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.write-review-box:focus-within {
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.write-review-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.star-rating-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.star-select {
  font-size: 32px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.star-select:hover, .star-select.active {
  color: #F59E0B;
  transform: scale(1.1);
}

.review-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  resize: vertical;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.review-textarea:focus {
  background: var(--white);
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 95, 43, 0.1);
}

.review-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
}

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

.review-author {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.review-date {
  font-size: 13px;
  color: var(--text-3);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.review-stars .star {
  color: #F59E0B !important;
  font-size: 16px;
}

.review-stars .star.empty {
  color: var(--border) !important;
}

.review-content {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  margin-top: 8px;
  padding-left: 0;
}

@media (max-width: 768px) {
  .write-review-box {
    padding: 24px;
  }
}

/* EOF */