* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.radar-shell {
  min-height: 100vh;
  background: var(--bg);
}

.radar-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(250, 247, 241, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.radar-nav .nav-inner {
  min-height: var(--radar-nav-h);
}

.radar-nav .logo .dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(232, 163, 61, .22);
}

.radar-nav .nav-links a.active {
  color: var(--primary);
}

.radar-nav .btn-primary {
  background: var(--accent);
  color: #241705;
}

.radar-nav .btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 8px 22px rgba(232, 163, 61, .24);
}

.primary-btn,
.ghost-btn,
.text-btn,
.filter-toggle,
.icon-btn {
  border: 0;
  border-radius: 999px;
}

.primary-btn,
.ghost-btn,
.filter-toggle,
.helpful-btn {
  min-height: 44px;
}

.primary-btn {
  padding: 11px 16px;
  background: var(--accent);
  color: #241705;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(232, 163, 61, .18);
}

.primary-btn:hover {
  background: var(--accent-dark);
  color: white;
}

.ghost-btn {
  padding: 11px 16px;
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--line);
  font-weight: 800;
}

.text-btn {
  padding: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 22px;
}

/* ===== LAYOUT ===== */
.radar-main {
  height: calc(100vh - var(--radar-nav-h));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  overflow: hidden;
}

.map-stage {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--soft);
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background: var(--soft);
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--soft);
}

.leaflet-map .leaflet-tile {
  filter: saturate(1.05) contrast(1.15) brightness(1.04);
}

.leaflet-map .leaflet-control-attribution {
  max-width: min(70vw, 440px);
  padding: 3px 7px;
  border-radius: 999px 0 0 0;
  background: rgba(255, 255, 255, .9);
  color: #4A5D7D;
  font-size: 10px;
}

.leaflet-container {
  font-family: var(--font);
}

/* ===== MAP PINS (PRICE DISPLAY) ===== */
.rating-marker {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 13px;
  background: #3ECF8E;
  color: white;
  box-shadow: 0 12px 28px rgba(62, 207, 142, .35);
  transform: rotate(-45deg);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.rating-marker span {
  transform: rotate(45deg);
  font-size: 12px;
  white-space: nowrap;
}

/* Price pin — xanh = còn trống */
.rating-marker.price-pin {
  min-width: 52px;
  min-height: 52px;
  background: #3ECF8E;
  box-shadow: 0 12px 28px rgba(62, 207, 142, .35);
}

/* Price pin — xám = đã thuê */
.rating-marker.price-pin.rented {
  background: #94A3B8;
  color: #1E293B;
  box-shadow: 0 12px 28px rgba(148, 163, 184, .28);
}

.rating-marker.high {
  background: var(--map-cyan);
  color: var(--map-accent-dark);
}

.rating-marker.active {
  box-shadow: 0 0 0 6px rgba(62, 214, 240, .26), 0 16px 34px rgba(10, 27, 107, .30);
}

/* Hover pin — nổi lên to hơn */
.leaflet-marker-icon:hover .rating-marker,
.rating-marker:hover,
.rating-marker.hovered {
  transform: rotate(-45deg) scale(1.12);
  box-shadow: 0 16px 32px rgba(62, 207, 142, .45);
  z-index: 10 !important;
}

.rating-marker.rented:hover,
.rating-marker.rented.hovered {
  box-shadow: 0 16px 32px rgba(148, 163, 184, .4);
}

.rating-marker.active:hover,
.rating-marker.active.hovered {
  box-shadow: 0 0 0 8px rgba(62, 214, 240, .30), 0 18px 38px rgba(10, 27, 107, .34);
}

.cluster-marker {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--map-accent-dark);
  color: white;
  box-shadow: 0 14px 32px rgba(10, 27, 107, .28);
  font-size: 16px;
  font-weight: 900;
}

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(217, 230, 247, .9);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  width: 250px !important;
  margin: 14px;
  color: var(--text);
  font-family: var(--font);
}

.leaflet-popup-content h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 17px;
  line-height: 1.25;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-sm);
}

.map-canvas.dragging {
  cursor: grabbing;
}

/* ===== MAP CONTROLS ===== */
.map-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 500;
}

