/* Bookvatio Rooms — Room Booking Form
   All styles scoped to .booknest-rooms (internal class kept for upgrade safety).
   ─────────────────────────────────────────────────────────────── */

/* ── Reset ─────────────────────────────────────────────────────── */
.booknest-rooms *, .booknest-rooms *::before, .booknest-rooms *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root variables ──────────────────────────────────────────────── */
.booknest-rooms {
  --pri: #6E8A9A;
  --pri-l: #6E8A9A20;
  --acc: #B07D62;
  --acc-l: #B07D6220;
  --text: #2C2418;
  --text2: #6B5D4F;
  --text3: #9A8E80;
  --bg: #FDFAF6;
  --bg2: #F5F0E8;
  --bg3: #EDE7DB;
  --surface: #FFFFFF;
  --border: #E5DDD0;
  --ok: #7C9A6E;
  --ok-l: #EEF4EB;
  --bad: #C47E7E;
  --bad-l: #FBEEEE;
  --r: 14px;
  --rs: 8px;
  --rx: 6px;
  --fb: 'DM Sans', -apple-system, sans-serif;
  --fd: 'Fraunces', Georgia, serif;
  --fs-title: 20px;
  --fs-sub: 13px;
  --fs-body: 13px;
  --fs-price: 22px;
  --sh: 0 1px 3px rgba(44,36,24,0.06), 0 4px 12px rgba(44,36,24,0.04);
  --sh2: 0 4px 12px rgba(44,36,24,0.08), 0 12px 32px rgba(44,36,24,0.06);
  --tr: 0.2s cubic-bezier(0.4,0,0.2,1);
  --cal-ok-bg: #00942a;
  --cal-ok-text: #ffffff;
  --cal-full-bg: #f70015;
  --cal-full-text: #ffffff;
  --step-title: var(--text);
  --card-title: var(--text);
  --card-bg: var(--surface);
  --badge-text: var(--text2);
  --badge-bg: #F5F0E8;
  --summary-bg: #F5F0E8;
  --input-bg: var(--surface);
  --btn-pri-bg: var(--pri);
  --btn-pri-text: #ffffff;
  --btn-sec-bg: #F5F0E8;
  --btn-sec-text: var(--text);
  --price-color: var(--pri);
  --cal-bg: var(--surface);

  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  padding: 24px 16px;
  border-radius: var(--r);
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes bnr-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bnr-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.booknest-rooms .bnr-fu { animation: bnr-fadeUp 0.3s ease forwards; }

/* ── Step indicator ──────────────────────────────────────────────── */
.booknest-rooms .bnr-steps {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 0 20px; gap: 0;
}
.booknest-rooms .bnr-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  border: var(--bw) solid var(--border);
  color: var(--text3); background: var(--surface);
  transition: var(--tr); flex-shrink: 0;
}
.booknest-rooms .bnr-dot.active { border-color: var(--pri); color: var(--pri); background: var(--pri-l); }
.booknest-rooms .bnr-dot.done   { border-color: var(--ok); background: var(--ok); color: #fff; cursor: pointer; }
.booknest-rooms .bnr-dot.done:hover { opacity: 0.85; }
.booknest-rooms .bnr-line { width: 24px; height: 2px; background: var(--border); transition: var(--tr); flex-shrink: 0; }
.booknest-rooms .bnr-line.done { background: var(--ok); }

/* ── Step header ─────────────────────────────────────────────────── */
.booknest-rooms .bnr-step-head { margin-bottom: 16px; }
.booknest-rooms .bnr-step-title {
  font-family: var(--fd); font-size: var(--fs-title); font-weight: 600;
  color: var(--step-title); letter-spacing: -0.3px; margin-bottom: 3px;
}
.booknest-rooms .bnr-step-sub { font-size: var(--fs-sub); color: var(--text3); }

/* ── Room list (Step 1) ──────────────────────────────────────────── */
.booknest-rooms .bnr-room-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }

.booknest-rooms .bnr-room-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: var(--bw) solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  background: var(--card-bg);
  transition: var(--tr);
  cursor: pointer;
  box-shadow: var(--sh);
}
@media (max-width: 640px) { .booknest-rooms .bnr-room-card { grid-template-columns: 1fr; } }
.booknest-rooms .bnr-room-card:hover {
  border-color: var(--text3);
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.booknest-rooms .bnr-room-card.selected { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-l); background: var(--card-sel-bg, var(--card-bg)); }
.booknest-rooms .bnr-room-wrap { margin-bottom: 20px; }

