/* BedsKingKong · Product components (loaded after bkk-theme.css).
   Navy carries trust and structure; the crown gold is reserved for price and "your move" moments.
   Tokens reuse the theme's --bkk-* scale so both files stay in one visual system. */

:root {
  --nx-ink: var(--bkk-navy-900, #19232b);
  --nx-ink-2: var(--bkk-navy-700, #1c3a58);
  --nx-muted: var(--bkk-neutral-600, #4b6078);
  --nx-line: var(--bkk-neutral-200, #dbe3ec);
  --nx-surface: #fff;
  --nx-soft: var(--bkk-neutral-50, #f7f9fc);
  --nx-gold: var(--bkk-action, #e7b75c);
  --nx-gold-hover: var(--bkk-action-hover, #efc97f);
  --nx-gold-ink: var(--bkk-action-text, #162a42);
  --nx-gold-soft: var(--bkk-price-bg, #fff3d5);
  --nx-gold-line: var(--bkk-price-line, #d9b66e);
  --nx-gold-text: var(--bkk-price-text, #513817);
  --nx-ok: #176044;
  --nx-ok-soft: #e6f5ed;
  --nx-no: #9c3043;
  --nx-no-soft: #fff0f2;
  --nx-off: #52677e;
  --nx-off-soft: #edf2f7;
  --nx-radius: var(--bkk-card-radius, 16px);
  --nx-radius-sm: var(--bkk-control-radius, 10px);
  --nx-shadow: var(--bkk-shadow-1, 0 1px 2px #19232b08, 0 6px 12px #19232b04);
  --nx-ease: var(--bkk-ease, cubic-bezier(.2, .8, .2, 1));
  --nx-fast: var(--bkk-duration, 180ms);
}

[data-bs-theme="dark"] {
  --nx-ink: #eef3f9;
  --nx-ink-2: #c9d6e4;
  --nx-muted: #a3b4c7;
  --nx-line: #263b51;
  --nx-surface: #112235;
  --nx-soft: #0d1b2b;
  --nx-ok: #8bd8b1;
  --nx-ok-soft: #12321f;
  --nx-no: #f3a8b5;
  --nx-no-soft: #3a1820;
  --nx-off: #a3b4c7;
  --nx-off-soft: #1a2c40;
}

/* ---------- Request summary ---------- */
.nx-request {
  display: grid;
  gap: 16px;
  margin: 8px 0 20px;
  padding: 20px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  color: var(--nx-ink);
}
.nx-eyebrow {
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.nx-request h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--nx-ink);
}
.nx-request-meta {
  margin: 6px 0 0;
  color: var(--nx-muted);
  font-size: .9375rem;
}
.nx-request-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--nx-line);
  background: var(--nx-soft);
  border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
  font-size: .9375rem;
  color: var(--nx-ink-2);
  overflow-wrap: anywhere;
}
.nx-request-offer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 12px 16px;
  border: 1px solid var(--nx-gold-line);
  background: var(--nx-gold-soft);
  border-radius: var(--nx-radius-sm);
  color: var(--nx-gold-text);
}
.nx-request-offer span { flex-basis: 100%; font-size: .8125rem; font-weight: 600; }
.nx-request-offer strong {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--nx-ink);
}
.nx-request .offer-expiry { margin: 0; }

/* ---------- Negotiation list and card ---------- */
.nx-list {
  display: grid;
  gap: 16px;
}
.nx-card {
  --nx-state: var(--nx-line);
  --nx-state-soft: var(--nx-soft);
  --nx-state-ink: var(--nx-muted);
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px 16px 16px 20px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  color: var(--nx-ink);
  overflow: hidden;
}
/* State rail: the colour of the card's left edge tells the state before any text is read. */
.nx-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--nx-state);
}
.nx-card[data-state="contraoferta"] { --nx-state: var(--nx-gold); --nx-state-soft: var(--nx-gold-soft); --nx-state-ink: var(--nx-gold-text); }
.nx-card[data-state="aceptada"] { --nx-state: var(--nx-ok); --nx-state-soft: var(--nx-ok-soft); --nx-state-ink: var(--nx-ok); }
.nx-card[data-state="rechazada"] { --nx-state: var(--nx-no); --nx-state-soft: var(--nx-no-soft); --nx-state-ink: var(--nx-no); }
.nx-card[data-state="declinada"],
.nx-card[data-state="vencida"] { --nx-state: var(--nx-off); --nx-state-soft: var(--nx-off-soft); --nx-state-ink: var(--nx-off); }

.nx-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "thumb title" "thumb chip";
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
}
.nx-thumb {
  grid-area: thumb;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nx-soft);
}
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-thumb .nx-thumb-empty { width: 32px; height: 32px; object-fit: contain; opacity: .5; }
.nx-title { grid-area: title; min-width: 0; }
.nx-title h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}
.nx-title h3 a { color: inherit; text-decoration: none; }
.nx-title h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nx-title p {
  margin: 2px 0 0;
  font-size: .875rem;
  color: var(--nx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nx-chip {
  grid-area: chip;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--nx-state-soft);
  color: var(--nx-state-ink);
}
.nx-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Price ladder: your offer on the left, the host's answer on the right. */
.nx-ladder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.nx-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-soft);
  border: 1px solid var(--nx-line);
}
.nx-price span { font-size: .75rem; font-weight: 600; color: var(--nx-muted); }
.nx-price strong {
  font-size: clamp(1.0625rem, 4.4vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nx-price small { font-size: .75rem; color: var(--nx-muted); }
.nx-price-host {
  background: var(--nx-state-soft);
  border-color: color-mix(in srgb, var(--nx-state) 45%, transparent);
}
.nx-price-host span,
.nx-price-host small { color: var(--nx-state-ink); }
.nx-card[data-state="rechazada"] .nx-price-host strong,
.nx-card[data-state="vencida"] .nx-price-host strong,
.nx-card[data-state="declinada"] .nx-price-host strong { color: var(--nx-muted); }
.nx-empty-price { color: var(--nx-muted); }
.nx-arrow {
  display: grid;
  place-items: center;
  color: var(--nx-muted);
}

.nx-listed {
  margin: -8px 0 0;
  font-size: .8125rem;
  color: var(--nx-muted);
}
.nx-listed strong { color: var(--nx-ink-2); font-variant-numeric: tabular-nums; }

.nx-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--nx-line);
}
.nx-total span { font-size: .875rem; color: var(--nx-muted); }
.nx-total strong {
  grid-row: span 2;
  align-self: center;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.nx-total small { font-size: .8125rem; font-weight: 600; color: var(--nx-ink-2); }

.nx-next {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--nx-ink-2);
}

.nx-actions { display: grid; gap: 8px; }
.nx-actions form { margin: 0; }
.nx-actions .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  transition: background-color var(--nx-fast) var(--nx-ease), border-color var(--nx-fast) var(--nx-ease),
    transform var(--nx-fast) var(--nx-ease);
}
.nx-btn-primary,
.nx-btn-primary:focus {
  background: var(--nx-gold);
  border: 1px solid var(--nx-gold-line);
  color: var(--nx-gold-ink);
}
.nx-btn-primary:hover { background: var(--nx-gold-hover); color: var(--nx-gold-ink); }
.nx-btn-quiet,
.nx-btn-quiet:focus {
  background: transparent;
  border: 1px solid var(--nx-line);
  color: var(--nx-ink);
}
.nx-btn-quiet:hover { border-color: var(--nx-no); color: var(--nx-no); background: var(--nx-no-soft); }
.nx-actions .btn:active { transform: scale(.985); }
.nx-actions .btn:disabled,
.nx-actions .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.nx-fine { margin: -8px 0 0; font-size: .8125rem; color: var(--nx-muted); }

