:root {
  --background: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #fcfbf9;
  --text: #333333;
  --text-soft: #666666;
  --muted: #8a8a8a;
  --border: #e5e1d8;
  --primary: #0c71c3;
  --primary-strong: #0a5da1;
  --accent: #ff944c;
  --success: #01aa65;
  --radius: 12px;
  --topbar-control-height: 40px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--background);
}

body.lightbox-open,
body.confirm-modal-open,
body.gallery-explorer-open {
  overflow: hidden;
}

@keyframes ibeFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ibeButtonPulse {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(255, 148, 77, 0.22);
  }
  50% {
    box-shadow: 0 12px 28px rgba(255, 148, 77, 0.36);
  }
}

@keyframes ibeButtonPulseSuccess {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(0, 170, 101, 0.22);
  }
  50% {
    box-shadow: 0 12px 28px rgba(0, 170, 101, 0.34);
  }
}

@keyframes ibeShineSweep {
  0% {
    transform: translateX(-120%);
  }
  45%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes ibeChipGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(1, 170, 101, 0.16);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(1, 170, 101, 0.06);
  }
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  z-index: 100000;
  opacity: 0;
  animation: ibeFadeUp 0.46s ease-out forwards;
}

.main-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 14px;
  align-items: start;
}

.main-layout > .content-column,
.main-layout > .side-column {
  opacity: 0;
  animation: ibeFadeUp 0.52s ease-out forwards;
}

.main-layout > .content-column {
  animation-delay: 0.18s;
}

.main-layout > .side-column {
  animation-delay: 0.28s;
}

.content-column {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.side-column {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  position: -webkit-sticky;
  position: sticky;
  top: 14px;
  align-self: start;
  height: fit-content;
}

.side-sticky {
  display: grid;
  gap: 14px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-wrap:visited,
.brand-wrap:hover,
.brand-wrap:focus-visible,
.brand-wrap .brand-name,
.brand-wrap .brand-tagline {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  /* border-radius: 999px; */
  background: #ffffff;
  color: var(--primary);
  /* border: 1px solid #d9e6f3; */
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.brand-logo {
  width: 132%;
  height: 132%;
  object-fit: contain;
  object-position: center;
}

.brand-stack {
  display: grid;
  gap: 3px;
}

.brand-name {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.92rem;
}

.top-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--topbar-control-height);
  height: var(--topbar-control-height);
  border-radius: 999px;
  border: 1px solid #d8e3ef;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.top-action-link:hover,
.top-action-link:focus-visible {
  background: #f0f7ff;
  color: #0c71c3;
  border-color: #c8dbef;
  outline: none;
}

.simple-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: #fff;
  min-height: var(--topbar-control-height);
  height: var(--topbar-control-height);
  overflow: visible;
}

.simple-select::after {
  content: '\25BE';
  position: absolute;
  right: 10px;
  pointer-events: none;
  font-size: 0.72em;
  color: #b1b1b1;
  transition: transform 0.18s ease;
}

.simple-select.is-open::after {
  transform: rotate(180deg);
}

.simple-select select {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 24px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: calc(var(--topbar-control-height) - 2px);
  height: calc(var(--topbar-control-height) - 2px);
  line-height: 1;
}

.simple-select.has-enhanced-select .simple-select-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.simple-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 24px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: calc(var(--topbar-control-height) - 2px);
  height: calc(var(--topbar-control-height) - 2px);
  line-height: 1;
  white-space: nowrap;
}

.simple-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(8, 31, 62, 0.16);
  padding: 6px;
  z-index: 100001;
}

.simple-select-menu[hidden] {
  display: none;
}

.simple-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.simple-select-option:hover,
.simple-select-option:focus-visible {
  background: #edf6ff;
  color: var(--primary);
  outline: none;
}

.simple-select-option.is-selected {
  background: #e5f2ff;
  color: var(--primary);
}

.simple-select select:focus-visible {
  outline: 2px solid rgba(12, 113, 195, 0.28);
  outline-offset: 1px;
}

