:root {
  /* Brand Colors - Monochrome (Black & Grey) */
  --brand-primary: #000000;
  /* Pure black - primary branding */
  --brand-primary-hover: #1A1A1A;
  /* Dark grey on hover */
  --brand-primary-light: #F3F4F6;
  /* Light grey for subtle backgrounds */
  --brand-primary-lighter: #F9FAFB;
  /* Extremely light grey */

  /* Background Colors - White & Light Grey */
  --bg-primary: #FFFFFF;
  /* Pure white - main background */
  --bg-secondary: #F9FAFB;
  /* Very light grey - cards */
  --bg-tertiary: #F3F4F6;
  /* Light grey - elevated surfaces */
  --bg-overlay: rgba(0, 0, 0, 0.5);
  /* Dark overlay for modals */

  /* Text Colors - Black & Grey */
  --text-primary: #000000;
  /* Black - main text */
  --text-secondary: #6B7280;
  /* Grey - secondary text, logo typing */
  --text-tertiary: #9CA3AF;
  /* Light grey - muted text */
  --text-inverse: #FFFFFF;
  /* White text on dark backgrounds */

  /* Border Colors - Light Grey */
  --border-subtle: #F3F4F6;
  --border-medium: #E5E7EB;
  --border-strong: #D1D5DB;

  /* Interactive States */
  --interactive-hover: #F4F5F2;
  /* Very light sage on hover */
  --interactive-active: #E8EAE5;
  /* Light sage when active */
  --interactive-disabled: #E5E7EB;
  /* Grey for disabled */

  /* Shadows - Clean & Subtle */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Badge Colors */
  --badge-company: #000000;
  --badge-standard: #1D9BF0;
  --badge-partner: #FFD700;
  --badge-partner: #FFD700;
}

.desktop-hide {
  display: flex !important;
}

@media (min-width: 769px) {
  .desktop-hide {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Clean card styles */
.glass {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.glass-dark {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
}

/* Clean header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 48px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Logo - Black with grey typing text */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  min-width: 250px;
  position: relative;
}

#logo-typing {
  color: var(--text-dark);
  margin-left: 8px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.7;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hamburger-btn {
  display: none;
}

.mobile-filter-btn {
  display: none;
}

.mobile-sidebar {
  display: none;
}

/* Glass Nav Icons */
.nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Clean nav items - grey icons, turquoise on hover */
.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-medium);
  gap: 0;
  max-width: 50px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Hover effects only for devices with hover capability */
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover {
    background: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    max-width: 200px;
    padding: 8px 20px;
    gap: 10px;
    border-color: var(--brand-primary);
  }
}

/* Active state for touch devices */
.nav-item:active {
  background: var(--brand-primary-light);
  transform: scale(0.98);
}

.nav-item.active {
  background: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  box-shadow: var(--shadow-md);
  max-width: 200px;
  padding: 8px 20px;
  gap: 10px;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--brand-primary);
  transition: fill 0.3s ease;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover .nav-icon svg {
    fill: #FFFFFF;
  }
}

.nav-item.active .nav-icon svg {
  fill: #FFFFFF;
}

.nav-item span {
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 700;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover span,
.nav-item.active span {
  color: #FFFFFF;
  opacity: 1;
  max-width: 120px;
}

/* Badge - turquoise */
.new-badge {
  position: absolute;
  top: 4px;
  right: 16px;
  background: var(--brand-primary);
  color: white;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right a {
  background: var(--brand-primary);
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  border: none;
}

.nav-right a:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: var(--interactive-hover);
  transform: scale(1.05);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

.icon-btn:hover svg {
  fill: var(--brand-primary);
}

/* Settings Popup */
.settings-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.settings-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.popup-icon {
  width: 32px;
  height: 32px;
  fill: var(--brand-primary);
  opacity: 0.8;
}

.popup-content p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.popup-signup-btn {
  display: inline-block;
  background: var(--brand-primary);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 24px;
  transition: all 0.3s ease;
  width: 100%;
}

.popup-signup-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.popup-arrow {
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--border-medium);
  border-top: 1px solid var(--border-medium);
  transform: rotate(45deg);
}

/* User Profile Header UI */
.user-profile-wrapper {
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-left: 1px solid var(--border-medium);
  margin-left: 8px;
}

.user-profile-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  min-width: 44px;
  min-height: 44px;
}