.nx-history { border-top: 1px solid var(--nx-line); padding-top: 12px; }
.nx-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  font-size: .875rem;
  font-weight: 700;
  color: var(--nx-ink-2);
}
.nx-history summary::-webkit-details-marker { display: none; }
.nx-history summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--nx-fast) var(--nx-ease);
}
.nx-history[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.nx-history ol { margin: 12px 0 0; padding: 0; list-style: none; }
.nx-history li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  padding: 0 0 14px 20px;
  font-size: .875rem;
}
.nx-history li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nx-surface);
  border: 2px solid var(--nx-muted);
}
.nx-history li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--nx-line);
}
.nx-history li[data-event="aceptada"]::before { border-color: var(--nx-ok); }
.nx-history li[data-event="contraoferta"]::before { border-color: var(--nx-gold); }
.nx-history li[data-event="rechazada"]::before { border-color: var(--nx-no); }
.nx-history li strong { font-variant-numeric: tabular-nums; }
.nx-history time { grid-column: 1 / -1; font-size: .75rem; color: var(--nx-muted); }

.nx-link {
  justify-self: start;
  font-size: .875rem;
  font-weight: 700;
  color: var(--nx-ink-2);
  text-underline-offset: 3px;
}

.nx-card a:focus-visible,
.nx-card button:focus-visible,
.nx-card summary:focus-visible {
  outline: 3px solid var(--bkk-navy-300, #93afca);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (min-width: 576px) {
  .nx-head {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "thumb title chip";
  }
  .nx-thumb { width: 72px; height: 72px; }
  .nx-chip { justify-self: end; align-self: start; }
  .nx-actions { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .nx-price strong { font-size: 1.375rem; }
}
@media (min-width: 768px) {
  .nx-request {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 24px;
  }
  .nx-request .offer-expiry { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .nx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .nx-card { padding: 20px 20px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-actions .btn,
  .nx-history summary::after { transition: none; }
  .nx-actions .btn:active { transform: none; }
}

/* ---------- Reservation detail ---------- */
.nx-trip {
  --nx-state: var(--nx-line);
  --nx-state-soft: var(--nx-soft);
  --nx-state-ink: var(--nx-muted);
  overflow: hidden;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  color: var(--nx-ink);
}
.nx-trip[data-state="retenida"] { --nx-state: var(--nx-gold); --nx-state-soft: var(--nx-gold-soft); --nx-state-ink: var(--nx-gold-text); }
.nx-trip[data-state="confirmada"] { --nx-state: var(--nx-ok); --nx-state-soft: var(--nx-ok-soft); --nx-state-ink: var(--nx-ok); }
.nx-trip[data-state="conciliacion"] { --nx-state: var(--nx-gold-line); --nx-state-soft: var(--nx-gold-soft); --nx-state-ink: var(--nx-gold-text); }
.nx-trip[data-state="cancelada"],
.nx-trip[data-state="vencida"] { --nx-state: var(--nx-off); --nx-state-soft: var(--nx-off-soft); --nx-state-ink: var(--nx-off); }
.nx-trip-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--nx-soft);
}
.nx-trip-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-trip-cover-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  color: var(--nx-muted);
}
.nx-trip-cover-empty img { width: 48px; height: 48px; opacity: .45; }
.nx-trip-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  box-shadow: 0 2px 8px #19232b26;
  background: var(--nx-surface);
}
.nx-trip-body { display: grid; gap: 20px; padding: 20px; }
.nx-trip-head h2 { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.nx-trip-head p { margin: 4px 0 0; color: var(--nx-muted); }
.nx-trip-status {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-state-soft);
  border-left: 4px solid var(--nx-state);
}
.nx-trip-status p { margin: 0; color: var(--nx-ink); font-size: .9375rem; line-height: 1.45; }
.nx-trip-status .offer-expiry { margin: 0; background: var(--nx-surface); }
.nx-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-line);
}
.nx-facts div { padding: 12px 14px; background: var(--nx-surface); }
.nx-facts dt { font-size: .75rem; font-weight: 600; color: var(--nx-muted); }
.nx-facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-breakdown h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.nx-breakdown dl { margin: 0; }
.nx-breakdown dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.nx-breakdown dt { font-weight: 400; color: var(--nx-ink-2); }
.nx-breakdown dd { margin: 0; white-space: nowrap; }
.nx-breakdown-minus dd { color: var(--nx-muted); }
.nx-breakdown-total { border-top: 1px solid var(--nx-line); margin-top: 4px; padding-top: 12px !important; }
.nx-breakdown-total dt,
.nx-breakdown-total dd { font-weight: 800; font-size: 1.125rem; color: var(--nx-ink); }
.nx-trip-cta { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 12px; }
.nx-policy {
  padding: 14px 16px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-soft);
  border: 1px solid var(--nx-line);
}
.nx-policy strong { display: block; font-size: .9375rem; }
.nx-policy p { margin: 4px 0 0; font-size: .875rem; color: var(--nx-muted); }
.nx-trip .nx-fine { margin: 0; }
.nx-ref { margin: 0; font-size: .75rem; color: var(--nx-muted); overflow-wrap: anywhere; }
.nx-ref code { font-size: .75rem; color: var(--nx-ink-2); background: none; padding: 0; }
@media (min-width: 768px) {
  .nx-trip-body { padding: 28px; }
  .nx-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nx-trip-head h2 { font-size: 1.625rem; }
}
@media (min-width: 992px) {
  .nx-trip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .nx-trip-cover { aspect-ratio: auto; min-height: 100%; }
}

