/* Search Page Styles - Web version matching mobile ExploreMapScreen */

/* ============================================
   CRITICAL: Mobile Safari viewport fix
   Only apply to pages with the search-react-app
   ============================================ */
html:has(#search-react-app), body:has(#search-react-app) {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  /* overflow: hidden !important; */
  /* Prevent iOS bounce scrolling */
  /* overscroll-behavior: none; */
  -webkit-overflow-scrolling: touch;
}

/* Hide header/footer on search page for full-screen map experience */
/* Using :has() for modern browsers */
body:has(#search-react-app) #header,
body:has(#search-react-app) #footer,
body:has(#search-react-app) .header,
body:has(#search-react-app) .footer,
body:has(#search-react-app) #appStoreModal {
  display: none !important;
}

body:has(#search-react-app) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

/* Fallback using JS-added class for browsers without :has() support */
body.search-fullscreen #header,
body.search-fullscreen #footer,
body.search-fullscreen .header,
body.search-fullscreen .footer,
body.search-fullscreen #appStoreModal {
  display: none !important;
}

body.search-fullscreen {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Set CSS custom property for real viewport height (Safari-safe) */
:root {
  --vh: 1vh;
}

/* Search app container - ensure full bleed with Safari fix */
#search-react-app {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: calc(var(--vh, 1vh) * 100) !important; /* JS-calculated viewport height for Safari */
  overflow: hidden !important;
}

/* Fallback for browsers that support dvh */
@supports (height: 100dvh) {
  #search-react-app {
    height: 100dvh !important;
  }
}

/* ============================================
   BASE CONTAINER STYLES
   ============================================ */

.explore-search-container {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  overflow: hidden;
}

/* ============================================
   DESKTOP LAYOUT (side by side)
   ============================================ */

.explore-search-container.desktop {
  flex-direction: column;
  height: 100vh;
}

/* Top Bar: Logo + Search + Globe in ONE row - Airbnb Style */
.search-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #ebebeb;
  flex-shrink: 0;
}

.search-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-self: start;
}

.search-logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* Wrapper for centering search - positioned in middle grid column */
.search-capsule-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 2;
  width: 100%;
  max-width: 850px;
}

.search-top-bar .search-capsule-container {
  width: 100%;
  max-width: 750px;
  min-width: 300px;
  margin: 0;
}

/* Airbnb search bar in top bar takes full width of wrapper */
.search-capsule-wrapper .airbnb-search-bar-container {
  width: 100%;
}

.search-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  justify-self: end;
  grid-column: 3;
}

.globe-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  -webkit-backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
              inset 0 4px 20px rgba(255, 255, 255, 0.3);
  color: #222222;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.globe-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3),
              inset 0 4px 20px rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Airbnb-style user menu trigger */
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 12px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  -webkit-backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
              inset 0 4px 20px rgba(255, 255, 255, 0.3);
  color: #222222;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 42px;
}

.user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3),
              inset 0 4px 20px rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.9);
}

.user-menu-trigger .fa-bars {
  font-size: 14px;
  color: #717171;
}

.user-menu-trigger .fa-user-circle {
  font-size: 30px;
  color: #717171;
}

/* Dropdown menus */
.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 1001;
}

.header-dropdown-menu-left {
  left: 0;
  right: auto;
}

.dropdown-menu-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  color: #222222;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-menu-item:hover {
  background-color: #f7f7f7;
}

.dropdown-menu-divider {
  height: 1px;
  background-color: #ebebeb;
  margin: 8px 0;
}

.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: transparent;
}

.explore-search-container.desktop .search-capsule-container {
  padding: 16px;
  z-index: 10;
}

.explore-search-container.desktop .search-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  gap: 0; /* Ensure no gap between sitter list and map */
}

/* Sitter list on left side */
.explore-search-container.desktop .sitter-list-container {
  width: 420px;
  min-width: 420px;
  max-width: 420px;
  background-color: #ffffff;
  overflow-y: auto;
  flex-shrink: 0;
  flex-grow: 0;
  border-right: 1px solid #e0e0e0;
  order: 1;
}

/* Style scrollbar to match white background */
.explore-search-container.desktop .sitter-list-container::-webkit-scrollbar {
  width: 8px;
  background-color: #ffffff;
}

.explore-search-container.desktop .sitter-list-container::-webkit-scrollbar-track {
  background-color: #ffffff;
}

.explore-search-container.desktop .sitter-list-container::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 4px;
}

.explore-search-container.desktop .sitter-list-container::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

/* Map on right side */
.explore-search-container.desktop .map-container {
  flex: 1;
  position: relative;
  order: 2;
}

.explore-search-container.desktop .sitter-list {
  width: 100%;
  background-color: #ffffff;
}

/* SEO content in left panel - compact version following design guide */
.sitter-list-container .seo-content {
  padding: 24px 20px;
  margin-top: 16px;
  background-color: #FAFAFD;
}

.sitter-list-container .seo-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.sitter-list-container .seo-subtitle {
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.sitter-list-container .seo-description {
  font-size: 14px;
  margin-bottom: 20px;
}

.sitter-list-container .seo-features-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.sitter-list-container .seo-feature-card {
  padding: 12px;
}

.sitter-list-container .feature-icon {
  width: 28px;
  height: 28px;
  font-size: 12px;
  margin-bottom: 8px;
}

.sitter-list-container .seo-feature-card h3 {
  font-size: 14px;
}

.sitter-list-container .seo-feature-card p {
  font-size: 12px;
}

.sitter-list-container .service-item {
  padding: 10px 12px;
}

.sitter-list-container .service-emoji {
  font-size: 22px;
}

.sitter-list-container .service-item h4 {
  font-size: 14px;
}

.sitter-list-container .service-item p {
  font-size: 12px;
}

.sitter-list-container .faq-item {
  padding: 12px;
}

.sitter-list-container .faq-item h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.sitter-list-container .faq-item p {
  font-size: 13px;
}

.sitter-list-container .location-link {
  padding: 8px 10px;
}

.sitter-list-container .location-link .location-name {
  font-size: 13px;
}

.sitter-list-container .location-link .sitter-count {
  font-size: 11px;
}

.sitter-list-container .seo-trust {
  padding: 14px;
}

.sitter-list-container .seo-trust h2 {
  font-size: 14px;
}

.sitter-list-container .seo-trust p {
  font-size: 13px;
}

/* Footer in left panel - compact version */
.sitter-list-container .search-footer {
  margin-top: 0;
  padding: 24px;
  background-color: #f7f7f7;
}

.sitter-list-container .footer-content {
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.sitter-list-container .footer-column-title {
  font-size: 12px;
}

.sitter-list-container .footer-links {
  gap: 8px;
}

.sitter-list-container .footer-links li a {
  font-size: 12px;
}

.sitter-list-container .footer-bottom {
  padding-top: 16px;
  font-size: 12px;
}

.explore-search-container.desktop .map-container {
  flex: 1;
  position: relative;
}

/* ============================================
   MOBILE LAYOUT (map + bottom sheet)
   ============================================ */

.explore-search-container.mobile {
  position: relative;
}

/* Full screen map behind everything */
.map-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.map-fullscreen .map-view {
  width: 100%;
  height: 100%;
}

/* Floating search capsule on mobile */
.mobile-search-capsule-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
}

/* Mobile search capsule wrapper - used by React component */
.search-capsule-floating {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 12px 16px 8px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 12px));
}