.user-profile-nav:hover {
  background: var(--bg-primary);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.user-profile-nav:has(.user-name) {
  padding-right: 16px;
  gap: 10px;
  border-radius: 40px;
}

.avatar-container {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border-medium);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-presence {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Categories Bar - Standardized centered design */
.categories-bar-wrapper {
  position: sticky;
  top: 80px;
  z-index: 50;
  background: var(--bg-primary);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
}

.categories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  /* Balanced spacing between items */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  min-width: fit-content;
  opacity: 0.4;
  transition: all 0.3s ease;
  position: relative;
}

.category-item svg {
  width: 24px;
  height: 24px;
  fill: #717171;
  /* Neutral grey for inactive */
  transition: all 0.3s ease;
}

.category-item span {
  font-size: 12px;
  font-weight: 700;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.category-item:hover {
  opacity: 0.7;
}

.category-item.active {
  opacity: 1;
}

.category-item.active svg {
  fill: #000000;
}

.category-item.active span {
  color: #000000;
}

/* Active Line Indicator */
.category-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  /* Align exactly with bottom border */
  left: 0;
  width: 100%;
  height: 2px;
  background: #000000;
}

/* Multi-functional Search Bar */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.search-category-pill {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  padding: 4px 30px 4px 20px;
  height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-category-pill:hover {
  background: var(--interactive-hover);
  border-color: var(--brand-primary);
}

.search-type-select {
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  min-width: 60px;
}

.pill-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
}

.pill-arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
  opacity: 0.6;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  padding: 4px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.search-field {
  padding: 4px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  min-width: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 40px;
}

/* Exclusive Flight Search Bar (Sub-header) */
.flight-search-row {
  display: flex;
  justify-content: center;
  padding: 12px 48px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-medium);
  animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flight-search-grid {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 60px;
  gap: 0;
  max-width: 1000px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.flight-search-grid:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.flight-segment {
  padding: 4px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flight-segment label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.segment-input {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.segment-input svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-primary);
  opacity: 0.6;
}

.segment-input input,
.segment-input select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  cursor: pointer;
}

.segment-input select {
  appearance: none;
}

.flight-divider {
  width: 1px;
  height: 24px;
  background: var(--border-medium);
  margin: 0 4px;
}

.fl-search-btn {
  width: 44px;
  height: 44px;
  background: black;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.host-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--badge-standard);
  flex-shrink: 0;
}

.fl-search-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.fl-search-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.segment-type {
  min-width: 130px;
}

.segment-class {
  min-width: 110px;
}

/* Flight Mode Specific Segments */
.search-field.segment-dropdown {
  position: relative;
  min-width: 140px;
}

.search-field select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  padding: 0;
  appearance: none;
}

.dropdown-arrow {
  position: absolute;
  right: 15px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  fill: var(--brand-primary);
  opacity: 0.5;
  pointer-events: none;
}

.search-field.pax-cabin {
  min-width: 180px;
}

.search-field:hover {
  background: var(--interactive-hover);
}

.search-field:last-of-type {
  border-right: none;
}

.field-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  padding-left: 24px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-icon-min {
  width: 16px;
  height: 16px;
  fill: var(--brand-primary);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.search-field:focus-within .search-icon-min {
  opacity: 0.8;
}

.search-field input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  width: 100px;
  padding: 0;
}

.search-field input::placeholder {
  color: var(--text-tertiary);
  font-weight: 500;
}

.search-field input[type="date"] {
  color: var(--brand-primary);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-field input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.6;
}

.search-btn {
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px var(--glass-shadow);
  margin-left: 8px;
  flex-shrink: 0;
}

.search-btn:hover {
  transform: scale(1.05);
  background: var(--brand-primary-hover);
}

.search-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.section-title svg {
  width: 20px;
  height: 20px;
  fill: var(--brand-primary);
  opacity: 0.8;
}

.nav-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--brand-0-rgb), 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-0);
}

/* Property Grid */
.property-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  /* 6 columns for a cleaner look on large screens */
  gap: 32px 14px;
  margin-bottom: 48px;
}

