/* ─── Reset & Base ───────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}

body {
  background-color: #f5f5f0;
  /* darker white/egg color */
  color: #4a4a4a;
  /* dark gray */
}

/* ─── Header ────────────────────────────────────────────── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 30px;
  position: relative;
  flex-wrap: nowrap;
  /* Prevent wrapping */
  gap: 0;
  min-width: 0;
}

.left-section {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 18px;
  /* Default gap, will shrink on small screens */
  min-width: 0;
  flex-shrink: 1;
  justify-content: flex-end;
}

.logo-icon {
  width: 80px;
  height: 72px;
  margin-right: 5px;
  flex-shrink: 0;
  /* Never shrink */
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: #4a4a4a;
  /* dark gray */
  white-space: nowrap;
  flex-shrink: 0;
  /* Never shrink */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.logo-main {
  white-space: nowrap;
  font-weight: 800;
  /* Extra bold/black weight for HotDot */
}

.logo-beta {
  font-size: 1em;
  color: #4a4a4a;
  /* dark gray */
  white-space: nowrap;
  font-weight: 400;
  /* Normal weight for (Beta) */
}

/* Pulsating Dot Animation */
.pulsating-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #FFA630;
  /* Orange */
  border-radius: 50%;
  margin-left: -2px;
  margin-right: 4px;
  animation: pulsate-dot 5s ease-in-out infinite;
  vertical-align: baseline;
  position: relative;
  bottom: -2px;
}

@keyframes pulsate-dot {
  0% {
    background-color: #FFA630;
    /* Orange */
    transform: scale(1);
  }

  10% {
    background-color: #ff6b35;
    /* Lighter orange during pulse */
    transform: scale(1.15);
  }

  20% {
    background-color: #FFA630;
    transform: scale(1);
  }

  30% {
    background-color: #ff6b35;
    transform: scale(1.15);
  }

  40% {
    background-color: #FFA630;
    transform: scale(1);
  }

  100% {
    background-color: #ff0000;
    /* Red */
    transform: scale(1);
  }
}

/* Sign-in - Specific Styles Only */
/* Dimensions and layout are handled by .auth-btn-base */
.sign-in-btn {
  background: #FFA630;
  color: #fff;
  border: none;
  /* Specific override if needed, though base has border: 2px solid transparent might be better */
}

.sign-in-btn:hover {
  background: #ff9500;
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Keep gap for spacing email and button */
}

.user-email {
  font-size: .95em;
  font-weight: 500;
  color: #FFA630;
}

/* Sign-out text link style - REMOVE IF NOT USED ELSEWHERE */
/* This is likely unused for the button now */
/*
.sign-out {
  font-size: .95em;
  font-weight: 500;
  min-width:60px;
  min-height:40px;
  color: #0eabdf;
  text-decoration: none;
}
.sign-out:hover {
  text-decoration: underline;
}
*/

/* Hamburger */
.hamburger {
  margin-left: 0;
  margin-right: 0;
  order: 2;
  flex-shrink: 1;
  width: 40px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  /* Add cursor */
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  max-width: 30px;
  margin: 0;
  background: #000;
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
  /* Adjusted transform */
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
  /* Adjusted transform */
}

.hamburger:hover span {
  background: #FFA630;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 60px;
  /* Adjust as needed based on header height */
  right: 24px;
  background: #fff;
  padding: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  width: 180px;
  z-index: 1000;
  display: none;
  /* Controlled by JS */
}

.dropdown-menu.show {
  /* Add class via JS to show */
  display: block;
}

.dropdown-menu li+li {
  border-top: 1px solid #eee;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #000000;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #fff4e6;
}

/* ─── Catchphrase ───────────────────────────────────────── */
.catchphrase {
  text-align: left;
  padding: 0px 40px 10px;
  max-width: 100%;
  margin: 0 0 0 30px;
}

.catchphrase-title {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.4;
  color: #4a4a4a;
  /* dark gray */
  margin-bottom: 20px;
}

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