.simple-select-trigger:focus-visible {
  outline: 2px solid rgba(12, 113, 195, 0.28);
  outline-offset: 1px;
}

.mode-badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid #bcd9f2;
  background: #eaf4fd;
}

.hero-area {
  margin-top: 14px;
  opacity: 0;
  animation: ibeFadeUp 0.5s ease-out 0.1s forwards;
}

.hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
}

.hero-main-photo,
.hero-photo {
  position: relative;
  border-radius: var(--radius);
  background-color: #dce5ef;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.zoomable-photo {
  cursor: zoom-in;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.zoomable-photo:hover {
  filter: brightness(1.04);
}

.zoomable-photo:focus-visible {
  outline: 3px solid rgba(12, 113, 195, 0.35);
  outline-offset: 2px;
}

.hero-more-photos {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px 18px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.02) 10%, rgba(10, 18, 28, 0.7) 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-main-photo {
  min-height: 420px;
}

.hero-grid-right {
  display: grid;
  min-height: 420px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.photo-fallback {
  background-image: linear-gradient(135deg, #ced6e0, #aeb8c6);
}

.photo-a {
  background-image: linear-gradient(135deg, #d8e2eb, #eef4f8);
}

.photo-b {
  background-image: linear-gradient(135deg, #dde6ee, #f3f7fa);
}

.photo-c {
  background-image: linear-gradient(135deg, #d6e0ea, #edf3f7);
}

.photo-d {
  background-image: linear-gradient(135deg, #dde5ed, #eef4f8);
}

.photo-e {
  background-image: linear-gradient(135deg, #d4dde7, #ecf2f7);
}

.search-card,
.intro-copy,
.booking-card,
.rooms-area,
.tracking-area {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.search-card:hover,
.intro-copy:hover,
.booking-card:hover,
.rooms-area:hover {
  transform: translateY(-2px);
  border-color: #d8e7f4;
  box-shadow: 0 12px 26px rgba(17, 43, 71, 0.08);
}

.search-card {
  padding: 18px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.card-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f5560;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.search-form > * {
  min-width: 0;
}

.search-price-head {
  margin: 0 0 8px;
  padding: 16px 18px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  min-height: 54px;
  border-radius: 10px;
}

.search-price-head span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-price-head strong {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.search-card:not(.has-prices) #fromPriceLabel,
.search-card:not(.has-prices) #fromPriceValue {
  opacity: 0;
}

.search-date-grid {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.search-date-grid.has-error {
  border-color: rgba(201, 72, 61, 0.45);
  background: #fff8f6;
}

.search-date-field {
  position: relative;
  display: grid;
  gap: 4px;
  letter-spacing: 0.05em;
  min-width: 0;
  cursor: pointer;
}

html[lang='es'] .search-date-field > span {
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.search-date-field input {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 2px;
  box-shadow: none;
  min-width: 0;
  cursor: pointer;
}

.search-date-field input.is-invalid {
  color: #c9483d;
}

.search-date-field input:focus-visible {
  border: none;
  box-shadow: none;
}

.search-date-field input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.date-separator {
  color: #6f7480;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.search-guest-block {
  display: grid;
  gap: 12px;
}

.guest-block-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.guest-compact-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 52px auto auto 52px auto;
  gap: 12px;
  align-items: center;
}

.guest-compact-row input {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: none;
}

.guest-compact-row input:focus-visible {
  border: none;
  box-shadow: none;
}

.guest-divider {
  color: #8f949f;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1;
}

.search-summary {
  border-top: 1px solid #e7e9ef;
  border-bottom: 1px solid #e7e9ef;
  padding: 14px 0;
}

.summary-items {
  display: grid;
  gap: 8px;
}

.search-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.summary-item-line {
  align-items: center;
}

.summary-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.summary-room-name {
  color: #4f5560;
  font-size: 1.05rem;
  font-weight: 500;
}

.summary-item-name {
  font-weight: 600;
  line-height: 1.2;
}

.summary-item-rate {
  color: #7a8089;
  font-size: 0.82rem;
  line-height: 1.2;
}

.summary-item-right {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.summary-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  padding: 2px 6px;
  background: #f7f9fc;
}

.summary-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #c3cfdd;
  border-radius: 999px;
  background: #ffffff;
  color: #2f3f52;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.summary-qty-btn:hover:not(:disabled) {
  background: #eef4fb;
}

.summary-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.summary-qty-value {
  min-width: 16px;
  text-align: center;
  color: #2f3f52;
  font-size: 0.86rem;
  font-weight: 700;
}

.summary-room-amount {
  color: #484e58;
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

.summary-breakdown {
  margin: 6px 0 0;
  color: #7a8089;
  font-size: 0.92rem;
}

.search-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.search-total-row span {
  color: #3f444d;
  font-size: 2rem;
  font-weight: 600;
}

.search-total-row strong {
  color: #3f444d;
  font-size: 2rem;
  font-weight: 700;
}

.reserve-from-btn {
  margin-top: 8px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.search-summary,
.search-total-row,
.reserve-from-btn {
  display: none;
}

.search-card.has-prices .search-summary {
  display: block;
}

.search-card.has-prices .search-total-row {
  display: flex;
}

.search-card.has-prices .reserve-from-btn {
  display: block;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: #fff;
}

input:focus-visible {
  outline: none;
  border-color: #9bc6e9;
  box-shadow: 0 0 0 3px rgba(12, 113, 195, 0.15);
}

.guest-row {
  display: grid;
  grid-template-columns: 82px 1fr 82px 1fr;
  gap: 8px;
  align-items: center;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-btn:hover {
  background: var(--primary-strong);
}

#searchBtn.primary-btn {
  background: #ff944d;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#searchBtn.primary-btn:hover {
  background: #f68436;
}

#searchBtn.primary-btn:not(:disabled) {
  animation: ibeButtonPulse 2.8s ease-in-out infinite;
}

#searchBtn.primary-btn:not(:disabled)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, 0.36) 50%,
    transparent 82%
  );
  transform: translateX(-120%);
  animation: ibeShineSweep 3.8s ease-in-out infinite;
}

#reserveFromBtn.primary-btn {
  background: #00aa65;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#reserveFromBtn.primary-btn:hover {
  background: #00945a;
}

#reserveFromBtn.primary-btn:not(:disabled) {
  animation: ibeButtonPulseSuccess 2.8s ease-in-out infinite;
}

#reserveFromBtn.primary-btn:not(:disabled)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 82%
  );
  transform: translateX(-120%);
  animation: ibeShineSweep 3.8s ease-in-out infinite;
}

#reserveFromBtn.primary-btn:disabled {
  animation: none;
  background: #d7dde5;
  color: #6e7887;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

#reserveFromBtn.primary-btn:disabled::after {
  animation: none;
  background: none;
}

.primary-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

#bookBtn.primary-btn {
  background: var(--accent);
}

#bookBtn.primary-btn:hover {
  background: #f68436;
}

.status-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.status-text.is-error {
  color: #c9483d;
  font-weight: 600;
}

.status-text:empty {
  display: none;
}

.search-guidance {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 148, 77, 0.5);
  border-radius: 10px;
  background: #fff6ee;
  color: #8f4b14;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
}

.search-guidance:empty {
  display: none;
}

body.room-selection-warning .search-guidance {
  border-color: rgba(210, 140, 60, 0.5);
  background: #fffaf2;
  color: #8a5a14;
}

.intro-area {
  margin-top: 14px;
  display: block;
}

.intro-copy {
  padding: 24px;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
}

.address {
  margin: 10px 0 0;
  font-size: 1.06rem;
  color: var(--text-soft);
}

.description {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #505050;
}

.booking-card {
  padding: 18px;
}

.booking-card h2 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-form .wide {
  grid-column: 1 / -1;
}

.disabled-block {
  opacity: 0.74;
}

.rooms-area {
  margin-top: 14px;
  padding: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  font-weight: 700;
  color: var(--text);
}

.section-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfe8d7;
  border-radius: 999px;
  background: #eefaf4;
  color: var(--success);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: ibeChipGlow 2.6s ease-in-out infinite;
}