/* Mobile top bar with search and menus */
.mobile-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top, 8px));
  /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgb(255 255 255 / 45%) 70%, rgb(180 30 30 / 0%) 100%); */
}

.mobile-search-capsule-wrapper {
  flex: 1;
  min-width: 0;
}

.mobile-search-capsule-wrapper .search-capsule-container {
  padding: 0;
}

.mobile-search-capsule-wrapper .search-capsule {
  padding: 8px 0px;
  border-radius: 24px;
}

.mobile-search-capsule-wrapper .capsule-title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-search-capsule-wrapper .capsule-subtitle {
  font-size: 11px;
  margin-top: 2px;
}

.mobile-search-capsule-wrapper .search-capsule i {
  padding-right: 20px;
  font-size: 14px;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  -webkit-backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
              inset 0 4px 20px rgba(255, 255, 255, 0.3);
  color: #222222;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3),
              inset 0 4px 20px rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.mobile-menu-btn .fa-user-circle {
  font-size: 18px;
  color: #717171;
}

/* Mobile dropdown positioning */
.header-dropdown-menu.mobile-dropdown {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
  bottom: auto !important;
  left: auto !important;
  right: 12px !important;
  min-width: 200px !important;
  max-width: 240px !important;
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - 80px);
  overflow-y: auto;
}

.mobile-dropdown-left {
  left: 12px;
  right: auto;
  max-width: 240px;
}

.mobile-search-capsule-container .search-capsule-container {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Bottom Sheet */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
}

.bottom-sheet-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 8px 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.bottom-sheet-handle:active {
  cursor: grabbing;
}

.handle-bar {
  width: 44px;
  height: 5px;
  background-color: #d1d1d6;
  border-radius: 3px;
}

.bottom-sheet-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Sitter list inside bottom sheet */
.bottom-sheet .sitter-list {
  width: 100%;
  background-color: #ffffff;
  border: none;
}

/* ============================================
   SEARCH CAPSULE (shared) - Glassmorphism Style
   ============================================ */

.search-capsule-container {
  width: 100%;
}

.search-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  -webkit-backdrop-filter: blur(2px) saturate(180%);
  border-radius: 32px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), 
              inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

.search-capsule::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(255, 255, 255, 0.1); */
  border-radius: 32px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
              inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
  pointer-events: none;
}

.search-capsule:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3), 
              inset 0 4px 20px rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.9);
}

.search-capsule-content {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.capsule-title {
  font-size: 16px;
  font-weight: 600;
  color: #604f4f;
  margin: 0;
  display: block;
}

.capsule-subtitle {
  font-size: 13px;
  color: #757575;
  margin: 4px 0 0 0;
  display: block;
}

.search-capsule i {
  color: #616161;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* ============================================
   AIRBNB-STYLE SEARCH BAR (Desktop)
   ============================================ */

.airbnb-search-bar-container {
  position: relative;
  width: 100%;
  max-width: 850px;
  z-index: 100;
}

.airbnb-search-bar {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 500px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  height: 66px;
  overflow: hidden;
  max-width: 100%;
}

.airbnb-search-bar:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

.airbnb-search-bar.expanded {
  background: #ebebeb;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.airbnb-search-bar .search-section {
  flex: 1;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  min-width: 0;
  overflow: hidden;
}

.airbnb-search-bar .search-section:hover {
  background-color: #f5f5f5;
}

.airbnb-search-bar.expanded .search-section:hover {
  background-color: #dddddd;
}

.airbnb-search-bar .search-section.active {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.airbnb-search-bar .section-label {
  font-size: 12px;
  font-weight: 600;
  color: #222222;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
  line-height: 1;
}

.airbnb-search-bar .section-value {
  font-size: 14px;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-width: 100%;
}

.airbnb-search-bar .section-value.placeholder {
  color: #717171;
  font-weight: 400;
}

.airbnb-search-bar .section-divider {
  width: 1px;
  height: 28px;
  background-color: #e0e0e0;
  flex-shrink: 0;
  align-self: center;
  transition: opacity 0.2s ease;
}

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

.airbnb-search-bar .service-section {
  min-width: 120px;
  max-width: 180px;
  padding-left: 28px;
  flex-shrink: 1;
}

.airbnb-search-bar .location-section {
  min-width: 120px;
  flex-shrink: 1;
}

.airbnb-search-bar .dates-section {
  min-width: 120px;
  flex-shrink: 1;
}

.airbnb-search-bar .pets-section {
  min-width: 120px;
  flex-shrink: 1;
}

/* Search button - collapsed state (circular, icon only) */
.airbnb-search-bar .search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 7px;
  margin-left: 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  box-shadow: 0 2px 8px rgba(227, 28, 95, 0.35);
}

.airbnb-search-bar .search-button:hover {
  background: linear-gradient(135deg, #E31C5F 0%, #D70466 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(227, 28, 95, 0.45);
}

.airbnb-search-bar .search-button i {
  font-size: 16px;
}

.airbnb-search-bar .search-button span {
  display: none;
}

/* Search button - expanded state (full button with text) */
.airbnb-search-bar.expanded .search-button {
  border-radius: 500px;
  width: auto;
  min-width: 48px;
  max-width: 120px;
  padding: 0 20px;
  gap: 8px;
  background: linear-gradient(to right, #e61e4d, #e31c5f, #d70466);
}

.airbnb-search-bar.expanded .search-button span {
  display: inline;
}

.airbnb-search-bar.expanded .search-button:hover {
  background: linear-gradient(to right, #d70466, #c91854, #bd1358);
  transform: scale(1.02);
}

/* Search Dropdowns */
.search-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease;
  overflow: hidden;
}

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

.search-dropdown .dropdown-content {
  padding: 20px;
}

/* Service Dropdown */
.service-dropdown {
  width: 420px;
  max-height: calc(100vh - 200px);
  min-height: 400px;
  overflow-y: auto;
}

.service-dropdown .service-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.service-dropdown .service-option:hover {
  background-color: #f7f7f7;
}

.service-dropdown .service-option.selected {
  background-color: #f0f0f0;
}

.service-dropdown .service-emoji {
  font-size: 32px;
  flex-shrink: 0;
}

.service-dropdown .service-info {
  flex: 1;
}

.service-dropdown .service-title {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 4px;
}

.service-dropdown .service-subtitle {
  font-size: 14px;
  color: #717171;
  line-height: 1.4;
}

.service-dropdown .service-option .fa-check {
  color: #222222;
  font-size: 16px;
}

/* Location Dropdown - Clean Simple Style */
.location-dropdown {
  width: 400px;
  max-height: 400px;
  overflow-y: auto;
}

.location-dropdown .location-input-wrapper {
  margin-bottom: 16px;
}

.location-dropdown .location-search-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid #ebebeb;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: #222222;
}

.location-dropdown .location-search-input:focus {
  border-bottom-color: #222222;
}

.location-dropdown .location-search-input::placeholder {
  color: #b0b0b0;
}

.location-dropdown .nearby-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  font-size: 15px;
  color: #222222;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}

.location-dropdown .nearby-option:hover {
  background-color: #f7f7f7;
}

.location-dropdown .nearby-option i {
  color: #ff385c;
  font-size: 16px;
}

.location-dropdown .location-history {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ebebeb;
}

.location-dropdown .history-header {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding: 0 20px;
}

.location-dropdown .history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.location-dropdown .history-item:hover {
  background-color: #f7f7f7;
}

.location-dropdown .history-item i {
  color: #717171;
  font-size: 14px;
}

.location-dropdown .history-item span {
  font-size: 14px;
  color: #222222;
}

/* Dates Dropdown */
.dates-dropdown {
  width: 680px;
  left: 50%;
  transform: translateX(-50%);
}

/* Date Mode Tabs */
.dates-dropdown .date-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  background: #ebebeb;
  border-radius: 500px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.dates-dropdown .date-mode-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  background: transparent;
  border: none;
  border-radius: 500px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dates-dropdown .date-mode-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
}

.dates-dropdown .date-mode-tab.active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.dates-dropdown .calendar-wrapper {
  display: flex;
  justify-content: center;
}

.dates-dropdown .react-calendar {
  border: none;
  font-family: inherit;
  width: 100%;
  max-width: 700px;
}

/* Double view calendar - months side by side like Airbnb */
.dates-dropdown .react-calendar--doubleView {
  width: 100%;
  max-width: 700px;
}

.dates-dropdown .react-calendar--doubleView .react-calendar__viewContainer {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.dates-dropdown .react-calendar--doubleView .react-calendar__viewContainer > div {
  flex: 1;
  width: 50% !important;
}

.dates-dropdown .react-calendar__navigation {
  margin-bottom: 16px;
}

.dates-dropdown .react-calendar__navigation button {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
}

.dates-dropdown .react-calendar__month-view__weekdays {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
}

/* Single letter day names like Airbnb */
.dates-dropdown .react-calendar__month-view__weekdays__weekday abbr {
  text-decoration: none;
  font-size: 12px;
}

.dates-dropdown .react-calendar__tile {
  padding: 12px;
  font-size: 14px;
}

.dates-dropdown .react-calendar__tile:hover {
  background-color: #f7f7f7;
}

.dates-dropdown .react-calendar__tile--active,
.dates-dropdown .react-calendar__tile--rangeStart,
.dates-dropdown .react-calendar__tile--rangeEnd {
  background: #222222 !important;
  color: #ffffff !important;
}

.dates-dropdown .react-calendar__tile--hasActive {
  background: #f7f7f7;
}

.dates-dropdown .dates-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}

.dates-dropdown .clear-dates-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  text-decoration: underline;
  cursor: pointer;
}

.dates-dropdown .apply-dates-btn {
  padding: 12px 24px;
  background: #222222;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dates-dropdown .apply-dates-btn:hover {
  background: #000000;
}

/* Flexible Date Options */
.dates-dropdown .flexible-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}