.catchphrase-list li {
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tick-icon {
  color: #FFA630;
  font-weight: 700;
  font-size: 1.3em;
  flex-shrink: 0;
}

/* ─── Search Section ───────────────────────────────────── */
.search-section {
  display: flex;
  justify-content: flex-start;
  padding: 20px 40px;
  padding-bottom: 35px;
  margin-left: 30px;
}

.search-container {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  align-items: stretch;
}

.search-input-container {
  flex: 2 1 0%;
  min-width: 0;
  display: flex;
  position: relative;
  /* Needed for autocomplete positioning */
}

.search-buttons-row {
  flex: 1 1 0%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.filter-btn,
.search-btn {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  /* Let flexbox determine width */
}

/* Multiselect */
.multiselect-search-wrapper {
  background-color: #fff;
  color: #111;
  border: 1px solid #ccc;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  font-size: 1em;
  border-radius: 50px;
  /* Fully round corners */
  cursor: text;
  gap: 6px;
  flex-wrap: wrap;
  /* Allow chips to wrap */
  width: 100%;
  /* Take full width of container */
}

.selected-state-chip,
.selected-postcodes-chips {
  display: contents;
  /* Use contents to avoid extra div */
}

.state-chip-inline,
.postcode-chip-inline {
  display: inline-flex;
  align-items: center;
  background-color: #e0e0e0;
  padding: 4px 8px;
  border-radius: 16px;
  /* More pill-shaped */
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  margin: 2px 0;
  /* Add slight margin for wrapping */
}

.state-chip-inline span,
.postcode-chip-inline span {
  margin-right: 6px;
}

.state-chip-remove,
.postcode-chip-remove {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  /* Center the 'x' */
  text-align: center;
  border-radius: 50%;
  background-color: #aaa;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.state-chip-remove:hover,
.postcode-chip-remove:hover {
  background-color: #888;
}

#search-input-inner,
#states-input-inner {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 6px;
  font-size: 1em;
  background-color: transparent;
  width: 50px;
  /* Minimum width before growing */
  height: 30px;
  /* Consistent height */
  align-self: center;
  /* Center vertically within the wrapper */
  color: #111;
  /* Changed from #fff for visibility on white background */
}

#search-input-inner::placeholder,
#states-input-inner::placeholder {
  color: #bbb;
}

/* Autocomplete */
.autocomplete-list {
  list-style: none;
  position: absolute;
  top: calc(100% + 4px);
  /* Position below the input wrapper */
  left: 0;
  width: 100%;
  /* Match the input container width */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  margin: 0;
  padding: 0;
  display: none;
  /* Controlled by JS */
}

.autocomplete-list.show {
  /* Added class for JS control */
  display: block;
}

.autocomplete-list li {
  padding: 10px 14px;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background: #fff4e6;
}

.search-btn,
.filter-btn,
.clear-btn {
  padding: 12px 20px;
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  border-radius: 50px;
  /* Fully round corners */
  font-weight: 500;
  cursor: pointer;
  height: 46px;
  /* Match input wrapper height */
  min-width: 80px;
  /* Set a minimum width */
  align-self: stretch;
  /* Make buttons stretch */
  white-space: nowrap;
  /* Prevent text wrapping */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  /* Added for consistency */
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  /* Added box-shadow transition */
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
}

.search-btn {
  background: #FFA630;
  color: #4a4a4a;
  /* dark gray */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
}

.search-btn:hover {
  background: #ff9500;
  /* Slightly darken on hover */
  border-color: #333;
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

.clear-btn,
.filter-btn {
  background: #fff;
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  color: #4a4a4a;
  /* dark gray */
}

.clear-btn:hover,
.filter-btn:hover {
  background: #fff4e6;
  /* Light orange background on hover */
  border-color: #333;
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

.filter-btn.filtered {
  background: #fff;
  color: #FFA630 !important;
  border: 2px solid #FFA630 !important;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(224, 84, 13, 0.18), 0 2px 8px rgba(224, 84, 13, 0.10);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.filter-btn.filtered:hover,
.filter-btn.filtered:focus {
  background: #fff4ee;
  color: #FFA630;
  border-color: #FFA630;
  box-shadow: 0 0 0 3px rgba(224, 84, 13, 0.18), 0 2px 8px rgba(224, 84, 13, 0.10);
}

/* ─── Map ──────────────────────────────────────────────── */
#map {
  width: 100%;
  height: 500px;
  /* Default height, adjusted in map-listings-row */
  position: relative;
  /* Needed for absolute positioning of controls */
}

/* ─── Listings Grid / Sidebar ────────────────────────────────────── */
/* Base styles removed, handled by map-listings-row */
/* .property-listings {
  padding: 30px;
} */

#listings-container {
  /* Styles applied within .listings-side */
}

.property-tile {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  display: flex;
  /* Use flexbox for layout */
  flex-direction: column;
  /* Stack content vertically */
  justify-content: space-between;
  /* Push button to bottom */
  width: 100%;
  /* Ensure full width within sidebar */
  box-sizing: border-box;
  /* Include padding in width */
  position: relative;
  /* Needed for overlay positioning */
  overflow: hidden;
}

.property-tile .property-price {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #4a4a4a;
  /* dark gray */
}

.property-tile .new-label,
.info-box .new-label {
  background-color: #FFA630 !important;
  color: #fff !important;
  /* Changed to white for better contrast */
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(224, 84, 13, 0.12);
  letter-spacing: 0.5px;
}

.property-tile .property-address {
  margin-bottom: 8px;
  color: #4a4a4a;
  /* dark gray */
  font-size: 0.95em;
  /* Slightly larger address */
}

.property-tile .property-details {
  margin-bottom: 12px;
  color: #4a4a4a;
  /* dark gray */
  font-size: 0.9em;
  flex-grow: 1;
  /* Allow details to take up space */
}

.property-tile .select-btn {
  background: #fff;
  color: #4a4a4a;
  /* dark gray */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  border-radius: 50px;
  /* Fully round corners */
  font-weight: 500;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  width: 55%;
  max-width: 150px;
  height: 30px;
  /* Reduced height */
  line-height: 26px;
  /* Adjust line-height for vertical center */
  text-align: center;
  margin-top: auto;
  /* Pushes to bottom */
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
  align-self: flex-start;
  /* Align button to the left */
  padding: 0;
  /* Remove padding if using fixed height + line-height */
}

.property-tile .select-btn:hover,
.property-tile .select-btn:focus {
  background: #fff4ee;
  color: #4a4a4a;
  /* dark gray */
  border-color: #333;
  /* Darker border */
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

.property-tile .select-btn:disabled {
  background: #eee;
  color: #aaa;
  border-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── Modals ───────────────────────────────────────────── */
.modal {
  display: none;
  /* Initially hidden */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  /* Semi-transparent background */
  z-index: 2000;
  /* High z-index */
  justify-content: center;
  /* Center horizontally */
  align-items: flex-start;
  /* Align to top */
  overflow-y: auto;
  /* Allow scrolling for the WHOLE modal overlay */
  padding: 40px 20px;
  /* Add padding for spacing from viewport edges */
}

.modal.show {
  /* Add class via JS to show */
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px 28px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  /* Max width for larger screens */
  position: relative;
  margin: auto;
  /* Center horizontally, auto vertically within padding */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  /* Add shadow */
  /* Removed max-height and overflow-y, handled by .modal */
}

.modal-content h2 {
  font-size: 1.6rem;
  /* Slightly larger heading */
  margin-bottom: 25px;
  padding-bottom: 12px;
  margin-top: 0;
  color: #4a4a4a;
  /* dark gray */
  border-bottom: 1px solid #eee;
  /* Add separator */
}

.modal-content .input-group {
  /* Group label and input */
  margin-bottom: 18px;
}

.modal-content label {
  display: block;
  /* Ensure label takes full width */
  font-weight: 500;
  margin-bottom: 8px;
  /* Increased spacing */
  color: #4a4a4a;
  /* dark gray */
}

.modal-content label input[type="email"],
/* Target inputs within labels */
.modal-content label input[type="password"],
.modal-content label input[type="text"],
.modal-content .input-group input[type="email"],
/* Target inputs in groups */
.modal-content .input-group input[type="password"],
.modal-content .input-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* Add transition */
  margin-top: 4px;
  /* Add space between label and input */
  margin-bottom: 12px;
}

.modal-content input:focus {
  /* General focus style */
  outline: none;
  border-color: #FFA630;
  box-shadow: 0 0 0 3px rgba(255, 166, 48, 0.1);
  /* Focus indicator */
}

.modal-content button[type="submit"] {
  width: 100%;
  padding: 14px;
  /* Slightly more padding */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  background: #FFA630;
  color: #4a4a4a;
  /* dark gray */
  border-radius: 50px;
  /* Fully round corners */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
}

.modal-content button[type="submit"]:hover {
  background: #ff9500;
  /* Darken on hover */
  border-color: #333;
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: #888;
  transition: color 0.2s;
  /* Add transition */
}

.modal-close:hover {
  color: #333;
}

/* Link Line */
.switch-line {
  text-align: center;
  font-size: .9rem;
  margin-top: 25px;
  line-height: 1.6;
  /* Increased line height */
  color: #4a4a4a;
  /* dark gray */
}

.switch-line a {
  color: #FFA630;
  text-decoration: none;
  font-weight: 600;
}

.switch-line a:hover {
  text-decoration: underline;
}

/* Map Markers and Effects */
.mapboxgl-marker {
  will-change: transform;
  /* Optimize animation */
  cursor: pointer;
  /* Indicate interactivity */
}

.blue-marker-container {
  position: relative;
  width: 0;
  height: 0;
  z-index: 1;
}

/* When hovered or active, bring the marker and info box to the very front */
.blue-marker-container.active,
.blue-marker-container:hover {
  z-index: 99999 !important;
}

.custom-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #FFA630 !important;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.custom-marker::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(224, 84, 13, 0.3);
  /* Pulse in orange */
  border-radius: 50%;
  left: -12px;
  /* Center pulse */
  top: -12px;
  /* Center pulse */
  animation: pulse 2s infinite ease-in-out;
  z-index: -1;
  /* Ensure pulse is behind marker */
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }

  /* Make pulse larger */
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

.info-box {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  z-index: 100;
  background-color: white;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  color: #4a4a4a;
  /* dark gray */
  font-weight: 500;
  white-space: normal;
  /* Allow text wrapping */
  word-break: break-word;
  overflow: visible;
  text-overflow: unset;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  /* Invisible until hovered */
  opacity: 0;
  transition: opacity 0.2s, top 0.2s, left 0.2s, right 0.2s;
  /* Add transitions */
  display: flex;
  flex-direction: column;
}

/* Flipping logic */
.info-box.flip-x {
  left: auto !important;
  right: 15px !important;
  /* Position relative to right */
}

.info-box.flip-y {
  top: 30px !important;
  /* Position below marker */
}

.info-box.flip-y.flip-x {
  /* Adjust combined flip if needed */
  top: 30px !important;
  left: auto !important;
  right: 15px !important;
}


.info-box .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Push elements apart */
  width: 100%;
  margin-bottom: 4px;
  /* Space below price */
}

.info-box .price-tag {
  font-weight: bold;
  color: #4a4a4a;
  /* dark gray */
  font-size: 1.1em;
  margin-right: 4px;
  /* Space between price and label */
}

.info-box .new-label {
  margin-left: 0;
  /* Reset margin */
  margin-right: 0;
  /* Reset margin */
  flex-shrink: 0;
  /* Prevent label from shrinking */
}

.mapboxgl-marker:hover .info-box,
.blue-marker-container:hover .info-box {
  opacity: 1;
  pointer-events: auto;
  /* Allow interaction */
  top: -25px;
  /* Adjust hover position */
}

/* Adjust hover position when flipped */
.mapboxgl-marker:hover .info-box.flip-y,
.blue-marker-container:hover .info-box.flip-y {
  top: 35px !important;
}


/* Map Popup */
.mapboxgl-popup {
  z-index: 100001 !important;
  /* Ensure popup is above info-box */
  max-width: 280px !important;
  /* Control max width */
}

.mapboxgl-popup-content {
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: 'Manrope', sans-serif;
  /* Ensure consistent font */
  font-size: 0.9rem;
  color: #4a4a4a;
  /* dark gray */
}

.mapboxgl-popup-content h4 {
  /* Style popup title */
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #FFA630;
}

.mapboxgl-popup-content p {
  margin: 4px 0;
  line-height: 1.4;
}

.mapboxgl-popup-content a {
  color: #FFA630;
  text-decoration: none;
  font-weight: 500;
}

.mapboxgl-popup-content a:hover {
  text-decoration: underline;
}

.mapboxgl-popup-close-button {
  /* Style close button */
  font-size: 1.5rem;
  padding: 0 5px;
  color: #888;
  position: absolute;
  /* Ensure positioning */
  top: 5px;
  right: 5px;
}

.mapboxgl-popup-close-button:hover {
  color: #333;
  background: none;
  /* Remove default background */
}

/* Filter Modal Specific Styles */
.filter-modal-content {
  /* Specific class for filter modal */
  padding: 32px !important;
  /* Ensure specific padding */
  display: flex;
  flex-direction: column;
  max-width: 650px;
  /* Slightly narrower max-width for filters */
}

#filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Reduced gap between form elements */
  /* Removed overflow-y, handled by .modal */
}

