/* Airbnb Style Custom CSS */

:root {
  --airbnb-red: #ff385c;
  --airbnb-dark: #222222;
  --airbnb-gray: #717171;
  --airbnb-light-gray: #dddddd;
  --airbnb-bg: #f7f7f7;
  --nav-height: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--airbnb-dark);
  background-color: #ffffff;
  margin: 0;
  padding-top: calc(var(--nav-height) + 80px); /* Space for nav and categories */
}

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

/* Navbar */
.airbnb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1005;
  border-bottom: 1px solid #ebebeb;
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 32px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.2s ease;
}

.search-pill {
  display: flex;
  align-items: center;
  border: 1px solid var(--airbnb-light-gray);
  border-radius: 40px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  padding: 8px 8px 8px 24px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  background: white;
}

.search-pill:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.search-pill-item {
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  border-right: 1px solid var(--airbnb-light-gray);
}

.search-pill-item.light {
  color: var(--airbnb-gray);
  font-weight: 400;
  border-right: none;
}

.search-pill-icon {
  background: linear-gradient(135deg, #ff385c 0%, #ff2d55 45%, #d90b39 100%);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  box-shadow: 0 8px 16px rgba(255, 56, 92, 0.35), 0 0 0 0 rgba(255, 56, 92, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-pill:hover .search-pill-icon {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 12px 22px rgba(255, 56, 92, 0.45), 0 0 0 6px rgba(255, 56, 92, 0.14);
}

.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link-btn {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 24px;
  transition: background 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link-btn:hover {
  background: #f7f7f7;
}

.profile-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--airbnb-light-gray);
  border-radius: 24px;
  padding: 5px 5px 5px 12px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  background: white;
}

.profile-menu:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.profile-menu.active {
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.profile-menu i.bi-person-circle {
  font-size: 30px;
  color: var(--airbnb-gray);
  line-height: 1;
}

/* Profile Dropdown */
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 9999;
  overflow: hidden;
  animation: profileDropIn 0.16s ease;
}

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

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f9f9f9;
}

.profile-dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8edff;
  color: #3b5bdb;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-dropdown-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.profile-dropdown-role {
  font-size: 0.75rem;
  color: #888;
  margin-top: 1px;
  text-transform: capitalize;
}

.profile-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.87rem;
  color: #333;
  text-decoration: none;
  transition: background 0.15s ease;
  cursor: pointer;
}

.profile-dropdown-item:hover {
  background: #f5f5f5;
  color: #000;
  text-decoration: none;
}

.profile-dropdown-item i {
  font-size: 1rem;
  color: #555;
  width: 18px;
  text-align: center;
}

.profile-dropdown-logout {
  color: #e03131;
}

.profile-dropdown-logout i {
  color: #e03131;
}

.profile-dropdown-logout:hover {
  background: #fff5f5;
  color: #c92a2a;
}

.profile-dropdown-signup {
  font-weight: 700;
  color: #1a1a1a;
}

/* Profile wrapper anchors the dropdown */
.profile-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Categories Bar */
.categories-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  z-index: 999;
  box-shadow: 0 4px 6px -6px rgba(0,0,0,0.1);
}

.categories-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  cursor: pointer;
  opacity: 1;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #dddddd;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.category-item:hover {
  border-color: #222;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-item.active {
  border-color: #222;
  background: #f7f7f7;
  box-shadow: inset 0 0 0 1px #222;
}

