/* SuperHote V2 - Search Map */

/* ===== Reset: override WordPress themes ===== */
.shp-search-map-wrapper,
.shp-search-map-wrapper *,
.shp-search-map-wrapper *::before,
.shp-search-map-wrapper *::after {
  box-sizing: border-box;
}

.shp-search-map-wrapper button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/* ===== Wrapper ===== */
.shp-search-map-wrapper {
  --shp-accent: #F5A623;
  --shp-text: #222;
  --shp-muted: #aaa;
  --shp-border: #e5e5e5;
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Split Layout ===== */
.shp-search-map-content {
  display: flex;
  gap: 0;
  position: relative;
}

.shp-search-map-list {
  flex: 1 1 55%;
  min-width: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.shp-search-map-map {
  flex: 0 0 45%;
  position: sticky;
  top: 0;
  height: 600px;
  z-index: 1;
  border-left: 1px solid var(--shp-border);
}

/* Override rentals container max-width inside map layout */
.shp-search-map-list .shp-rentals-container {
  max-width: none;
  padding: 20px 16px;
}

/* ===== Card hover highlight (synced with map) ===== */
.shp-search-map-wrapper .shp-card.shp-card-highlighted {
  box-shadow: 0 0 0 2px var(--shp-accent), 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
  z-index: 2;
}

/* ===== Pagination ===== */
.shp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 16px 32px;
  flex-wrap: wrap;
}

.shp-pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--shp-border) !important;
  border-radius: 8px;
  background: #fff !important;
  color: var(--shp-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shp-pagination button:hover:not(:disabled):not(.shp-page-active) {
  background: #f5f5f5 !important;
  border-color: #ccc !important;
}

.shp-pagination button.shp-page-active {
  background: var(--shp-accent) !important;
  color: #fff;
  border-color: var(--shp-accent) !important;
  font-weight: 700;
}

.shp-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shp-pagination .shp-page-ellipsis {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--shp-muted);
}

/* ===== Map marker: price label ===== */
.shp-map-marker-wrapper {
  background: none !important;
  border: none !important;
}

.shp-map-marker {
  background: #fff;
  border: 2px solid var(--shp-accent);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--shp-text);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.shp-map-marker.shp-marker-active {
  background: var(--shp-accent);
  color: #fff;
}

/* ===== Map tooltip ===== */
.shp-map-tooltip {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
}

/* ===== Results count ===== */
.shp-results-count {
  text-align: center;
  padding: 12px 16px 0;
  font-size: 14px;
  color: #717171;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .shp-search-map-content {
    flex-direction: column-reverse;
  }

  .shp-search-map-list {
    flex: none;
    width: 100%;
    max-height: none;
    overflow-y: visible;
  }

  .shp-search-map-map {
    position: relative;
    flex: none;
    width: 100%;
    height: 350px !important;
    border-left: none;
    border-bottom: 1px solid var(--shp-border);
  }
}

@media (max-width: 600px) {
  .shp-search-map-map {
    height: 280px !important;
  }

  .shp-pagination {
    padding: 16px 12px 24px;
  }

  .shp-pagination button {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