.filter-group {
  margin-bottom: 20px;
  /* Consistent spacing */
  width: 100%;
}

.filter-group label {
  display: block;
  font-weight: 600;
  /* Bolder labels */
  margin-bottom: 10px;
  /* More space below label */
  font-size: 0.95rem;
  color: #4a4a4a;
  /* dark gray */
}

/* Bed/Bath/Parking specific styles */
.filter-group-rooms label {
  margin-bottom: 6px;
  /* Less space for dropdown labels */
}

.number-input {
  /* If used for bed/bath/parking */
  display: flex;
  gap: 10px;
}

.number-input input {
  width: calc(50% - 5px);
  padding: 10px 12px;
  /* Consistent padding */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  /* Responsive grid */
  gap: 12px;
  padding: 8px 0;
  width: 100%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  padding: 8px;
  background: #f8f8f8;
  border-radius: 6px;
  transition: background-color 0.2s;
  cursor: pointer;
  /* Make label clickable */
  font-weight: 400;
  /* Normal weight for options */
  gap: 8px;
  /* Space between checkbox and text */
  font-size: 14px;
  /* Ensure consistent font size */
  color: #4a4a4a;
  /* dark gray */
}

.checkbox-label:hover {
  background: #f0f0f0;
}

/* Custom Checkbox Styling */
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s;
  position: relative;
  background-color: white;
  vertical-align: middle;
  /* Align checkbox vertically */
}