.rooms-head {
  margin-top: 12px;
  border: 1px solid #d7e7f5;
  border-radius: 10px;
  background: #f2f8fe;
  color: #4c6d8d;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.room-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 16px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  border-color: #cfe0ef;
  box-shadow: 0 12px 24px rgba(19, 50, 82, 0.09);
}

.room-top {
  display: grid;
  grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.room-media-col {
  min-width: 0;
}

.room-info {
  min-width: 0;
}

.room-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.room-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.36rem;
  font-weight: 700;
  color: #2f3f52;
}

.room-availability-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  border: 1px solid #c8e6d5;
  border-radius: 999px;
  background: #effaf3;
  color: #138448;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.room-availability-badge.is-debug {
  border-color: #bdd9f7;
  background: #f0f7ff;
  color: #1769b7;
}

.room-info-toggle {
  display: none;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid #c9dced;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--primary);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.room-info-toggle:hover,
.room-info-toggle:focus-visible {
  background: #e1f0ff;
  border-color: #b5d3ee;
  color: var(--primary-strong);
  outline: none;
}

.room-info-toggle.is-open {
  background: #dcefff;
  border-color: #aecdeb;
}

.room-desc {
  margin: 10px 0;
  color: #5f6a76;
  font-size: 15px;
  line-height: 1.65;
}

.room-hint {
  color: #0a5ea8;
  background: #eef6ff;
  border: 1px solid #cfe2f7;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.room-media {
  margin: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d7dde6;
  background: #f3f6fa;
}

.room-media-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.room-media.is-loading .room-media-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(255, 255, 255, 0) 65%
  );
  animation: roomMediaShimmer 1.1s linear infinite;
  pointer-events: none;
}

