/* ============================================ */
/* RESET & VARIABLES */
/* ============================================ */
.listings-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.listings-wrapper {
  --primary: #16A8EE;
  --text: #0F2C3A;
  --text-muted: #8b98a5;
  --border: #d7dee6;
  --bg: #ffffff;
  --bg-card: #f5f5f5;
}

.listings-wrapper {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-card);
  margin: 0;
  padding: 0;
}

/* ============================================ */
/* MAIN LAYOUT */
/* ============================================ */
.listings-wrapper .listings-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  width: 100%;
  margin: 0;
}

.listings-wrapper .search-section {
  background: none;
  padding: 12px 7%;
  z-index: 1000;
  position: relative;
}

.listings-wrapper .content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 0 7%;
}

.listings-wrapper .content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
  z-index: 10;
  pointer-events: none;
}

.listings-wrapper .cards-section {
  display: block;
  flex: 0 0 45%;
  overflow-y: auto;
  padding: 12px 20px 20px 0;
  background: var(--bg-card);
  width: 100%;
}

.listings-wrapper .cards-section::-webkit-scrollbar {
  width: 6px;
}

.listings-wrapper .cards-section::-webkit-scrollbar-track {
  background: transparent;
}

.listings-wrapper .cards-section::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.listings-wrapper .cards-section::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.listings-wrapper .cards-section::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.listings-wrapper .cards-section {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
  overflow: -moz-scrollbars-none;
}

.listings-wrapper .map-section {
  flex: 1;
  position: relative;
  background: #e0e0e0;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  margin-left: 20px;
  margin-top: 12px;
}

/* ============================================ */
/* SEARCH BAR */
/* ============================================ */
.listings-wrapper .search-container {
  width: 100%;
}

.listings-wrapper .search-bar {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  height: 63px;
}

.listings-wrapper .search-field {
  flex: 1;
  position: relative;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: auto;
}

.search-field.active {
  z-index: 1001;
}

.listings-wrapper .search-field:first-child {
  border-radius: 20px 0 0 20px;
}

.listings-wrapper .search-field:hover {
  background: rgba(0,0,0,0.02);
}

.listings-wrapper .search-field-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.listings-wrapper .search-field-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.listings-wrapper .search-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1;
}

.listings-wrapper .search-input {
  width: 100%;
  border: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  padding: 0;
  line-height: 1.2;
}

.listings-wrapper .search-input::placeholder {
  color: var(--text-muted);
}

.listings-wrapper .search-btn {
  background: #0F2C3A;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 32px;
  height: 43px;
  margin: 10px 10px 10px 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 100px;
}

.listings-wrapper .search-btn:hover {
  background: #16A8EE;
}

.listings-wrapper .filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  margin-right: 16px;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.listings-wrapper .filter-btn:hover {
  transform: scale(1.1);
}

.listings-wrapper .filter-btn svg {
  width: 24px;
  height: 24px;
  color: #0F2C3A;
}
/* ============================================ */
/* CLEAR SEARCH BUTTON */
/* ============================================ */
.listings-wrapper .clear-search-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: #FEF3F2;
  border: 1px solid #FEE4E2;
  color: #B42318;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.listings-wrapper .clear-search-btn:hover {
  background: #FEE4E2;
  border-color: #FECDCA;
}

.listings-wrapper .clear-search-btn svg {
  flex-shrink: 0;
}

/* ============================================ */
/* LOCATION CLEAR BUTTON (X) */
/* ============================================ */
.listings-wrapper .location-clear-btn {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-left: 4px;
}

.listings-wrapper .location-clear-btn:hover {
  color: #0F2C3A;
}

.listings-wrapper .location-clear-btn svg {
  display: block;
}
/* ============================================ */
/* PROPERTY CARDS */
/* ============================================ */
.listings-wrapper .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2vw;
  min-gap: 14px;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1400px) {
  .listings-wrapper .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) and (max-width: 1399px) {
  .listings-wrapper .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 999px) {
  .listings-wrapper .cards-grid {
    grid-template-columns: 1fr;
  }
}