/* Checked state */
.checkbox-label input[type="checkbox"]:checked {
  background-color: #FFA630;
  border-color: #FFA630;
}

/* Create checkmark using pseudo-element */
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hover state */
.checkbox-label input[type="checkbox"]:hover {
  border-color: #999;
  /* Subtle hover */
}

.checkbox-label input[type="checkbox"]:checked:hover {
  border-color: #FFA630;
  /* Keep border color when checked and hovered */
}


.checkbox-label span {
  line-height: 1.3;
  /* Improve text wrapping */
  flex-grow: 1;
  /* Allow text to take remaining space */
}

/* Filter Row Adjustments */
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Default to 2 columns */
  gap: 24px;
  /* Slightly more gap */
  width: 100%;
  margin-bottom: 16px;
  /* Consistent bottom margin */
  align-items: start;
  /* Align items to the top */
}

/* Room Details Row Specifics */
.filter-row.rooms-row {
  grid-template-columns: repeat(3, 1fr);
  /* Force 3 equal columns */
  gap: 16px;
  /* Adjust gap for 3 columns */
}

.filter-group-rooms {
  min-width: 0;
  /* Allow shrinking */
  width: 100%;
}

/* Form Controls Base Styles */
.filter-select,
.date-picker {
  width: 100%;
  height: 45px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  /* Basic dropdown arrow */
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
  line-height: 1.5;
  /* Ensure text vertical alignment */
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #4a4a4a;
  /* dark gray */
}

/* Add placeholder color styling for date picker */
.date-picker:invalid {
  /* Style when no date is selected */
  color: #999;
}

.date-picker::-webkit-datetime-edit-text,
.date-picker::-webkit-datetime-edit-month-field,
.date-picker::-webkit-datetime-edit-day-field,
.date-picker::-webkit-datetime-edit-year-field {
  /* Style individual parts if needed when invalid */
}

