@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* Brand Colors */
  --primary: #2C3E2D;
  --primary-dark: #1E2A1E;
  --primary-light: #3D553E;
  --primary-glow: rgba(44, 62, 45, 0.15);

  /* Neutral Colors */
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --bg-3: #F0F0F0;
  --bg-4: #E5E5E5;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);

  /* Text */
  --text: #121212;
  --text-2: #4A4A4A;
  --text-3: #6E6E6E;
  --text-4: #8A8A8A;

  /* Semantic Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #2C3E2D 0%, #1E2A1E 100%);
  --grad-hero: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 50%, #E5E5E5 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
  --grad-card: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.75) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.05);
  --shadow-primary: none;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar height */
  --navbar-h: 100px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.display-1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
}

.display-2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

.heading-1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.heading-2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--text-2);
}

.text-faint {
  color: var(--text-3);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 15, 19, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
}

.nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-6);
}

.nav-search-pill {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--transition);
  max-width: 420px;
  width: 100%;
}

.nav-search-pill:active {
  border-color: var(--border-hover);
  background: var(--bg-4);
  box-shadow: var(--shadow-md);
}

.nav-search-pill span {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-btn {
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.875rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-search-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-3);
  color: var(--text);
}

.btn-nav-primary {
  background: var(--grad-primary);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-primary);
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(255, 56, 92, 0.45);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: transform var(--transition);
}

.nav-avatar:hover {
  transform: scale(1.08);
}

.nav-user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: all var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--bg-4);
  color: var(--text);
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-1) 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 56, 92, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--bg-3);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* =============================================
   FORMS & INPUTS
   ============================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-control {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-control::placeholder {
  color: var(--text-3);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-4);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e6e85' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Listing Card */
.listing-card {
  cursor: pointer;
  position: relative;
}

.listing-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.06);
}

.listing-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--transition);
}

.listing-card:hover .listing-card-img::after {
  opacity: 1;
}

.listing-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.listing-card-fav {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  z-index: 1;
  transition: all var(--transition);
}

.listing-card-fav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.listing-card-fav.active {
  color: var(--primary);
  background: white;
}

.listing-card-body {
  padding: var(--space-3) var(--space-1) var(--space-2);
}

.listing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.listing-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.listing-card-rating svg {
  color: var(--warning);
}

.listing-card-location {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: var(--space-2);
}

.listing-card-price {
  font-size: 0.95rem;
  color: var(--text);
}

.listing-card-price strong {
  font-weight: 700;
  font-size: 1rem;
}

/* Glass Card */
.glass-card {
  background: var(--grad-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* =============================================
   SEARCH BAR (Hero)
   ============================================= */
.search-bar {
  display: flex;
  align-items: stretch;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-lg);
}

.search-field {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-6);
  flex: 1;
  min-width: 0;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.search-field:hover {
  background: var(--bg-4);
}

.search-field:last-of-type {
  border-right: none;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 2px;
}

.search-field input,
.search-field span {
  font-size: 0.9rem;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  padding: 0;
  width: 100%;
}

.search-field span {
  color: var(--text-3);
}

.search-submit {
  background: var(--grad-primary);
  border: none;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: var(--space-3);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.search-submit:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* =============================================
   CATEGORIES CAROUSEL
   ============================================= */
.categories-bar {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  overflow-x: auto;
  padding: var(--space-4) 0;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  min-width: 100px;
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--primary);
  background: var(--bg-3);
  transform: translateY(-2px);
}

.category-chip.active .category-chip-icon {
  color: var(--primary);
}

.category-chip-icon {
  font-size: 1.4rem;
  transition: transform var(--transition);
}

.category-chip:hover .category-chip-icon {
  transform: scale(1.15);
}

.category-chip-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* =============================================
   GRID LAYOUTS
   ============================================= */
.container {
  max-width: 96%;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.grid-listings-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}

.hero-bg-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.hero-bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FF385C, transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent);
  bottom: -50px;
  right: -50px;
  animation-delay: 4s;
}

.hero-bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 40%;
  left: 60%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  max-width: 900px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 56, 92, 0.15);
  border: 1px solid rgba(255, 56, 92, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.6s ease forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-2);
  margin-bottom: var(--space-10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-search-wrap {
  animation: fadeInUp 0.7s ease 0.3s both;
  max-width: 760px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-12);
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: var(--space-2);
}

