/**
 * Halfmap / popup-map search polish (fleet child).
 * Loaded only on hotel-search /hotels/ /st_location (see tg_child_enqueue_assets).
 */

/* —— Hotel name field (banner) —— */
.tg-hotel-name-search .tg-hotel-name-field {
  position: relative;
}
.tg-hotel-name-search .tg-hotel-name-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
}
.tg-hotel-name-search .tg-hotel-name-clear:hover {
  color: #111827;
  background: rgba(14, 18, 24, 0.06) !important;
}
.tg-hotel-name-search .tg-hotel-name-input {
  padding-right: 36px !important;
}
.tg-hotel-name-search .tg-hotel-name-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(14, 18, 24, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(14, 18, 24, 0.12);
  max-height: 280px;
  overflow: auto;
}

/* —— Map-pane KW search: only when map popup is shown —— */
.tg-map-pane-search {
  display: none;
}
.map-view-popup:not([hidden]) .tg-map-pane-search {
  display: block;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 5;
  pointer-events: auto;
}
/* Traveler hides via inline display:none — keep children out of the hero */
.map-view-popup[style*="display: none"] .tg-map-pane-search,
.map-view-popup[style*="display:none"] .tg-map-pane-search {
  display: none !important;
}
.tg-map-pane-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(14, 18, 24, 0.14);
}
.tg-map-pane-search .tg-hotel-name-input {
  flex: 1;
  border: 0;
  outline: none;
  min-width: 0;
}
.tg-map-pane-search .tg-hotel-name-clear {
  position: static;
  transform: none;
}

/* —— Sidebar location facet (unstyled <button> was browser outset + glued count) —— */
#tg-location-facet .tg-location-children,
#tg-sidebar-location-facet .tg-location-children {
  list-style: none;
  margin: 0;
  padding: 0;
}
#tg-location-facet .tg-location-option,
#tg-sidebar-location-facet .tg-location-option {
  margin: 0;
  padding: 0;
  border: 0;
}
#tg-location-facet .tg-location-option button,
#tg-sidebar-location-facet .tg-location-option button {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  line-height: 1.35;
}
#tg-location-facet .tg-location-option button:hover,
#tg-sidebar-location-facet .tg-location-option button:hover {
  color: #c45c26;
}
#tg-location-facet .tg-location-option button > span,
#tg-sidebar-location-facet .tg-location-option button > span {
  flex: 1 1 auto;
  min-width: 0;
}
#tg-location-facet .tg-location-option button > small,
#tg-sidebar-location-facet .tg-location-option button > small {
  flex: 0 0 auto;
  margin-left: 8px !important;
  padding-left: 0;
  color: #6b7280;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
#tg-location-facet .tg-location-current,
#tg-sidebar-location-facet .tg-location-current {
  padding: 6px 2px 10px;
  font-weight: 600;
}
#tg-location-facet .tg-facet-see-more,
#tg-sidebar-location-facet .tg-facet-see-more,
.sidebar-item .tg-facet-see-more {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 4px;
  background: #c45c26 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  cursor: pointer;
}

/* Move-map checkbox: keep inside map pane, not over search hero */
.map-view-popup .search-move-map {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(14, 18, 24, 0.12);
}
.map-view-popup[style*="display: none"] .search-move-map,
.map-view-popup[style*="display:none"] .search-move-map {
  display: none !important;
}
