header {
  background-color: var(--navy);
  position: relative;
  z-index: 1000; /* Ensure header stays above map */
}

.find-rooms-search {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  position: relative;
  z-index: 100;
  margin-top: 10vh; /* This matches the header height */
  gap: 12px;
  flex-wrap: wrap;
  padding-inline: 15px;
}

.search-form {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  padding-block: 20px;
  background: white;
  border-radius: 16px;
}

.search-field {
  flex: 1;
  margin-inline: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.search-field label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

/* Modern Input Styles */
.search-field input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.search-field input:hover {
  background: #f3f4f6;
}

.search-field input:focus {
  outline: none;
  border-color: var(--sea);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Custom Select Styles */
.custom-select {
  position: relative;
}

.location-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  overflow: hidden;
}

.custom-select.active .location-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.location-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 0;
  font-family: var(--font-heading);
}

.location-option {
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
}

.location-option:hover {
  background: #f8f9fa;
}

.location-option.selected {
  background: #e8f0fe;
  color: var(--sea);
}

/* Search Button */
.search-button {
  align-self: flex-end;
  padding: 14px 15px;
  background: var(--sea);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: var(--font-heading);
  margin-inline: 5px;
}

.search-button:hover {
  background: var(--sea-dark, #0a475e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
  font-size: 18px;
}

/* Custom Scrollbar */
.location-list::-webkit-scrollbar {
  width: 8px;
}

.location-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.location-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.location-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Calendar Dialog Styles */
dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.25s ease;
  z-index: 1001;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

@keyframes fadeUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.calendar-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f6fa;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #1d3557;
  font-weight: 600;
}

.nav-btn:hover {
  background: var(--sea);
  color: var(--white);
}

#monthYear {
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  font-family: var(--font-heading);
}

.day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: #999;
  font-family: var(--font-heading);
}

.day-names div {
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6fa;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #2d3436;
  font-family: var(--font-body);
}

.calendar-day:hover {
  background: #9ef5f8;
  color: #1d3557;
}

.calendar-day.other-month {
  color: #ccc;
  cursor: default;
}

.calendar-day.other-month:hover {
  background: #f5f6fa;
  color: #ccc;
}

.calendar-day.selected {
  background: var(--sea);
  color: var(--white);
  font-weight: 600;
}

.calendar-day.disabled {
  background: #f0f0f0;
  color: #ccc;
  cursor: not-allowed;
}

.day {
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  user-select: none;
}

.day:not(.empty):not(.disabled):hover {
  background: var(--sea);
  color: white;
  transform: scale(1.05);
}

.day.selected {
  background: var(--sea);
  color: white;
  font-weight: 600;
  transform: scale(1.05);
}

.day.empty {
  visibility: hidden;
  pointer-events: none;
}

.day.disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.day.disabled:hover {
  background: none;
  color: #ccc;
}

/* Float Search Button */
.float-search-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sea);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  font-size: 24px;
}

.float-search-button:hover {
  transform: translateY(-2px);
  background: var(--navy);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.float-search-button i {
  font-size: 24px;
}

.mobile-search-dialog {
  border: none;
  width: 100%;
  height: 65vh;
  max-width: 100%;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  display: none !important;
  transition: all 0.3s ease-out;
  z-index: 1002;
  overflow-y: auto;
}

.mobile-search-dialog.show {
  display: block !important;
}

.mobile-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1003;
}

.mobile-search-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0;
}

.mobile-search-close {
  border: none;
  background: none;
  font-size: 24px;
  color: #666;
  padding: 8px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .search-form {
    max-width: 90%;
    padding-inline: 0;
  }

  .search-field {
    max-height: 100px;
    max-width: 90%;
  }
}

@media (max-width: 1024px) {
  .find-rooms-search {
    display: none;
  }

  .float-search-button {
    display: flex;
  }

  .search-form {
    gap: 15px;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .mobile-search-dialog .search-form {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    height: calc(100% - 70px); /* Account for header */
    overflow-y: auto;
  }

  .mobile-search-dialog .search-field {
    width: 100%;
    margin-inline: 2.5%;
  }

  .mobile-search-dialog .search-button {
    width: 100%;
    justify-content: center;
    position: sticky;
    bottom: 0;
    margin: 0;
    border-radius: 0;
  }

  .location-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    transform: translateY(100%);
  }

  .custom-select.active .location-dropdown {
    transform: translateY(0);
  }

  dialog:not(.mobile-search-dialog) {
    max-width: 320px;
  }

  .float-search-button {
    bottom: 90px; /* Account for footer */
  }
}