@media (max-width: 1400px) {
  .property-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .property-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   MOBILE PROPERTY GRID - MASTER RULES
   Consolidated from multiple media queries
   ============================================ */
@media (max-width: 768px) {

  /* Escalating specificity to override any conflicts */
  .property-grid,
  div.property-grid,
  main .property-grid,
  main div.property-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure cards don't override grid layout */
  .property-card,
  div.property-card,
  .property-grid .property-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Tighter spacing for smaller phones */
  @media (max-width: 480px) {

    .property-grid,
    div.property-grid,
    main .property-grid {
      gap: 14px 10px !important;
      padding: 0 8px !important;
    }
  }

  /* Extra tight for very small screens */
  @media (max-width: 360px) {

    .property-grid,
    div.property-grid,
    main .property-grid {
      gap: 12px 8px !important;
      padding: 0 6px !important;
    }
  }
}

.property-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  background: var(--bg-primary);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary);
}


.property-image {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 14;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.property-card:hover .property-image img {
  transform: scale(1.05);
  /* Added slight zoom on hover */
}

.pagination-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.p-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.p-dot.active {
  background: #fff;
}

.guest-favorite {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(var(--brand-dark-rgb), 0.6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.msg-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.msg-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .msg-btn:hover {
    background: var(--bg-white);
    transform: scale(1.1);
    border-color: #1D9BF0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .msg-btn:hover svg {
    fill: #1D9BF0;
  }
}

.property-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* Align button and price text to bottom */
  margin-top: 4px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.property-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.property-main-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.2;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-medium);
}

.host-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.host-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.host-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.property-location-min {
  font-weight: 500;
  color: var(--text-tertiary);
  font-size: 10px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.location-icon-min {
  width: 10px;
  height: 10px;
  fill: var(--text-tertiary);
  flex-shrink: 0;
}

.verified-badge {
  display: flex;
  align-items: center;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--badge-standard);
}

.verified-badge.company svg {
  fill: var(--badge-company);
}

.verified-badge.partner svg {
  fill: var(--badge-partner);
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating svg {
  width: 12px;
  height: 12px;
  fill: rgba(var(--brand-dark-rgb), 0.6);
}

.rating span {
  font-size: 14px;
  color: rgba(var(--brand-dark-rgb), 0.6);
  font-weight: 400;
}


.property-price {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(var(--brand-dark-rgb), 0.6);
}

.property-price strong {
  font-weight: 700;
}

.book-btn {
  display: inline-block;
  width: auto;
  margin-top: 0;
  padding: 8px 18px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.book-btn:hover {
  background: #222222;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.book-btn:active {
  transform: translateY(0);
}

/* Booking Notification */
.notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  padding: 16px 24px;
  border-radius: 16px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-0);
  font-weight: 600;
}

.notification-content svg {
  width: 24px;
  height: 24px;
  fill: var(--brand-0);
}