.zoom-controls {
  display: grid;
  gap: 8px;
}

.map-controls #resetMap {
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.map-controls #resetMap.hidden-control {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85);
  pointer-events: none;
}

.map-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 230, 247, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  font-size: 22px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.map-controls button:hover {
  background: var(--primary);
  color: white;
}

.zoom-readout,
.map-layer-badge {
  position: absolute;
  z-index: 500;
  border: 1px solid rgba(217, 230, 247, .92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.zoom-readout {
  right: 18px;
  top: 164px;
  padding: 7px 11px;
}

.map-layer-badge {
  left: 450px;
  bottom: 16px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.map-layer-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 214, 240, .20);
}

/* ===== RADAR PANEL (LEFT LIST) ===== */
.radar-panel {
  position: absolute;
  left: 18px;
  top: 18px;
  width: min(408px, calc(100vw - 36px));
  max-height: calc(100% - 36px);
  padding: 12px;
  z-index: 460;
  overflow: auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(217, 230, 247, .92);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

.radar-panel::-webkit-scrollbar,
.detail-drawer::-webkit-scrollbar,
.review-photos::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.radar-panel::-webkit-scrollbar-thumb,
.detail-drawer::-webkit-scrollbar-thumb,
.review-photos::-webkit-scrollbar-thumb {
  background: rgba(45, 111, 240, .28);
  border-radius: 999px;
}

.panel-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 2px 2px 6px;
  padding: 4px 6px;
  background: var(--soft);
  border-radius: 12px;
}

.panel-summary p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

.panel-summary #resultCount {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
}

.panel-summary span {
  text-align: right;
  font-size: 11px;
}

.room-list {
  display: grid;
  gap: 8px;
}

/* ===== SKELETON LOADING ===== */
.room-skeleton {
  display: grid;
  gap: 10px;
}

.skeleton-card {
  border-radius: 18px;
  height: 104px;
  background: linear-gradient(90deg, var(--soft) 25%, rgba(255,255,255,.8) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== FILTER BAR ===== */
.filter-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(217, 230, 247, .7);
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.filter-bar-row::-webkit-scrollbar {
  display: none;
}

.filter-select-wrap {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.filter-select-wrap::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--muted);
  pointer-events: none;
}

.filter-select-wrap select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  background: white;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(10, 27, 107, .04);
}

.price-range-wrap {
  flex: 0 0 190px;
  min-width: 190px;
  max-width: 210px;
  padding: 0 4px;
  overflow: visible;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
}

.price-range-labels span {
  color: var(--muted);
}

#priceRangeDisplay {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.range-track {
  position: relative;
  height: 5px;
  background: rgba(217, 230, 247, .7);
  border-radius: 999px;
  margin: 7px 10px 0;
  isolation: isolate;
}

.range-track input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
  height: 5px;
  border-radius: 999px;
}

.range-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 1.5px var(--accent), 0 2px 8px rgba(232, 163, 61, .4);
  cursor: pointer;
  pointer-events: all;
  transition: transform .12s;
}

.range-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 1.5px var(--accent), 0 2px 8px rgba(232, 163, 61, .4);
  cursor: pointer;
  pointer-events: all;
  transition: transform .12s;
}

.range-track input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.range-track input[type="range"]:active::-moz-range-thumb { transform: scale(1.15); }

.range-fill {
  position: absolute;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  pointer-events: none;
  top: 0;
}

/* Filter toggles */
.filter-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.filter-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .14s, background .14s, color .14s;
}

.filter-toggle-chip input {
  display: none;
}

.filter-toggle-chip:has(input:checked) {
  border-color: var(--accent);
  background: rgba(245, 166, 35, .12);
  color: var(--accent-dark);
}

.filter-toggle-chip:has(input:checked) span::before {
  content: "✓ ";
}

/* Accent button */
.btn-accent {
  background: var(--accent);
  color: #241705;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(232, 163, 61, .22);
  transition: background .14s, box-shadow .14s;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 8px 22px rgba(232, 163, 61, .32);
}

/* ===== SEARCH ROW ===== */
.search-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 10px;
  background: linear-gradient(rgba(255, 255, 255, .98), rgba(255, 255, 255, .86));
  backdrop-filter: blur(18px);
}