.date-picker::-webkit-input-placeholder {
  /* Standard placeholder styling */
  color: #999;
}

.date-picker:-moz-placeholder {
  /* Firefox */
  color: #999;
  opacity: 1;
}

.date-picker::-moz-placeholder {
  /* Firefox */
  color: #999;
  opacity: 1;
}

.date-picker:-ms-input-placeholder {
  /* Edge */
  color: #999;
}

.date-picker::-ms-input-placeholder {
  /* IE */
  color: #999;
}

/* Style the date picker when a date is selected */
.date-picker:valid {
  color: #4a4a4a;
  /* dark gray for selected date */
}

.filter-select:focus,
.date-picker:focus {
  outline: none;
  border-color: #FFA630;
  box-shadow: 0 0 0 3px rgba(255, 166, 48, 0.1);
  /* Focus indicator */
}

/* States Multiselect */
.states-multiselect-wrapper {
  /* Container for the state multiselect input+dropdown */
  position: relative;
  width: 100%;
}

#states-multiselect-wrapper.multiselect-search-wrapper {
  /* Apply base multiselect styles */
  min-height: 45px;
  /* Match other inputs */
  border-color: #ccc;
  /* Ensure consistent border */
  color: #4a4a4a;
  /* dark gray */
}

#states-multiselect-wrapper.multiselect-search-wrapper:focus-within {
  /* Focus state for wrapper */
  border-color: #FFA630;
  box-shadow: 0 0 0 3px rgba(255, 166, 48, 0.1);
}


.states-dropdown {
  /* Specific dropdown for states */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  /* Match other dropdowns */
  margin-top: 0px;
  /* Align directly below */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2010;
  /* Ensure above other modal content */
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
  /* Add padding */
  display: none;
  /* Controlled by JS */
}

.states-dropdown.show {
  display: block;
}

.state-option {
  padding: 10px 14px;
  /* Consistent padding */
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  color: #4a4a4a;
  /* dark gray */
}

.state-option:hover {
  background-color: #fff4e6;
  /* Match autocomplete hover */
}

#states-input-inner.states-input {
  /* Be specific */
  border: none;
  outline: none;
  padding: 4px;
  font-size: 14px;
  flex: 1;
  min-width: 80px;
  /* Allow shrinking */
  background: transparent;
  color: #4a4a4a;
  /* dark gray */
  height: auto;
  /* Allow height to be determined by content */
  align-self: center;
  /* Re-center vertically */
}

#states-input-inner.states-input::placeholder {
  color: #999;
  /* Ensure placeholder color */
}


/* Filter Actions (Buttons) */
.filter-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  /* More padding */
  border-top: 1px solid #eee;
  width: 100%;
  /* Ensure full width */
}

/* Filter Modal Button Styles */
.filter-modal-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 50px;
  /* Fully round corners */
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  /* Make buttons share space equally */
  min-width: 80px;
  /* Ensure minimum width */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  white-space: nowrap;
  /* Prevent wrapping */
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
}

/* Clear button style */
.filter-modal-btn.clear-btn {
  background: white;
  border-color: #4a4a4a;
  /* Dark gray border */
  color: #4a4a4a;
  /* dark gray */
}

.filter-modal-btn.clear-btn:hover {
  background: #fff4e6;
  /* Light orange hover */
  border-color: #333;
  /* Darker border on hover */
  color: #4a4a4a;
  /* dark gray */
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

/* Search button style */
.filter-modal-btn.search-btn {
  background: #FFA630;
  border-color: #4a4a4a;
  /* Dark gray border */
  color: #4a4a4a;
  /* dark gray */
}

.filter-modal-btn.search-btn:hover {
  background: #ff9500;
  /* Darken on hover */
  border-color: #333;
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}


/* Price Range Slider */
.price-input .price-field {
  /* Legacy? Check if used */
  display: flex;
  margin-bottom: 22px;
  margin-top: 22px;
}

.price-field span {
  /* Legacy? Check if used */
  margin-right: 10px;
  margin-top: 6px;
  font-size: 17px;
}

.price-field input {
  /* Legacy? Check if used */
  flex: 1;
  height: 35px;
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  border-radius: 9px;
  text-align: center;
  border: 0px;
  background: #e4e4e4;
}

/* Container for slider + inputs */
.price-slider-container {
  padding: 10px 5px 0px 5px;
  /* Adjust padding */
  width: 100%;
}

.price-inputs {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  /* Space between slider and inputs */
  gap: 20px;
}

.price-inputs input {
  width: calc(50% - 10px);
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  background: #f8f8f8;
  font-weight: 500;
  /* Make price values stand out */
  color: #4a4a4a;
  /* dark gray */
}

.price-inputs input:focus {
  /* Add focus style */
  outline: none;
  border-color: #aaa;
}


/* noUiSlider Customization */
#price-range-slider {
  /* Target the specific slider */
  margin-top: 10px;
  /* Space above slider */
}

.noUi-target {
  border: none !important;
  /* Remove default border */
  background: #e0e0e0 !important;
  /* Lighter track color */
  box-shadow: none !important;
  height: 4px !important;
  /* Thinner slider */
  /* padding-left: 25px !important; */
  /* Remove padding, handles offset it */
}

