:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a2332;
  --text-secondary: #5c6b7a;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: #ccfbf1;
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 500;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: block;
  width: clamp(260px, 34vw, 420px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.status-bar {
  margin: 0 0 0 auto;
  padding: 0.45rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Filters */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group--wide {
  flex: 1;
  min-width: 280px;
}

.filter-group--search {
  min-width: 260px;
  flex: 1 1 280px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.filter-select {
  min-width: 160px;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6b7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-input {
  min-width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-input:hover {
  border-color: var(--accent);
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-select:hover {
  border-color: var(--accent);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.meal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meal-chip {
  position: relative;
  padding: 0.4rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.meal-chip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 1000;
  width: max-content;
  max-width: 260px;
  padding: 0.45rem 0.6rem;
  color: #fff;
  background: #0f172a;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.12s, transform 0.12s;
}

.meal-chip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.25rem);
  z-index: 1001;
  border: 5px solid transparent;
  border-top-color: #0f172a;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.12s;
}

.meal-chip:hover::after,
.meal-chip:focus-visible::after,
.meal-chip:hover::before,
.meal-chip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.meal-chip:hover::before,
.meal-chip:focus-visible::before {
  transform: translateX(-50%);
}

.meal-chip:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.meal-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

/* Map */
.map-wrap {
  position: relative;
  width: min(1400px, calc(100% - 3rem));
  height: min(64vh, 700px);
  min-height: 520px;
  margin: 1.2rem auto 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e8edf2;
}

.map-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--surface);
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.95rem;
}

.hidden { display: none !important; }

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  width: 360px !important;
  max-height: min(76vh, 680px);
  overflow-y: auto;
}

.leaflet-popup-tip {
  box-shadow: none;
}

.map-popup {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
}

.map-popup-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e8edf2;
}

.map-popup-img.is-empty {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.map-popup-body {
  padding: 0.85rem 1rem 0.5rem;
}

.map-popup h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.map-popup .meta {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.map-popup-dep {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.map-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge--gold {
  background: var(--gold-soft);
  border-color: #fcd34d;
  color: #92400e;
}

.badge--rating {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.badge--ratio {
  background: var(--gold-soft);
  border-color: #fcd34d;
  color: #92400e;
}

.map-popup-prices {
  margin: 0.6rem 0 0.2rem;
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
}

.price-row strong {
  color: var(--accent-hover);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-row--ratio {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.price-row--ratio strong {
  color: var(--gold);
}

.map-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem 0 0.85rem;
}

.more-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.more-btn:hover {
  background: var(--accent-hover);
}

.popup-wak-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.popup-wak-btn:hover {
  background: var(--accent-soft);
}

.mobile-map-card {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1200;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.mobile-map-card-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-map-card .map-popup-img {
  height: 145px;
}

.mobile-map-card .map-popup-body {
  padding: 0.8rem 0.9rem 0.3rem;
}

/* POI */
.poi-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.poi-marker.food { background: #f59e0b; }
.poi-marker.attraction { background: #3b82f6; }
.poi-marker.beach { background: #06b6d4; }

/* Panel */
.panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.panel-content {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  width: min(820px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.panel-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s;
}

.panel-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

#panelBody {
  padding: 0 1.75rem 1.75rem;
  clear: both;
}

#panelBody h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#panelBody h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

#panelBody h3:first-of-type {
  border-top: none;
  padding-top: 0;
}

.panel-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.panel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.25);
  transition: background 0.15s, transform 0.1s;
}

.panel-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.ratio-hint {
  margin: 0.6rem 0 0;
  padding: 0 0.2rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Gallery */
.gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.gallery img {
  height: 140px;
  width: auto;
  min-width: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Table */
.prices-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table.prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

table.prices-table th,
table.prices-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.prices-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

table.prices-table tr:last-child td {
  border-bottom: none;
}

table.prices-table tr:hover td {
  background: #f8fafc;
}

table.prices-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-hover);
  white-space: nowrap;
}

.muted { color: var(--text-secondary); font-size: 0.8rem; }

.ext-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.ext-link:hover { text-decoration: underline; }

/* Results table */
.results-section {
  width: min(1400px, calc(100% - 3rem));
  margin: 1rem auto 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-margin-top: 1rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.results-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.results-header p {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.results-table-wrap {
  max-height: min(62vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
}

.results-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.results-table th,
.results-table td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.results-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sort-th {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.sort-th::after {
  content: "↕";
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.sort-th.active {
  color: var(--accent-hover);
}

.sort-th.active::after {
  content: "↓";
  color: var(--accent-hover);
}

.sort-th[data-sort="rating"].active::after {
  content: "↓";
}

.results-table tr:hover td {
  background: #f8fafc;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent-hover);
}

.table-hotel-link,
.map-link {
  font: inherit;
  color: var(--accent-hover);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.table-hotel-link:hover,
.map-link:hover {
  text-decoration: underline;
}

.map-link {
  padding: 0.38rem 0.65rem;
  background: var(--accent-soft);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.map-link:hover {
  background: #99f6e4;
  text-decoration: none;
}

.stars-cell {
  color: var(--gold);
  white-space: nowrap;
}

.actions-cell {
  text-align: right;
}

.empty-row {
  text-align: center !important;
  color: var(--text-secondary);
  padding: 2rem !important;
}

/* Reviews */
.reviews-summary {
  background: var(--bg);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.reviews-summary h3 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.reviews-summary .intro {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.reviews-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .reviews-cols { grid-template-columns: 1fr; }
}

.reviews-cols h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reviews-cols h4.pros { color: #047857; }
.reviews-cols h4.cons { color: #b45309; }

.reviews-cols ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.reviews-summary > p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

@media (max-width: 640px) {
  .header-inner { padding: 0.85rem 1rem; }
  .filters-inner { padding: 0.75rem 1rem; }
  .header h1 { font-size: 1.15rem; }
  .status-bar { font-size: 0.75rem; }
  .map-wrap,
  .results-section {
    width: calc(100% - 1rem);
  }
  .map-wrap {
    height: 62vh;
    min-height: 460px;
    margin-top: 0.75rem;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 2.1rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: min(78vw, 300px);
    max-height: 58px;
  }

  .status-bar {
    width: 100%;
    margin-left: 0;
    white-space: normal;
    line-height: 1.35;
  }

  .filters-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .filter-group,
  .filter-group--search,
  .filter-group--wide {
    min-width: 0;
    width: 100%;
  }

  .filter-group--search,
  .filter-group--wide {
    grid-column: 1 / -1;
  }

  .filter-select,
  .filter-input {
    width: 100%;
    min-width: 0;
    font-size: 0.95rem;
  }

  .meal-chips {
    gap: 0.5rem;
  }

  .meal-chip {
    flex: 1 1 4.2rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
  }

  .meal-chip::after {
    bottom: auto;
    top: calc(100% + 0.55rem);
  }

  .meal-chip::before {
    bottom: auto;
    top: calc(100% + 0.25rem);
    border-top-color: transparent;
    border-bottom-color: #0f172a;
  }

  .map-wrap {
    width: calc(100% - 1rem);
    height: 56vh;
    min-height: 420px;
    border-radius: 14px;
  }

  .leaflet-popup-content {
    width: min(330px, calc(100vw - 3rem)) !important;
    max-height: 68vh;
  }

  .map-popup-img {
    height: 150px;
  }

  .results-section {
    width: calc(100% - 1rem);
    border-radius: 14px;
  }

  .results-header {
    padding: 0.9rem 1rem;
  }

  .results-header h2 {
    font-size: 1.08rem;
  }

  .results-table-wrap {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    background: var(--bg);
  }

  .results-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .results-table thead {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    margin: -0.75rem -0.75rem 0.75rem;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
  }

  .results-table thead tr {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  .results-table thead th {
    position: static;
    display: none;
    padding: 0;
    border: none;
    background: transparent;
  }

  .results-table thead th.sortable-col {
    display: block;
  }

  .sort-th {
    padding: 0.48rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
  }

  .sort-th.active {
    background: var(--accent-soft);
    border-color: #99f6e4;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table tbody tr {
    margin-bottom: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .results-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 42%) 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.62rem 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: left !important;
  }

  .results-table td::before {
    content: attr(data-label);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .results-table td:first-child {
    display: block;
    padding: 0.85rem 0.8rem;
    background: #f8fafc;
  }

  .results-table td:first-child::before {
    display: none;
  }

  .results-table td:last-child {
    border-bottom: none;
  }

  .results-table td.num {
    text-align: left;
  }

  .table-hotel-link {
    font-size: 1rem;
  }

  .map-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 0.9rem;
  }

  .panel {
    align-items: stretch;
    padding: 0;
  }

  .panel-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  #panelBody {
    padding: 0 1rem 1.25rem;
  }
}