.search-box {
  display: block;
  min-width: 0;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-box input,
.review-form input[type="text"],
.review-form textarea,
.reviews-section select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  background: white;
  outline: none;
}

.search-box input {
  min-height: 46px;
  padding-left: 15px;
  box-shadow: inset 0 1px 0 rgba(10, 27, 107, .04);
}

.search-box input:focus,
.review-form input:focus,
.review-form textarea:focus,
.reviews-section select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(62, 214, 240, .20);
}

.filter-toggle {
  padding: 0 14px;
  background: var(--accent);
  color: #241705;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(232, 163, 61, .20);
  border-radius: 999px;
}

.filter-toggle:hover {
  background: var(--accent-dark);
  color: white;
}

/* ===== FILTER POPOVER ===== */
.filter-popover {
  margin: 0 0 12px;
  padding: 13px;
  border: 1px solid rgba(191, 211, 239, .9);
  background: linear-gradient(180deg, #FFFFFF, var(--surface-soft));
  border-radius: 18px;
}

.filter-head,
.section-head,
.drawer-header,
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
  font-size: 13px;
}

.filter-grid label,
.switch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-grid label {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
}

.filter-grid input,
.switch-row input {
  accent-color: var(--primary);
}

.filter-block {
  margin-top: 12px;
}

.filter-select {
  display: grid;
  gap: 7px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.filter-select select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: white;
  color: var(--text);
  outline: none;
}

.filter-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(62, 214, 240, .20);
}

.intent-filter {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 230, 247, .95);
}

.intent-filter p {
  margin: 0 0 9px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.intent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intent-list label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.intent-list input {
  accent-color: var(--primary);
}

/* ===== ROOM CARD ENHANCED ===== */
@keyframes slideInRoomCard {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.room-card {
  width: 100%;
  padding: 0;
  border: 1.5px solid rgba(217, 230, 247, .95);
  border-radius: 18px;
  background: white;
  text-align: left;
  box-shadow: 0 6px 16px rgba(10, 27, 107, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  overflow: hidden;
  animation: slideInRoomCard .28s ease-out both;
  cursor: pointer;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: stretch;
}

.room-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(232, 163, 61, .16);
}

.room-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 111, 240, .15), 0 14px 30px rgba(10, 27, 107, .10);
}

.room-card-cover {
  min-height: 92px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: block;
}

.room-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 36, 31, .02), rgba(22, 36, 31, .20));
}

/* Badge trên ảnh */
.room-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.room-card-badge.avail {
  background: #22c55e;
  color: white;
}

.room-card-badge.rented {
  background: rgba(100, 116, 139, .9);
  color: white;
}

.room-card-body {
  min-width: 0;
  padding: 10px 10px 10px 0;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.room-card-body h3 {
  margin: 0 0 2px;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.room-card-body > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

/* Amenity tags */
.room-amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.room-amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
}

/* Bookmark button */
.btn-bookmark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s, transform .14s;
  flex: 0 0 auto;
}

.btn-bookmark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.btn-bookmark.saved {
  border-color: var(--accent);
  background: rgba(245, 166, 35, .1);
  color: var(--accent);
}

.room-meta,
.review-meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.chip.verified {
  background: var(--accent);
  color: var(--primary-dark);
}

.chip.star {
  background: rgba(245, 220, 110, .28);
}

.chip.intent-match {
  background: var(--primary-dark);
  color: white;
}

/* ===== DETAIL DRAWER (DESKTOP OVERLAY) ===== */
.detail-drawer {
  display: block;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  height: min(62vh, 600px);
  z-index: 730;
  padding: 18px;
  background: white;
  border: 1px solid rgba(217, 230, 247, .95);
  border-radius: 24px;
  box-shadow: -12px 0 40px rgba(10, 27, 107, .12), 0 12px 34px rgba(10, 27, 107, .08);
  overflow: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}

body.detail-open .detail-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.drawer-header {
  align-items: flex-start;
}

.drawer-header h1,
.section-head h2,
.dialog-head h2 {
  margin: 0;
  color: var(--primary-dark);
  line-height: 1.14;
  letter-spacing: 0;
}