/* ---------- Stay card (explore, home, guest home) ---------- */
.app-site .grid-props:has(.nx-stay) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.app-site :is(.grid-props, .landing-property-grid) .prop.nx-stay {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
  color: var(--nx-ink);
  cursor: default;
  transform: none;
  transition: box-shadow var(--nx-fast) var(--nx-ease), border-color var(--nx-fast) var(--nx-ease);
}
.app-site :is(.grid-props, .landing-property-grid) .prop.nx-stay:hover {
  transform: none;
  border-color: var(--bkk-navy-200, #bfd0e2);
  box-shadow: var(--bkk-shadow-2, 0 2px 3px #19232b08, 0 12px 24px #19232b09);
}
.nx-stay-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--nx-soft);
  overflow: hidden;
}
.nx-stay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--nx-ease);
}
.nx-stay:hover .nx-stay-media img { transform: scale(1.03); }
.nx-stay-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  color: var(--nx-muted);
  font-size: .75rem;
}
.nx-stay-empty img { width: 40px !important; height: 40px !important; opacity: .45; }
.nx-stay-flags {
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nx-stay-flags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #19232bd9;
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.4;
}
.nx-stay-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 14px 16px 16px;
}
.nx-stay-kicker {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-site .nx-stay h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}
.nx-stay .property-name { color: var(--nx-ink); text-decoration: none; }
.nx-stay .property-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.nx-stay-meta { margin: 0; font-size: .875rem; color: var(--nx-muted); }
.nx-stay-own {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--nx-gold-soft);
  color: var(--nx-gold-text);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.nx-stay-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}