.listings-wrapper .property-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.listings-wrapper .mobile-floating-buttons,
.listings-wrapper .view-toggle-bar {
  display: none;
}

.listings-wrapper .property-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.listings-wrapper .property-type-badge {
  position: absolute;
  top: 0.7vw;
  left: 0.7vw;
  background: white;
  border-radius: 0.4vw;
  padding: 0.3vw 0.6vw;
  display: flex;
  align-items: center;
  gap: 0.3vw;
  font-size: 0.5vw;
  font-weight: 600;
  color: #0F2C3A;
  box-shadow: 0 0.15vw 0.4vw rgba(0,0,0,0.12);
  z-index: 1;
  min-font-size: 10px;
}

.listings-wrapper .property-type-badge svg {
  width: 0.7vw;
  height: 0.7vw;
  min-width: 13px;
  min-height: 13px;
  flex-shrink: 0;
}

.listings-wrapper .card-image {
  width: 100%;
  height: 11vw;
  object-fit: cover;
  min-height: 140px;
  max-height: 200px;
}

@media (max-width: 1600px) {
  .listings-wrapper .card-image {
    max-height: 130px;
  }
}

@media (max-width: 1400px) {
  .listings-wrapper .card-image {
    max-height: 115px;
  }
}

@media (max-width: 1600px) {
  .listings-wrapper .card-content {
    padding: 8px !important;
  }
  
  .listings-wrapper .card-location {
    margin-bottom: 2px !important;
    gap: 2px !important;
  }
  
  .listings-wrapper .card-title {
    margin: 3px 0 4px 0 !important;
  }
  
  .listings-wrapper .card-details {
    margin-bottom: 5px !important;
    gap: 2px !important;
  }
  
  .listings-wrapper .card-price {
    margin-top: 2px !important;
  }
}

.listings-wrapper .card-content {
  padding: 0.8vw;
  min-padding: 10px;
}

.listings-wrapper .card-location {
  display: flex;
  align-items: center;
  gap: 0.3vw;
  font-size: 0.55vw;
  color: var(--text);
  margin-bottom: 0.3vw;
}

.listings-wrapper .card-location svg {
  width: 0.65vw;
  height: 0.65vw;
  min-width: 12px;
  min-height: 12px;
}

.listings-wrapper .card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2vw;
  margin-left: auto;
}

.listings-wrapper .card-rating svg {
  width: 0.55vw;
  height: 0.55vw;
  min-width: 11px;
  min-height: 11px;
  color: #16A8EE;
}

.listings-wrapper .card-title {
  font-size: 0.7vw;
  font-weight: 600;
  color: var(--text);
  margin: 0.3vw 0 0.4vw 0;
  line-height: 1.3;
  min-font-size: 13px;
}

.listings-wrapper .card-details {
  display: flex;
  align-items: center;
  gap: 0.3vw;
  font-size: 0.5vw;
  color: var(--text-muted);
  margin-bottom: 0.5vw;
}

.listings-wrapper .card-details svg {
  width: 0.55vw;
  height: 0.55vw;
  min-width: 10px;
  min-height: 10px;
  color: #6b7280;
  flex-shrink: 0;
}

.listings-wrapper .card-price {
  font-size: 0.6vw;
  font-weight: 600;
  color: var(--text);
  min-font-size: 13px;
}

.listings-wrapper .card-price span {
  font-weight: 400;
  font-size: 0.52vw;
  min-font-size: 11px;
}

/* ============================================ */
/* FILTER DROPDOWN RESPONSIVE SIZING */
/* ============================================ */

/* Desktop filter dropdown - viewport based responsive height */
@media (min-width: 769px) {
  #filter-dropdown {
    max-height: 70vh !important;
    overflow-y: auto !important;
  }
  
  /* Remove bottom border from Pets Allowed section (last section before action buttons) */
  #filter-dropdown > div:last-of-type:not([style*="display: flex"]) {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