.dates-dropdown .flexible-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 500px;
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dates-dropdown .flexible-date-chip:hover {
  border-color: #222222;
}

.dates-dropdown .flexible-date-chip.active {
  background: #f0f0f0;
  border-color: #222222;
  font-weight: 600;
}

.dates-dropdown .flexible-date-chip .chip-icon {
  font-size: 11px;
  color: #717171;
}

/* Pets Dropdown */
.pets-dropdown {
  width: 320px;
  right: 0;
  left: auto;
}

.pets-dropdown .pets-list {
  max-height: 300px;
  overflow-y: auto;
}

.pets-dropdown .pet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pets-dropdown .pet-option:hover {
  background-color: #f7f7f7;
}

.pets-dropdown .pet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pets-dropdown .pet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pets-dropdown .pet-avatar i {
  color: #717171;
  font-size: 20px;
}

.pets-dropdown .pet-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
}

.pets-dropdown .pet-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #dddddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pets-dropdown .pet-checkbox.checked {
  background: #222222;
  border-color: #222222;
}

.pets-dropdown .pet-checkbox i {
  color: #ffffff;
  font-size: 12px;
}

.pets-dropdown .no-pets-message {
  text-align: center;
  padding: 24px;
  color: #717171;
}

.pets-dropdown .no-pets-message i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.pets-dropdown .no-pets-message p {
  font-size: 14px;
  margin: 0;
}

.pets-dropdown .add-pet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: none;
  border: 1px dashed #dddddd;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pets-dropdown .add-pet-btn:hover {
  border-color: #222222;
  background-color: #f7f7f7;
}

/* Search Overlay - removed blur for seamless section switching like Airbnb */
.search-overlay {
  display: none; /* No longer used - overlay removed */
}

/* Hide Airbnb search bar only on small mobile - keep using capsule */
@media (max-width: 767px) {
  .airbnb-search-bar-container {
    display: none;
  }
}

/* Responsive adjustments for Airbnb search bar on tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .airbnb-search-bar .search-section {
    padding: 10px 12px;
  }

  .airbnb-search-bar .section-label {
    font-size: 11px;
  }

  .airbnb-search-bar .section-value {
    font-size: 13px;
  }

  .airbnb-search-bar .service-section {
    min-width: 40px;
    max-width: 140px;
  }

  .airbnb-search-bar .location-section {
    min-width: 40px;
  }

  .airbnb-search-bar .dates-section {
    min-width: 40px;
  }

  .airbnb-search-bar .pets-section {
    min-width: 40px;
    max-width: 100px;
  }

  .airbnb-search-bar .search-button span {
    display: none;
  }

  .airbnb-search-bar .search-button {
    width: 44px;
    height: 44px;
    margin: 10px 8px 10px 4px;
  }
}

.search-section.service-section  {
  padding-left: 24px !important;
}
/* Responsive adjustments for smaller desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
  .airbnb-search-bar .search-section {
    padding: 12px 16px;
  }

  .airbnb-search-bar .search-button span {
    display: none;
  }

  .airbnb-search-bar .search-button {
    padding: 12px 16px;
  }
}

/* ============================================
   MAP STYLES
   ============================================ */