/* Room gallery */
.booknest-rooms .bnr-gallery {
  position: relative; height: auto; overflow: hidden; background: var(--bg2);
}
.booknest-rooms .bnr-gallery img {
  display: block; width: 100%; height: 190px; object-fit: cover;
}
.booknest-rooms .bnr-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: var(--tr);
}
.booknest-rooms .bnr-gal-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.booknest-rooms .bnr-gal-prev { left: 8px; }
.booknest-rooms .bnr-gal-next { right: 8px; }
.booknest-rooms .bnr-gal-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.booknest-rooms .bnr-gal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: var(--tr);
}
.booknest-rooms .bnr-gal-dot.active { background: #fff; width: 16px; border-radius: 3px; }
.booknest-rooms .bnr-type-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 14px; font-weight: 600;
}

/* Room info */
.booknest-rooms .bnr-room-info {
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
}
.booknest-rooms .bnr-room-name {
  font-family: var(--fd); font-size: 22px; font-weight: 600;
  color: var(--card-title); margin-bottom: 10px;
}
.booknest-rooms .bnr-room-desc {
  font-size: 15px; color: var(--text2); line-height: 1.5; margin-bottom: 10px; flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.booknest-rooms .bnr-amenities { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.booknest-rooms .bnr-amenity {
  padding: 2px 15px; border-radius: 20px;
  background: var(--badge-bg); font-size: 13px; font-weight: 500; color: var(--badge-text);
}
.booknest-rooms .bnr-detail-type .bnr-amenity {
  padding: 3px 20px; font-size: 15px;
}
.booknest-rooms .bnr-room-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.booknest-rooms .bnr-room-price {
  font-family: var(--fd); font-size: var(--fs-price); font-weight: 700; color: var(--price-color);
}
.booknest-rooms .bnr-room-price span { font-size: 17px; font-weight: 400; color: var(--text3); }
.booknest-rooms .bnr-capacity { font-size: 12px; color: var(--text3); }

/* Action bar (50/50 split) */
.booknest-rooms .bnr-action-bar {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
}
.booknest-rooms .bnr-action-bar.open { border-radius: 0; }
.booknest-rooms .bnr-action-bar.single { grid-template-columns: 1fr; }
.booknest-rooms .bnr-avail-btn, .booknest-rooms .bnr-select-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px;
  border: none;
  cursor: pointer; font-family: var(--fb); font-size: 16px; font-weight: 600;
  transition: var(--tr); letter-spacing: 0.3px;
}
.booknest-rooms .bnr-avail-btn {
  background: var(--bg2); color: var(--text2);
  border-right: 1px solid var(--border);
}
.booknest-rooms .bnr-avail-btn:hover { background: var(--border); }
.booknest-rooms .bnr-avail-btn.open {
  background: var(--bg2); color: var(--text3);
}
.booknest-rooms .bnr-select-btn {
  background: var(--btn-pri-bg); color: var(--btn-pri-text);
}
.booknest-rooms .bnr-select-btn:hover { filter: brightness(0.92); }
.booknest-rooms .bnr-select-btn svg { transition: transform 0.2s ease; }
.booknest-rooms .bnr-select-btn:hover svg { transform: translateX(3px); }
.booknest-rooms .bnr-avail-badge {
  padding: 2px 8px; border-radius: 10px; font-size: 15px; font-weight: 600;
}
.booknest-rooms .bnr-avail-badge.ok    { background: var(--ok-l); color: var(--ok); }
.booknest-rooms .bnr-avail-badge.bad   { background: var(--bad-l); color: var(--bad); }

/* Availability panel */
.booknest-rooms .bnr-avail-panel {
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  padding: 16px; background: var(--cal-bg);
}
.booknest-rooms .bnr-avail-cal-nav {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.booknest-rooms .bnr-avail-month { font-family: var(--fd); font-size: 13px; font-weight: 600; }
.booknest-rooms .bnr-avail-arrow {
  width: 26px; height: 26px; padding: 0; border: 1px solid var(--border); border-radius: var(--rx);
  background: var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text2);
  transition: var(--tr);
}
.booknest-rooms .bnr-avail-arrow:hover { background: var(--bg2); }
.booknest-rooms .bnr-mini-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center;
}
.booknest-rooms .bnr-mini-dl {
  font-size: 9px; font-weight: 600; color: var(--text3); padding: 3px 0;
  text-transform: uppercase;
}
.booknest-rooms .bnr-mini-day {
  padding: 5px 0; border-radius: 5px; font-size: 11px; font-weight: 600;
}
.booknest-rooms .bnr-mini-day.ok      { background: #fff; border: 1px solid var(--cal-ok-bg); color: var(--cal-ok-bg); }
.booknest-rooms .bnr-mini-day.booked  { background: #fff; border: 1px solid var(--cal-full-bg); color: var(--cal-full-bg); }
.booknest-rooms .bnr-mini-day.past    { color: var(--text3); opacity: 0.3; }
.booknest-rooms .bnr-mini-day.empty   { visibility: hidden; }
.booknest-rooms .bnr-avail-legend {
  display: flex; gap: 10px; margin-top: 8px; justify-content: center;
  font-size: 10px; color: var(--text3);
}
.booknest-rooms .bnr-avail-legend span { display: flex; align-items: center; gap: 4px; }
.booknest-rooms .bnr-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ── Step 2: Room Detail View ────────────────────────────────────── */
.booknest-rooms .bnr-detail-gallery {
  position: relative; height: 280px; overflow: hidden;
  border-radius: var(--r); margin-bottom: 16px; background: var(--bg2);
}
.booknest-rooms .bnr-detail-gallery img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.booknest-rooms .bnr-detail-counter {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.booknest-rooms .bnr-detail-info { margin-bottom: 16px; }
.booknest-rooms .bnr-detail-type { margin-bottom: 4px; }
.booknest-rooms .bnr-detail-name {
  font-family: var(--fd); font-size: 24px; font-weight: 600;
  color: var(--text); margin-top: 20px; margin-bottom: 20px; letter-spacing: -0.5px;
}
.booknest-rooms .bnr-detail-price {
  font-family: var(--fd); font-size: 28px; font-weight: 700;
  color: var(--pri);
}
.booknest-rooms .bnr-detail-price span { font-size: 17px; font-weight: 400; color: var(--text3); }
.booknest-rooms .bnr-detail-desc {
  background: var(--bg2); border-radius: var(--rs);
  padding: 14px; font-size: var(--fs-body); color: var(--text2);
  line-height: 1.6; margin-bottom: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.booknest-rooms .bnr-amenities-title {
  font-size: 12px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.booknest-rooms .bnr-amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;
}
.booknest-rooms .bnr-amenity-card {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 8px 10px;
  font-size: 15px; color: var(--text2);
}
.booknest-rooms .bnr-amenity-check { color: var(--ok); flex-shrink: 0; }

/* ── Step 2: Location / Specs / Financial blocks ────────────────── */
.booknest-rooms .bnr-detail-location {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-body); color: var(--text2);
  padding: 10px 14px; background: var(--bg2); border-radius: var(--rs);
  margin-bottom: 14px;
}
.booknest-rooms .bnr-detail-location-icon { font-size: 16px; }
.booknest-rooms .bnr-specs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  margin-bottom: 18px;
}
.booknest-rooms .bnr-spec-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 10px 12px;
}
.booknest-rooms .bnr-spec-label {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.booknest-rooms .bnr-spec-value {
  font-family: var(--fd); font-size: 16px; font-weight: 600; color: var(--text);
}
.booknest-rooms .bnr-financial-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rs); margin-bottom: 18px; overflow: hidden;
}
.booknest-rooms .bnr-fin-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.booknest-rooms .bnr-fin-row:last-child { border-bottom: none; }
.booknest-rooms .bnr-fin-label {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px; align-self: center;
}
.booknest-rooms .bnr-fin-value {
  font-size: var(--fs-body); color: var(--text); line-height: 1.5; word-break: break-word;
}
@media (max-width: 480px) {
  .booknest-rooms .bnr-fin-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Step 3: Date range picker ───────────────────────────────────── */
.booknest-rooms .bnr-date-boxes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
@media (max-width: 480px) { .booknest-rooms .bnr-date-boxes { grid-template-columns: 1fr; } }
.booknest-rooms .bnr-date-box {
  padding: 12px 14px; border: var(--bw) solid var(--border); border-radius: var(--rs);
  cursor: pointer; transition: var(--tr);
}
.booknest-rooms .bnr-date-box.active { border-color: var(--pri); background: var(--pri-l); }
.booknest-rooms .bnr-date-box-label { font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.booknest-rooms .bnr-date-box-val { font-family: var(--fd); font-size: 16px; font-weight: 600; color: var(--text); }
.booknest-rooms .bnr-date-box-val.placeholder { color: var(--text3); font-weight: 400; font-size: 13px; font-family: var(--fb); }

.booknest-rooms .bnr-nights-badge {
  text-align: center; margin-bottom: 12px;
  font-family: var(--fd); font-size: 15px; font-weight: 600; color: var(--price-color);
}

/* Range calendar */
.booknest-rooms .bnr-range-cal {
  background: var(--cal-bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--sh);
}
.booknest-rooms .bnr-range-cal-nav {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.booknest-rooms .bnr-range-cal-month {
  font-family: var(--fd); font-size: 15px; font-weight: 600; color: var(--text);
}
.booknest-rooms .bnr-range-arrow {
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: var(--rx);
  background: var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text2); transition: var(--tr);
}
.booknest-rooms .bnr-range-arrow:hover { background: var(--bg2); }
.booknest-rooms .bnr-range-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center;
}
.booknest-rooms .bnr-range-dl {
  font-size: 10px; font-weight: 600; color: var(--text3); padding: 4px 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.booknest-rooms .bnr-range-day {
  padding: 7px 0; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--tr);
}
.booknest-rooms .bnr-range-day.empty { visibility: hidden; cursor: default; }
.booknest-rooms .bnr-range-day.past  { color: var(--text3); opacity: 0.3; cursor: not-allowed; }
.booknest-rooms .bnr-range-day.avail { background: #fff; border: 1px solid var(--cal-ok-bg); color: var(--cal-ok-bg); }
.booknest-rooms .bnr-range-day.avail:hover { filter: brightness(0.93); }
.booknest-rooms .bnr-range-day.booked { background: #fff; border: 1px solid var(--cal-full-bg); color: var(--cal-full-bg); cursor: not-allowed; }
.booknest-rooms .bnr-range-day.start,
.booknest-rooms .bnr-range-day.end   { background: var(--cal-ok-bg) !important; color: #fff !important; border-color: var(--cal-ok-bg) !important; }
.booknest-rooms .bnr-range-day.start { border-radius: 6px 0 0 6px; }
.booknest-rooms .bnr-range-day.end   { border-radius: 0 6px 6px 0; }
.booknest-rooms .bnr-range-day.start.end { border-radius: 6px; }
.booknest-rooms .bnr-range-day.in-range { background: var(--pri-l); color: var(--pri); border-radius: 0; }

/* ── Step 4: Guests ──────────────────────────────────────────────── */
.booknest-rooms .bnr-guests-wrap { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.booknest-rooms .bnr-guest-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rs); box-shadow: var(--sh);
}
.booknest-rooms .bnr-guest-label { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.booknest-rooms .bnr-guest-sub   { font-size: 15px; color: var(--text3); margin-top: 10px; }
.booknest-rooms .bnr-counter { display: flex; align-items: center; gap: 14px; }
.booknest-rooms .bnr-counter-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: var(--bw) solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--tr); color: var(--text2);
}
.booknest-rooms .bnr-counter-btn:hover:not(:disabled) { border-color: var(--pri); color: var(--pri); background: var(--pri-l); }
.booknest-rooms .bnr-counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.booknest-rooms .bnr-counter-val {
  font-family: var(--fd); font-size: 20px; font-weight: 600; min-width: 28px; text-align: center;
}

/* ── Form fields (Step 5) — same as appointments ─────────────────── */
.booknest-rooms .bnr-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
@media (max-width: 500px) { .booknest-rooms .bnr-form-grid { grid-template-columns: 1fr; } }
.booknest-rooms .bnr-form-full { grid-column: 1 / -1; }
.booknest-rooms .bnr-field { display: flex; flex-direction: column; gap: 5px; }
.booknest-rooms .bnr-label {
  font-size: 11px; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px;
}
/* The `input.bnr-input:not(...)` selector chain matches the specificity of
   themes that style global inputs via the same `:not([type="button"])` pattern
   (Elementor's kit, Astra, GeneratePress, etc.). */
.booknest-rooms input.bnr-input:not([type="button"]):not([type="submit"]),
.booknest-rooms .bnr-textarea {
  padding: 10px 12px; border: var(--bw) solid var(--border); border-radius: var(--rs);
  font-family: var(--fb); font-size: var(--fs-body); color: var(--text);
  background: var(--input-bg); outline: none; transition: var(--tr); width: 100%;
}
/* Same specificity bump as the base rule. */
.booknest-rooms input.bnr-input:not([type="button"]):not([type="submit"]):focus,
.booknest-rooms .bnr-textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-l); }
.booknest-rooms input.bnr-input:not([type="button"]):not([type="submit"])::placeholder,
.booknest-rooms .bnr-textarea::placeholder { color: var(--text3); opacity: 0.55; font-weight: 400; }
.booknest-rooms .bnr-textarea { resize: vertical; min-height: 80px; }