.noUi-connect {
  background: #FFA630 !important;
  /* Orange connect bar */
}

.noUi-handle {
  border: 1px solid #FFA630 !important;
  /* Orange border */
  background: #ffffff !important;
  border-radius: 50% !important;
  cursor: grab !important;
  /* Indicate draggable */
  width: 20px !important;
  /* Slightly smaller handle */
  height: 20px !important;
  right: -10px !important;
  /* Center handle on bar (width/2) */
  top: -8px !important;
  /* Center handle vertically */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  /* Add shadow */
}

.noUi-handle:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 166, 48, 0.2) !important;
  /* Focus indicator */
}

.noUi-handle:active {
  cursor: grabbing !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
  /* Larger shadow when active */
}

.noUi-handle:before,
.noUi-handle:after {
  display: none !important;
  /* Remove pseudo-elements */
}


/* Utility Classes */
.mb-24 {
  margin-bottom: 24px;
}

.p-16 {
  padding: 16px;
}


/* Map + Listings Row Layout */
.map-listings-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: calc(100vh - 150px);
  /* Example: Adjust based on header/footer height */
  min-height: 500px;
  /* Minimum height */
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid #e0e0e0;
  /* Separator line */
  border-bottom: none;
}

.map-side {
  flex: 3 1 60%;
  /* Give map more space initially */
  min-width: 0;
  position: relative;
  height: 100%;
}

#map {
  /* Styles within map-side */
  width: 100%;
  height: 100%;
  min-height: 0;
  /* Override previous min-height */
}

.listings-side {
  flex: 1 1 40%;
  /* Listings take less space */
  min-width: 320px;
  /* Minimum width before collapsing */
  max-width: 420px;
  /* Maximum width */
  background: #f8f9fa;
  /* Lighter background for contrast */
  border-left: 1px solid #e0e0e0;
  height: 100%;
  overflow-y: auto;
  padding: 0;
  /* Remove padding, add to container */
  display: flex;
  flex-direction: column;

  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

#listings-container {
  /* Container within listings-side */
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Space between tiles */
  padding: 16px;
  /* Padding inside the sidebar */
  flex-grow: 1;
  background-color: #f1fafd;
  /* Allow container to grow */
}

/* Placeholder text */
#listings-container p {
  text-align: center;
  color: #4a4a4a;
  /* dark gray */
  padding: 20px;
  font-size: 0.9em;
}


/* Base Authentication Button Styles */
/* This MUST come after initial button styles to override */
.auth-btn-base {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1em;
  width: 90px;
  /* Fixed width */
  height: 44px;
  /* Fixed height */
  padding: 0;
  /* Remove padding - use flex alignment */
  border-radius: 50px;
  /* Fully round corners */
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  /* Consolidated transitions */
  box-sizing: border-box;
  /* Include border in width/height */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  text-align: center;
  /* Ensure text is centered */
  line-height: 1;
  /* Ensure text is centered vertically if flex alignment fails */
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
}

/* Sign-in Specific Styles (applied over base) */
.sign-in-btn.auth-btn-base {
  background: #FFA630;
  color: #4a4a4a;
  /* dark gray */
  border-color: #4a4a4a;
  /* Dark gray border */
}

.sign-in-btn.auth-btn-base:hover {
  background: #ff9500;
  border-color: #333;
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

/* Sign-out Button Specific Styles */
/* Dimensions and layout are handled by .auth-btn-base */
.sign-out-btn.auth-btn-base {
  background: #fff;
  color: #4a4a4a;
  /* dark gray */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
}

.sign-out-btn.auth-btn-base:hover {
  background: #f0f9fc;
  color: #4a4a4a;
  /* dark gray */
  border-color: #333;
  /* Darker border */
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}


/* ─── Responsive Adjustments ──────────────────────────────── */

/* Larger Tablets / Smaller Laptops */
@media (max-width: 1024px) {
  .map-listings-row {
    height: calc(100vh - 130px);
    /* Adjust height */
  }

  .listings-side {
    min-width: 280px;
    /* Allow slightly narrower sidebar */
    flex-basis: 35%;
    /* Adjust flex basis */
  }

  .map-side {
    flex-basis: 65%;
    /* Adjust flex basis */
  }
}


/* Tablets and smaller */
@media (max-width: 900px) {

  /* Stack map and listings */
  .map-listings-row {
    flex-direction: column;
    height: auto;
    /* Allow height to be determined by content */
    min-height: 0;
    /* Reset min-height */
  }

  .map-side {
    width: 100%;
    height: 350px;
    /* Fixed height for map on mobile */
    flex-basis: auto;
    /* Reset flex basis */
  }

  #map {
    /* Ensure map fills its container */
    height: 100%;
    min-height: 0;
  }

  .listings-side {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    /* Allow full width */
    height: auto;
    /* Auto height */
    max-height: 50vh;
    /* Limit height to prevent excessive scrolling */
    border-left: none;
    border-top: 1px solid #e0e0e0;
    flex-basis: auto;
    /* Reset flex basis */
  }

  #listings-container {
    padding: 12px;
    /* Adjust padding */
  }

  /* Responsive Filter Form */
  .filter-row {
    grid-template-columns: 1fr;
    /* Stack filter groups */
    gap: 16px;
    /* Adjust gap */
  }

  .filter-row.rooms-row {
    grid-template-columns: 1fr;
    /* Stack rooms too */
  }

  .price-inputs {
    flex-direction: column;
    /* Stack price inputs */
    gap: 10px;
    /* Adjust gap */
    margin-top: 15px;
    /* Adjust space */
  }

  .price-inputs input {
    width: 100%;
    /* Make inputs full width when stacked */
  }

  .filter-actions {
    flex-direction: column;
    /* Stack action buttons */
    gap: 12px;
    /* Adjust gap */
    margin-top: 24px;
    /* Adjust space */
  }

  .filter-modal-btn {
    /* Ensure buttons take full width */
    width: 100%;
    flex: none;
    /* Reset flex grow/shrink */
  }

  .checkbox-group {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    /* Adjust min width */
  }
}