@media (max-width: 480px) {
  .find-rooms-search {
    padding: 10px;
  }

  .search-field input {
    padding: 12px 16px;
  }

  .search-button {
    padding: 12px;
    font-size: 14px;
    margin-inline: 2.5%;
  }

  dialog {
    max-width: 300px;
  }

  .calendar-box {
    padding: 15px;
  }

  .day {
    padding: 8px;
    font-size: 14px;
  }
}

/* Results Layout */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 max(24px, calc((100% - 1600px) / 2));
  margin: 0 auto;
  min-height: calc(100vh - 12vh - 150px); /* Adjust for header and footer */
  position: relative;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  background: linear-gradient(
    135deg,
    rgba(29, 53, 87, 0.05) 0%,
    rgba(105, 202, 231, 0.05) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(105, 202, 231, 0.2);
}

.results-count {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sea);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.results-wrapper {
  display: flex;
  gap: 24px;
  flex: 1;
}

.results-list {
  flex: 0 0 55%;
  overflow-y: auto;
  padding: 0 16px 16px 0; /* Added bottom padding */
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start; /* Prevent stretching */
}

.map-container {
  flex: 0 0 45%;
  position: relative;
}

.map-wrapper {
  position: sticky;
  top: 1vh; /* Account for header height + padding */
  height: calc(100vh - 12vh - 48px); /* Full height minus header and padding */
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  bottom: auto;
}

#map {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

/* Modern Room Cards */
.room-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.room-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-image {
  transform: scale(1.05);
}

.room-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sea);
  font-family: var(--font-heading);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.room-details {
  padding: 20px;
  background: white;
}

.room-details h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: var(--navy);
  font-family: var(--font-heading);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-meta {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  color: #666;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.room-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}

.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-body);
}

.feature-tag {
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #555;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.room-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sea);
  font-family: var(--font-heading);
  line-height: 1;
}

.per-night {
  color: #666;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.room-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-btn-room {
  background: rgba(105, 202, 231, 0.2);
  border: 1px solid rgba(105, 202, 231, 0.4);
  color: var(--sea);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
  flex-shrink: 0;
}

.share-btn-room:hover {
  background: var(--sea);
  color: white;
  transform: scale(1.05);
  border-color: var(--sea);
}

.share-btn-room i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.book-now-btn {
  padding: 12px 24px;
  background: var(--sea);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.book-now-btn:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* Add custom scrollbar for results list */
.results-list::-webkit-scrollbar {
  width: 8px;
}

.results-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Results Responsive Design */
@media (max-width: 1200px) {
  .results-container {
    padding: 20px;
    gap: 20px;
  }

  .results-list {
    padding-right: 20px;
  }
}

@media (max-width: 1024px) {
  .results-container {
    display: flex;
    flex-direction: column;
    margin-top: 12vh; /* Space for header */
    overflow: visible;
    position: relative;
  }

  .map-container {
    width: 100%;
    position: sticky;
    top: 0; /* Stick to very top */
    left: 0;
    right: 0;
    z-index: 2;
    order: -1; /* Force map to top */
    background: #f5f5f5;
  }

  .map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
  }

  .results-list {
    width: 100%;
    background: white;
    position: relative;
    z-index: 1;
    margin-top: -20px; /* Pull content up slightly to hide gap */
    padding-top: 40px; /* Add padding to compensate for margin */
  }

  .map-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .results-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .results-container {
    padding: 0;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
  }

  .map-container {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    order: -1;
    background: #f5f5f5;
    min-height: 50vh !important;
    flex: 0 0 50vh;
  }

  .map-wrapper {
    width: 100%;
    height: 50vh;
    border-radius: 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    border-bottom: 3px solid #e0e0e0;
  }

  .results-list {
    width: 100%;
    background: white;
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    order: 1;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
  }

  .room-details {
    padding: 16px;
  }

  .room-details h3 {
    font-size: 1.2rem;
  }

  .room-features {
    gap: 8px;
  }

  .feature-tag {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .book-now-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .results-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .results-container {
    padding: 0;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
  }

  .map-container {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    order: -1;
    background: #f5f5f5;
    min-height: 45vh !important;
    flex: 0 0 45vh;
  }

  .map-wrapper {
    width: 100%;
    height: 45vh;
    border-radius: 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    border-bottom: 3px solid #e0e0e0;
  }

  .results-list {
    width: 100%;
    background: white;
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    order: 1;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
  }

  .room-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .room-features {
    gap: 8px;
  }

  .room-price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .book-now-btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================
   CALENDAR DIALOG
   ======================== */
#calendarDialog {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 20px;
}

#calendarDialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================
   MAP & MARKER STYLES
   ======================== */
#leafletMap {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  z-index: 1;
}