.map-view {
  width: 100%;
  height: 100%;
  background-color: #e8e8e8;
}

.map-container {
  flex: 1;
  position: relative;
}

/* Map loading indicator */
.map-loading-indicator {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

/* Position loading indicator properly on mobile */
.map-fullscreen .map-loading-indicator {
  top: 80px;
}

.loading-dots {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  animation: dots 1s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: ''; }
}

/* Map Avatar Markers */
.map-avatar-marker {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background-color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-avatar-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000 !important;
}

.map-avatar-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.map-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 20px;
}

/* ============================================
   SITTER LIST & CARDS
   ============================================ */

.sitter-list {
  background-color: #ffffff;
}

/* No extra padding for loading state - skeleton cards have their own padding */

/* Sitter Card - matching mobile */
a.sitter-card,
a.sitter-card:link,
a.sitter-card:visited,
a.sitter-card:hover,
a.sitter-card:active {
  display: block;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

a.sitter-card:hover {
  background-color: #fafafa;
}

.sitter-card:last-child {
  border-bottom: none;
}

.sitter-top-section {
  display: flex;
  gap: 16px;
}

.sitter-image {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e0e0e0;
}

.sitter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sitter-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.sitter-content {
  flex: 1;
  min-width: 0;
}

.sitter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sitter-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding-right: 12px;
}

.sitter-price {
  text-align: right;
  flex-shrink: 0;
}

.price-from {
  display: block;
  font-size: 11px;
  color: #757575;
}

.price-amount {
  font-size: 18px;
  font-weight: 700;
  color: #212121;
  line-height: 1.2;
}

.price-unit {
  font-size: 11px;
  color: #757575;
}

.add-service-text {
  font-size: 11px;
  color: #757575;
  text-align: right;
  flex-shrink: 0;
  white-space: pre-line;
}

.sitter-location {
  margin-right: 30px;
  display: flex;
  align-items: center;
  color: #757575;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.sitter-location i {
  margin-right: 4px;
  font-size: 12px;
  color: #9e9e9e;
}

.sitter-location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitter-distance {
  display: flex;
  align-items: center;
  color: #757575;
  font-size: 14px;
  font-weight: 500;
}

.sitter-distance i {
  margin-right: 6px;
  font-size: 12px;
  color: #9e9e9e;
}

.sitter-availability {
  display: flex;
  align-items: center;
  margin-top: 4px;
  color: #2e7d32;
  font-size: 12px;
}

.sitter-availability i {
  margin-right: 6px;
  font-size: 14px;
}

/* Bookmark icon */
.sitter-bookmark {
  flex-shrink: 0;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
}

.sitter-bookmark:hover {
  color: #6a63a6;
}

/* Total price row - shown when dates selected */
.sitter-total-price-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 6px;
}

.sitter-total-price-row i {
  color: #666;
  font-size: 14px;
}

.total-price-amount {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
}

.total-price-unit {
  font-size: 14px;
  color: #757575;
}

/* Base price row - shown when no dates selected */
.sitter-base-price-row {
  display: flex;
  align-items: baseline;
  margin-top: 6px;
  gap: 4px;
}

.sitter-base-price-row .price-from {
  display: inline;
  font-size: 12px;
  color: #757575;
}

.base-price-amount {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
}

.base-price-unit {
  font-size: 12px;
  color: #757575;
}

/* Add location prompt - matching mobile */
.sitter-add-location {
  display: flex;
  align-items: center;
  color: #757575;
  font-size: 12px;
}

.sitter-add-location i {
  margin-right: 6px;
  font-size: 12px;
  color: #9e9e9e;
}

/* Add service message row - matching mobile */
.sitter-add-service-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 6px;
  color: #757575;
  font-size: 12px;
}

.sitter-add-service-row i {
  color: #666;
  font-size: 14px;
}

/* Price from text in left-aligned row */
.price-from-left {
  font-size: 12px;
  color: #757575;
  margin-right: 4px;
}

/* Legacy add service message */
.sitter-add-service {
  margin-top: 6px;
  font-size: 12px;
  color: #757575;
}

/* Review section */
.sitter-review-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.sitter-rating {
  margin-bottom: 8px;
}

.star-rating {
  display: flex;
  align-items: center;
}

.star-rating .stars {
  display: flex;
  gap: 2px;
}

.star-rating .stars i {
  font-size: 14px;
  color: #4f46e5;
}

.star-rating .stars i.far {
  color: #e0e0e0;
}

.star-rating .review-count {
  margin-left: 6px;
  font-size: 12px;
  color: #757575;
}

.sitter-review-text {
  margin: 0;
  font-size: 13px;
  color: #616161;
  font-style: italic;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.sitter-card.skeleton {
  pointer-events: none;
  display: flex;
  gap: 16px;
  padding: 16px;
}

.skeleton-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 40px;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  height: 16px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   NO RESULTS STATE
   ============================================ */

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #757575;
}

.no-results i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #e0e0e0;
}

.no-results h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #424242;
}

.no-results p {
  margin: 0;
  font-size: 14px;
  max-width: 280px;
}

/* ============================================
   SEARCH MODAL - Airbnb Style
   ============================================ */

.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  padding: 20px;
  pointer-events: auto;
}

/* Hide bottom sheet (Vaul/Radix drawer) when search modal is open */
/* Only hide when modal is actually visible (not just in DOM) */
body.search-modal-active [role="dialog"][data-vaul-drawer] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.search-modal {
  background-color: #f8f8f8;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  max-height: 700px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #212121;
  flex: 1;
  text-align: center;
}

.modal-header button {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #212121;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.modal-header button i {
  font-size: 20px;
}

.modal-header button:hover {
  background-color: #f5f5f5;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  background: #f8f8f8;
}

/* Keep all sections visible when one is expanded - scrollable layout */

