/* Hotel results — extends demo theme (style.css). Do not override .hotel-card grid. */

.hotel-results-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #eef1f6;
  color: var(--text-primary);
  min-height: 100vh;
}

.hotel-results-page a.hotel-card {
  text-decoration: none;
  color: inherit;
}

/* ── Page shell ── */
.hotel-results-page .page-header-inner,
.hotel-results-page .container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

.hotel-results-page .container {
  padding-bottom: 0;
}

.hotel-results-page .page-body {
  padding-bottom: 40px;
  gap: 0;
  align-items: start;
  grid-template-columns: 280px minmax(0, 1fr);
}

.hotel-results-page .sidebar.filter-sidebar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
  align-self: start;
  position: sticky;
  top: 72px;
  display: block;
  max-height: calc(100vh - 88px);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

.hotel-results-page .sidebar.filter-sidebar::-webkit-scrollbar {
  width: 6px;
}

.hotel-results-page .sidebar.filter-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 6px;
}

.hotel-results-page .filter-sidebar--expanded {
  max-height: none;
  overflow-y: visible;
}

/* ── Trip context strip ── */
.trip-context-bar {
  background: linear-gradient(100deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: 0 28px;
  box-shadow: var(--shadow-md);
}

.trip-context-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.trip-context-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.trip-dest-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trip-dest-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.trip-dest-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.vendor-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vendor-legend .hc-vendor-dot {
  width: 11px;
  height: 11px;
  border-width: 1.5px;
}

/* ── Results count line ── */
.results-count-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0 10px;
}

.results-count-line.is-loading {
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Collapsible search panel ── */
.results-search-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.results-panel .results-count-line {
  padding: 0 0 12px;
}

.results-search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.results-search-head h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.search-toggle-btn {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  transition: all 0.2s;
}

.search-toggle-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.hotel-results-page .search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 0.85rem;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-field-dest,
.search-field-guests {
  position: relative;
}

.search-submit-label {
  visibility: hidden;
}

.hotel-results-page .search-grid .filter-input {
  height: 46px;
}

@media (max-width: 900px) {
  .hotel-results-page .search-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hotel-results-page label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.hotel-results-page .search-grid input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]),
.hotel-results-page .search-grid select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.hotel-results-page .search-grid input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]):focus,
.hotel-results-page .search-grid select:focus {
  outline: none;
  border-color: var(--navy);
}

.hotel-results-page .btn-search {
  height: 46px;
  padding: 0 24px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.hotel-results-page .btn-search:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
}

/* ── Filter sidebar ── */
.filter-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 3;
}

.filter-sidebar-head-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filter-sidebar-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.filter-expand-btn,
.filter-mobile-toggle {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-expand-btn:hover,
.filter-mobile-toggle:hover {
  border-color: var(--navy);
  background: var(--white);
}

.filter-mobile-toggle {
  display: none;
}

.filter-sidebar-body {
  padding: 0;
  overflow: visible;
  position: relative;
}

.filter-sidebar--expanded .filter-sidebar-body {
  overflow: visible;
  max-height: none;
}

.filter-sidebar-body.is-scrollable::after {
  display: none;
}

.filter-jump-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 10px;
}

.filter-jump-btn::before {
  content: '☰';
  font-size: 11px;
}

.results-toolbar {
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
}

.results-toolbar .filter-jump-btn + .results-header {
  margin-top: 0;
}

.filter-block {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.filter-block-last {
  border-bottom: none;
}

.filter-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.filter-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: var(--navy);
}

.filter-range-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.filter-range-value-single {
  justify-content: flex-start;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-range-value-single strong {
  color: var(--navy);
  font-weight: 700;
}

.filter-range-sep {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filter-slider-row {
  display: block;
  margin-bottom: 12px;
}

.filter-slider-row:last-child {
  margin-bottom: 0;
}

.filter-slider-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-check-list .check-row {
  padding: 7px 0;
}

.hotel-results-page .results-panel {
  padding: 12px 0 20px 16px;
  min-height: 0;
}

.filter-check-list .check-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.hotel-results-page .filter-sidebar .check-row {
  padding-left: 0;
  padding-right: 0;
}

.hotel-results-page .filter-sidebar .check-count {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 6px;
}

.filter-stars {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1;
}

.filter-star-text {
  font-size: 13px;
  color: var(--text-primary);
}

.filter-empty-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Reset filter sidebar controls — must not inherit search input styles */
.hotel-results-page .filter-sidebar .check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 4px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.hotel-results-page .filter-sidebar input[type="range"].price-slider {
  width: 100%;
  height: 4px;
  min-height: 4px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 4px;
  background: var(--border-mid);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.hotel-results-page .filter-sidebar input[type="range"].price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 31, 56, 0.2);
  transition: box-shadow 0.2s;
}

.hotel-results-page .filter-sidebar input[type="range"].price-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(13, 31, 56, 0.08);
}