/* ========================
   MARKER CLUSTER STYLES
   ======================== */
.marker-cluster {
  background: linear-gradient(135deg, #0a7c59 0%, #05553e 100%);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(10, 124, 89, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: Poppins, sans-serif;
}

.marker-cluster:hover {
  background: linear-gradient(135deg, #05553e 0%, #0a7c59 100%);
  box-shadow: 0 6px 20px rgba(10, 124, 89, 0.4);
  transform: scale(1.1);
}

.marker-cluster-small {
  background: linear-gradient(135deg, #0a7c59 0%, #05553e 100%);
}

.marker-cluster-medium {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.marker-cluster-large {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
}

.marker-cluster-medium:hover {
  background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
}

.marker-cluster-large:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ff6b6b 100%);
}

.marker-cluster-small {
  width: 45px;
  height: 45px;
  font-size: 14px;
}

.marker-cluster-medium {
  width: 55px;
  height: 55px;
  font-size: 17px;
}

.marker-cluster-large {
  width: 65px;
  height: 65px;
  font-size: 20px;
}

/* Custom Marker Styles - Flag Design */
.custom-marker {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.marker-flag {
  position: relative;
  width: 40px;
  height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.marker-flag svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
  cursor: pointer;
}

.marker-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(10, 124, 89, 0.15);
  border-radius: 50%;
  animation: pulse 2s infinite;
  z-index: 1;
  top: 2px;
  left: 2px;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Highlighted Marker */
.marker-flag.highlighted svg {
  filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.4));
  transform: scale(1.2);
}

.marker-flag.highlighted .marker-pulse {
  background: rgba(255, 107, 107, 0.2);
  animation: pulseHighlight 1.5s infinite;
}

@keyframes pulseHighlight {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: none;
  background: white;
}

.leaflet-popup-content {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 12px;
}

.leaflet-popup-tip {
  background: white;
}

.leaflet-popup-close-button {
  color: #666;
  font-size: 22px;
  padding: 4px;
}

.leaflet-popup-close-button:hover {
  color: var(--navy);
}

/* ========================
   CARD HOVER & HIGHLIGHT STYLES
   ======================== */
.room-card {
  transition: all 0.3s ease;
  position: relative;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.room-card.hovered {
  border: 2px solid #ffc107;
  box-shadow: 0 6px 24px rgba(255, 193, 7, 0.15);
}

.room-card.highlighted {
  border: 3px solid var(--sea);
  box-shadow: 0 12px 40px rgba(10, 124, 89, 0.25),
    0 0 0 4px rgba(10, 124, 89, 0.08);
  transform: translateY(-12px);
  background: rgba(10, 124, 89, 0.01);
}

.room-card.highlighted::after {
  content: "★ Selected";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sea);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 20;
  animation: slideInBadge 0.4s ease;
  box-shadow: 0 2px 8px rgba(10, 124, 89, 0.3);
}

@keyframes slideInBadge {
  from {
    transform: translateX(30px) scale(0);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Distance Display */
.room-distance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
  font-family: var(--font-body);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.room-distance.highlight {
  background: #fff3e0;
  color: #e65100;
}

/* Share Menu Styles */
.share-menu {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.share-menu.show {
  opacity: 1;
  transform: scale(1);
}

.share-option {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
  font-family: var(--font-body);
}

.share-option:hover {
  background: #f5f6fa;
  color: var(--sea);
  padding-left: 20px;
}

.share-option i {
  width: 20px;
  text-align: center;
  color: var(--sea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-option.copy-link {
  border-top: 1px solid #eee;
}

/* ========================
   ADVANCED FILTER STYLES - MODERN PROFESSIONAL VERSION
   ======================== */

:root {
  --font-heading: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --sand: #ffe5a2;
  --sky: #9ef5f8;
  --sea: #69cae7;
  --navy: #1d3557;
  --white: #ffffff;
}

/* Filter Button Styling */
.btn-open-filters {
  background: linear-gradient(135deg, #42849c 0%, #5ab8d9 100%);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(105, 202, 231, 0.3);
  margin-left: 10px;
}

.btn-open-filters:hover {
  background: linear-gradient(135deg, #5ab8d9 0%, #4a9bc1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(105, 202, 231, 0.4);
}

.btn-open-filters:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(105, 202, 231, 0.2);
}

.btn-open-filters i {
  font-size: 16px;
}

.advanced-filter-btn {
  padding: 14px 18px;
  background: linear-gradient(135deg, #42849c 0%, #5ab8d9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(105, 202, 231, 0.3);
  font-family: var(--font-heading);
  margin-right: 15px;
  position: relative;
  overflow: hidden;
}

.advanced-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 202, 231, 0.4);
  background: linear-gradient(135deg, #5ab8d9 0%, #4a9bc1 100%);
}

.advanced-filter-btn:active {
  transform: translateY(0);
}

.advanced-filter-btn i {
  font-size: 16px;
}

/* ========================
   ADVANCED FILTER MODAL
   ======================== */

.advanced-filter-modal {
  position: fixed;
  inset: 0;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10001;
  /* margin: 0; */
  backdrop-filter: blur(0px);
  max-width: 35vw;
}

.advanced-filter-modal[open] {
  display: flex !important;
}

.advanced-filter-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.advanced-filter-content {
  width: 100%;
  max-height: 90vh;
  height: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.filter-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  color: var(--white);
  padding: 28px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.filter-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.filter-header h2 i {
  font-size: 18px;
}

.filter-close-btn {
  background: none;
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.8;
}

.filter-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.filter-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(90vh - 120px);
  min-height: 0;
}

.filter-body::-webkit-scrollbar {
  width: 8px;
}

.filter-body::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.filter-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.filter-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.filter-section {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--sea);
  transition: all 0.2s ease;
}

.filter-section:hover {
  border-left-color: var(--navy);
  background: #fafafa;
}

.filter-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

.filter-section-title i {
  color: var(--sea);
  font-size: 14px;
}

/* Distance Filter */
.distance-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
  width: 100%;
}

.modern-slider {
  width: 100%;
  min-width: 0;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(to right, #e8eef5 0%, #e8eef5 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

.modern-slider:hover {
  box-shadow: 0 2px 8px rgba(105, 202, 231, 0.1);
}

.modern-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sea);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: none;
}

.modern-slider::-webkit-slider-thumb:hover {
  width: 20px;
  height: 20px;
  box-shadow: 0 3px 10px rgba(105, 202, 231, 0.3);
}

.modern-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sea);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.modern-slider::-moz-range-thumb:hover {
  width: 20px;
  height: 20px;
  box-shadow: 0 3px 10px rgba(105, 202, 231, 0.3);
}

.distance-value-display {
  display: inline-block;
  background: var(--sea);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(105, 202, 231, 0.2);
}

.distance-display {
  font-size: 14px;
  color: var(--sea);
  font-weight: 600;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(105, 202, 231, 0.05);
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-body);
}

/* Price Range Wrapper */
.price-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-inputs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.price-input-group label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

.price-input {
  padding: 12px 14px;
  border: 2px solid #e8eef5;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
  color: #1d3557;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.price-input:focus {
  outline: none;
  border-color: var(--sea);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(105, 202, 231, 0.15);
  transform: translateY(-2px);
}

.price-input::placeholder {
  color: #a0afc4;
}

.price-separator-group {
  font-size: 18px;
  color: #999;
  font-weight: 600;
}

.price-display-range {
  background: linear-gradient(
    135deg,
    rgba(105, 202, 231, 0.1) 0%,
    rgba(158, 245, 248, 0.1) 100%
  );
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--sea);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.price-filter {
  display: flex;
  gap: 12px;
  align-items: center;
}

.price-separator {
  color: #9ca3af;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Filter Checkboxes - Modern */
.filter-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-family: var(--font-body);
}

.checkbox-item:hover {
  border-color: var(--sea);
  background: rgba(105, 202, 231, 0.05);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--sea);
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
  color: var(--sea);
  font-weight: 600;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  color: #333;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: var(--font-body);
}

.checkbox-label i {
  font-size: 12px;
  color: #999;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-label i {
  color: var(--sea);
}

.checkbox-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0;
}

.checkbox-filter input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--sea);
}