/* Medium Screens (Tablets) */
@media (max-width: 768px) {
  header {
    padding: 15px 20px 10px;
  }

  .logo {
    font-size: 1.6em;
  }

  .catchphrase-text {
    font-size: 1.6em;
  }

  .search-container {
    flex-direction: row;
    /* Keep search/filter in a row */
    align-items: stretch;
    max-width: 100%;
    gap: 6px;
  }

  .search-btn,
  .filter-btn {
    min-width: 60px;
    font-size: 0.95em;
    padding: 0 10px;
    /* Adjust padding */
  }

  .modal-content {
    width: 95%;
    padding: 25px 20px;
  }

  .filter-modal-content {
    padding: 28px 24px !important;
  }

}

/* Adjust header layout for slightly smaller screens */
@media (max-width: 700px) {
  header {
    padding: 12px 8px 12px;
    /* Adjust padding */
    gap: 8px;
    /* Reduce gap */
  }

  .left-section {
    gap: 8px;
    flex-shrink: 1;
    /* Allow left section to shrink slightly if needed */
    min-width: 0;
    /* Ensure shrinking works */
  }

  .right-section {
    gap: 8px;
    /* Reduce gap */
  }

  /* Hamburger adjustments */
  .hamburger {
    width: 32px;
    height: 22px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  /* Adjust hamburger animation */
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .logo-icon {
    width: 70px;
    height: 63px;
    margin-top: 8px;
  }

  .logo {
    font-size: 1.8em;
    /* Slightly smaller logo text */
    margin-top: 8px;
  }

  /* Hide user email on small screens */
  .user-info span#user-email {
    display: none;
  }

  /* NOTE: No changes to .sign-in-btn or .sign-out-btn here */
  /* Their size is fixed by .auth-btn-base */

  /* Adjust dropdown position */
  .dropdown-menu {
    top: 55px;
    /* Adjust based on new header height */
    right: 15px;
  }
}


/* Stack search input and buttons row */
@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
    gap: 8px;
  }

  .search-input-container {
    width: 100%;
    flex: none;
    /* Reset flex */
  }

  .search-buttons-row {
    width: 100%;
    flex: none;
    /* Reset flex */
  }

  .filter-btn,
  .search-btn {
    flex: 1 1 50%;
    /* Each button takes 50% */
    width: auto;
    /* Let flex determine width */
    min-width: 0;
    /* Remove min-width */
    font-size: 0.9em;
    /* Slightly smaller font */
  }

  /* Responsive Filter Form Rooms Row */
  .filter-row.rooms-row {
    grid-template-columns: 1fr;
    /* Stack vertically on very small screens */
    gap: 12px;
  }
}


/* Small Screens (Mobiles) */
@media (max-width: 480px) {
  header {
    padding: 10px 8px 10px;
    /* Adjust padding */
    gap: 8px;
  }

  .left-section,
  .right-section {
    gap: 8px;
    /* Consistent gap */
  }

  /* Reduce auth button size on smallest screens if needed */
  /* Uncomment and adjust if 120px is too wide */
  /*
    .auth-btn-base {
        width: 90px;
        height: 38px;
        font-size: 0.9em;
    }
    */

  .logo-icon {
    width: 65px;
    height: 58px;
    margin-right: 5px;
    margin-top: 16px;
  }

  .logo {
    font-size: 1.6em;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    margin-top: 8px;
    margin-left: 4px;
    /* Adjust to align with sign-in button */
  }

  .logo-main {
    margin-bottom: -4px;
    /* Reduce space between main and beta */
  }

  .logo-beta {
    font-size: 1em;
    margin-left: 0;
  }

  .hamburger {
    width: 28px;
    /* Smaller hamburger */
    height: 18px;
    margin-top: 10px;
  }

  .hamburger span {
    height: 3px;
  }

  /* Thinner lines */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  /* Adjust animation */
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .catchphrase {
    padding: 25px 15px 5px;
  }

  .catchphrase-text {
    font-size: 1.3em;
    line-height: 1.3;
  }

  .search-section {
    padding: 15px;
  }

  .multiselect-search-wrapper {
    min-height: 42px;
    /* Slightly smaller */
  }

  #search-input-inner,
  #states-input-inner {
    font-size: 0.95em;
  }

  .search-btn,
  .filter-btn {
    height: 42px;
    /* Match input wrapper */
    font-size: 0.9em;
    padding: 0 8px;
  }

  .map-side {
    height: 300px;
    /* Further reduce map height */
  }

  #listings-container {
    padding: 10px;
    /* Reduce padding */
  }

  .property-tile {
    padding: 12px;
    /* Reduce tile padding */
  }

  .modal-content {
    padding: 20px 15px;
    width: calc(100% - 20px);
    /* Ensure padding from edges */
    margin: 10px auto;
    /* Adjust margin */
  }

  .modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .filter-modal-content {
    padding: 24px 20px !important;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    /* Stack checkboxes vertically */
    gap: 10px;
  }

  .filter-modal-btn {
    font-size: 15px;
  }

  .auth-btn-base {
    margin-top: 10px;
  }
}