.room-media-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
}

.room-media-empty-label {
  color: #7b8592;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 14px;
}

.room-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.room-media img:hover {
  transform: scale(1.02);
}

.room-media-carousel {
  position: relative;
}

.room-media-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(9, 23, 38, 0.72);
  color: #fff;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
}

.room-media-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(9, 23, 38, 0.42);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.room-media-nav:hover {
  background: rgba(9, 23, 38, 0.62);
}

.room-media-nav-prev {
  left: 10px;
}

.room-media-nav-next {
  right: 10px;
}

.room-rates {
  margin-top: 14px;
  border-top: 1px solid #dbe1ea;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.recommended-block {
  border: 1px solid #c8deef;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
  box-shadow: 0 10px 20px rgba(12, 113, 195, 0.08);
}

.recommended-title {
  margin: 0;
  color: #1f3958;
  font-size: 1.08rem;
  font-weight: 800;
}

.recommended-subtitle {
  margin: 4px 0 0;
  color: #5f6e80;
  font-size: 0.85rem;
}

.recommended-main {
  margin: 10px 0 0;
  color: #2f3f52;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.recommended-total {
  margin: 8px 0 0;
  color: #1f3958;
  font-size: 0.92rem;
  font-weight: 700;
}

.recommended-reason {
  margin: 6px 0 0;
  color: #4f6782;
  font-size: 0.82rem;
}

.recommended-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.recommended-add-btn,
.recommended-view-btn {
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.recommended-add-btn {
  border: 1px solid #f68a40;
  background: linear-gradient(180deg, #ff9f5f 0%, #ff8f47 100%);
  color: #fff;
}

.recommended-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 148, 77, 0.25);
}

.recommended-view-btn {
  border: 1px solid #bfd2e6;
  background: #fff;
  color: #3e5a78;
}

.recommended-view-btn:hover {
  background: #f6faff;
}

.rate-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rate-line.is-selected {
  border-color: #9ccfb5;
  box-shadow: 0 8px 18px rgba(0, 170, 101, 0.12);
}

.rate-line:hover {
  border-color: #c6d7e7;
  box-shadow: 0 8px 18px rgba(17, 43, 71, 0.08);
  transform: translateY(-1px);
}

.rate-main {
  display: grid;
  gap: 5px;
}