.checkbox-filter span {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  font-family: var(--font-heading);
}

/* Min Stay Input */
.min-stay-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--white) 0%, #f9fbfc 100%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.min-stay-input {
  flex: 0 0 70px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  font-family: var(--font-heading);
  padding: 0;
  margin: 0;
  outline: none;
  text-align: center;
}

.min-stay-input::-webkit-outer-spin-button,
.min-stay-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.min-stay-input[type="number"] {
  -moz-appearance: textfield;
}

.min-stay-input:focus {
  outline: none;
}

.min-stay-label {
  color: #666;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-body);
}

.min-stay-wrapper:focus-within {
  border-color: var(--sea);
  box-shadow: 0 4px 12px rgba(105, 202, 231, 0.15);
  transform: translateY(-2px);
}

/* Modern Button Styles for Filter Options */
.filter-option-btn {
  padding: 10px 14px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #555;
  font-family: var(--font-body);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-option-btn .filter-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--sea);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  min-width: 20px;
  text-align: center;
}

.filter-option-btn:hover {
  border-color: var(--sea);
  background: #f9f9f9;
  color: var(--sea);
}

.filter-option-btn.active {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 10px;
}

/* Property Type Dropdown */
.property-type-dropdown {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--white) 0%, #f9fbfc 100%);
  color: #333;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%2369cae7' d='M1 1.5l6 6 6-6' stroke='%2369cae7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.property-type-dropdown:hover {
  border-color: var(--sea);
  background-color: rgba(105, 202, 231, 0.08);
  box-shadow: 0 4px 12px rgba(105, 202, 231, 0.15);
}