main {
  padding: 32px 48px;
  /* Consistent spacing for all screen sizes */
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  .header-top {
    margin-bottom: 0;
    gap: 12px;
    flex-wrap: wrap;
  }

  .logo {
    min-width: 80px;
    font-size: 18px;
  }

  #logo-typing {
    display: inline;
  }

  .hamburger-btn {
    display: flex;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
  }

  .hamburger-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .nav-center {
    display: flex !important;
    position: static;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    gap: 8px;
    z-index: auto;
    border-top: none;
    flex: 1;
    justify-content: center;
    margin: 0;
  }

  .nav-center .nav-item {
    padding: 12px;
    flex-direction: row;
    gap: 0;
    min-width: 48px;
    min-height: 48px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-medium);
    max-width: 48px;
  }

  .nav-center .nav-icon {
    width: 24px;
    height: 24px;
  }

  .nav-center .nav-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--brand-primary);
    display: block;
  }

  .nav-center span {
    display: none;
  }

  .nav-center .nav-item.active {
    background: var(--brand-primary);
  }

  .nav-center .nav-item.active .nav-icon svg {
    fill: #FFFFFF;
  }

  .nav-center .nav-item:nth-child(4) {
    /* Hide Services on mobile header bar to save space */
    display: none;
  }

  .nav-right,
  .categories-bar-wrapper {
    display: none !important;
  }

  .mobile-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }

  .mobile-sidebar.active {
    right: 0;
  }

  .mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-medium);
  }

  .close-sidebar {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
  }

  .sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }

  .sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
  }

  .sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }

  .sidebar-username {
    display: block;
    font-size: 16px;
    font-weight: 700;
  }

  .sidebar-user-email {
    font-size: 12px;
    color: var(--text-secondary);
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .sidebar-nav-item:hover {
    background: var(--interactive-hover);
  }

  .sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    fill: var(--brand-primary);
  }

  .sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-medium);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sidebar-action-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    background: white;
    font-weight: 700;
    cursor: pointer;
  }

  #sidebar-logout {
    color: #ef4444;
    border-color: #fee2e2;
    background: #fef2f2;
  }

  /* Compact Search Bar */
  .search-bar-wrap {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .search-bar {
    flex: 1;
    height: 48px;
    padding: 0 8px 0 16px;
    border-radius: 24px;
    justify-content: space-between;
  }

  .search-field {
    display: none;
  }

  .search-field#field-where {
    display: flex;
    border-right: none;
    padding: 0;
    flex: 1;
  }

  .field-label {
    display: none;
  }

  .input-wrapper input {
    height: 40px;
    font-size: 14px;
  }

  .search-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-sm);
  }

  .mobile-filter-btn span {
    display: none;
  }

  .mobile-filter-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
  }

  .search-category-pill {
    display: none;
  }

  main {
    padding: 20px 16px;
  }

  /* Grid rules moved to master mobile section above (line ~917) */

  /* Adjust Property Card for 2-column layout */
  .property-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.7;
    height: auto;
    overflow: hidden;
  }

  .property-image .rating.mobile-only-rating {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5px 3px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5px;
  }

  .property-image .property-location-min.mobile-only-location {
    position: absolute;
    bottom: 4px;
    left: 4px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 2px 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--text-primary);
    font-weight: 700;
  }

  .property-card {
    position: relative;
  }

  @media (min-width: 769px) {

    .mobile-only-rating,
    .mobile-only-location {
      display: none !important;
    }
  }

  .property-info {
    padding: 4px 5px;
  }

  .property-titles {
    gap: 0.5px;
  }

  .property-main-title {
    font-size: 2.25px;
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
  }

  .host-name {
    font-size: 2.5px;
  }

  .profile-avatar {
    width: 12px;
    height: 12px;
  }

  .property-location-min {
    font-size: 2.2px;
    gap: 1.5px;
  }

  .verified-badge {
    width: 8px;
    height: 8px;
  }

  .rating {
    font-size: 2.5px;
    gap: 1.5px;
  }

  .location-icon-min {
    width: 3px;
    height: 3px;
  }

  .rating svg {
    width: 4px;
    height: 4px;
    fill: #FFD700 !important;
  }

  .property-price {
    font-size: 3px;
    font-weight: 700;
  }

  .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
  }

  .book-btn {
    padding: 2px 4px;
    font-size: 7px;
    border-radius: 20px;
    min-height: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .mobile-hide {
    display: none;
  }

  .msg-btn {
    width: 36px;
    height: 36px;
    top: 6px;
    right: 6px;
    padding: 8px;
  }

  .msg-btn svg {
    width: 18px;
    height: 18px;
  }

  .guest-favorite {
    padding: 3px 6px;
    top: 8px;
    left: 8px;
  }

  /* Flight Search Consistency for Mobile */
  .flight-search-row {
    padding: 12px 16px;
  }

  .flight-search-grid {
    flex-direction: row;
    border-radius: 60px;
    padding: 6px 14px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scrollbar-width: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
  }

  .flight-search-grid::-webkit-scrollbar {
    display: none;
  }

  .flight-segment {
    padding: 0 10px;
    flex-shrink: 0;
    min-width: 100px;
  }

  .flight-divider {
    display: block;
    min-width: 1px;
    height: 20px;
  }

  .fl-search-btn {
    flex-shrink: 0;
  }
}

/* Chat Interface */
.chat-container {
  display: flex;
  height: calc(100vh - 200px);
  gap: 24px;
}

.chat-sidebar {
  width: 350px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(var(--brand-0-rgb), 0.1);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-user-item:hover {
  background: rgba(var(--brand-0-rgb), 0.1);
}

.chat-user-item.active {
  background: rgba(var(--brand-0-rgb), 0.2);
}

.chat-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee;
  overflow: hidden;
}