.rate-name {
  color: #3f4b5b;
  font-size: 1rem;
  font-weight: 600;
}

.rate-policy {
  color: #6d7582;
  font-size: 0.82rem;
}

.rate-policy-positive {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #20874f;
  font-weight: 700;
}

.rate-policy-positive::before {
  content: '\2713';
  color: #2faf62;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1px;
  flex: 0 0 auto;
}

.rate-breakdown {
  color: #6b89ad;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
}

.rate-smart {
  color: #2f5f93;
  font-size: 0.79rem;
  line-height: 1.3;
}

.rate-amount {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rate-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  align-self: center;
  min-width: 170px;
}

.rate-actions .rate-amount {
  width: 100%;
  text-align: center;
}

.rate-qty-block {
  display: grid;
  gap: 5px;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-width: 102px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f3f6fa;
  box-shadow: inset 0 0 0 1px #d9e2ec;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.rate-qty-block-compact {
  min-width: 86px;
  padding: 4px 6px;
  gap: 2px;
}

.rate-qty-block.is-selected {
  border-color: #8fceae;
  background: #f1fcf6;
  box-shadow: 0 0 0 2px rgba(0, 170, 101, 0.2), 0 10px 20px rgba(0, 170, 101, 0.14);
}

.rate-qty-block.is-selected::before {
  opacity: 1;
  animation-duration: 1.75s;
  background: conic-gradient(
    from 0deg,
    rgba(0, 170, 101, 0) 0deg,
    rgba(0, 170, 101, 0) 214deg,
    rgba(0, 170, 101, 0.9) 278deg,
    rgba(0, 170, 101, 0.07) 308deg,
    rgba(0, 170, 101, 0) 360deg
  );
}

.rate-qty-block.is-selected::after {
  background: #f1fcf6;
  box-shadow: inset 0 0 0 1px rgba(0, 170, 101, 0.35);
}

.rate-qty-block.is-selected .rate-qty-label {
  color: #1f7350;
}

.rate-qty-block.is-disabled {
  opacity: 0.7;
}

body.room-selection-required .rooms-area {
  box-shadow: 0 0 0 2px rgba(255, 148, 77, 0.16), 0 16px 28px rgba(255, 148, 77, 0.12);
}

body.room-selection-required .rate-qty-block {
  border-color: #ff944d;
  background: #fff8f2;
  box-shadow: 0 0 0 2px rgba(255, 148, 77, 0.2), 0 10px 20px rgba(255, 148, 77, 0.14);
}

body.room-selection-required .rate-choose-btn:not(.is-selected):not(:disabled) {
  box-shadow: 0 0 0 2px rgba(255, 148, 77, 0.2), 0 10px 20px rgba(255, 148, 77, 0.14);
}

body.room-selection-required .rate-qty-block::before {
  animation-duration: 1.45s;
  opacity: 1;
  background: conic-gradient(
    from 0deg,
    rgba(255, 148, 77, 0) 0deg,
    rgba(255, 148, 77, 0) 216deg,
    rgba(255, 148, 77, 0.92) 274deg,
    rgba(255, 148, 77, 0.08) 306deg,
    rgba(255, 148, 77, 0) 360deg
  );
}

body.room-selection-required .rate-qty-block::after {
  background: #fff8f2;
  box-shadow: inset 0 0 0 1px rgba(255, 148, 77, 0.34);
}

body.room-selection-required .rate-qty-label {
  color: #9b5217;
}

.rate-qty-block::before {
  content: '';
  position: absolute;
  inset: -42%;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(12, 113, 195, 0) 0deg,
    rgba(12, 113, 195, 0) 226deg,
    rgba(12, 113, 195, 0.78) 286deg,
    rgba(12, 113, 195, 0.08) 315deg,
    rgba(12, 113, 195, 0) 360deg
  );
  opacity: 0.9;
  will-change: transform;
  animation: rateQtyBorderSweep 2.25s linear infinite;
  filter: drop-shadow(0 0 6px rgba(12, 113, 195, 0.22));
  pointer-events: none;
  z-index: 0;
}