.category-item .cat-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.category-item span {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

/* Main Content Layout */
.main-content {
  padding: 24px 40px;
  max-width: 2560px;
  margin: 0 auto;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 12px; /* Smaller gap for mobile */
}

@media (min-width: 550px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 950px) {
  .properties-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 1128px) {
  .properties-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

@media (min-width: 1640px) {
  .properties-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1880px) {
  .properties-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Property Card */
.property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.property-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95; /* Almost 1:1 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--airbnb-light-gray);
}

.guest-favorite-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: #222;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
}

.property-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 10;
}

.property-favorite svg {
  fill: rgba(0,0,0,0.5);
  stroke: white;
  stroke-width: 2px;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.property-favorite:hover svg {
  transform: scale(1.1);
}

.property-favorite.active svg {
  fill: var(--airbnb-red);
  stroke: white;
}

.property-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.property-title {
  font-weight: 600;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  min-height: 2.4em; /* Ensure consistent height for titles */
}

.property-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 400;
}

.property-rating i {
  font-size: 12px;
}

.property-subtitle {
  color: var(--airbnb-gray);
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-price {
  margin-top: auto; /* Push price to bottom of card */
  font-size: 15px;
}

.property-price span.price-val {
  font-weight: 600;
}

.property-price span.price-unit {
  font-weight: 400;
}

/* Adjust font sizes for mobile when 2 columns are shown */
@media (max-width: 549px) {
  .property-title {
    font-size: 13px;
  }
  .property-rating {
    font-size: 13px;
  }
  .property-subtitle {
    font-size: 13px;
  }
  .property-price {
    font-size: 13px;
  }
  .guest-favorite-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Media Queries for responsive nav */
@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }
  .airbnb-nav {
    height: var(--nav-height);
    padding: 0 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .airbnb-nav.search-active {
    height: 100vh;
    height: 100dvh;
    padding: 0;
    align-items: flex-start;
  }
  .nav-left { 
    display: flex !important; 
  }
  .nav-left span {
    display: none !important;
  }
  .nav-right { 
    display: none !important; 
  }
  .nav-center { 
    position: static;
    transform: none;
    flex: 1; 
    margin-top: 0;
    width: 100%;
  }
  .categories-bar { 
    padding: 12px 16px; 
    top: var(--nav-height);
  }
  .main-content { 
    padding: 16px; 
    padding-bottom: 90px; /* Space for bottom nav */
  }
  
  .search-pill {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
  
  .sr-pill { 
    min-width: unset; 
    width: 100%; 
    height: 54px;
    border-radius: 27px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: #ffffff;
    border: 1px solid #ebebeb;
    padding: 0 20px;
    cursor: pointer;
    justify-content: flex-start;
  }
  .sr-pill-desktop { display: none !important; }
  .sr-pill-mobile {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
  }
  .sr-pill-mobile i { font-size: 18px; }
  .sr-pill-seg { padding: 0 10px; font-size: 13px; }
  #pillWhen, #pillBudget { display: none !important; }
  #pillType + .sr-pill-div, #pillWhen + .sr-pill-div { display: none !important; }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #ebebeb;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--airbnb-gray);
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
    flex: 1;
    text-decoration: none;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
  }
  
  .bottom-nav-item.active {
    color: var(--airbnb-red);
  }
  
  .bottom-nav-item i {
    font-size: 24px;
    line-height: 1;
  }

  /* Mobile Search Close */
  .mobile-search-close {
    display: flex;
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1005;
    color: #222;
    cursor: pointer;
  }
}

/* Hide mobile bottom nav and close button on desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
  .mobile-search-close {
    display: none;
  }
}

/* ==========================================
   INTERACTIVE AIRBNB SEARCH BAR UPGRADES
   ========================================== */

/* Fullscreen Overlay when search is active */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Make nav transition when search is active */
.airbnb-nav {
  transition: height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.airbnb-nav.search-active {
  height: 140px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Layout for static pill vs expanded form */
.nav-center {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-pill {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.airbnb-nav.search-active .search-pill {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  display: none !important;
}

/* Expanded Search Container */
.search-expanded {
  position: absolute;
  top: calc(50% + 15px); /* Position down when active */
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 100%;
  max-width: 850px;
  background: #ffffff;
  border: 1px solid var(--airbnb-light-gray);
  border-radius: 40px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1001;
  height: 66px;
}

.airbnb-nav.search-active .search-expanded {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Expanded Search Sections */
.search-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 10px 28px;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.search-section:first-child {
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.search-section.location {
  flex: 1.6;
}

.search-section.when {
  flex: 1.1;
}

.search-section.who {
  flex: 1.1;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  padding-right: 8px; /* Leave space for search btn */
}

/* Dividers */
.search-divider {
  width: 1px;
  height: 32px;
  background: var(--airbnb-light-gray);
  align-self: center;
  transition: opacity 0.15s ease;
}

/* Hover and Active states */
.search-section:hover {
  background: #f7f7f7;
  border-radius: 40px;
}

.search-section.active {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  border-radius: 40px;
  z-index: 5;
}

/* Hide neighboring divider when active or hovered */
.search-section.active + .search-divider,
.search-section:hover + .search-divider {
  opacity: 0;
}

/* Input Styles */
.search-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--airbnb-dark);
  margin-bottom: 2px;
}

.search-section-input {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  font-size: 14px;
  color: var(--airbnb-dark);
  font-weight: 500;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.search-section-input::placeholder {
  color: var(--airbnb-gray);
  font-weight: 400;
}

/* Circular pink search button inside expanded */
.search-submit-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #ff385c 0%, #ff2d55 45%, #d90b39 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 8px;
  box-shadow: 0 10px 24px rgba(255, 56, 92, 0.34), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.search-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45), transparent 45%);
  opacity: 0.9;
  z-index: -1;
}

.search-submit-btn i {
  font-size: 17px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.search-submit-btn span {
  display: none;
  font-size: 14px;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 0.01em;
}

/* Expand button on hover of who section */
.search-section.who.active ~ .search-submit-btn,
.search-expanded:hover .search-submit-btn,
.search-submit-btn:hover {
  border-radius: 999px;
  width: auto;
  padding: 0 20px;
  background: linear-gradient(135deg, #ff385c 0%, #ff0f4f 55%, #c1002f 100%);
  box-shadow: 0 14px 28px rgba(255, 56, 92, 0.45), 0 0 0 6px rgba(255, 56, 92, 0.12);
}

.search-section.who.active ~ .search-submit-btn span,
.search-expanded:hover .search-submit-btn span,
.search-submit-btn:hover span {
  display: inline;
}

.search-section.who.active ~ .search-submit-btn i,
.search-expanded:hover .search-submit-btn i,
.search-submit-btn:hover i {
  transform: translateX(-1px) scale(1.06);
}

.search-submit-btn:focus-visible {
  outline: 3px solid rgba(255, 56, 92, 0.35);
  outline-offset: 2px;
}

.search-submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Dark mode variant removed to force light theme */

/* Dynamic dropdown panels */
.search-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 22px;
  z-index: 1002;
  display: none;
  animation: fadeInScale 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-section.active .search-dropdown-panel {
  display: block;
}

/* Dropdown positions */
.search-section.location .search-dropdown-panel {
  left: 0;
  width: 420px;
}

.search-section.when .search-dropdown-panel {
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
}

.search-section.who .search-dropdown-panel {
  right: 0;
  width: 320px;
}

/* Titles inside panels */
.dropdown-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--airbnb-dark);
  margin-bottom: 14px;
}

/* Location Suggestions Layout */
.location-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--airbnb-light-gray);
  cursor: pointer;
  transition: all 0.15s ease;
  background: white;
}

.location-item:hover {
  background: var(--airbnb-bg);
  border-color: var(--airbnb-dark);
}

.location-item i {
  font-size: 18px;
  color: var(--airbnb-gray);
}

.location-item-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--airbnb-dark);
}