/* ── Input with leading icon ─────────────────────────────────────── */
.booknest-rooms .bnr-input-wrap { position: relative; display: block; width: 100%; }
.booknest-rooms .bnr-input-wrap-icon input.bnr-input:not([type="button"]):not([type="submit"]),
.booknest-rooms .bnr-input-wrap-icon .bnr-textarea { padding-left: 42px; }
.booknest-rooms .bnr-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.booknest-rooms .bnr-input-wrap-textarea .bnr-input-icon {
  top: 14px;
  transform: none;
}
.booknest-rooms .bnr-input-wrap:focus-within .bnr-input-icon { color: var(--pri); }

/* ── Phone with country picker ──────────────────────────────────── */
.booknest-rooms .bnr-input-wrap-phone { display: flex; gap: 0; align-items: stretch; }
.booknest-rooms .bnr-input-wrap-phone .bnr-cp-wrap { flex: 0 0 auto; position: relative; }
.booknest-rooms .bnr-input-wrap-phone input.bnr-input:not([type="button"]):not([type="submit"]) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
  flex: 1 1 auto;
}
.booknest-rooms .bnr-cp-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  border: var(--bw) solid var(--border);
  border-right: 0;
  border-top-left-radius: var(--rs);
  border-bottom-left-radius: var(--rs);
  background: var(--input-bg);
  font-family: var(--fb);
  font-size: var(--fs-body);
  color: var(--text);
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
  min-height: 42px;
}
.booknest-rooms .bnr-cp-btn:hover { background: var(--pri-l); }
.booknest-rooms .bnr-input-wrap-phone:focus-within .bnr-cp-btn,
.booknest-rooms .bnr-input-wrap-phone:focus-within input.bnr-input:not([type="button"]):not([type="submit"]) { border-color: var(--pri); }
.booknest-rooms .bnr-input-wrap-phone:focus-within { box-shadow: 0 0 0 3px var(--pri-l); border-radius: var(--rs); }
.booknest-rooms .bnr-input-wrap-phone:focus-within input.bnr-input:not([type="button"]):not([type="submit"]) { box-shadow: none; }
.booknest-rooms .bnr-cp-flag { font-size: 18px; line-height: 1; }
.booknest-rooms .bnr-cp-dial { font-weight: 600; font-size: 13px; padding-top: 3px; }
.booknest-rooms .bnr-cp-chev { color: var(--text3); display: inline-flex; align-items: center; }