.rate-qty-block::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: #f3f6fa;
  box-shadow: inset 0 0 0 1px rgba(217, 226, 236, 0.9);
  pointer-events: none;
  z-index: 0;
}

.rate-qty-block > * {
  position: relative;
  z-index: 1;
}

@keyframes roomMediaShimmer {
  from {
    transform: translateX(-38%);
  }
  to {
    transform: translateX(38%);
  }
}

@keyframes rateQtyBorderSweep {
  to {
    transform: rotate(1turn);
  }
}

.rate-qty-label {
  font-size: 0.62rem;
  color: #4f6782;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.rate-qty-value {
  color: #2f3f52;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.rate-qty-rooms-word {
  color: #6e7682;
  font-size: 0.68rem;
  text-transform: lowercase;
}

.rate-choose-btn {
  width: 100%;
  min-width: 170px;
  border: 1px solid #f68a40;
  border-radius: 10px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #ff9f5f 0%, #ff8f47 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.rate-choose-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 148, 77, 0.24);
  filter: saturate(1.05);
}

.rate-choose-btn.is-selected {
  background: linear-gradient(180deg, #42b875 0%, #2ea964 100%);
  border-color: #2ea964;
}

.rate-choose-btn.is-selected:hover {
  box-shadow: 0 10px 20px rgba(46, 169, 100, 0.22);
}

.rate-choose-btn:disabled {
  background: linear-gradient(180deg, #42b875 0%, #2ea964 100%);
  border-color: #2ea964;
  cursor: default;
  opacity: 1;
  box-shadow: none;
  transform: none;
  filter: none;
}

.rate-qty-select {
  width: 90px;
  border: 1px solid #c4d0de;
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  color: #2f3f52;
  background: #fff;
}

.rate-qty-select:focus-visible {
  outline: none;
  border-color: #9bc6e9;
  box-shadow: 0 0 0 3px rgba(12, 113, 195, 0.15);
}

.tracking-area {
  margin-top: 14px;
  padding: 16px;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tracking-head h3 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text);
}

.secondary-btn {
  border: 1px solid var(--border);
  background: #f7f8fb;
  color: #4e5d73;
  padding: 8px 12px;
}

.secondary-btn:hover {
  background: #eef2f7;
}

.events {
  margin: 0;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #1e3247;
  background: #0b1726;
  color: #cae2ff;
  padding: 12px;
  font-size: 0.8rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 16, 28, 0.88);
  backdrop-filter: blur(2px);
}

.lightbox-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
}

.lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: calc(92vh - 42px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  background: #0b1726;
}

.lightbox-caption {
  margin: 0;
  color: #e9eff8;
  font-size: 0.9rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(11, 23, 38, 0.75);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(11, 23, 38, 0.95);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(11, 23, 38, 0.75);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(11, 23, 38, 0.95);
}

.lightbox-nav-prev {
  left: 24px;
}

.lightbox-nav-next {
  right: 24px;
}

.gallery-explorer[hidden] {
  display: none;
}

.gallery-explorer {
  position: fixed;
  inset: 0;
  z-index: 205000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.gallery-explorer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 28, 0.8);
  backdrop-filter: blur(3px);
}

.gallery-explorer-card {
  position: relative;
  z-index: 1;
  width: min(1480px, 98vw);
  max-height: min(92vh, 1000px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px 22px;
  border: 1px solid rgba(214, 226, 239, 0.88);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(6, 16, 28, 0.34);
}

.gallery-explorer-card::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 86%);
  pointer-events: none;
  z-index: 2;
}

.gallery-explorer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-explorer-head-copy {
  min-width: 0;
}

.gallery-explorer-title {
  margin: 0;
  color: #243447;
  font-size: clamp(1.28rem, 1.7vw, 1.6rem);
  font-weight: 800;
}

.gallery-explorer-meta {
  margin: 4px 0 0;
  color: #5e7288;
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-explorer-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid #c9d9ea;
  border-radius: 999px;
  background: #ffffff;
  color: #2b435e;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-explorer-close:hover,
.gallery-explorer-close:focus-visible {
  background: #edf6ff;
  border-color: #aecdeb;
  transform: translateY(-1px);
  outline: none;
}

.gallery-explorer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  overflow: visible;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0e2 transparent;
}