/* Very Small Screens adjustments */
@media (max-width: 360px) {
  .logo {
    font-size: 1.2em;
  }

  .right-section {
    gap: 5px;
    /* Minimal gap */
  }

  /* Consider further reducing .auth-btn-base width/height if needed */
  /*
    .auth-btn-base {
        width: 80px;
        height: 36px;
        font-size: 0.85em;
    }
    */
  .search-btn,
  .filter-btn {
    font-size: 0.85em;
    /* Smallest font size */
  }

  .filter-modal-btn {
    font-size: 14px;
    height: 40px;
  }
}


/* Ensure layout recalculates if needed */
.search-buttons-row {
  display: flex;
  /* Reaffirm flex display */
  flex-direction: row;
  gap: 8px;
  /* Reaffirm gap */
  /* width: 100%; --- Handled by flex sizing */
}

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #0e2a4a;
  color: #fff;
  z-index: 3000;
  padding: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
  display: block !important;
  /* Force display */
}

.site-footer.closed {
  transform: translateY(100%);
}

.footer-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: background-color 0.2s;
  z-index: 3001;
  /* Ensure button is above content */
}

.footer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 40px 8px 8px;
  /* Added right padding to prevent text overlap with close button */
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-text {
  font-size: 0.98em;
  font-weight: 400;
  color: #fff;
  text-align: center;
  padding-right: 20px;
  /* Additional padding to ensure text doesn't get too close to close button */
}

.footer-feedback-btn {
  background: #fff;
  color: #4a4a4a;
  /* dark gray */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  border-radius: 50px;
  /* Fully round corners */
  font-weight: 600;
  font-size: 0.95em;
  /* smaller font */
  padding: 6px 16px;
  /* smaller padding */
  margin-left: 8px;
  /* reduced margin */
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
  white-space: nowrap;
}

.footer-feedback-btn:hover {
  background: #e6f0fa;
  color: #4a4a4a;
  /* dark gray */
  border-color: #333;
  /* Darker border on hover */
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

/* Responsive: Stack on mobile */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 6px;
    padding: 8px 40px 8px 8px;
    /* Maintain right padding for close button */
  }

  .footer-text {
    padding-right: 0;
    /* Remove right padding on mobile since text is stacked */
    padding-bottom: 4px;
    /* Add some bottom padding instead */
  }

  .footer-feedback-btn {
    margin-left: 0;
    width: 100%;
    max-width: 220px;
  }
}

.info-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  backdrop-filter: blur(6px) brightness(0.8);
  background: rgba(14, 42, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.blur-message {
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  text-shadow: 0 2px 8px #0e2a4a;
  background: rgba(14, 42, 74, 0.7);
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.listing-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(14, 42, 74, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  pointer-events: all;
}

.listing-blur-overlay .blur-message {
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  text-shadow: 0 2px 8px #0e2a4a;
  background: rgba(14, 42, 74, 0.7);
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.blur-signup-btn {
  background: #fff;
  color: #4a4a4a;
  /* dark gray */
  border: 2px solid #4a4a4a;
  /* Dark gray border */
  border-radius: 50px;
  /* Fully round corners */
  font-weight: 700;
  font-size: 1em;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(224, 84, 13, 0.25);
  /* Orange shadow */
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  outline: none;
  margin: 0 auto;
  display: block;
}

.blur-signup-btn:hover,
.blur-signup-btn:focus {
  background: #e6f0fa;
  color: #4a4a4a;
  /* dark gray */
  border-color: #333;
  /* Darker border on hover */
  box-shadow: 0 6px 12px rgba(224, 84, 13, 0.35);
  /* Stronger shadow on hover */
}

/* ─── Main Footer ───────────────────────────────────────── */
.main-footer {
  background-color: #4a4a4a;
  color: #ffffff;
  padding: 20px 60px;
  margin-top: 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  font-size: 2em;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 2px;
  position: relative;
}

.footer-dot {
  width: 8px;
  height: 8px;
  background-color: #FFA630;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  bottom: 0px;
  flex-shrink: 0;
  margin-left: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #FFA630;
}

.footer-copyright {
  color: #cccccc;
  font-size: 0.9em;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* Responsive footer */
@media (max-width: 900px) {
  .main-footer {
    padding: 20px 40px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-copyright {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .main-footer {
    padding: 15px 20px;
  }

  .footer-logo {
    font-size: 1.6em;
  }

  .footer-links {
    gap: 8px;
  }
}