.nx-stay-price { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.nx-stay-price span { font-size: .6875rem; font-weight: 600; color: var(--nx-muted); }
.nx-stay-price strong {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--nx-ink);
}
.nx-stay-price small { font-size: .75rem; color: var(--nx-muted); }
.app-site .nx-stay .stay-offer-button {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.nx-stay .nx-fine { margin: 6px 0 0; }
.nx-stay-available { margin: 8px 0 0; font-size: .75rem; color: var(--nx-ok); }
.nx-stay a:focus-visible { outline: 3px solid var(--bkk-navy-300, #93afca); outline-offset: 2px; border-radius: 8px; }

/* ---------- Stay detail ---------- */
.nx-detail { color: var(--nx-ink); }
.app-site .nx-detail.section { padding-top: 12px; }
.nx-detail .mx-back { display: inline-block; margin: 0; font-size: .875rem; }
.nx-detail-gallery { margin: 8px 0 16px; }
.nx-detail .hotel-gallery-grid ~ .btn,
.nx-stay-media { text-decoration: none; }
.nx-detail .hotel-gallery {
  position: relative;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-soft);
}
.nx-detail .hotel-gallery-grid { display: block; }
.nx-detail .hotel-gallery-grid button { display: block; width: 100%; border: 0; padding: 0; background: var(--nx-soft); }
.nx-detail .hotel-gallery-grid button:not(:first-child) { display: none; }
.nx-detail .hotel-gallery-grid img,
.nx-detail .hotel-gallery-grid button:first-child img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.nx-detail [data-gallery-show] {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0 !important;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #ffffffeb;
  color: #19232b;
  font-size: .8125rem;
  font-weight: 700;
  box-shadow: 0 2px 10px #19232b33;
}
.nx-detail .mx-property-art { border-radius: var(--nx-radius); aspect-ratio: 4 / 3; }
.nx-detail-layout { display: flex; flex-direction: column; gap: 20px; }
/* On phones the offer panel sits right after the title; on desktop it becomes a sticky side column. */
.nx-detail-main { display: contents; }
.nx-detail-head { order: 1; }
.nx-offer-panel { order: 2; }
.nx-how { order: 3; }
.nx-detail-section { order: 4; }
.nx-detail-head h1 { margin: 0; font-size: clamp(1.5rem, 6vw, 2.125rem); font-weight: 800; line-height: 1.15; }
.nx-detail-place { margin: 6px 0 0; color: var(--nx-muted); }
.nx-facts-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.nx-facts-inline li {
  padding: 4px 12px;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nx-ink-2);
}
.nx-detail-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-off-soft);
  color: var(--nx-ink-2);
  font-size: .8125rem;
  line-height: 1.45;
}
.nx-offer-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
}
.nx-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.nx-offer-price span { flex-basis: 100%; font-size: .8125rem; font-weight: 600; color: var(--nx-muted); }
.nx-offer-price strong { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-offer-price small { color: var(--nx-muted); }
.nx-offer-pitch { margin: 0; font-size: .9375rem; color: var(--nx-ink-2); line-height: 1.45; }
.nx-facts-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.nx-offer-cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
}
.nx-offer-panel .nx-fine { margin: 0; }
.nx-offer-panel .stay-exchange-note { margin: 0; }
.nx-how {
  padding: 20px;
  border-radius: var(--nx-radius);
  background: var(--nx-soft);
  border: 1px solid var(--nx-line);
}
.nx-how h2,
.nx-detail-section h2 { margin: 0 0 12px; font-size: 1.125rem; font-weight: 800; }
.nx-how ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: nx-how; }
.nx-how li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 40px;
  counter-increment: nx-how;
}
.nx-how li::before {
  content: counter(nx-how);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nx-ink);
  color: var(--nx-surface);
  font-size: .8125rem;
  font-weight: 800;
}
.nx-how li:first-child::before { background: var(--nx-gold); color: var(--nx-gold-ink); }
.nx-how strong { font-size: .9375rem; }
.nx-how span { font-size: .875rem; color: var(--nx-muted); }
.nx-detail-text { margin: 0; line-height: 1.65; color: var(--nx-ink-2); overflow-wrap: anywhere; }
.nx-amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.nx-amenities li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
.nx-amenities svg { width: 22px; height: 22px; flex: none; color: var(--nx-ink-2); }