.gallery-explorer-categories::-webkit-scrollbar,
.gallery-explorer-grid::-webkit-scrollbar {
  display: block;
  width: 8px;
  height: 8px;
}

.gallery-explorer-categories::-webkit-scrollbar-thumb,
.gallery-explorer-grid::-webkit-scrollbar-thumb {
  background: #bfd0e2;
  border-radius: 999px;
}

.gallery-explorer-categories::-webkit-scrollbar-track,
.gallery-explorer-grid::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-explorer-category {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 214px;
  max-width: 214px;
  border: 1px solid #d5e3f2;
  border-radius: 18px;
  background: #ffffff;
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  text-align: left;
  color: #2d3e52;
  box-shadow: 0 1px 2px rgba(18, 41, 67, 0.06);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-explorer-category-thumb {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #dbe7f4;
  background: #eef4fa;
}

.gallery-explorer-category-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-explorer-category-label {
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-explorer-category.is-active,
.gallery-explorer-category:hover,
.gallery-explorer-category:focus-visible {
  color: #006ce4;
  border-color: #8fc1f7;
  background: #f5f9ff;
  box-shadow: 0 10px 24px rgba(0, 108, 228, 0.1);
}

.gallery-explorer-category.is-active .gallery-explorer-category-thumb,
.gallery-explorer-category:hover .gallery-explorer-category-thumb,
.gallery-explorer-category:focus-visible .gallery-explorer-category-thumb {
  border-color: #006ce4;
}

.gallery-explorer-category:focus-visible {
  outline: none;
}

.gallery-explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 28px 2px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0e2 transparent;
}

.gallery-explorer-item {
  position: relative;
  display: block;
  align-self: start;
  overflow: hidden;
  border: none;
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 158px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #dde6ef;
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  box-shadow: 0 2px 8px rgba(17, 43, 71, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.gallery-explorer-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-explorer-item:hover,
.gallery-explorer-item:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 43, 71, 0.14);
  outline: none;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 38, 0.56);
  backdrop-filter: blur(1px);
}

.confirm-modal-card {
  position: relative;
  width: min(560px, 96vw);
  border: 1px solid #d9e3ef;
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 24px 58px rgba(11, 23, 38, 0.28);
  animation: ibeFadeUp 0.2s ease-out;
}

.confirm-modal-title {
  margin: 0;
  color: #2e3440;
  font-size: 1.24rem;
  font-weight: 700;
}

.confirm-modal-message {
  margin: 10px 0 0;
  color: #4e5d73;
  font-size: 0.98rem;
  line-height: 1.6;
}

.confirm-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal-actions .secondary-btn {
  min-width: 130px;
}

.confirm-modal-actions .primary-btn {
  min-width: 140px;
  text-transform: none;
  letter-spacing: 0.01em;
}