.chat-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-main {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--brand-0-rgb), 0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.message-bubble.received {
  align-self: flex-start;
  background: #f0f0f0;
  color: rgba(var(--brand-dark-rgb), 0.6);
  border-bottom-left-radius: 4px;
}

.message-bubble.sent {
  align-self: flex-end;
  background: var(--brand-0);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 12px;
}

.chat-input {
  flex-grow: 1;
  background: #f5f5f5;
  border: 1px solid transparent;
  padding: 12px 16px;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  background: white;
  border-color: var(--brand-0);
}

.send-btn {
  background: var(--brand-0);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: scale(1.05);
}


/* ============================================
   MESSAGES PAGE - WhatsApp Web Style
   ============================================ */

/* Messages Container - Two Column Layout */
.messages-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: calc(100vh - 90px);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-medium);
}

/* Admin-specific height adjustment */
.messages-container.admin-view {
  height: calc(100vh - 180px);
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-medium);
}

/* ============================================
   LEFT SIDEBAR - Contacts List
   ============================================ */

.messages-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-sidebar-header {
  padding: 20px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.messages-sidebar-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.new-chat-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.new-chat-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.new-chat-btn svg {
  fill: white;
}

/* New Chat Selection Modal */
.new-chat-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.3);
  animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  border: 1px solid var(--border-medium);
  z-index: 1001;
}

@keyframes slideUpModal {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.category-tabs {
  display: flex;
  padding: 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-medium);
}