.drawer-header h1 {
  font-size: 24px;
}

.drawer-header p,
.eyebrow {
  margin: 0;
}

.drawer-header #roomAddress {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.detail-preview-meta {
  display: block;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 14px;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Detail info row */
.detail-info-row {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.detail-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-info-item .info-label {
  color: var(--muted);
  font-weight: 600;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.room-description {
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid rgba(217, 230, 247, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, var(--surface-soft));
}

.room-description h2 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.25;
}

.room-description p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.room-description-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.room-description-grid div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(217, 230, 247, .88);
}

.room-description-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.room-description-grid dd {
  margin: 3px 0 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.detail-gallery {
  margin-bottom: 14px;
}

.radar-gallery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.radar-gallery-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 7px 11px;
  font-weight: 800;
  font-size: 12px;
}

.radar-gallery-tabs button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.radar-gallery-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.radar-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.radar-gallery-thumbs button {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.radar-panorama {
  height: 220px;
  overflow: hidden;
  border-radius: 18px;
}

.review-overview {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--soft), #FFFFFF);
  border: 1px solid rgba(217, 230, 247, .86);
  border-radius: 18px;
  margin-top: 14px;
}

.score-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 120px;
  padding: 12px;
  background: white;
  border: 1px solid rgba(217, 230, 247, .85);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(10, 27, 107, .05);
}

.score-card span {
  font-size: 38px;
  color: var(--primary-dark);
  font-weight: 900;
  line-height: 1;
}

.score-card strong {
  color: var(--star);
  font-size: 24px;
}

.score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.rating-bars {
  display: grid;
  gap: 6px;
  align-content: center;
}

.bar-row {
  display: grid;
  grid-template-columns: 32px 1fr 36px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary-dark);
}

.bar-track {
  height: 7px;
  background: white;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--value);
  background: var(--map-accent);
  border-radius: inherit;
}

.mini-ratings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.mini-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(217, 230, 247, .95);
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 14px rgba(10, 27, 107, .04);
}

.mini-card span {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.mini-card strong {
  color: var(--map-accent);
  font-size: 16px;
}

.mini-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.mini-card p:first-of-type {
  color: var(--primary-dark);
  font-weight: 800;
}

.reviews-section {
  margin-top: 16px;
}

.section-head {
  align-items: end;
}

.section-head h2 {
  font-size: 24px;
}

.reviews-section select {
  width: auto;
  min-width: 140px;
  padding: 9px 10px;
  font-size: 13px;
}

.review-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.review-card {
  padding: 14px;
  border: 1px solid rgba(217, 230, 247, .95);
  border-radius: 18px;
  background: white;
  box-shadow: 0 6px 18px rgba(10, 27, 107, .05);
}

.review-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary-dark);
  color: white;
  font-weight: 900;
  font-size: 14px;
}

.stars {
  margin-top: 2px;
  color: var(--rating-star);
  letter-spacing: 0;
}

.review-card p {
  color: var(--text);
  line-height: 1.55;
  font-size: 13px;
}

.review-photos {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding-bottom: 2px;
}

.review-photos button {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.helpful-btn {
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 12px;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}



.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1200;
  padding: 24px;
  background: rgba(10, 27, 107, .82);
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.lightbox .icon-btn {
  position: fixed;
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  font-size: 42px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1202;
}

.lightbox-prev {
  left: max(18px, calc((100vw - 1040px) / 2));
}

.lightbox-next {
  right: max(18px, calc((100vw - 1040px) / 2));
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary-dark);
  text-align: center;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  z-index: 1202;
}

/* ===== MOBILE FAB + SHEET ELEMENTS ===== */
.mobile-filter-fab,
.sheet-close,
.sheet-grip {
  display: none;
}

/* ===== RESPONSIVE: TABLET/MOBILE ===== */
@media (max-width: 1180px) {
  .radar-main {
    grid-template-columns: 1fr;
  }

  .detail-drawer {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    height: min(64vh, 640px);
    z-index: 720;
    border: 1px solid rgba(217, 230, 247, .95);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
  }

  .map-layer-badge {
    left: 18px;
    bottom: calc(min(64vh, 640px) + 28px);
  }
}