.booknest-rooms .bnr-cp-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-height: 320px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--rs);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.booknest-rooms .bnr-cp-pop.open { display: flex; }
.booknest-rooms .bnr-cp-search {
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--text);
  background: var(--input-bg);
  outline: none;
}
.booknest-rooms .bnr-cp-search:focus { background: var(--pri-l); }
.booknest-rooms .bnr-cp-list { overflow-y: auto; flex: 1 1 auto; max-height: 260px; }
.booknest-rooms .bnr-cp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  font-family: var(--fb);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.booknest-rooms .bnr-cp-item:hover { background: var(--pri-l); }
.booknest-rooms .bnr-cp-item .bnr-cp-name { flex: 1 1 auto; }
.booknest-rooms .bnr-cp-item .bnr-cp-d { color: var(--text3); font-weight: 600; font-size: 12px; }

/* ── Summary ─────────────────────────────────────────────────────── */
.booknest-rooms .bnr-summary {
  background: var(--summary-bg); border-radius: var(--rs); padding: 18px; margin-bottom: 16px;
}
.booknest-rooms .bnr-summary-title {
  font-size: 13px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.booknest-rooms .bnr-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; color: var(--text); padding: 5px 0;
}
.booknest-rooms .bnr-summary-row.total {
  border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px;
}
.booknest-rooms .bnr-summary-row.total .bnr-summary-val {
  font-family: var(--fd); font-size: var(--fs-price); font-weight: 700; color: var(--price-color);
}
.booknest-rooms .bnr-summary-key { font-weight: 500; }
.booknest-rooms .bnr-summary-val { font-weight: 600; color: var(--text); }
.booknest-rooms .bnr-pay-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; color: var(--ok); font-weight: 700; margin-top: 8px;
}