@media (max-width: 920px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .content-column,
  .side-column {
    grid-column: 1;
    grid-row: auto;
  }

  .side-column {
    position: static;
    top: auto;
    height: auto;
  }

  .description {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-wrap {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .brand-stack {
    min-width: 0;
    gap: 2px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
  }

  .top-action-link {
    grid-column: 1 / span 2;
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .mode-badge {
    justify-self: end;
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .simple-select,
  .simple-select-trigger {
    min-height: 34px;
  }

  .simple-select select,
  .simple-select-trigger {
    font-size: 0.84rem;
    padding: 7px 22px 7px 10px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-main-photo {
    min-height: 240px;
  }

  .hero-grid-right {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-photo {
    min-height: 96px;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .gallery-explorer-card {
    width: min(1180px, 98vw);
  }

  .gallery-explorer-grid {
    columns: 4 220px;
  }
}

@media (max-width: 560px) {
  .search-card {
    padding: 18px;
  }

  .search-form {
    gap: 16px;
    padding: 0;
  }

  .search-price-head {
    margin: 0 0 8px;
    padding: 14px 16px;
  }

  .room-title-row {
    align-items: center;
  }

  .room-info-toggle {
    display: inline-flex;
  }

  .room-desc.is-collapsed {
    display: none;
  }

  .room-card {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .room-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 8px 8px;
    padding: 10px 12px;
  }

  .brand-wrap {
    width: auto;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand-name {
    font-size: 1.08rem;
    line-height: 1.04;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

  .top-actions {
    display: contents;
  }

  .topbar .simple-select:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar .simple-select:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .topbar .simple-select {
    min-height: 32px;
  }

  .topbar .simple-select select,
  .topbar .simple-select-trigger {
    font-size: 0.8rem;
    padding: 6px 20px 6px 9px;
  }

  .top-action-link {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 32px;
    justify-content: center;
    padding: 6px 12px;
  }

  .mode-badge {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    padding: 6px 10px;
  }

  .search-price-head strong {
    font-size: 1.1rem;
  }

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

  .date-separator {
    display: none;
  }

  .guest-compact-row {
    grid-template-columns: 44px auto auto 44px auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .search-total-row span,
  .search-total-row strong {
    font-size: 1.52rem;
  }

  .summary-item-line {
    align-items: flex-start;
  }

  .summary-item-right {
    justify-items: start;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .rate-line {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .rate-qty-block {
    justify-items: center;
  }

  .rate-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: auto;
    min-width: 0;
  }

  .rate-actions .rate-amount {
    text-align: left;
  }

  .rate-choose-btn {
    width: 100%;
    min-width: 0;
  }

  .confirm-modal-card {
    padding: 18px;
  }

  .confirm-modal-actions {
    flex-direction: column-reverse;
  }

  .confirm-modal-actions .secondary-btn,
  .confirm-modal-actions .primary-btn {
    width: 100%;
  }

  .gallery-explorer {
    padding: 10px;
  }

  .gallery-explorer-card {
    width: 100%;
    max-height: 94vh;
    padding: 16px;
    gap: 14px;
  }

  .gallery-explorer-card::after {
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 16px;
  }

  .gallery-explorer-head {
    align-items: center;
  }

  .gallery-explorer-title {
    font-size: 1.12rem;
  }

  .gallery-explorer-meta {
    font-size: 0.84rem;
  }

  .gallery-explorer-categories {
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .gallery-explorer-category {
    grid-template-columns: 48px minmax(0, 1fr);
    min-width: 176px;
    max-width: 176px;
    gap: 8px;
    padding: 7px 10px 7px 7px;
  }

  .gallery-explorer-category-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .gallery-explorer-category-label {
    font-size: 0.82rem;
    line-height: 1.14;
  }

  .gallery-explorer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 2px 2px 20px 0;
  }

  .gallery-explorer-item {
    margin: 0;
    aspect-ratio: 4 / 3;
    min-height: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .hero-area,
  .main-layout > .content-column,
  .main-layout > .side-column {
    opacity: 1;
    animation: none;
  }

  .search-card,
  .intro-copy,
  .booking-card,
  .rooms-area,
  .tracking-area,
  .room-card,
  .rate-line {
    transition: none;
  }

  .search-card:hover,
  .intro-copy:hover,
  .booking-card:hover,
  .rooms-area:hover,
  .room-card:hover,
  .rate-line:hover {
    transform: none;
    box-shadow: none;
  }

  .section-chip,
  #searchBtn.primary-btn:not(:disabled),
  #reserveFromBtn.primary-btn:not(:disabled),
  .room-media.is-loading .room-media-stage::after,
  .rate-qty-block::before,
  .confirm-modal-card {
    animation: none;
  }

  .room-selection-required .rate-qty-block {
    box-shadow: none;
  }

  #searchBtn.primary-btn:not(:disabled)::after,
  #reserveFromBtn.primary-btn:not(:disabled)::after {
    animation: none;
  }

  .gallery-explorer-category-thumb,
  .gallery-explorer-item,
  .gallery-explorer-close {
    transition: none;
  }
}