/* Property Type Grid Layout */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid var(--airbnb-light-gray);
  cursor: pointer;
  transition: all 0.15s ease;
  background: white;
  text-align: center;
}

.type-item:hover {
  background: var(--airbnb-bg);
  border-color: var(--airbnb-dark);
}

.type-item.selected {
  background: var(--airbnb-dark);
  border-color: var(--airbnb-dark);
  color: white;
}

.type-item i {
  font-size: 22px;
  color: var(--airbnb-gray);
}

.type-item.selected i {
  color: white;
}

.type-label {
  font-size: 11px;
  font-weight: 700;
}

/* Bedrooms Counter Row */
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.counter-info {
  display: flex;
  flex-direction: column;
}

.counter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--airbnb-dark);
}

.counter-subtitle {
  font-size: 12px;
  color: var(--airbnb-gray);
  margin-top: 2px;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--airbnb-light-gray);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--airbnb-gray);
  font-weight: 500;
  transition: all 0.15s ease;
  user-select: none;
}

.counter-btn:hover:not(:disabled) {
  border-color: var(--airbnb-dark);
  color: var(--airbnb-dark);
}

.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.counter-val {
  font-size: 16px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: var(--airbnb-dark);
}

/* Filter Summary indicator in active category bar */
.clear-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f7f7f7;
  border: 1px solid var(--airbnb-light-gray);
  font-size: 12px;
  font-weight: 600;
  color: var(--airbnb-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

.clear-search-btn:hover {
  background: #e4e4e4;
  border-color: var(--airbnb-dark);
}

/* Mobile responsive styles for expanded search bar */
@media (max-width: 950px) {
  .search-expanded {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .airbnb-nav.search-active {
    height: 120px;
  }
  
  .search-expanded {
    top: calc(50% + 15px);
    height: 52px;
    border-radius: 26px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  
  .search-section {
    padding: 6px 14px;
  }
  
  .search-section-label {
    font-size: 9px;
  }
  
  .search-section-input {
    font-size: 12px;
  }
  
  .search-divider {
    height: 24px;
  }
  
  .search-submit-btn {
    width: 42px;
    height: 42px;
    margin-right: 6px;
    box-shadow: 0 8px 16px rgba(255, 56, 92, 0.35);
  }
  
  .search-submit-btn i {
    font-size: 15px;
  }
  
  .search-section.who.active ~ .search-submit-btn,
  .search-expanded:hover .search-submit-btn,
  .search-submit-btn:hover {
    width: 42px;
    padding: 0;
    box-shadow: 0 10px 20px rgba(255, 56, 92, 0.4);
  }
  
  .search-section.who.active ~ .search-submit-btn span,
  .search-expanded:hover .search-submit-btn span,
  .search-submit-btn:hover span {
    display: none;
  }
  
  /* Dropdowns on mobile stack full width below nav */
  .search-dropdown-panel {
    position: fixed;
    top: 130px;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    transform: none !important;
    border-radius: 20px;
    padding: 16px;
  }
}

/* --- Custom Advanced Date Picker UI --- */
.search-section.when .search-dropdown-panel {
  width: 850px; /* Big panel for 2 months */
  left: 50%;
  transform: translateX(-50%);
  padding: 1.5rem 2rem;
  border-radius: 32px;
}
@media (max-width: 900px) {
  .search-section.when .search-dropdown-panel {
    width: 95vw;
  }
}

.date-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.date-tabs {
  background: #ebebeb;
  border-radius: 100px;
  padding: 4px;
  display: inline-flex;
}
.date-tab {
  background: transparent;
  border: none;
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  transition: 0.2s;
}
.date-tab.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Flatpickr Airbnb Theme Overrides */
#flatpickrContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.flatpickr-calendar {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
.flatpickr-months {
  margin-bottom: 10px;
}
.flatpickr-month {
  background: transparent !important;
  color: #222 !important;
  font-weight: 600 !important;
}
.flatpickr-current-month {
  font-size: 110% !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600;
  color: #222;
}
.flatpickr-current-month input.cur-year {
  font-weight: 600;
  color: #222;
}
.flatpickr-weekdays {
  background: transparent !important;
}
span.flatpickr-weekday {
  color: #717171 !important;
  font-weight: 600;
  font-size: 12px;
}
.flatpickr-day {
  border-radius: 50% !important;
  color: #222 !important;
  font-weight: 500;
}
.flatpickr-day:not(.selected):not(.startRange):not(.endRange):not(.inRange):hover {
  background: #f7f7f7 !important;
  border-color: transparent !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #b0b0b0 !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
  background: #222 !important;
  border-color: #222 !important;
  color: #fff !important;
}
.flatpickr-day.inRange {
  background: #f7f7f7 !important;
  border-color: #f7f7f7 !important;
  box-shadow: -5px 0 0 #f7f7f7, 5px 0 0 #f7f7f7 !important;
  border-radius: 0 !important;
}
.flatpickr-day.inRange:nth-child(7n+1) {
  box-shadow: 5px 0 0 #f7f7f7 !important;
}
.flatpickr-day.inRange:nth-child(7n) {
  box-shadow: -5px 0 0 #f7f7f7 !important;
}
.flatpickr-day.startRange {
  box-shadow: 5px 0 0 #f7f7f7 !important;
}
.flatpickr-day.endRange {
  box-shadow: -5px 0 0 #f7f7f7 !important;
}

/* Modifiers (Exact Dates, +- 1 day) */
.date-modifiers {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 5px;
  justify-content: center;
}
.date-mod-btn {
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  transition: 0.2s;
}
.date-mod-btn:hover {
  border-color: #222;
}
.date-mod-btn.active {
  background: #f7f7f7;
  border-color: #222;
  box-shadow: inset 0 0 0 1px #222;
}

/* Flexible Tab UI */
.flex-section {
  text-align: center;
  margin-bottom: 2rem;
}
.flex-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.flex-pills {
  display: inline-flex;
  gap: 10px;
}
.flex-pill {
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.flex-pill:hover { border-color: #222; }
.flex-pill.active {
  background: #f7f7f7;
  border-color: #222;
  box-shadow: inset 0 0 0 1px #222;
}
.months-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 5px;
  justify-content: center;
}
@media (max-width: 768px) {
  .months-carousel { justify-content: flex-start; }
}
.month-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 130px;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}
.month-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #717171;
}
.month-card .m-name {
  font-weight: 600;
  font-size: 14px;
}
.month-card .m-year {
  font-size: 12px;
  color: #717171;
}
.month-card:hover { border-color: #222; }
.month-card.active {
  border-color: #222;
  background: #f7f7f7;
  box-shadow: inset 0 0 0 1px #222;
}
.month-card.active i { color: #222; }

/* ============================================================
   SAFERENT SMART SEARCH BAR  –  Full animated search experience
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes sr-fade-up {
  from { opacity:0; transform:translateY(16px) scale(0.97); }
  to   { opacity:1; transform:translateY(0)   scale(1); }
}
@keyframes sr-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes sr-pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(255,56,92,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(255,56,92,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,56,92,0); }
}
@keyframes sr-ripple {
  to { transform:scale(4); opacity:0; }
}
@keyframes sr-sug-in {
  from { opacity:0; transform:translateX(-8px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes sr-chip-pop {
  0%   { transform:scale(1); }
  40%  { transform:scale(1.12); }
  100% { transform:scale(1); }
}
@keyframes sr-spin {
  to { transform:rotate(360deg); }
}

/* ---------- Wrapper ---------- */
.sr-search-wrap {
  position: relative;
  z-index: 1001;
}

/* ---------- Compact Pill ---------- */
.sr-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 40px;
  padding: 6px 6px 6px 18px;
  cursor: pointer;
  gap: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 6px 20px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  min-width: 340px;
  user-select: none;
}
.sr-pill:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  border-color: #bbb;
  transform: translateY(-1px);
}
.sr-search-wrap.open .sr-pill {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sr-pill-seg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #222;
  padding: 0 12px 0 0;
  white-space: nowrap;
  overflow: hidden;
  max-width: 122px;
}
.sr-pill-seg i { color: #ff385c; font-size: 14px; flex-shrink:0; }
.sr-pill-seg.light { color: #717171; font-weight: 400; }
.sr-pill-seg span { overflow:hidden; text-overflow:ellipsis; }
.sr-pill-div {
  width: 1px;
  height: 20px;
  background: #e0e0e0;
  margin: 0 12px 0 0;
  flex-shrink: 0;
}
.sr-pill-btn {
  background: linear-gradient(135deg,#ff385c,#d90b39);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,56,92,0.40);
  animation: sr-pulse-ring 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
  transition: transform 0.2s ease;
}
.sr-pill:hover .sr-pill-btn { transform: scale(1.1) rotate(-5deg); }

/* ---------- Backdrop ---------- */
.sr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 999;
}
.sr-search-wrap.open ~ .sr-backdrop,
.sr-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Expanded Panel ---------- */
.sr-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  width: min(860px, 94vw);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 20px 60px rgba(0,0,0,0.16),
    0 0 0 1px rgba(0,0,0,0.05);
  padding: 10px 10px 10px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2,0.8,0.2,1),
              transform 0.28s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 1002;
}
.sr-search-wrap.open .sr-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ---------- Form sections row ---------- */
.sr-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.sr-accordion-closed, .sr-mobile-header, .sr-mobile-footer { display: none; }
.sr-accordion-open { display: block; }
.sr-input-wrapper { display: flex; align-items: center; width: 100%; }
.sr-input-wrapper i { display: none; } /* hidden on desktop by default unless styled */
.sr-sections {
  display: flex;
  align-items: stretch;
  flex: 1;
  background: #f7f7f7;
  border-radius: 16px;
  overflow: visible;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
  position: relative;
}
.sr-section {
  flex: 1;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  min-width: 0;
  overflow: visible;
}
.sr-section.wide { flex: 1.1; }
.sr-section:hover { background: #efefef; }
.sr-section.focused {
  background: #fff;
  box-shadow: 0 0 0 2px #ff385c inset;
  border-radius: 14px;
  z-index: 15;
}
.sr-sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 4px;
  pointer-events: none;
}
.sr-sec-input {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.sr-sec-input::placeholder { color: #aaa; font-weight: 400; }
.sr-sec-input.placeholder { color: #aaa; font-weight: 400; cursor: pointer; }
input.sr-sec-input { caret-color: #ff385c; }

/* Vertical dividers between sections */
.sr-vdiv {
  width: 1px;
  background: #e0e0e0;
  margin: 12px 0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sr-sections:has(.sr-section.focused) .sr-vdiv { background: transparent; }

/* ---------- Dropdowns ---------- */
.sr-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  min-width: 260px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 20px 50px rgba(0,0,0,0.14);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 30;
  border: 1px solid rgba(0,0,0,0.06);
}
.sr-section.focused .sr-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Date calendar dropdown */
.sr-date-dropdown {
  width: min(820px, 92vw);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
}
.sr-section.focused .sr-date-dropdown {
  transform: translateX(-50%) translateY(0) scale(1);
}
.sr-section.focused#srSecType,
.sr-section.focused#srSecBudget,
.sr-section.focused#srSecWhere,
.sr-section.focused#srSecWhen {
  position: relative;
}
#srSecType .sr-dropdown,
#srSecWhere .sr-dropdown,
#srSecBudget .sr-dropdown {
  width: min(360px, 86vw);
}
#srSecType .sr-dropdown {
  left: 0;
}
#srSecWhere .sr-dropdown {
  left: 0;
}
#srSecBudget .sr-dropdown {
  left: auto;
  right: 0;
}
#srDateContainer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

/* Make the When section feel like the hero of the panel */
.sr-section#srSecWhen .sr-sec-input {
  font-weight: 600;
}
.sr-section#srSecWhen.focused {
  box-shadow: 0 0 0 2px #ff385c inset, 0 12px 30px rgba(255,56,92,0.08);
}