/* ── Consent ─────────────────────────────────────────────────────── */
.booknest-rooms .bnr-consent {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border: var(--bw) solid var(--border); border-radius: var(--rs);
  background: var(--bg); margin-bottom: 16px;
}
.booknest-rooms .bnr-consent-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.booknest-rooms .bnr-checkbox {
  width: 22px; height: 22px; border-radius: 5px;
  border: var(--bw) solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--tr); margin-top: 1px;
}
.booknest-rooms .bnr-checkbox.checked { background: #fff; border-color: var(--pri); }
.booknest-rooms .bnr-checkbox svg { display: none; }
.booknest-rooms .bnr-checkbox.checked svg { display: block; color: var(--pri); }
.booknest-rooms .bnr-consent-text { font-size: 15px; color: var(--text2); line-height: 1.4; }
.booknest-rooms .bnr-consent-text a { color: #000; text-decoration: underline; font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.booknest-rooms .bnr-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px;
}
.booknest-rooms .bnr-btn {
  padding: 10px 22px; border: none; border-radius: var(--rs);
  font-family: var(--fb); font-size: var(--fs-body); font-weight: 600;
  cursor: pointer; transition: var(--tr);
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
}
.booknest-rooms .bnr-btn-primary { background: var(--btn-pri-bg); color: var(--btn-pri-text); }
.booknest-rooms .bnr-btn-primary:hover:not(:disabled) { filter: brightness(0.85); transform: translateY(-1px); }
.booknest-rooms .bnr-btn-secondary { background: var(--btn-sec-bg); color: var(--btn-sec-text); }
.booknest-rooms .bnr-btn-secondary:hover { filter: brightness(0.85); transform: translateY(-1px); }
.booknest-rooms .bnr-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Confirmation ────────────────────────────────────────────────── */
.booknest-rooms .bnr-confirm {
  text-align: center; padding: 40px 24px;
  background: var(--ok-l); border-radius: var(--r); border: 1px solid var(--ok);
}
.booknest-rooms .bnr-confirm-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; animation: bnr-pop 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}
.booknest-rooms .bnr-confirm-icon svg { width: 44px; height: 44px; stroke-width: 3; }
.booknest-rooms .bnr-confirm-title {
  font-family: var(--fd); font-size: var(--fs-title); font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.booknest-rooms .bnr-confirm-sub { font-size: var(--fs-body); color: var(--text2); margin-bottom: 20px; }
.booknest-rooms .bnr-confirm-details { text-align: left; margin: 0 auto 20px; max-width: 80%; }
@media (max-width: 640px) { .booknest-rooms .bnr-confirm-details { max-width: 100%; } }

/* ── Loading / Error ─────────────────────────────────────────────── */
.booknest-rooms .bnr-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; color: var(--text3); font-size: var(--fs-body); gap: 8px;
}
.booknest-rooms .bnr-spinner {
  width: 20px; height: 20px;
  border: var(--bw) solid var(--border); border-top-color: var(--pri);
  border-radius: 50%; animation: bnr-spin 0.7s linear infinite;
}
@keyframes bnr-spin { to { transform: rotate(360deg); } }
.booknest-rooms .bnr-error {
  padding: 12px 16px; background: var(--bad-l);
  border: 1px solid var(--bad); border-radius: var(--rs);
  color: var(--bad); font-size: var(--fs-body); margin-bottom: 14px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .booknest-rooms .bnr-actions { flex-direction: column-reverse; }
  .booknest-rooms .bnr-actions .bnr-btn { width: 100%; }
  .booknest-rooms .bnr-amenities-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.bnr-lightbox {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  animation: bnrFadeIn 0.2s ease;
}
@keyframes bnrFadeIn { from { opacity: 0; } to { opacity: 1; } }
.bnr-lightbox .bnr-lb-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  user-select: none;
}
.bnr-lightbox .bnr-lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.bnr-lightbox .bnr-lb-close:hover { background: rgba(255,255,255,0.3); }
.bnr-lightbox .bnr-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.bnr-lightbox .bnr-lb-nav:hover { background: rgba(255,255,255,0.3); }
.bnr-lightbox .bnr-lb-prev { left: 16px; }
.bnr-lightbox .bnr-lb-next { right: 16px; }
.bnr-lightbox .bnr-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,0.4); padding: 4px 14px; border-radius: 20px;
}