.cat-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.cat-tab.active {
  background: var(--bg-primary);
  color: var(--brand-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contacts-selection-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.selection-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.selection-contact-item:hover {
  background: var(--bg-tertiary);
}

.modal-loading {
  padding: 40px;
  display: flex;
  justify-content: center;
}

.verified-badge-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  margin-left: 6px;
  position: relative;
}

.verified-badge-admin::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

/* Search Bar */
.messages-search {
  padding: 12px 16px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.messages-search .search-icon {
  width: 18px;
  height: 18px;
  fill: var(--text-tertiary);
  flex-shrink: 0;
}

.messages-search-input {
  flex: 1;
  border: 1px solid var(--border-subtle);
  outline: none;
  background: var(--bg-secondary);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.messages-search-input:focus {
  background: var(--bg-primary);
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 3px rgba(136, 140, 121, 0.1);
}

/* Contacts List */
.messages-contacts {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.messages-contacts::-webkit-scrollbar {
  width: 6px;
}

.messages-contacts::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.contact-item:hover {
  background: var(--brand-primary-lighter);
}

.contact-item.active {
  background: var(--brand-primary-lighter);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: white;
  font-weight: 600;
  font-size: 16px;
}



.contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.contact-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-time {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.contact-message {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.checkmark-double {
  width: 14px;
  height: 14px;
  fill: var(--brand-primary);
  flex-shrink: 0;
}

.unread-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--brand-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 22px;
  text-align: center;
}

.presence-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid white;
}

/* ============================================
   RIGHT PANEL - Chat Area
   ============================================ */

.messages-chat {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-medium);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.chat-header-actions {
  display: flex;
  gap: 16px;
}

.chat-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-action-btn:hover {
  background: var(--interactive-hover);
}

.chat-action-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
}

/* Messages Area */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-messages-area::-webkit-scrollbar {
  width: 6px;
}

.chat-messages-area::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* Message Groups */
.message-group {
  display: flex;
  margin-bottom: 4px;
}

.message-group.received {
  justify-content: flex-start;
}

.message-group.sent {
  justify-content: flex-end;
}

/* Message Bubbles */
.message-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.message-group.sent .message-wrapper {
  align-items: flex-end;
}

.message-group.received .message-wrapper {
  align-items: flex-start;
}

.message-meta-top {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.message-meta-top.sender-name {
  color: var(--brand-primary);
  font-weight: 700;
}

.message-meta-bottom {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.message-group.received .message-bubble {
  background: #FFFFFF;
  border: 1px solid var(--brand-primary-light);
  border-radius: 4px 12px 12px 12px;
  color: var(--text-primary);
}

.message-group.sent .message-bubble {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-radius: 12px 12px 4px 12px;
}

.message-text {
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
  margin: 0;
}

.message-time {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.message-time .checkmark-double {
  width: 12px;
  height: 12px;
}

/* Message Notifications */
.message-notification {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  margin: 8px auto;
  max-width: 300px;
}

.message-notification svg {
  width: 16px;
  height: 16px;
  fill: var(--text-tertiary);
}

.message-notification span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Chat Input Container */
.chat-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-medium);
}

.chat-input-btn {
  background: var(--brand-primary);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-input-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.chat-input-btn svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: var(--bg-primary);
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 14px;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  transition: border-color 0.2s;
}

.chat-input::placeholder {
  color: var(--text-tertiary);
}

.chat-input:focus {
  border-color: var(--brand-primary);
}

/* Responsive Design for Messages */
@media (max-width: 1024px) {
  .messages-container {
    grid-template-columns: 320px 1fr;
  }
}

@media (max-width: 768px) {
  .messages-container {
    grid-template-columns: 1fr;
  }

  .messages-sidebar {
    display: none;
  }

  .message-bubble {
    max-width: 80%;
  }
}

/* Property Card Info Enhancements */
.property-info .info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #1D9BF0;
  flex-shrink: 0;
  margin-left: 6px;
  vertical-align: middle;
}

.verified-badge svg {
  width: 100% !important;
  height: 100% !important;
}

/* --- Traveler Profile Navigation --- */
.user-profile-nav {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 4px 16px 4px 4px !important;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-sm) !important;
}

.user-profile-nav:hover {
  background: var(--interactive-hover) !important;
  border-color: var(--brand-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.avatar-container {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
}

.avatar-container img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--bg-white) !important;
}



.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.user-label {
  font-size: 10px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}



/* --- Property Details Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  width: 100%;
  max-width: 900px;
  height: 600px;
  /* Standardize desktop height */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  transform: rotate(90deg);
  background: #f8f8f8;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100%;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 12px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-content {
    width: 94%;
    max-width: 420px;
    height: auto;
    max-height: 85vh;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .modal-info {
    padding: 24px 20px;
    gap: 16px;
  }

  .modal-slider-container {
    height: 220px;
    min-height: 220px;
  }

  .modal-header {
    gap: 12px;
  }

  .modal-title-group h2 {
    font-size: 22px;
    letter-spacing: -0.02em;
    font-weight: 800;
  }

  .modal-rating {
    padding: 6px 10px;
    font-size: 14px;
  }

  .modal-price span {
    font-size: 20px;
    font-weight: 800;
  }

  .modal-footer {
    padding-top: 16px;
    gap: 16px;
  }

  .btn-book-now {
    padding: 12px 24px;
    font-size: 13px;
    height: 48px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 96%;
    max-width: none;
    border-radius: 20px;
  }

  .modal-slider-container {
    height: 180px;
    min-height: 180px;
  }

  .modal-info {
    padding: 20px 16px;
  }
}

/* Modal Slider */
.modal-slider-container {
  position: relative;
  height: 100%;
  min-height: 400px;
  background: #000;
  overflow: hidden;
}

.modal-slider {
  height: 100%;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav svg {
  width: 24px;
  height: 24px;
  fill: #333;
}

.slider-nav.prev {
  left: 15px;
}

.slider-nav.next {
  right: 15px;
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  width: 20px;
  border-radius: 10px;
}

/* Modal Info */
.modal-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  background: white;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-profile {
  display: flex;
  gap: 16px;
  align-items: center;
}

.modal-title-group h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.modal-rating svg {
  width: 16px;
  height: 16px;
  fill: #FFB800;
}

.modal-description h3,
.modal-amenities h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.modal-description p {
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 15px;
}

.ameniti.property-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 14px;
  margin-bottom: 48px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.amenity svg {
  width: 20px;
  height: 20px;
  fill: var(--text-light);
}

.modal-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-price {
  display: flex;
  flex-direction: column;
}

.modal-price span {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-price small {
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.main-actions {
  display: flex;
  gap: 8px;
}

.btn-rate {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-medium);
  background: transparent;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-rate:hover {
  background: var(--interactive-hover);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  text-decoration: underline;
}


.btn-claim-now {
  padding: 0;
  background: transparent;
  color: var(--brand-primary);
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}

.btn-claim-now:hover {
  color: var(--brand-primary-hover);
  background: transparent;
}

.btn-book-now {
  padding: 6px 20px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-book-now:hover {
  background: #222222;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.close-sidebar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-sidebar:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.sidebar-user-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-medium);
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-username {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-user-email {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
  background: var(--interactive-hover);
  border-left-color: var(--brand-primary);
}

.sidebar-nav-item svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  transition: fill 0.2s ease;
}

.sidebar-nav-item:hover svg {
  fill: var(--brand-primary);
}

.sidebar-nav-item span {
  font-size: 15px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-action-btn {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.sidebar-action-btn:hover {
  background: var(--interactive-hover);
  border-color: var(--brand-primary);
}

/* Tablet Breakpoint (768px) */
@media (max-width: 768px) {

  /* Show hamburger, hide desktop nav */
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
  }

  .hamburger-btn:hover {
    background: var(--interactive-hover);
    border-color: var(--brand-primary);
  }

  .hamburger-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
  }

  /* Show navigation icons in top bar */
  .logo {
    order: 1;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .nav-center {
    display: flex !important;
    order: 2;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: center;
    margin: 0 auto;
  }

  .nav-center .nav-item {
    padding: 6px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-center .nav-item.active {
    background: var(--brand-primary-light);
  }

  .nav-center .nav-item .nav-icon {
    width: 24px;
    height: 24px;
  }

  .nav-center .nav-item span {
    display: none !important;
  }

  .nav-right {
    order: 3;
    display: flex !important;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
  }

  .nav-right .settings-wrapper {
    display: none !important;
  }

  .hamburger-btn {
    order: 4;
    display: flex !important;
    margin-left: 8px;
  }

  /* Compact search bar - Move below top bar */
  .search-bar-wrap {
    margin-left: 0;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    order: 5;
    /* Force to next line */
  }

  /* Show mobile filter button */
  .mobile-filter-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-filter-btn span {
    display: none;
  }

  .search-bar {
    padding: 3px;
  }

  .search-field {
    padding: 6px 16px;
    min-width: 90px;
  }

  .field-label {
    font-size: 10px;
    padding-left: 24px;
    margin-bottom: 2px;
  }

  .search-field input {
    font-size: 16px !important;
    font-weight: 600;
    width: 100%;
    color: var(--text-primary);
  }

  .search-field input::placeholder {
    font-size: 16px !important;
    color: var(--text-primary);
    opacity: 0.8;
  }

  .search-icon-min {
    width: 18px;
    height: 18px;
    opacity: 0.8;
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .search-btn {
    width: 38px;
    height: 38px;
  }

  .search-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Categories bar - horizontal scroll */
  .categories-bar-wrapper {
    padding: 0 20px;
    top: 65px;
  }

  .categories-bar {
    gap: 32px;
    overflow-x: scroll;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .category-item {
    padding: 12px 0;
  }

  .category-item svg {
    width: 20px;
    height: 20px;
  }

  .category-item span {
    font-size: 11px;
  }

  /* Main content padding */
  main {
    padding: 24px 20px;
  }

  /* Property grid - 3 columns on tablet */
  .property-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 12px;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    max-width: none;
  }

  /* User profile in header */
  .user-profile-wrapper {
    margin-left: auto;
  }

  .user-profile-nav .user-presence {
    display: none;
  }

  .avatar-container {
    width: 36px;
    height: 36px;
  }

  /* Settings popup adjustment */
  .settings-popup {
    right: 0;
  }
}

/* Mobile Breakpoint (600px) */
@media (max-width: 600px) {

  /* Further compact header */
  header {
    padding: 10px 16px;
  }

  .logo {
    font-size: 18px;
  }

  #logo-typing {
    display: inline;
  }

  /* Stack search fields vertically or hide some */
  .search-field {
    padding: 3px 10px;
    min-width: 70px;
  }

  .search-field input {
    width: 70px;
    font-size: 11px;
  }

  /* Property grid - 2 columns */
  .property-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 10px;
  }

  /* Categories bar */
  .categories-bar-wrapper {
    padding: 0 16px;
  }

  .categories-bar {
    gap: 24px;
  }

  /* Main content */
  main {
    padding: 20px 16px;
  }

  /* Login page responsiveness */
  .auth-container {
    padding: 32px 24px;
    max-width: 100%;
  }

  /* Flight search */
  .flight-search-row {
    padding: 12px 16px;
  }

  .flight-search-grid {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .flight-segment {
    padding: 8px;
  }

  .flight-divider {
    width: 100%;
    height: 1px;
  }

  /* Flight results */
  .flight-sidebar {
    display: none;
  }

  .flight-results-main {
    width: 100%;
  }
}

/* Small Mobile Breakpoint (480px) */
@media (max-width: 480px) {

  /* Single column grid */
  .property-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Even more compact search */
  .search-bar {
    flex-wrap: wrap;
  }

  .search-field:nth-child(3) {
    display: none;
    /* Hide "Who" field on very small screens */
  }

  .search-field {
    flex: 1;
    min-width: 0;
  }

  /* Categories smaller */
  .categories-bar {
    gap: 20px;
  }

  .category-item svg {
    width: 18px;
    height: 18px;
  }

  .category-item span {
    font-size: 10px;
  }

  /* Login form adjustments */
  .auth-container {
    padding: 24px 20px;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  /* Modal full screen on mobile */
  .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  /* Settings wrapper adjustments */
  .settings-wrapper {
    display: none;
    /* Hide settings on very small screens */
  }

  /* Compact nav right */
  .nav-right {
    gap: 8px;
  }
}

/* Extra styles for property cards on mobile */
@media (max-width: 768px) {
  .property-card {
    border-radius: 16px;
  }

  .property-info {
    padding: 10px 12px 12px;
  }

  .property-main-title {
    font-size: 14px;
  }

  .host-name {
    font-size: 12px;
  }

  .property-location {
    font-size: 10px;
  }

  .property-price {
    font-size: 13px;
  }

  .book-btn {
    padding: 7px 16px;
    font-size: 12px;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-medium);
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  /* Add padding to body to prevent content from being hidden behind nav */
  body {
    padding-bottom: 65px;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  transition: all 0.2s ease;
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav-item.active {
  color: var(--brand-primary);
}

.bottom-nav-item.active svg {
  fill: var(--brand-primary);
  transform: translateY(-2px);
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 16px;
  text-decoration: none;
  color: #9CA3AF;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  min-width: 56px;
  min-height: 56px;
  position: relative;
}

.bottom-nav-item svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide any span text */
.bottom-nav-item span {
  display: none;
}

/* Active state - black like reference */
.bottom-nav-item.active {
  color: #000000;
}

.bottom-nav-item.active svg {
  fill: #000000;
}

/* Touch feedback */
.bottom-nav-item:active {
  transform: scale(0.92);
  background: #F3F4F6;
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  /* Hide middle nav icons on mobile - moved to bottom */
  header .nav-center {
    display: none !important;
  }

  /* Add bottom padding to main to prevent content being hidden */
  body {
    padding-bottom: 80px;
  }

  main {
    padding-bottom: 100px !important;
  }

  /* Adjust property grid for bottom nav */
  .property-grid {
    margin-bottom: 20px;
  }

  /* Hide search bar placeholder on mobile */
  .search-bar input::placeholder {
    color: transparent !important;
  }
}

/* Tablet and desktop - hide bottom nav */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Mobile Filter Drawer Base */
.mobile-filter-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 85vh;
  background: var(--white);
  z-index: 10001;
  border-radius: 32px 32px 0 0;
  display: flex;
  flex-direction: column;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-filter-drawer.active {
  bottom: 0;
}

.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Header */
.filter-drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.filter-drawer-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.filter-drawer-header .close-btn {
  background: var(--bg-main);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-drawer-header .close-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-main);
}

/* Drawer Body */
.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-main);
}

.filter-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.filter-pill {
  padding: 12px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Price Inputs */
.price-inputs {
  display: flex;
  gap: 16px;
}

.price-field {
  flex: 1;
}

.price-field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price-field input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 16px;
  font-weight: 600;
}

/* Drawer Footer */
.filter-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: 0 0 32px 32px;
}

.reset-btn {
  flex: 1;
  padding: 16px;
  background: var(--bg-main);
  border: none;
  border-radius: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.apply-btn {
  flex: 2;
  padding: 16px;
  background: var(--primary-color);
  border: none;
  border-radius: 16px;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(136, 140, 121, 0.3);
}

@media (max-width: 600px) {
  .mobile-filter-drawer {
    height: 90vh;
  }
}