/* Expandable Section Styles - matching mobile */
.modal-section {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.modal-section.expanded {
  border-color: #6366f1;
}

.section-header {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.section-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.section-icon {
  margin-right: 12px;
  color: #717171;
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon i {
  font-size: 18px;
}

.section-content-wrapper {
  flex: 1;
  min-width: 0;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-value {
  font-size: 16px;
  font-weight: 500;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-placeholder {
  font-size: 16px;
  color: #717171;
}

.section-chevron {
  margin-left: auto;
  color: #717171;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-chevron i {
  font-size: 14px;
}

.section-body {
  padding: 16px;
  padding-top: 0;
  animation: slideDown 0.2s ease-out;
}

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

/* Service Content - matching mobile serviceCard styles */
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.service-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: transparent;
}

.service-card:hover {
  border-color: #c0c0c0;
}

.service-card.active {
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.06);
}

.service-emoji {
  font-size: 40px;
  margin-right: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.service-text-container {
  flex: 1;
  min-width: 0;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 4px;
}

.service-subtitle {
  font-size: 13px;
  color: #717171;
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Location Content - matching mobile locationContent */
.location-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-content input[type="text"] {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.location-content input[type="text"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #212121;
  font-size: 14px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="date"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Location input with button */
.location-input-wrapper {
  position: relative;
  display: flex;
  gap: 8px;
}

.location-input-wrapper input {
  flex: 1;
}

.location-btn {
  padding: 14px 16px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #6366f1;
  transition: all 0.15s ease;
  flex-shrink: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-btn:hover {
  background-color: #ebebeb;
}

.location-btn:active {
  transform: scale(0.97);
}

.location-btn i {
  font-size: 18px;
}

/* Form row for date inputs */
.form-row {
  display: flex;
  gap: 16px;
}

.form-col {
  flex: 1;
}

.form-col label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #212121;
  font-size: 14px;
}

.form-col input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-col input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Footer - matching mobile styles */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid #e0e0e0;
  background-color: #f8f8f8;
  gap: 12px;
  flex-shrink: 0;
}

.clear-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s;
}

.clear-btn:hover {
  opacity: 0.7;
}

.search-btn {
  flex: 1;
  padding: 14px 20px;
  background: #6366f1;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-btn:hover {
  background: #5558e3;
}

.search-btn:active {
  transform: scale(0.98);
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-btn i {
  font-size: 16px;
}

/* Google Places Autocomplete dropdown styling */
.pac-container {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  font-family: inherit;
  z-index: 10000 !important;
}

.pac-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
}

.pac-item:hover {
  background-color: #f5f5f5;
}

.pac-item-query {
  font-size: 14px;
  color: #212121;
}

.pac-matched {
  font-weight: 600;
}

/* ============================================
   NEW SEARCH MODAL COMPONENTS - Mobile-matching styles
   ============================================ */

/* Calendar container */
.calendar-container {
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 12px;
}

/* react-calendar overrides - Clean mobile-like design */
.react-calendar {
  width: 100%;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: white;
  padding: 0;
}

.react-calendar__navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  height: auto;
}

.react-calendar__navigation button {
  min-width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  padding: 0;
}

.react-calendar__navigation__label {
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  pointer-events: none;
  flex-grow: 0 !important;
}

.react-calendar__navigation__arrow {
  color: #717171;
  font-size: 18px;
}

.react-calendar__navigation button:enabled:hover,
.react-calendar__navigation button:enabled:focus {
  background-color: transparent;
}

.react-calendar__navigation button:disabled {
  color: #d1d1d1;
}

.react-calendar__month-view__weekdays {
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  color: #717171;
  margin-bottom: 8px;
}

.react-calendar__month-view__weekdays__weekday {
  padding: 8px 0;
}

.react-calendar__month-view__weekdays abbr {
  text-decoration: none;
}

/* Clean date tiles - no borders by default */
.react-calendar__tile {
  padding: 0;
  background: none;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: #212121;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
}

.react-calendar__tile:disabled {
  color: #d1d1d1;
  background: none;
}

.react-calendar__tile:enabled:hover {
  background-color: #f5f5f5;
  border-radius: 50%;
}

.react-calendar__tile:enabled:focus {
  background: none;
}

/* Today's date - subtle indicator, neutral first */
.react-calendar__tile--now {
  background: transparent !important;
  color: #222222;
  font-weight: 600;
  position: relative;
}

.react-calendar__tile--now::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #222222;
  border-radius: 50%;
}

.react-calendar__tile--now:enabled:hover {
  background: #f5f5f5 !important;
  border-radius: 50%;
}

/* Selected dates - dark neutral like Airbnb */
.react-calendar__tile--active {
  background: #222222 !important;
  color: white !important;
  font-weight: 500;
}

/* Connected pill-shaped range selection like Airbnb */
.react-calendar__tile--rangeStart {
  background: #222222 !important;
  color: white !important;
  border-radius: 50% 0 0 50% !important;
}

.react-calendar__tile--rangeEnd {
  background: #222222 !important;
  color: white !important;
  border-radius: 0 50% 50% 0 !important;
}

.react-calendar__tile--rangeBetween {
  background: #f7f7f7 !important;
  color: #222222 !important;
  border-radius: 0 !important;
}

/* Single date selection (start equals end) */
.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd {
  border-radius: 50% !important;
}

/* Hide double navigation arrows */
.react-calendar__navigation__prev2-button,
.react-calendar__navigation__next2-button {
  display: none;
}

/* Hide neighboring month dates to avoid duplicate display in double view */
.react-calendar__month-view__days__day--neighboringMonth {
  visibility: hidden !important;
  pointer-events: none !important;
}

.react-calendar__tile.selected-start {
  background: #6366f1 !important;
  color: white !important;
  border-radius: 50% !important;
}

/* Schedule toggle - matching mobile style with separate bordered buttons */
.schedule-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #717171;
  transition: all 0.2s;
}

.toggle-btn:hover {
  border-color: #b0b0b0;
}

.toggle-btn.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  color: #212121;
  font-weight: 600;
}

/* Weekly day selection */
.calendar-help-text {
  font-size: 13px;
  font-weight: 500;
  color: #717171;
  margin-bottom: 12px;
}

.day-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 4px;
}

.day-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 400;
  color: #717171;
  background: transparent;
}

.day-circle:hover {
  border-color: #6366f1;
}

.day-circle.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  color: #212121;
  font-weight: 600;
}

/* Dates content */
.dates-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dates-content .calendar-container {
  margin-bottom: 12px;
}