/* ============================================ */
/* HIDE MOBILE ELEMENTS ON DESKTOP */
/* ============================================ */
@media (min-width: 769px) {
  .listings-wrapper .mobile-floating-buttons,
  .listings-wrapper .view-toggle-bar,
  .listings-wrapper .mobile-search-overlay,
  .listings-wrapper .mobile-search-trigger,
  .listings-wrapper .mobile-filter-trigger,
  .listings-wrapper .calendar-wrapper-mobile,
  .listings-wrapper .guest-popup-mobile {
    display: none !important;
  }
  
  .listings-wrapper .content-wrapper {
    padding: 0 7%;
  }
  
  .listings-wrapper .content-wrapper::before {
    display: block;
  }
}

/* ============================================ */
/* MOBILE RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
  .listings-wrapper .search-section {
    display: none;
  }
  
  .listings-wrapper .content-wrapper {
    flex-direction: column;
    height: 100vh;
    position: relative;
    padding: 0;
  }
  
  .listings-wrapper .content-wrapper::before {
    display: none;
  }
  
  .listings-wrapper .cards-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px !important;
    padding-top: 90px !important;
    padding-bottom: 90px !important;
    display: none;
    z-index: 100;
  }
  
  .listings-wrapper .property-card {
    margin-bottom: 20px;
  }
  
  .listings-wrapper .card-image {
    height: 220px !important;
    max-height: none !important;
  }
  
  .listings-wrapper .card-content {
    padding: 14px !important;
  }
  
  .listings-wrapper .card-location {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    gap: 4px !important;
  }
  
  .listings-wrapper .card-location svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .listings-wrapper .card-title {
    font-size: 18px !important;
    margin: 8px 0 !important;
  }
  
  .listings-wrapper .card-details {
    font-size: 14px !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  
  .listings-wrapper .card-details svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .listings-wrapper .card-price {
    font-size: 18px !important;
  }
  
  .listings-wrapper .card-price span {
    font-size: 14px !important;
  }
  
  .listings-wrapper .property-type-badge {
    top: 14px !important;
    left: 14px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    gap: 6px !important;
    border-radius: 8px !important;
  }
  
  .listings-wrapper .property-type-badge svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .listings-wrapper .cards-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 103px;
    background: #f5f5f5;
    pointer-events: none;
    z-index: 10;
  }
  
  .cards-section.list-view-active {
    display: block;
  }
  
  .map-section.list-view-active {
    display: none;
  }
  
  .list-view-header {
    display: none;
    padding: 16px 16px 0;
    align-items: center;
    gap: 12px;
    background: white;
  }
  
  .list-view-active .list-view-header {
    display: flex;
  }
  
  .back-to-map-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0F2C3A;
    cursor: pointer;
    padding: 8px;
  }
  
  .back-to-map-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .list-view-active .listings-wrapper .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    padding-top: 150px;
    padding-bottom: 100px;
    background: white;
    min-height: 100%;
  }
  
  .bottom-sheet-handle {
    display: none;
  }
  
  .listings-wrapper .map-section {
    position: fixed;
    top: 139px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
  
  .listings-wrapper .mobile-floating-buttons {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    z-index: 1002;
    display: flex;
    gap: 8px;
    pointer-events: none;
  }
  
  .listings-wrapper .mobile-search-trigger {
    flex: 1;
    background: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
    pointer-events: auto;
  }
  
  .listings-wrapper .mobile-search-trigger svg {
    width: 20px;
    height: 20px;
    color: #0F2C3A;
    flex-shrink: 0;
  }
  
  .mobile-filter-trigger {
    display: none;
  }
  
  .mobile-filter-trigger svg {
    width: 20px;
    height: 20px;
    color: #0F2C3A;
  }
  
  .listings-wrapper .view-toggle-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: white;
    border-top: 1px solid #e5e7eb;
    border-radius: 30px 30px 0 0;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
  }
  
  .listings-wrapper .view-toggle-text {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #0F2C3A;
  }
  
  .listings-wrapper .view-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    -webkit-tap-highlight-color: transparent;
  }
  
  .listings-wrapper .view-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .listings-wrapper .view-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E0E0E0;
    transition: 0.3s;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
  }
  
  .listings-wrapper .view-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
  }
  
  .listings-wrapper input:checked + .view-toggle-slider {
    background-color: #16A8EE;
  }
  
  .listings-wrapper input:checked + .view-toggle-slider:before {
    transform: translateX(22px);
  }
  
  .mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: flex-end;
  }
  
  .mobile-search-overlay.active {
    display: flex;
  }
  
  .mobile-search-panel {
    background: white;
    width: 100%;
    max-height: 65vh;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  
  .mobile-search-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-search-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
  }
  
  .mobile-overlay-close {
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
  }
  
  .mobile-search-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }
  
  .mobile-search-field-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }
  
  #mobile-calendar-wrapper {
    display: none;
    margin-bottom: 20px;
  }
  
  #mobile-calendar-wrapper.active {
    display: block;
  }
  
  .mobile-search-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0F2C3A;
  }
  
  .mobile-search-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    text-align: left;
  }
  
  .mobile-search-input::placeholder {
    color: #9ca3af;
    opacity: 1;
  }
  
  .mobile-search-overlay input,
  .mobile-search-overlay select,
  .mobile-search-overlay textarea {
    font-size: 16px !important;
  }
  
  #mobile-filters-container label {
    font-size: 16px !important;
  }
  
  /* Remove bottom border from Pets Allowed section in mobile (last section before action buttons) */
  #mobile-filter-dropdown > div:last-of-type:not([style*="display: flex"]) {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  /* NEW: Mobile search footer - sticky buttons */
  .mobile-search-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    background: white;
    flex-shrink: 0;
  }
  
  .mobile-search-footer button {
    flex: 1;
  }
  
  .mobile-search-clear {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  
  .mobile-search-apply {
    background: #0F2C3A;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  
  .guest-popup-mobile {
    display: none;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
  }
  
  .guest-popup-mobile.active {
    display: block;
  }
  
  .guest-control-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .guest-label-mobile {
    font-size: 15px;
    font-weight: 500;
    color: #0F2C3A;
  }
  
  .guest-buttons-mobile {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .guest-btn-mobile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .guest-btn-mobile:hover {
    border-color: #0F2C3A;
    background: #f3f4f6;
  }
  
  .guest-number-mobile {
    font-size: 16px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
  }
  
  .calendar-wrapper-mobile {
    display: none;
  }
  
  .calendar-wrapper-mobile.active {
    display: block;
  }
  
  .leaflet-popup-content-wrapper {
    max-width: 90vw !important;
  }
  
  .leaflet-popup-content {
    width: auto !important;
    max-width: 320px !important;
  }
  
  .map-section .map-loading-skeleton {
    position: fixed;
    top: 139px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  
  .map-section .map-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #16A8EE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
}

/* ============================================ */
/* MAP DISPLAY FIX */
/* ============================================ */
#listings-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.listings-wrapper .map-section #listings-map {
  width: 100%;
  height: 100%;
}

/* ============================================ */
/* CUSTOM MAP MARKERS & POPUPS */
/* ============================================ */
.custom-marker-wrapper {
  background: none !important;
  border: none !important;
}

.custom-marker {
  background: white;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0F2C3A;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.custom-marker:hover {
  background: #0F2C3A;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 280px !important;
}

.leaflet-popup-tip-container {
  display: none !important;
}

.leaflet-popup-close-button {
  display: none !important;
}

/* ============================================ */
/* MARKER CLUSTERING */
/* ============================================ */
.marker-cluster-container {
  background: none !important;
  border: none !important;
}

.marker-cluster {
  background: white;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0F2C3A;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  line-height: 1;
}

.marker-cluster:hover {
  background: #0F2C3A;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
}

.map-loading-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.map-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #16A8EE;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