.property-type-dropdown:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(105, 202, 231, 0.15);
  transform: translateY(-2px);
}

/* Show More Amenities Button */
.show-more-amenities-btn {
  width: 100%;
  padding: 10px 14px;
  margin-top: 10px;
  background: linear-gradient(
    135deg,
    rgba(105, 202, 231, 0.1) 0%,
    rgba(158, 245, 248, 0.1) 100%
  );
  border: 2px dashed var(--sea);
  border-radius: 8px;
  color: var(--sea);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.show-more-amenities-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(105, 202, 231, 0.15) 0%,
    rgba(158, 245, 248, 0.15) 100%
  );
  border-color: var(--navy);
  color: var(--navy);
}

/* Amenities Modal */
.amenities-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10002;
}

.amenities-modal[open] {
  display: flex;
}

.amenities-modal::backdrop {
  background: rgba(29, 53, 87, 0.6);
}

.amenities-modal-content {
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(29, 53, 87, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: amenitiesModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes amenitiesModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.amenities-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.amenities-modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.amenities-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.amenities-modal-search {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  flex-shrink: 0;
}

.amenities-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--white);
  color: #333;
  transition: all 0.3s ease;
}

.amenities-search-input:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(105, 202, 231, 0.1);
}

.amenities-modal-grid {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-height: calc(80vh - 220px);
}

.amenities-modal-grid::-webkit-scrollbar {
  width: 10px;
}

.amenities-modal-grid::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.amenities-modal-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sea) 0%, var(--sky) 100%);
  border-radius: 10px;
  border: 2px solid #f0f0f0;
}

.amenities-modal-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--navy) 0%, var(--sea) 100%);
}