/* Section continue button - matching mobile confirmDatesButton */
.section-continue-button {
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  padding-top: 14px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.section-continue-button:hover {
  background: #5558e3;
}

.section-continue-button:active {
  transform: scale(0.98);
}

.section-continue-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Wrapper for scrollable content + button at bottom */
.section-content-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.section-button-wrapper {
  flex-shrink: 0;
  padding-top: 12px;
}

/* Search button variant with icon */
.section-continue-button.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-continue-button.search-button i {
  font-size: 16px;
}

/* Flex dates section */
/* Section body styles - no forced full height */

/* Section chevron rotation */
.section-chevron.rotated {
  transform: rotate(180deg);
}

/* Duration options - matching mobile visitDurationContent */
.duration-content {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.duration-label {
  font-size: 14px;
  font-weight: 500;
  color: #717171;
  margin-bottom: 12px;
}

.duration-options-row {
  display: flex;
  gap: 12px;
}

.duration-option-card {
  flex: 1;
  padding: 20px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
}

.duration-option-card:hover {
  border-color: #c0c0c0;
}

.duration-option-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.duration-option-label {
  font-size: 18px;
  font-weight: 600;
  color: #212121;
}

/* Visit times / Time slot picker - matching mobile */
.visit-times-content {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-time-slot-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.day-time-slot-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.day-date-label {
  font-size: 15px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 4px;
}

.day-time-slot-hint {
  font-size: 13px;
  color: #717171;
  margin-bottom: 10px;
}

.time-slot-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.time-slot-chip {
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid #e0e0e0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #717171;
  transition: all 0.15s ease;
}

.time-slot-chip:hover {
  border-color: #6366f1;
}

.time-slot-chip.selected {
  border-color: #6366f1;
  background: #6366f1;
  color: white;
}

/* Use same times toggle */
.use-same-times-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
}

.use-same-times-label {
  font-size: 14px;
  color: #212121;
}

.toggle-switch {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #e0e0e0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: #6366f1;
}

.toggle-knob {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(20px);
}

.no-dates-message {
  text-align: center;
  color: #717171;
  padding: 24px;
  font-size: 14px;
}

/* Pets section - matching mobile petsContent */
.pets-content {
  min-height: 80px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pets-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 8px 4px;
  -webkit-overflow-scrolling: touch;
}

.pets-scroll::-webkit-scrollbar {
  display: none;
}

.pet-card {
  width: 88px;
  flex-shrink: 0;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pet-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

.pet-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.pet-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8e8e8;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.pet-avatar i {
  font-size: 28px;
  color: #c0c0c0;
}

.pet-name {
  font-size: 13px;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 8px;
}

.add-pet-card {
  width: 88px;
  flex-shrink: 0;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  border: 2px dashed #d0d0d0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-pet-card:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.03);
}

.add-pet-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-pet-circle i {
  font-size: 28px;
  color: #6366f1;
}

/* Address history - matching mobile historyItem */
.address-history {
  margin-top: 12px;
}

.history-label {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s ease;
}

.history-item:hover {
  background: #ebebeb;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item i {
  color: #717171;
  font-size: 16px;
  flex-shrink: 0;
}

.history-item span {
  font-size: 14px;
  color: #212121;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Current location button */
.current-location-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
}

.current-location-btn:hover {
  background: #ebebeb;
}

.current-location-btn i {
  color: #6366f1;
  font-size: 16px;
}

.current-location-btn span {
  font-size: 15px;
  color: #6366f1;
  font-weight: 500;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
  @media (min-width: 1200px) {
    .search-top-bar {
      /* grid-template-columns: minmax(120px, auto) 1fr minmax(120px, auto); */
      padding: 12px 24px;
      gap: 16px;
    }
  }
@media (max-width: 1200px) {
  .search-top-bar {
    grid-template-columns: minmax(120px, auto) 1fr minmax(120px, auto);
    padding: 12px 24px;
    gap: 16px;
  }

  .search-top-bar .search-capsule-container {
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .search-top-bar {
    grid-template-columns: auto 1fr auto;
    padding: 12px 20px;
    gap: 12px;
  }


  .search-top-bar .search-capsule-container {
    max-width: 400px;
    min-width: 200px;
  }

  .explore-search-container.desktop .sitter-list-container {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
  }
  
  .explore-search-container.desktop .sitter-list {
    width: 100%;
  }
}

/* Tablet breakpoint - still side by side but smaller */
@media (max-width: 768px) {
  /* Mobile styles are handled by the .mobile class in React */
  
  /* Modal adjustments for mobile - full screen */
  .search-modal-overlay {
    padding: 0;
    align-items: stretch;
    z-index: 10000;
  }
  
  .search-modal {
    border-radius: 0;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-col {
    margin-bottom: 0;
  }
  
  .section-body {
    /* Remove max-height on mobile to allow full expansion */
    max-height: none;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .mobile-search-capsule-container {
    padding: 8px;
  }
  
  .search-capsule {
    padding: 10px 16px;
  }
  
  .capsule-title {
    font-size: 14px;
  }
  
  .capsule-subtitle {
    font-size: 12px;
  }
  
  .sitter-card {
    padding: 12px;
  }
  
  .sitter-image {
    width: 128px;
    height: 128px;
  }
  
  .sitter-name {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 12px 16px;
  }
  
  .bottom-sheet-handle {
    padding: 10px 0 6px 0;
  }
  
  .handle-bar {
    width: 36px;
    height: 4px;
  }
}

/* Safe area support for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-sheet {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .search-modal {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================
   REACT-MODAL-SHEET OVERRIDES
   ============================================ */

/* Sheet container styling */
[data-rsbs-root] {
  z-index: 200 !important;
}

[data-rsbs-overlay] {
  background: transparent !important;
}

[data-rsbs-backdrop] {
  display: none !important;
}

[data-rsbs-sheet] {
  background-color: #ffffff !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Header handle styling */
[data-rsbs-header] {
  padding: 12px 0 8px 0 !important;
  cursor: grab !important;
}

[data-rsbs-header]::before {
  content: '' !important;
  display: block !important;
  width: 44px !important;
  height: 5px !important;
  background-color: #d1d1d6 !important;
  border-radius: 3px !important;
  margin: 0 auto !important;
}

[data-rsbs-header]:active {
  cursor: grabbing !important;
}

/* Content area */
[data-rsbs-content] {
  background-color: #ffffff !important;
}

[data-rsbs-scroll] {
  -webkit-overflow-scrolling: touch !important;
}

/* Sitter list inside sheet */
[data-rsbs-scroll] .sitter-list {
  width: 100%;
  background-color: #ffffff;
  border: none;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Ensure list has proper height */
[data-rsbs-content] .sitter-list {
  min-height: 100%;
}

/* Fix for sheet not blocking map interaction when collapsed */
[data-rsbs-root][data-rsbs-state="closed"] {
  pointer-events: none;
}

/* Animate smoothly */
[data-rsbs-sheet] {
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

/* ============================================
   HEADER NAVIGATION STYLES (Airbnb-style)
   ============================================ */

.search-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.search-header.transparent {
  background-color: transparent;
  border-bottom: none;
  box-shadow: none;
}

.search-header-container {
  max-width: 1760px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.search-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #FF385C;
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
}

.search-header-logo img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 24px;
}

/* Navigation Links */
.search-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-grow: 1;
  justify-content: center;
}

.search-header-nav .nav-link {
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 24px;
  transition: background-color 0.2s ease;
}

.search-header-nav .nav-link:hover {
  background-color: #f7f7f7;
}

/* Right Actions */
.search-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.become-host-link {
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 24px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.become-host-link:hover {
  background-color: #f7f7f7;
}

/* Dropdowns */
.header-dropdown {
  position: relative;
}

.header-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 24px;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  color: #222222;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.header-dropdown-trigger:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.user-menu-trigger {
  gap: 10px;
  padding: 6px 6px 6px 12px;
}

.user-menu-trigger .fa-user-circle {
  font-size: 28px;
  color: #717171;
}

.dropdown-label {
  font-size: 14px;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 240px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 1001;
}

.dropdown-menu-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  color: #222222;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-menu-item:hover {
  background-color: #f7f7f7;
}

.dropdown-menu-item.active {
  background-color: #f7f7f7;
  font-weight: 600;
}

.dropdown-flag {
  font-size: 20px;
}

.dropdown-symbol {
  font-size: 16px;
  font-weight: 600;
  width: 24px;
  text-align: center;
}

.dropdown-menu-divider {
  height: 1px;
  background-color: #ebebeb;
  margin: 8px 0;
}

.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

.mobile-menu-toggle {
  display: none;
  padding: 8px;
  border: 1px solid #dddddd;
  border-radius: 24px;
  background-color: #ffffff;
  color: #222222;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile Header Styles */
@media (max-width: 1024px) {
  .search-header-nav {
    display: none;
  }
  
  .search-header-container {
    padding: 12px 24px;
  }
  
  .become-host-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .search-header-container {
    padding: 8px 16px;
  }
  
  .search-header-actions {
    gap: 8px;
  }
  
  .dropdown-label {
    display: none;
  }
  
  .header-dropdown-trigger {
    padding: 8px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   FOOTER STYLES (Airbnb-style)
   ============================================ */

.search-footer {
  background-color: #f7f7f7;
  border-top: 1px solid #dddddd;
  padding: 48px 0 24px 0;
}

.footer-container {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

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

/* App Store Links */
.footer-app-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-store-link {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-link:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.app-store-link svg {
  display: block;
  border-radius: 6px;
}

.app-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-badge-link:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 130px;
}

.app-badge-icon {
  flex-shrink: 0;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-badge-subtitle {
  color: #fff;
  font-size: 9px;
  font-weight: 400;
}

.app-badge-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-column-title {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: #717171;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #222222;
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #dddddd;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #717171;
  font-size: 14px;
}

.footer-bottom-left a {
  color: #717171;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-left a:hover {
  color: #222222;
  text-decoration: underline;
}

.footer-separator {
  color: #dddddd;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: #222222;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: #FF385C;
}

/* Tablet Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Footer */
@media (max-width: 768px) {
  .search-footer {
    padding: 32px 0 16px 0;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-app-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-store-link svg {
    width: 100px;
    height: 33px;
  }
}

/* ============================================
   SEO CONTENT STYLES - Following Sittsy Design Guide
   Colors: Neutral-first, minimal purple (only active states)
   Typography: Apple-style clean design
   ============================================ */

.seo-content {
  background-color: #ffffff;
  padding: 64px 0 80px;
}

.seo-content-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Main Title - Apple-style large headline */
.seo-title {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Description - Centered, readable */
.seo-description {
  font-size: 17px;
  color: #86868b;
  line-height: 1.5;
  margin: 0 auto 56px;
  max-width: 680px;
  text-align: center;
}

.seo-description p {
  margin: 0 0 16px 0;
}

.seo-description p:last-child {
  margin-bottom: 0;
}

/* Rich SEO Intro - Bold headline */
.seo-intro {
  font-size: 19px;
  color: #1d1d1f;
  text-align: left;
  max-width: none;
}

.seo-intro strong {
  font-weight: 600;
}

/* City Description - AI-generated */
.seo-city-desc {
  font-size: 16px;
  color: #515154;
  line-height: 1.6;
  text-align: left;
}

/* Service Value Proposition */
.seo-value-prop {
  font-size: 16px;
  color: #515154;
  font-style: italic;
  text-align: left;
}

/* Stats Columns Container */
.seo-stats-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  padding: 24px;
  background: #f5f5f7;
  border-radius: 16px;
}

/* Individual Stats Column */
.seo-stats-column h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.seo-stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-stats-list li {
  font-size: 15px;
  color: #515154;
  padding: 6px 0;
  border-bottom: 1px solid #e8e8ed;
}

.seo-stats-list li:last-child {
  border-bottom: none;
}

/* Pricing Context */
.seo-pricing {
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 500;
  text-align: left;
  padding: 16px 0;
  border-top: 1px solid #e8e8ed;
  margin-top: 24px;
}

/* Mobile responsive for stats columns */
@media (max-width: 768px) {
  .seo-stats-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .seo-intro,
  .seo-city-desc,
  .seo-value-prop,
  .seo-pricing {
    text-align: left;
  }
}

/* Section subtitles - Clean hierarchy */
.seo-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.seo-features .seo-subtitle,
.seo-services .seo-subtitle,
.seo-locations .seo-subtitle,
.seo-faq .seo-subtitle,
.seo-trust .seo-subtitle {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Intro text for sections */
.seo-services-intro,
.seo-locations-intro {
  font-size: 15px;
  color: #86868b;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ----------------------------------------
   Features Grid - Apple-style cards
   ---------------------------------------- */
.seo-features {
  margin-bottom: 64px;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.seo-feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  background-color: #f5f5f7;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seo-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Icon - Clean circular style */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.seo-feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.seo-feature-card p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}

/* ----------------------------------------
   Services List - Apple-style clean cards
   ---------------------------------------- */
.seo-services {
  margin-bottom: 64px;
}

.seo-services-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  border: none;
  text-decoration: none;
  background-color: #f5f5f7;
  transition: all 0.25s ease;
}

.service-item:hover {
  background-color: #e8e8ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-emoji {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.service-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 4px 0;
}

.service-item p {
  font-size: 13px;
  color: #86868b;
  line-height: 1.4;
  margin: 0;
}

/* ----------------------------------------
   FAQ Section - Clean expandable style
   ---------------------------------------- */
.seo-faq {
  margin-bottom: 64px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.faq-item {
  padding: 24px 0;
  border-radius: 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #e5e5e5;
}

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

.faq-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.faq-item p {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------
   Locations Grid - Apple-style pills
   ---------------------------------------- */
.seo-locations {
  margin-bottom: 48px;
}

.locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  font-size: 14px;
  background-color: #f5f5f7;
  transition: all 0.2s ease;
}

.location-link:hover {
  background-color: #e8e8ed;
  transform: scale(1.02);
}

.location-link .location-name {
  font-weight: 500;
  color: #1d1d1f;
  font-size: 14px;
}

.location-link .sitter-count {
  font-size: 12px;
  color: #86868b;
  font-weight: 400;
}

.location-link.popular {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.location-link.popular i {
  color: #86868b;
  font-size: 12px;
}

.locations-grid.popular {
  /* Same styling as regular grid */
}

/* Legacy support */
.locations-grid a:not(.location-link) {
  padding: 12px 18px;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  background-color: #f5f5f7;
  transition: all 0.2s ease;
}

.locations-grid a:not(.location-link):hover {
  background-color: #e8e8ed;
}

/* ----------------------------------------
   Trust Section - Apple-style callout
   ---------------------------------------- */
.seo-trust {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  border-radius: 20px;
  border: none;
}

.seo-trust h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.seo-trust p {
  margin: 0;
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.6;
}

/* ----------------------------------------
   Mobile SEO Content - Apple responsive
   ---------------------------------------- */
@media (max-width: 768px) {
  .seo-content {
    padding: 48px 0 64px;
    background-color: #ffffff;
  }

  .seo-content-container {
    padding: 0 20px;
  }

  .seo-title {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: left;
  }

  .seo-description {
    font-size: 15px;
    margin-bottom: 40px;
    text-align: left;
  }

  .seo-subtitle {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .seo-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .seo-feature-card {
    padding: 20px;
    border-radius: 16px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .seo-feature-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .seo-feature-card p {
    font-size: 13px;
  }

  /* Services list - single column on mobile */
  .seo-services-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .locations-grid {
    gap: 8px;
  }

  .location-link {
    padding: 10px 14px;
    border-radius: 20px;
  }

  .location-link .location-name {
    font-size: 13px;
  }

  .service-item {
    padding: 16px 18px;
    gap: 14px;
    border-radius: 14px;
  }
  
  .service-emoji {
    font-size: 24px;
  }
  
  .service-item h4 {
    font-size: 14px;
  }
  
  .service-item p {
    font-size: 12px;
  }
  
  .faq-item {
    padding: 18px 0;
  }

  .faq-item h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .faq-item p {
    font-size: 14px;
    line-height: 1.5;
  }

  .seo-trust {
    padding: 24px 20px;
    margin-top: 32px;
    border-radius: 16px;
  }

  .seo-trust h2 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .seo-trust p {
    font-size: 14px;
  }

  /* Section spacing on mobile */
  .seo-features,
  .seo-services,
  .seo-locations,
  .seo-faq {
    margin-bottom: 40px;
  }
}

/* ============================================
   PAGE LAYOUT WRAPPER
   ============================================ */

.explore-search-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
}

.explore-search-page .explore-search-container {
  flex: 1;
}

/* Ensure map container height on desktop with new layout */
.explore-search-page .search-content {
  height: calc(100vh - 160px); /* Account for header and search capsule */
}

/* Mobile full-screen override */
@media (max-width: 768px) {
  .explore-search-page {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }
  
  .explore-search-page .search-header {
    position: absolute;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  /* SEO content and footer inside mobile bottom sheet */
  .explore-search-page .seo-content,
  .explore-search-page .search-footer {
    /* Shown inside bottom sheet */
  }
  
  /* Mobile SEO styles - Following design guide */
  .seo-content {
    padding: 24px 0;
    background-color: #FAFAFD;
  }
  
  .seo-content-container {
    padding: 0 16px;
  }
  
  .seo-title {
    font-size: 20px;
  }
  
  .seo-subtitle {
    font-size: 16px;
    margin-top: 24px;
  }
  
  .seo-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .seo-feature-card {
    padding: 14px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .seo-feature-card h3 {
    font-size: 14px;
  }

  .seo-feature-card p {
    font-size: 13px;
  }

  /* Services list - single column on mobile */
  .seo-services-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-item {
    padding: 12px 14px;
  }
  
  .service-emoji {
    font-size: 24px;
  }
  
  .service-item h4 {
    font-size: 14px;
  }
  
  .faq-item {
    padding: 14px;
  }
  
  .faq-item h4 {
    font-size: 14px;
  }
  
  .faq-item p {
    font-size: 13px;
  }
  
  .location-link {
    padding: 8px 12px;
  }
  
  .location-link .location-name {
    font-size: 13px;
  }
  
  .seo-trust {
    padding: 16px;
  }
  
  .seo-trust h2 {
    font-size: 15px;
  }
  
  .seo-trust p {
    font-size: 13px;
  }
  
  /* Compact footer for mobile */
  .search-footer {
    padding: 24px 0 16px 0;
    margin-top: 0;
  }
  
  .footer-container {
    padding: 0 16px;
  }
}

/* Adjust search capsule position to account for header on desktop */
.explore-search-page .search-capsule-container {
  margin-top: 16px;
}

/* Ensure search modal is above everything */
.search-modal-overlay {
  z-index: 10000 !important;
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  margin-top: 16px;
  border-top: 1px solid #ebebeb;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #222222;
  background: #f7f7f7;
}

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

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #222222;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-page:hover:not(.active) {
  background: #f7f7f7;
}

.pagination-page.active {
  border-color: #222222;
  background: transparent;
  cursor: default;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
  .pagination {
    padding: 20px 12px;
  }

  .pagination-btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .pagination-page {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* ============================================
   SEO Page Header - H1 at top of page
   ============================================ */
.seo-page-header {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.seo-page-header .page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.seo-page-header .page-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #717171;
}

@media (max-width: 768px) {
  .seo-page-header {
    padding: 12px 16px;
  }

  .seo-page-header .page-title {
    font-size: 20px;
  }

  .seo-page-header .page-subtitle {
    font-size: 13px;
  }
}

/* ============================================
   REVIEWS SECTION - Trust signals for SEO
   ============================================ */
.seo-reviews {
  margin-bottom: 48px;
  margin-top: 32px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.review-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.review-rating {
  display: flex;
  gap: 2px;
}

.review-rating .star {
  color: #ddd;
  font-size: 16px;
}

.review-rating .star.filled {
  color: #FF385C;
}

.review-time {
  font-size: 12px;
  color: #717171;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  margin: 0 0 16px;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.review-author {
  font-weight: 600;
  color: #222;
}

.review-about {
  color: #717171;
}

.review-reply {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
}

.reply-label {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  display: block;
  margin-bottom: 4px;
}

.reply-text {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   FAQS SECTION - Accordion style
   ============================================ */
.seo-faqs {
  margin-bottom: 48px;
  margin-top: 32px;
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question span:first-child {
  flex: 1;
  padding-right: 16px;
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: #717171;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* Nearby Cities - Internal Linking */
.seo-nearby-cities {
  margin-top: 40px;
  margin-bottom: 32px;
}

.nearby-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.nearby-city-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.nearby-city-link:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
}

.nearby-city-link .city-name {
  font-weight: 500;
  font-size: 14px;
}

.nearby-city-link .city-sitters {
  font-size: 12px;
  color: #666;
}

/* Last Updated - Freshness Signal */
.seo-last-updated {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
  color: #888;
}

.seo-last-updated small {
  font-size: 12px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 16px;
  }

  .faq-question {
    padding: 16px;
    font-size: 14px;
  }

  .faq-item.open .faq-answer {
    padding: 0 16px 16px;
  }

  .seo-reviews,
  .seo-faqs {
    margin-bottom: 32px;
  }

  .nearby-cities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nearby-city-link {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .seo-nearby-cities {
    margin-top: 32px;
  }
}