.hotel-results-page .filter-sidebar input[type="range"].price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 31, 56, 0.2);
}

.hotel-results-page .filter-sidebar .price-range-wrap {
  padding: 2px 0 4px;
}

/* ── Results panel + map layout ── */
.results-map-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
}

.page-body.has-map .results-map-wrap {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.map-area {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
}

.page-body.has-map .map-area {
  display: flex;
  flex-direction: column;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.map-toolbar > div {
  display: flex;
  gap: 6px;
}

#results-map {
  flex: 1;
  min-height: 420px;
  height: calc(100vh - 160px);
}

.map-toggle-btn {
  padding: 7px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.map-toggle-btn:hover,
.map-toggle-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Hotel card image (real photos) ── */
.hc-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hotel-card:hover .hc-img-real {
  transform: scale(1.06);
}

.hc-img.hc-no-image .hc-img-real {
  display: none;
}

.hc-vendor-dots {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.hc-vendor-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.hc-vendor-dot-bonotel {
  background: #d92d20;
}

.hc-vendor-dot-hotelbeds {
  background: var(--green);
}

.hc-pricing .price-save {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}

.hc-pricing .price-was {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.hc-pricing .price-now {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.hc-pricing .price-compare-total {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-top: 2px;
}

.hc-rating-empty {
  min-width: 1px;
}

/* Property fees */
.price-property-fees {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--accent-deep);
  font-weight: 600;
  text-align: right;
}

/* ── Empty / loading ── */
.empty-state,
.loading-state {
  background: var(--white);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.loading-state {
  border-style: solid;
  font-weight: 600;
  color: var(--navy);
}

.loading-state::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: hr-spin 0.8s linear infinite;
}

@keyframes hr-spin {
  to { transform: rotate(360deg); }
}

.empty-state strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.85;
}

.empty-state-btn {
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.empty-state-btn:hover {
  background: var(--coral-hover);
}

/* Social proof — keep purchase toasts off the filter sidebar */
.hotel-results-page .sf-sp-root {
  left: auto;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  max-width: min(20rem, calc(100vw - 2rem));
}

.hotel-results-page .sf-sp-root--right {
  right: max(1rem, env(safe-area-inset-right, 0px));
}

/* ── Guest picker (results refine) ── */
.guests-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 2000;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.guests-dropdown.show {
  display: block;
}

.guests-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
}

.guests-control:last-of-type {
  border-bottom: none;
}

.guests-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guests-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
}

.guests-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.guests-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.guests-child-ages {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

.guests-child-ages-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.guests-child-ages-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0.15rem 0 0.5rem;
}

.guests-child-age-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.guests-age-input {
  width: 72px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.guests-apply-btn {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.55rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.guests-apply-btn:hover {
  background: var(--navy-mid);
}

.guests-display-input {
  cursor: pointer;
  background: var(--white);
}

.hotel-results-page .dest-ac-dropdown {
  z-index: 2000;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  .page-body.has-map .results-map-wrap {
    grid-template-columns: 1fr;
  }

  .page-body.has-map .map-area {
    position: relative;
    top: auto;
    max-height: none;
    order: -1;
    margin-bottom: 14px;
  }

  #results-map {
    height: 280px;
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .trip-context-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hotel-results-page .page-header-inner,
  .trip-context-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hotel-results-page .page-body {
    padding: 0 16px 32px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hotel-results-page .sidebar {
    position: relative;
    top: auto;
    max-height: none;
    border-right: none;
    border-bottom: none;
    min-height: 0;
    margin-bottom: 0;
  }

  .hotel-results-page .filter-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    border-radius: var(--radius);
  }

  .results-panel {
    padding-left: 0;
  }

  .hotel-results-page .search-grid {
    grid-template-columns: 1fr;
  }

  .hotel-results-page .sf-sp-root {
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    bottom: max(5rem, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
    max-width: none;
  }

  .filter-jump-btn {
    display: inline-flex;
    align-self: flex-start;
  }

  .filter-expand-btn {
    display: none !important;
  }

  .filter-mobile-toggle {
    display: inline-flex;
  }

  .hotel-results-page .filter-sidebar:not(.filter-sidebar--open) .filter-sidebar-body {
    display: none;
  }

  .hotel-results-page .filter-sidebar.filter-sidebar--open .filter-sidebar-body {
    display: block;
    max-height: none;
    overflow: visible;
  }
}