@media (max-width: 1023px) {
  body {
    overflow: hidden;
  }

  .radar-main {
    height: calc(100dvh - var(--radar-nav-h));
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .map-stage,
  .map-canvas {
    min-height: 0;
    height: 100%;
  }

  /* Filter bar ẩn trên mobile, thay bằng bottom sheet */
  .filter-bar-row {
    display: none;
  }

  /* Mobile FAB */
  .mobile-filter-fab {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 620;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(217, 230, 247, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    font-weight: 900;
    backdrop-filter: blur(14px);
  }

  .mobile-filter-fab::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    background:
      linear-gradient(var(--primary-dark), var(--primary-dark)) 0 2px / 14px 2px no-repeat,
      linear-gradient(var(--primary-dark), var(--primary-dark)) 3px 6px / 8px 2px no-repeat,
      linear-gradient(var(--primary-dark), var(--primary-dark)) 5px 10px / 4px 2px no-repeat;
  }

  .sheet-close {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--primary-dark);
    font-size: 22px;
    flex-shrink: 0;
  }

  .sheet-grip {
    width: 42px;
    height: 5px;
    display: block;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #C6D6EF;
  }

  /* Panel = bottom sheet */
  .radar-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 82dvh;
    padding: 12px 14px 18px;
    z-index: 760;
    border-radius: 24px 24px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(calc(100% + 16px));
    transition: transform .24s ease;
    overscroll-behavior: contain;
  }

  body.filter-open .radar-panel {
    transform: translateY(0);
  }

  body.filter-open .mobile-filter-fab {
    display: none;
  }

  .radar-panel .search-row {
    position: static;
    padding: 0 44px 10px 0;
    background: transparent;
    backdrop-filter: none;
  }

  .filter-popover[hidden] {
    display: block !important;
  }

  .filter-toggle {
    display: none;
  }

  .panel-summary {
    margin-top: 8px;
  }

  /* Apply filter button — sticky at bottom */
  .sheet-apply-btn {
    display: none;
    min-height: 50px;
    margin: 12px 0 4px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #241705;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(232, 163, 61, .28);
    cursor: pointer;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
  }

  body.filter-open .sheet-apply-btn {
    display: block;
  }

  /* Ẩn room-list + panel-summary khi filter đang mở */
  body.filter-open .room-list,
  body.filter-open .room-skeleton,
  body.filter-open .panel-summary {
    display: none;
  }

  /* Room list scroll ngang trên mobile */
  .room-list {
    max-height: min(30dvh, 260px);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: auto;
    padding: 0 2px 6px;
  }

  /* Detail drawer trên mobile */
  .detail-drawer {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 58dvh;
    padding: 12px 16px 18px;
    z-index: 740;
    border: 1px solid rgba(217, 230, 247, .95);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(100% + 16px));
    transition: transform .24s ease, height .24s ease;
    overscroll-behavior: contain;
    opacity: 1;
    pointer-events: all;
  }

  body.detail-open .detail-drawer {
    transform: translateY(0);
  }


  .drawer-header {
    padding-right: 0;
  }

  .drawer-header h1 {
    font-size: 20px;
  }

  .drawer-header #roomAddress {
    display: none;
  }

  .detail-actions {
    grid-template-columns: 1fr 1fr 1fr;
    margin: 12px 0;
  }

  .review-overview {
    grid-template-columns: 100px 1fr;
  }

  .mini-ratings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-controls {
    display: grid;
    right: 12px;
    top: 14px;
    bottom: auto;
    z-index: 650;
  }

  .zoom-readout {
    right: 12px;
    top: 160px;
    bottom: auto;
    z-index: 650;
  }

  .map-layer-badge {
    display: none;
  }

  body.filter-open .detail-drawer {
    transform: translateY(calc(100% + 16px));
  }

  /* Room list bar — thanh ngang dưới bản đồ, luôn hiển thị */
  .room-list-bar {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    z-index: 510;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  body.filter-open .room-list-bar {
    display: none;
  }

  /* Room cards trong bar: width cố định, không bị bóp */
  .room-list-bar .room-card {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    border: 1.5px solid rgba(217, 230, 247, .95);
    animation: none;
  }

  .room-list-bar .room-card-cover {
    min-height: 90px;
    border-radius: 12px;
  }

  .room-list-bar .room-card-body {
    padding: 10px 10px 10px 0;
    min-width: 0;
  }

  .room-list-bar .room-card-body h3 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .room-list-bar .room-card-body > p {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .room-list-bar .room-amenity-tags {
    display: none;
  }

  .room-list-bar .btn-bookmark {
    width: 26px;
    height: 26px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .room-list-bar .room-card-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .room-list-bar .chip {
    font-size: 10px;
    min-height: 20px;
    padding: 2px 6px;
  }
}

@media (max-width: 860px) {
  :root {
    --radar-nav-h: 64px;
  }

  .radar-nav .nav-links {
    display: none;
  }

  .radar-nav .nav-inner {
    padding-inline: 14px;
  }

  .radar-nav .nav-right {
    gap: 8px;
  }

  .radar-nav .btn-outline {
    display: none;
  }

  .radar-main {
    min-height: calc(100dvh - var(--radar-nav-h));
    height: calc(100dvh - var(--radar-nav-h));
  }

  .detail-drawer {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 52vh;
    padding: 18px;
    border-radius: 22px;
  }

  .map-controls {
    right: 14px;
    top: auto;
    bottom: calc(52vh + 24px);
    display: flex;
  }

  .zoom-readout {
    right: 14px;
    top: auto;
    bottom: calc(52vh + 76px);
  }
}

@media (max-width: 520px) {
  :root {
    --radar-nav-h: 58px;
  }

  .radar-nav .logo {
    font-size: 16px;
  }

  .radar-nav .btn-sm {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .search-row {
    grid-template-columns: 1fr 78px;
    gap: 8px;
    padding-bottom: 8px;
  }

  .search-box input {
    min-height: 42px;
    padding: 10px 11px;
    font-size: 14px;
  }

  .filter-toggle {
    min-height: 42px;
    padding: 0 10px;
    font-size: 14px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .panel-summary {
    margin: 0 2px 9px;
  }

  .room-list {
    grid-auto-columns: minmax(232px, 86%);
    gap: 8px;
  }

  .room-card {
    padding: 12px;
    border-radius: 16px;
    grid-template-columns: 76px 1fr;
  }

  .room-card-cover {
    min-height: 82px;
  }

  .room-card h3 {
    font-size: 15px;
  }

  .map-controls {
    right: 10px;
    bottom: calc(52vh + 16px);
  }

  .map-controls button {
    width: 39px;
    height: 39px;
    border-radius: 13px;
  }

  .zoom-readout {
    right: 10px;
    bottom: calc(52vh + 68px);
  }

  .detail-drawer {
    left: 0;
    right: 0;
    bottom: 0;
    height: 52vh;
    padding: 16px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .drawer-header h1 {
    font-size: 23px;
  }

  .detail-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .review-overview {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: auto;
    grid-template-columns: auto auto 1fr;
    justify-content: start;
    gap: 8px;
  }

  .score-card span {
    font-size: 36px;
  }

  .score-card strong {
    font-size: 24px;
  }

  .score-card p {
    text-align: left;
  }

  .mini-ratings {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mini-card {
    padding: 11px;
    border-radius: 16px;
  }

  .section-head {
    display: grid;
  }

  .reviews-section select {
    width: 100%;
  }

  .review-form {
    padding: 18px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .star-picker button {
    width: 42px;
    height: 42px;
  }

  /* Mobile specific layout */
  .radar-panel {
    border-radius: 20px 20px 0 0;
  }

  .detail-drawer {
    height: 54dvh;
    border-radius: 20px 20px 0 0;
  }


  .room-list {
    max-height: min(28dvh, 220px);
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .review-overview {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .map-controls {
    right: 10px;
  }
}

/* ===== BRAND TOKEN PASS-THROUGH ===== */
.radar-shell h1,
.radar-shell h2,
.radar-shell h3,
.radar-shell h4,
.leaflet-popup-content h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.radar-footer {
  margin-top: 0;
}

.filter-toggle {
  background: var(--accent);
  color: #241705;
  box-shadow: 0 10px 20px rgba(232, 163, 61, .20);
}

.filter-toggle:hover {
  background: var(--accent-dark);
  color: white;
}

.chip.star {
  background: rgba(232, 163, 61, .20);
}

.chip.verified {
  background: var(--primary-tint);
  color: var(--primary-dark);
}

.score-card strong,
.stars {
  color: var(--rating-star);
}

.bar-fill {
  background: var(--map-accent);
}

.mini-card strong,
.pin-stat b {
  color: var(--map-accent);
}

.sheet-apply-btn {
  display: none;
}

@media (min-width: 1024px) {
  .detail-drawer {
    top: calc(var(--radar-nav-h) + 18px);
    bottom: 18px;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 28px;
  }
}

/* ===== MOBILE/TABLET RADAR OVERRIDES ===== */
@media (max-width: 1023px) {
  .map-controls {
    top: 14px;
    right: 12px;
    bottom: auto;
    display: flex;
    gap: 8px;
    z-index: 680;
  }

  .map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .zoom-readout {
    top: 14px;
    right: 154px;
    bottom: auto;
    z-index: 680;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .pin-popover {
    display: none;
  }

  body.detail-open .room-list-bar,
  body.detail-preview .room-list-bar {
    display: none;
  }

  .detail-drawer {
    background: #FFFFFF;
    backdrop-filter: none;
    box-shadow: 0 -18px 48px rgba(10, 27, 107, .22);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.detail-preview .detail-drawer {
    height: min(62dvh, 520px);
    overflow-y: auto;
  }

  body.detail-preview .detail-gallery {
    display: block;
  }

  body.detail-preview .mini-ratings {
    display: grid;
  }

  body.detail-preview .review-overview {
    display: grid;
  }

  body.detail-preview .reviews-section {
    display: none;
  }

  body.detail-preview .detail-actions {
    grid-template-columns: 1fr 1fr 1fr;
    margin: 10px 0 14px;
  }

  body.detail-preview .radar-gallery-cover {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  body.detail-preview .radar-gallery-thumbs {
    display: none;
  }

  body.detail-preview .review-overview {
    grid-template-columns: 120px 1fr;
    gap: 10px;
  }

  .room-list-bar {
    left: 12px;
    right: 12px;
    bottom: 14px;
    gap: 12px;
    padding: 2px 2px 8px;
  }

  .room-list-bar .room-card {
    width: min(74vw, 340px);
    min-width: min(74vw, 340px);
    height: 238px;
    grid-template-columns: 1fr;
    grid-template-rows: 132px 1fr;
    gap: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1.5px solid rgba(217, 230, 247, .98);
    box-shadow: 0 12px 30px rgba(10, 27, 107, .13);
  }

  .room-list-bar .room-card-cover {
    min-height: 132px;
    height: 132px;
    width: 100%;
    border-radius: 14px 14px 0 0;
    background-size: cover;
    background-position: center;
  }

  .room-list-bar .room-card-body {
    padding: 10px 12px 12px;
    min-width: 0;
    overflow: hidden;
  }

  .room-list-bar .room-card-header {
    min-width: 0;
  }

  .room-list-bar .room-card-body h3,
  .room-list-bar .room-card-body > p {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .room-list-bar .room-meta {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .room-list-bar .chip {
    flex: 0 0 auto;
  }

  body.filter-open .filter-bar-row {
    display: flex;
    padding: 4px 0 12px;
  }

  body.filter-open .filter-popover {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .zoom-readout {
    right: 150px;
  }

  .map-controls {
    right: 10px;
  }

  .map-controls button {
    width: 38px;
    height: 38px;
  }

  .room-list-bar .room-card {
    width: min(78vw, 310px);
    min-width: min(78vw, 310px);
    height: 228px;
    grid-template-rows: 124px 1fr;
  }

  .room-list-bar .room-card-cover {
    min-height: 124px;
    height: 124px;
  }

  body.detail-preview .detail-drawer {
    height: min(68dvh, 540px);
  }

  body.detail-preview .review-overview {
    grid-template-columns: 1fr;
  }

  .room-description {
    padding: 12px;
    border-radius: 16px;
  }

  .room-description-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox img {
    max-height: 74vh;
    border-radius: 14px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    bottom: 16px;
  }
}