/* =============================================
   BADGES & CHIPS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg-3);
  color: var(--text-2);
}

.badge-primary {
  background: var(--primary-glow);
  color: var(--primary-light);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-3);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =============================================
   FILTER SIDEBAR
   ============================================= */
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--navbar-h) + var(--space-5));
  height: fit-content;
}

.filter-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text);
}

/* Price Range */
.price-range-track {
  position: relative;
  height: 4px;
  background: var(--bg-4);
  border-radius: var(--radius-full);
  margin: var(--space-6) 0;
}

.price-range-fill {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}

input[type="range"] {
  -webkit-appearance: none;
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  top: 0;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-1) 0;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-hover);
  background: var(--bg-3);
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-2);
  flex: 1;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-4);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* =============================================
   TABS
   ============================================= */
.tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-3);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.tab-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text-2);
}

/* =============================================
   STAR RATING
   ============================================= */
.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  color: var(--text-4);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.star.filled,
.star.hovered {
  color: var(--warning);
}

.star:hover {
  transform: scale(1.2);
}

/* =============================================
   IMAGE GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: var(--space-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.gallery-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-main:hover img,
.gallery-thumb:hover img {
  transform: scale(1.04);
}

.gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
}

/* =============================================
   BOOKING WIDGET
   ============================================= */
.booking-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--navbar-h) + var(--space-5));
}

.booking-price {
  font-family: var(--font-display);
  margin-bottom: var(--space-6);
}

.booking-price .amount {
  font-size: 1.75rem;
  font-weight: 800;
}

.booking-price .per-night {
  font-size: 0.9rem;
  color: var(--text-3);
  font-weight: 400;
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.date-input-field {
  padding: var(--space-3) var(--space-4);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.date-input-field:last-child {
  border-right: none;
}

.date-input-field:hover {
  background: var(--bg-3);
}

.date-input-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.date-input-field input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
}

.booking-price-breakdown {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.price-row.total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
}

/* =============================================
   AMENITIES GRID
   ============================================= */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-2);
}

.amenity-item-icon {
  font-size: 1.2rem;
}

/* =============================================
   REVIEW CARD
   ============================================= */
.review-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border);
}

.review-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.review-guest-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-3);
}

.review-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* =============================================
   DASHBOARD TABLE
   ============================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-3);
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: slideInRight 0.3s ease forwards;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--info);
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text);
  flex: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =============================================
   SKELETON LOADER
   ============================================= */
.skeleton {
  background: linear-gradient(90deg,
      var(--bg-3) 25%,
      var(--bg-4) 50%,
      var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.skeleton-line-sm {
  height: 10px;
  width: 60%;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-6);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-5);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.empty-state-text {
  color: var(--text-3);
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto var(--space-6);
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-10);
  background: var(--bg);
}

.auth-form-box {
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* =============================================
   MISC UTILITIES
   ============================================= */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.hidden {
  display: none !important;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-4);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Stagger children */
.stagger>* {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger>*:nth-child(2) {
  animation-delay: 0.10s;
}

.stagger>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger>*:nth-child(4) {
  animation-delay: 0.20s;
}

.stagger>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger>*:nth-child(6) {
  animation-delay: 0.30s;
}

.stagger>*:nth-child(n+7) {
  animation-delay: 0.35s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }

  .gallery-main {
    grid-column: 1 / 3;
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-h: 60px;
  }

  .nav-search {
    display: none;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-side {
    padding: var(--space-8) var(--space-5);
  }

  .form-control {
    font-size: 16px; /* Prevent iOS zoom */
  }
}

/* =============================================
   LIGHTBOX CAROUSEL
   ============================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: var(--space-6);
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-xl);
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .search-submit {
    margin: var(--space-2);
    border-radius: var(--radius-lg);
  }

  .grid-listings {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
  }

  .gallery-main {
    grid-column: 1;
    grid-row: 1;
  }

  .gallery-thumb {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .grid-listings {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}/* Saved Stays Heart Button */
.save-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}
.save-heart-btn:hover {
  transform: scale(1.15);
}
.save-heart-btn:active {
  transform: scale(0.95);
}
.save-heart-btn svg {
  width: 24px;
  height: 24px;
  fill: rgba(0, 0, 0, 0.5);
  stroke: white;
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.save-heart-btn.active svg {
  fill: #ff385c;
  stroke: #ff385c;
}
.card-image-wrap {
  position: relative;
}
/* Hero Text Fading */
.fade-text {
  transition: opacity 0.25s ease-in-out;
}
.fade-text.hidden {
  opacity: 0;
}