/* Quick date chips inside calendar panel */
.sr-date-dropdown .date-modifiers {
  margin-top: 1.25rem;
}

.sr-drop-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin: 0 0 12px;
}

/* Location suggestions */
.sr-suggestions { display: flex; flex-direction: column; gap: 4px; }
.sr-sug-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
  animation: sr-sug-in 0.2s ease both;
}
.sr-sug-item:nth-child(1) { animation-delay: 0.02s; }
.sr-sug-item:nth-child(2) { animation-delay: 0.04s; }
.sr-sug-item:nth-child(3) { animation-delay: 0.06s; }
.sr-sug-item:nth-child(4) { animation-delay: 0.08s; }
.sr-sug-item:nth-child(5) { animation-delay: 0.10s; }
.sr-sug-item:nth-child(6) { animation-delay: 0.12s; }
.sr-sug-item:nth-child(7) { animation-delay: 0.14s; }
.sr-sug-item:nth-child(8) { animation-delay: 0.16s; }
.sr-sug-item:hover { background: #f5f5f5; }
.sr-sug-icon {
  width: 36px; height: 36px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 16px;
  flex-shrink: 0;
}

/* Type chips */
.sr-type-chips {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.sr-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  user-select: none;
}
.sr-chip i { font-size: 20px; color: #888; transition: color 0.18s; }
.sr-chip:hover { border-color: #222; background: #fafafa; }
.sr-chip:hover i { color: #222; }
.sr-chip.active {
  border-color: #ff385c;
  background: #fff5f7;
  color: #ff385c;
  box-shadow: 0 0 0 3px rgba(255,56,92,0.12);
  animation: sr-chip-pop 0.3s ease;
}
.sr-chip.active i { color: #ff385c; }

/* Budget slider */
.sr-budget-display {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
  min-height: 22px;
}
.sr-slider-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  margin: 0 11px 8px;
}
.sr-range-track {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  pointer-events: none;
}
.sr-range-fill {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg,#ff385c,#ff7a93);
  border-radius: 4px;
  transition: left 0.1s, right 0.1s;
}
.sr-range {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  pointer-events: none;
}
.sr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #ff385c;
  box-shadow: 0 2px 8px rgba(255,56,92,0.35);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sr-range::-webkit-slider-thumb:hover,
.sr-range:active::-webkit-slider-thumb {
  transform: scale(1.25);
  box-shadow: 0 4px 14px rgba(255,56,92,0.5);
}
.sr-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
  font-weight: 500;
}

/* ---------- Submit Button ---------- */
.sr-submit {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg,#ff385c 0%,#d90b39 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 10px;
  height: auto;
  min-height: 62px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(255,56,92,0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sr-submit:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(255,56,92,0.55);
  background: linear-gradient(135deg,#ff4d6d 0%,#e8143f 100%);
}
.sr-submit:active { transform: scale(0.97); }
.sr-submit-ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  animation: sr-pulse-ring 2.2s ease infinite;
}
.sr-submit i { font-size: 18px; pointer-events: none; }
.sr-submit-txt { pointer-events: none; }

/* Ripple on click */
.sr-ripple-el {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.45);
  animation: sr-ripple 0.6s linear;
  pointer-events: none;
}

/* Loading state */
.sr-submit.loading .sr-submit-txt { opacity: 0; }
.sr-submit.loading i { opacity: 0; }
.sr-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sr-spin 0.7s linear infinite;
}

/* ---------- Active search bar state (floating on top) ---------- */
.sr-search-wrap.open {
  z-index: 1002;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sr-pill { min-width: 260px; }
  .sr-panel { width: 96vw; }
  .sr-type-chips { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .sr-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: none !important;
    border-radius: 0 !important;
    overflow-y: auto;
    padding-top: 0 !important;
    padding-bottom: 120px !important;
    background: #f7f7f7;
    z-index: 1002;
  }
  .sr-search-wrap.open .sr-panel {
    transform: none;
    display: block;
  }
  .sr-form { flex-direction: column; padding: 0; }
  .sr-sections { flex-direction: column; background: transparent; box-shadow: none; gap: 12px; padding: 0 16px; }
  .sr-section { background: #ffffff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .sr-section.focused { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
  .sr-vdiv { display: none; }
  .sr-desktop-submit { display: none !important; }
  .sr-dropdown { position: static !important; transform: none !important; box-shadow: none; border: none; padding: 16px 0 0 0; margin-top: 16px; border-top: 1px solid #ebebeb; background: transparent; }
  .sr-date-dropdown { width: 100%; left: auto !important; }
  .sr-section.focused .sr-date-dropdown { transform: none !important; }
  .date-modifiers { justify-content: flex-start; padding: 0 4px; }

  .sr-accordion-closed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
  }
  .sr-acc-label { color: #6a6a6a; }
  .sr-acc-val { color: #222; font-weight: 600; }
  .sr-section.focused .sr-accordion-closed { display: none; }
  .sr-accordion-open { display: none; }
  .sr-section.focused .sr-accordion-open { display: block; }
  .sr-section.focused .sr-sec-label { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 0; }

  .sr-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #b0b0b0;
    border-radius: 12px;
    padding: 0 16px;
    margin-top: 16px;
    height: 54px;
  }
  .sr-input-wrapper i { display: block; font-size: 18px; margin-right: 12px; color: #222; }
  .sr-input-wrapper input { border: none; width: 100%; height: 100%; outline: none; font-size: 16px; margin: 0; padding: 0; background: transparent; }

  .sr-mobile-header { display: flex; padding: 16px; margin-bottom: 16px; background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #ebebeb; }
  .mobile-search-close { background: none; border: none; font-size: 20px; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #f7f7f7; cursor: pointer; }
  
  .sr-mobile-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    width: auto; 
    padding: 16px 24px; 
    background: #fff; 
    border-top: 1px solid #ebebeb; 
    z-index: 100; 
  }
  .sr-clear-btn { background: none; border: none; text-decoration: underline; font-weight: 600; font-size: 15px; cursor: pointer; color: #222; }
  .sr-search-btn { background: #e51d53; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
  .sr-next-btn { background: #222; color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.1s; }
  .sr-next-btn:active { transform: scale(0.96); }
}
/* Stray dark mode overrides removed */
.sr-pill-desktop {
  display: flex;
  align-items: center;
  width: 100%;
}
.sr-pill-mobile {
  display: none;
}