.amenities-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.btn-close-modal {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sky) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.btn-close-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(105, 202, 231, 0.3);
}

/* Amenities Grid with counts */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.amenity-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--white) 0%, #f9fbfc 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-body);
  text-align: center;
  position: relative;
  overflow: visible;
  min-height: 90px;
  justify-content: center;
}

.amenity-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(105, 202, 231, 0.1) 0%,
    rgba(158, 245, 248, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 12px;
}

.amenity-badge:hover {
  border-color: var(--sea);
  box-shadow: 0 4px 16px rgba(105, 202, 231, 0.2);
  transform: translateY(-4px);
}

.amenity-badge:hover::before {
  opacity: 1;
}

.amenity-badge input[type="checkbox"] {
  display: none;
}

.amenity-badge .amenity-icon {
  font-size: 28px;
  color: var(--sea);
  transition: all 0.3s ease;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amenity-badge label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  line-height: 1.3;
  font-family: var(--font-body);
  padding: 12px 10px;
  word-wrap: break-word;
}

.amenity-badge label span {
  display: block;
  word-wrap: break-word;
  max-width: 100%;
}

.amenity-badge.checked {
  border-color: var(--sea);
  background: linear-gradient(
    135deg,
    rgba(105, 202, 231, 0.15) 0%,
    rgba(158, 245, 248, 0.1) 100%
  );
  box-shadow: 0 4px 16px rgba(105, 202, 231, 0.25);
}

.amenity-badge.checked .amenity-icon {
  color: var(--navy);
  transform: scale(1.15);
}

.amenity-badge.checked label {
  color: var(--navy);
  font-weight: 700;
}

.amenity-badge.checked::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: var(--sea);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

/* Filter Footer */
.filter-footer {
  background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
  padding: 20px 32px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.btn-reset-filters,
.btn-apply-filters {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
}

.btn-reset-filters {
  background: #e5e5e5;
  color: #333;
}

.btn-reset-filters:hover {
  background: #d0d0d0;
}

.btn-apply-filters {
  background: var(--sea);
  color: var(--white);
}

.btn-apply-filters:hover {
  background: #5ab8d9;
}

/* Unavailable Marker on Cards */
.room-card.unavailable {
  position: relative;
  opacity: 0.7;
}

.room-card.unavailable::after {
  content: "⚠ Unavailable";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Small text under filter sections */
.filter-section small {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 400;
  font-family: var(--font-heading);
}

/* Scrollbar styling for filter body */
.filter-body::-webkit-scrollbar {
  width: 6px;
}

.filter-body::-webkit-scrollbar-track {
  background: transparent;
}

.filter-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.filter-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile Responsiveness for Filters */
@media (max-width: 768px) {
  .advanced-filter-content {
    width: 95vw;
    max-width: 95vw;
    max-height: 85vh;
  }

  .filter-checkboxes {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .price-inputs {
    flex-wrap: wrap;
  }

  .price-input-group {
    flex: 1;
    min-width: 100px;
  }

  .min-stay-wrapper {
    flex-direction: row;
  }

  .filter-footer {
    flex-direction: column-reverse;
  }

  .btn-reset-filters,
  .btn-apply-filters {
    width: 100%;
  }

  .advanced-filter-btn {
    padding: 12px 12px;
    font-size: 14px;
    margin-right: 10px;
  }

  .filter-header {
    padding: 16px 18px;
  }

  .filter-header h2 {
    font-size: 18px;
  }

  .filter-body {
    padding: 18px;
    gap: 10px;
  }

  .filter-section {
    padding: 12px;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-reset-filters,
  .btn-apply-filters {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .advanced-filter-content {
    width: 98vw;
    max-width: 98vw;
    max-height: 90vh;
  }

  .filter-header h2 {
    font-size: 16px;
  }

  .filter-body {
    padding: 16px;
    gap: 10px;
  }

  .filter-section {
    padding: 12px;
  }

  .filter-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-section-title {
    font-size: 13px;
  }

  .price-input {
    font-size: 13px;
    padding: 8px 10px;
  }

  .price-display-range {
    font-size: 12px;
  }

  .advanced-filter-btn {
    padding: 10px 10px;
    font-size: 13px;
    margin-right: 8px;
  }
}