@media (min-width: 768px) {
  .nx-detail .hotel-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 6px;
  }
  .nx-detail .hotel-gallery-grid button:not(:first-child) { display: block; }
  .nx-detail .hotel-gallery-grid button:first-child { grid-row: span 2; }
  .nx-detail .hotel-gallery-grid img,
  .nx-detail .hotel-gallery-grid button:first-child img { aspect-ratio: auto; height: 100%; }
  .nx-detail .hotel-gallery-grid button:nth-child(n+6) { display: none; }
  .nx-detail .hotel-gallery-grid:has(> button:only-child) { grid-template-columns: 1fr; grid-template-rows: 420px; }
  .nx-detail .hotel-gallery-grid:has(> button:nth-child(2):last-child),
  .nx-detail .hotel-gallery-grid:has(> button:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 992px) {
  .nx-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 40px;
  }
  .nx-detail-main { display: grid; gap: 28px; }
  .nx-offer-panel { position: sticky; top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-stay-media img { transition: none; }
  .nx-stay:hover .nx-stay-media img { transform: none; }
}

/* Mobile offer bar: sits above the 65px bottom navigation; hidden while the full panel is visible. */
.nx-offer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--nx-surface);
  border-top: 1px solid var(--nx-line);
  box-shadow: 0 -6px 18px #19232b14;
  transition: transform var(--nx-fast) var(--nx-ease), opacity var(--nx-fast) var(--nx-ease);
}
.nx-offer-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.nx-offer-bar p { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.nx-offer-bar strong { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--nx-ink); }
.nx-offer-bar span { font-size: .75rem; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-offer-bar .btn {
  flex: none;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 991.98px) {
  .app-site:has(.nx-offer-bar) { padding-bottom: calc(88px + 72px); }
}
@media (prefers-reduced-motion: reduce) {
  .nx-offer-bar { transition: none; }
}

/* Photo viewer: immersive dark dialog; markup and behaviour stay in hotel-lightbox.js. */
.nx-detail .hotel-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #071426;
  color: #fff;
}
.nx-detail .hotel-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.nx-detail .hotel-lightbox::backdrop { background: #071426e6; }
.nx-detail .hotel-lightbox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.nx-detail .hotel-lightbox [data-gallery-counter] { margin: 0; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-detail .hotel-lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff1f;
  color: #fff;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.nx-detail .hotel-lightbox button:hover { background: #ffffff33; }
.nx-detail .hotel-lightbox button:focus-visible { outline: 3px solid var(--nx-gold); outline-offset: 2px; }
.nx-detail .hotel-lightbox-image {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: 0 8px;
}
.nx-detail .hotel-lightbox-image img {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.nx-detail .hotel-lightbox-image [data-gallery-previous],
.nx-detail .hotel-lightbox-image [data-gallery-next] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #071426b3;
}
.nx-detail .hotel-lightbox-image [data-gallery-previous] { left: 12px; }
.nx-detail .hotel-lightbox-image [data-gallery-next] { right: 12px; }
.nx-detail .hotel-lightbox [data-gallery-caption] {
  margin: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: .875rem;
  color: #c9d6e4;
}
@media (min-width: 992px) {
  .nx-detail .hotel-lightbox-image { padding: 0 72px; }
  .nx-detail .hotel-lightbox-image [data-gallery-previous] { left: 16px; }
  .nx-detail .hotel-lightbox-image [data-gallery-next] { right: 16px; }
}

/* ---------- Host inbox card and response form ---------- */
.nx-host[data-state="nuevo"] { --nx-state: var(--nx-gold); --nx-state-soft: var(--nx-gold-soft); --nx-state-ink: var(--nx-gold-text); }
.nx-host[data-state="contraoferta"] { --nx-state: var(--bkk-navy-400, #6487aa); --nx-state-soft: var(--bkk-navy-50, #f0f5fa); --nx-state-ink: var(--nx-ink-2); }
.nx-host-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.nx-host-head .nx-eyebrow { margin: 0; }
.nx-host-head h3 { margin: 2px 0 0; font-size: 1.1875rem; font-weight: 800; line-height: 1.2; }
.nx-host-head .nx-request-meta { margin-top: 4px; font-size: .875rem; }
.nx-host-head .nx-chip { grid-area: auto; justify-self: start; }
.nx-price-guest {
  background: var(--nx-gold-soft);
  border-color: var(--nx-gold-line);
}
.nx-price-guest span,
.nx-price-guest small { color: var(--nx-gold-text); }
.nx-price-listed small { color: var(--nx-muted); }
.nx-host .mx-occupancy-summary { margin: 0; }
.nx-host .offer-expiry { margin: 0; }

.nx-respond {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}
.nx-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  background: var(--nx-soft);
}
.nx-choices legend {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 6px;
  padding: 2px 4px 0;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nx-ink-2);
}
.nx-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.nx-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nx-choice span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: center;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nx-ink-2);
  transition: background-color var(--nx-fast) var(--nx-ease), color var(--nx-fast) var(--nx-ease), box-shadow var(--nx-fast) var(--nx-ease);
}
.nx-choice:hover span { background: var(--nx-surface); }
.nx-choice input:checked + span { background: var(--nx-ink); color: var(--nx-surface); box-shadow: var(--nx-shadow); }
.nx-choice[data-choice="contraoferta"] input:checked + span { background: var(--nx-gold); color: var(--nx-gold-ink); }
.nx-choice[data-choice="rechazada"] input:checked + span { background: var(--nx-no); color: #fff; }
.nx-choice input:focus-visible + span { outline: 3px solid var(--bkk-navy-300, #93afca); outline-offset: 2px; }
/* Without JS the counter price stays reachable; with :has() it only shows for a counteroffer. */
.nx-respond:has(input[name="decision"]:checked:not([value="contraoferta"])) .nx-counter { display: none; }
.nx-respond:has(input[name="decision"][value="rechazada"]:checked) .nx-room { display: none; }
.nx-counter .form-control,
.nx-room .form-select { min-height: 48px; border-radius: 12px; font-size: 1rem; }
.nx-counter .form-control { font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-room .nx-fine { margin: 6px 0 0; }
.nx-estimate {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-soft);
  border: 1px dashed var(--nx-line);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--nx-ink-2);
  font-variant-numeric: tabular-nums;
}
.nx-respond-submit {
  min-height: 50px;
  border-radius: 12px;
  font-weight: 800;
}
.nx-respond[data-decision="rechazada"] .nx-respond-submit { background: var(--nx-no); border-color: var(--nx-no); color: #fff; }
.nx-respond[data-decision="aceptada"] .nx-respond-submit { background: var(--nx-ink); border-color: var(--nx-ink); color: var(--nx-surface); }
.nx-respond-submit[aria-busy="true"] { opacity: .6; pointer-events: none; }
.nx-respond > .nx-fine { margin: -6px 0 0; }
@media (min-width: 576px) {
  .nx-host-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .nx-host-head .nx-chip { justify-self: end; }
  .nx-choice span { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-choice span { transition: none; }
}

/* ---------- Search form (home, explore filters, proposal) ----------
   Markup and JS hooks are unchanged; this layer unifies labels and makes the price the hero of the form. */
.app-site .stay-form .stay-field > label,
.app-site .stay-form .stay-occupancy-trigger small {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.app-site .stay-form .stay-budget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label label" "amount night" "hint hint";
  align-items: center;
  gap: 4px 8px;
  padding: 16px;
  text-align: left;
  /* bkk-theme.css sets this background with !important (.app-site .stay-budget-inline); only !important wins. */
  background: var(--nx-gold-soft) !important;
  border-top: 1px solid var(--nx-gold-line);
  transition: box-shadow var(--nx-fast) var(--nx-ease);
}
.app-site .stay-form .stay-budget:focus-within { box-shadow: inset 0 0 0 3px var(--bkk-navy-300, #93afca); }
/* The block carries the focus ring, so the inner input does not draw a second one. */
.app-site .stay-form .stay-budget input:focus,
.app-site .stay-form .stay-budget input:focus-visible { outline: none; box-shadow: none; }
.app-site .stay-form .stay-budget > label {
  grid-area: label;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  color: var(--nx-ink);
}
.app-site .stay-form .stay-budget > div {
  grid-area: amount;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.app-site .stay-form .stay-budget [data-budget-currency] {
  flex: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--nx-surface);
  color: var(--nx-gold-text);
  font-size: .8125rem;
  font-weight: 800;
}
.app-site .stay-form .stay-budget input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nx-ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  outline: none;
}
.app-site .stay-form .stay-budget input::placeholder { color: color-mix(in srgb, var(--nx-gold-text) 35%, transparent); }
.app-site .stay-form .stay-budget > small:not(.stay-budget-hint) {
  grid-area: night;
  font-size: .875rem;
  color: var(--nx-gold-text);
}
.app-site .stay-form .stay-budget > small:not(.stay-budget-hint)::before { content: "/ "; }
.app-site .stay-form .stay-budget-hint {
  grid-area: hint;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--nx-gold-text);
}
/* The submit label switches to "Offer" when a price is typed (stay-search.js); the colour follows. */
.app-site .stay-form[data-mode="search"]:has([name="budget"]:not(:placeholder-shown)) [data-search-submit] {
  background: var(--nx-gold);
  border-color: var(--nx-gold-line);
  color: var(--nx-gold-ink);
}
.app-site .stay-form [data-search-submit] { min-height: 52px; font-weight: 800; border-radius: 12px; }
/* Proposed total already computed by stay-search.js; shown once there is something to show. */
.app-site .stay-form .stay-below-bar:has(output:not(:empty)) {
  display: block;
  padding: 10px 4px 0;
  font-size: .875rem;
  font-weight: 700;
  color: var(--nx-ink-2);
  font-variant-numeric: tabular-nums;
}
.app-site .stay-form .stay-type-options { margin-top: 12px; }
.app-site .stay-form .stay-type-options > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-surface);
  font-size: .875rem;
  font-weight: 700;
  color: var(--nx-ink);
  list-style: none;
  cursor: pointer;
}
.app-site .stay-form .stay-type-options > summary::-webkit-details-marker { display: none; }
.app-site .stay-form .stay-type-options > summary::before { content: none; }
.app-site .stay-form .stay-type-options > summary::marker { content: ""; }
.app-site .stay-form .stay-type-options > summary [data-types-summary] { margin-left: auto; font-weight: 600; color: var(--nx-muted); }
.app-site .stay-form .stay-type-options > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--nx-muted);
  border-bottom: 2px solid var(--nx-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--nx-fast) var(--nx-ease);
}
.app-site .stay-form .stay-type-options[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
/* Desktop search bar (the form becomes one row): compact price cell, same hierarchy. */
@media (min-width: 992px) {
  .app-site .landing-search .stay-form .stay-budget { padding: 12px 14px; border-top: 0; border-left: 3px solid var(--nx-gold-line); gap: 2px 6px; }
  .app-site .landing-search .stay-form .stay-budget > label { font-size: .8125rem; line-height: 1.25; }
  .app-site .landing-search .stay-form .stay-budget input { font-size: 1.375rem; }
  .app-site .landing-search .stay-form .stay-budget [data-budget-currency] { padding: 2px 6px; font-size: .75rem; }
  .app-site .landing-search .stay-form .stay-budget-hint { display: none; }
}
/* Home: the form itself is the only card (no card-in-card). */
@media (max-width: 991.98px) {
  .app-site .landing-search {
    padding: 16px 0 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-site .stay-form .stay-budget,
  .app-site .stay-form .stay-type-options > summary::after { transition: none; }
}

/* ---------- Dark mode contrast fixes for the inherited theme ----------
   Measured: navy primary buttons sat at 1.05:1 against the dark page, and inactive bottom-nav
   labels at 2.5:1. The primary button inverts on dark; inactive labels reach about 7:1. */
[data-bs-theme="dark"] .app-site .btn-ink {
  background: #e6edf5;
  border-color: #e6edf5;
  color: #19232b;
}
[data-bs-theme="dark"] .app-site .btn-ink:hover,
[data-bs-theme="dark"] .app-site .btn-ink:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: #19232b;
}
[data-bs-theme="dark"] .app-site .mx-bottom a:not([aria-current]),
[data-bs-theme="dark"] .app-site .mx-bottom a:not([aria-current]) span {
  color: #a9b8c9;
}

/* Chosen dates ("dom, 15 nov") stay on one line; the size adapts to narrow phones. */
.app-site .stay-form .stay-date-button { min-width: 0; max-width: 100%; }
.app-site .stay-form [data-date-text] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(.875rem, 3.9vw, 1.0625rem);
}
/* Very narrow phones: drop the calendar icon and tighten padding so the month is never cut. */
@media (max-width: 359.98px) {
  .app-site .stay-form .stay-date { padding-left: 12px; padding-right: 12px; }
  .app-site .stay-form .stay-date-button > svg { display: none; }
}
