/* ============================================================
   Stayokay booking-engine overlay demo
   Demo prepared for Hihostels proposal by Rock Solid Digital
   ============================================================ */

:root {
  /* Brand palette */
  --so-red:        #DF2437;
  --so-red-icon:   #DA232F;
  --so-teal:       #6AC2CC;
  --so-green-teal: #1E988A;
  --so-sage:       #87A2A5;
  --so-link-blue:  #1E988A;   /* room-name links — brand green-teal, subtler than link blue */

  --so-ink:        #2D3A3B;
  --so-ink-muted:  #5C6B6C;
  --so-line:       #E4E9E9;
  --so-line-soft:  #EEF2F2;
  --so-bg:         #F4F7F7;
  --so-white:      #FFFFFF;

  --ease: cubic-bezier(.25, .1, .25, 1);
  --shadow-card: 0 4px 14px rgba(20, 40, 40, 0.06);
  --shadow-pop: 0 18px 50px rgba(20, 40, 40, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  color: var(--so-ink);
  -webkit-font-smoothing: antialiased;
}

body.bed-scroll-locked { overflow: hidden; }

h1, h2, h3, h4, h5 { font-family: 'Quicksand', sans-serif; font-weight: 700; margin: 0; }

/* ---------- Shared button ---------- */
.so-btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 0;          /* squared, like the real site */
  background: var(--so-green-teal);
  color: #fff;
  cursor: pointer;
  letter-spacing: .01em;
  transition: box-shadow .15s var(--ease), transform .15s var(--ease), background .15s var(--ease);
}
.so-btn:hover { box-shadow: 3px 3px 0 0 rgba(30, 152, 138, .35); }
.so-btn--xl {
  font-size: 22px;
  padding: 20px 56px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   Landing
   ============================================================ */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(106, 194, 204, .25), transparent 60%),
    var(--so-bg);
  padding: 40px 20px;
}
.landing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.landing__logo { display: block; line-height: 0; }
.landing__logo svg { width: 190px; height: auto; }
.landing__tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--so-ink-muted);
  max-width: 30ch;
}
.landing__credit {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--so-sage);
}

/* ============================================================
   Modal shell
   ============================================================ */
.bed-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.bed-modal.is-open { display: block; }

.bed-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 35, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: bedFade .32s var(--ease) both;
}
@keyframes bedFade { from { opacity: 0; } to { opacity: 1; } }

.bed-modal__root {
  position: absolute;
  inset: 28px;
  background: var(--so-bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  animation: bedRise .32s var(--ease) both;
}
@keyframes bedRise {
  from { opacity: 0; transform: translateY(8px) scale(.992); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Loader ---------- */
.bed-modal__loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--so-bg);
}
.bed-modal__root.is-loading .bed-modal__loader { display: flex; }
.bed-modal__loader-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(30, 152, 138, .2);
  border-top-color: var(--so-green-teal);
  border-radius: 50%;
  animation: bedSpin 0.9s linear infinite;
}
@keyframes bedSpin { to { transform: rotate(360deg); } }
.bed-modal__loader-text {
  margin: 0;
  font-weight: 600;
  color: var(--so-ink-muted);
  letter-spacing: .02em;
}

/* ============================================================
   Toolbar
   ============================================================ */
.bed-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* center the booking widget */
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--so-white);
  border-bottom: 1px solid var(--so-line);
  position: relative;
  z-index: 20;
}
.bed-toolbar__pill { display: flex; align-items: center; }
.bed-toolbar__pill--right { justify-self: end; gap: 4px; }

.bed-notch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--so-green-teal);
  background: rgba(30, 152, 138, .08);
  border: 1px solid rgba(30, 152, 138, .22);
  border-radius: 0;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.bed-notch-btn:hover { background: rgba(30, 152, 138, .16); }
.bed-notch-btn.is-active { background: var(--so-green-teal); color: #fff; border-color: var(--so-green-teal); }
.bed-spark { width: 21px; height: 21px; }

.bed-notch {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--so-line);
  border-radius: 0;
  background: var(--so-white);
  overflow: visible;
}
.bed-notch__context { display: flex; align-items: stretch; }
.bed-notch__seg-wrap { position: relative; display: flex; }
.bed-notch__segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--so-ink);
  background: none;
  border: none;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.bed-notch__segment:hover { background: var(--so-line-soft); }
.bed-notch__meta { color: var(--so-ink-muted); font-weight: 500; }
.bed-notch__caret { width: 12px; height: 12px; opacity: .5; }
.bed-notch__divider { width: 1px; background: var(--so-line); align-self: stretch; }
.bed-toolbar__pill--right .bed-notch__divider { height: 22px; align-self: center; }

.bed-notch__update {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--so-green-teal);
  border: none;
  border-radius: 0;
  padding: 0 20px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.bed-notch__update:hover { background: #18867a; }
.bed-notch__update.is-flashing { animation: bedFlashBtn .6s var(--ease); }
@keyframes bedFlashBtn { 0%, 100% { background: var(--so-green-teal); } 40% { background: var(--so-teal); } }

.bed-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--so-ink-muted);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.bed-icon-btn:hover { background: var(--so-line-soft); color: var(--so-ink); }
.bed-icon-btn svg { width: 22px; height: 22px; }

/* ---------- Popovers ---------- */
.bed-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--so-white);
  border: 1px solid var(--so-line);
  border-radius: 4px;
  box-shadow: var(--shadow-pop);
  padding: 16px;
  z-index: 40;
  display: none;
}
.bed-pop.is-open { display: block; }
.bed-pop h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--so-green-teal); margin-bottom: 12px; }
.bed-pop__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}
.bed-pop__row + .bed-pop__row { border-top: 1px solid var(--so-line-soft); }
.bed-pop__label { font-weight: 700; font-size: 15px; }
.bed-pop__sub { font-size: 13px; color: var(--so-ink-muted); font-weight: 500; }
.bed-pop__demo { font-style: italic; }

.bed-stepper { display: inline-flex; align-items: center; gap: 4px; }
.bed-stepper button {
  width: 32px; height: 32px;
  font-size: 20px; line-height: 1;
  font-family: inherit;
  color: var(--so-green-teal);
  background: var(--so-white);
  border: 1px solid var(--so-line);
  border-radius: 0;
  cursor: pointer;
  transition: background .12s var(--ease);
}
.bed-stepper button:hover { background: var(--so-line-soft); }
.bed-stepper__val { min-width: 26px; text-align: center; font-weight: 700; }

/* ============================================================
   Content area
   ============================================================ */
.bed-content {
  flex: 1 1 auto;
  overflow-y: auto;
  position: relative;
}
.bed-inner { max-width: 1100px; margin: 0 auto; padding: 34px 28px 60px; }

.bed-head { margin-bottom: 26px; }
.bed-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--so-green-teal);
  margin-bottom: 10px;
}
.bed-title { font-size: 40px; line-height: 1.05; margin-bottom: 12px; }
.bed-sub { font-size: 16px; font-weight: 500; color: var(--so-ink-muted); max-width: 62ch; margin: 0; }

/* ---------- Tabs + counts ---------- */
.bed-rooms-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--so-line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.bed-tabs { display: flex; gap: 26px; }
.bed-tab {
  font-family: inherit;
  font-weight: 700;
  font-size: 19px;
  color: var(--so-sage);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 6px 0 12px;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.bed-tab:hover { color: var(--so-ink); }
.bed-tab.is-active { color: var(--so-green-teal); border-bottom-color: var(--so-green-teal); }

.bed-counts { display: flex; gap: 0; margin-bottom: 8px; }
.bed-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--so-ink-muted);
  background: var(--so-line-soft);
  border: 1px solid var(--so-line);
  padding: 9px 16px;
  white-space: nowrap;
}
.bed-count + .bed-count { border-left: none; }

/* ---------- Room groups ---------- */
.bed-group { margin-bottom: 28px; }
.bed-group.is-hidden { display: none; }

.bed-group__head {
  display: grid;
  grid-template-columns: 1fr 120px 150px 110px;
  align-items: center;
  gap: 16px;
  background: var(--so-line-soft);
  padding: 16px 20px;
}
.bed-group__title {
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--so-green-teal);
}
.bed-group__col {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--so-green-teal);
  text-align: center;
}

/* ---------- Room row ---------- */
.bed-room {
  display: grid;
  grid-template-columns: 1fr 120px 150px 110px;
  align-items: stretch;
  gap: 16px;
  background: var(--so-white);
  border: 1px solid var(--so-line);
  border-top: none;
  box-shadow: var(--shadow-card);
}
.bed-room.is-hidden { display: none; }
.bed-room.is-unavailable { background: #FBFCFC; }
.bed-room.is-flash { animation: bedRowFlash 1.2s var(--ease); }
@keyframes bedRowFlash {
  0%, 100% { box-shadow: var(--shadow-card); }
  30% { box-shadow: 0 0 0 3px rgba(106, 194, 204, .9), var(--shadow-card); }
}

.bed-room__main {
  display: flex;
  gap: 18px;
  padding: 20px;
  align-items: flex-start;
}
.bed-room__photo {
  width: 132px;
  height: 104px;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  background-color: var(--so-line);
}
.is-unavailable .bed-room__photo { filter: grayscale(.7); opacity: .7; }
.bed-room__info { min-width: 0; }
.bed-room__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--so-link-blue);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.is-unavailable .bed-room__name { color: var(--so-sage); }
.bed-room__name:hover { text-decoration: underline; }
.bed-room__amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--so-ink-muted);
  margin-bottom: 8px;
}
.bed-room__amenity svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--so-sage); }

/* For who / Total / Beds cells */
.bed-room__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 8px;
  border-left: 1px solid var(--so-line-soft);
  text-align: center;
}
.bed-room__who-icon { color: #616F71; }
.bed-room__who-icon svg { width: 30px; height: 27px; }
.is-unavailable .bed-room__who-icon { opacity: .55; }
.bed-room__who-label { font-size: 14px; font-weight: 500; color: var(--so-ink-muted); }

.bed-room__price-was {
  font-size: 14px;
  font-weight: 500;
  color: var(--so-sage);
  text-decoration: line-through;
}
.bed-room__price-now { font-size: 21px; font-weight: 700; color: var(--so-ink); }
.bed-room__details-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--so-link-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.bed-room__details-link:hover { text-decoration: underline; }
.bed-room__dash { font-size: 22px; color: var(--so-sage); }

.bed-room__beds-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.bed-room__beds-num { font-size: 34px; font-weight: 700; color: var(--so-green-teal); line-height: 1; }
.bed-room__beds-caret { width: 18px; height: 18px; color: var(--so-ink-muted); transition: transform .2s var(--ease); }
.bed-room__beds-na { font-size: 15px; font-weight: 600; color: var(--so-sage); }

/* Beds / rooms quantity dropdown */
.bed-qty { position: relative; }
.bed-qty.is-open .bed-room__beds-caret { transform: rotate(180deg); }
.bed-qty-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--so-white);
  border: 1px solid var(--so-line);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  z-index: 50;
  display: none;
}
.bed-qty.is-open .bed-qty-pop { display: block; }
.bed-qty-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--so-ink);
  background: none;
  border: none;
  border-radius: 0;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
}
.bed-qty-opt:hover { background: var(--so-line-soft); }
.bed-qty-opt.is-selected { background: rgba(30, 152, 138, .1); }
.bed-qty-opt__price { color: var(--so-green-teal); font-weight: 700; }

/* ---------- Expanded rate detail ---------- */
.bed-room__detail {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--so-line);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s var(--ease), padding .28s var(--ease);
}
.bed-room.is-expanded .bed-room__detail { max-height: 320px; padding: 20px; }
.bed-room__detail-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.bed-room__detail-opts { display: flex; flex-direction: column; gap: 10px; }
.bed-room__opt { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--so-ink); }
.bed-room__opt input { width: 18px; height: 18px; accent-color: var(--so-green-teal); }
.bed-room__note {
  font-size: 13px;
  font-weight: 600;
  color: var(--so-green-teal);
  background: rgba(30, 152, 138, .08);
  padding: 6px 12px;
}
.bed-room__add { font-size: 15px; padding: 14px 28px; }

/* "Book now" CTA + proposal tooltip */
.bed-cta { position: relative; display: inline-block; }
.bed-cta__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  left: auto;
  transform: translateY(4px);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--so-ink);
  padding: 8px 12px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 60;
}
.bed-cta__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 32px;
  border: 6px solid transparent;
  border-top-color: var(--so-ink);
}
.bed-cta:hover .bed-cta__tip,
.bed-cta:focus-within .bed-cta__tip,
.bed-cta.is-shown .bed-cta__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.bed-foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--so-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--so-ink-muted);
}
.bed-foot__brand { font-weight: 700; color: var(--so-green-teal); }
.bed-foot__credit { color: var(--so-sage); }

/* ============================================================
   AI panel
   ============================================================ */
.bed-ai {
  position: absolute;
  top: 70px;            /* below toolbar */
  bottom: 0;
  left: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--so-white);
  border-right: 1px solid var(--so-line);
  box-shadow: 14px 0 40px rgba(20, 40, 40, .1);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  z-index: 25;
}
.bed-modal__root.is-ai-open .bed-ai { transform: translateX(0); }

.bed-ai__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--so-line);
}
.bed-ai__head-l { display: flex; align-items: center; gap: 12px; color: var(--so-green-teal); }
.bed-ai__head-l > div { color: var(--so-ink); }
.bed-ai__title { font-weight: 700; font-size: 16px; }
.bed-ai__sub { font-size: 12px; font-weight: 500; color: var(--so-ink-muted); }
.bed-ai__close {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--so-ink-muted);
}
.bed-ai__close svg { width: 20px; height: 20px; }

.bed-ai__msgs { flex: 1 1 auto; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.bed-ai__msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.bed-ai__msg--assistant { align-self: flex-start; align-items: flex-start; }
.bed-ai__msg--user { align-self: flex-end; align-items: flex-end; }
.bed-ai__bubble {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 14px;
}
.bed-ai__msg--assistant .bed-ai__bubble {
  background: var(--so-line-soft);
  border-left: 3px solid var(--so-teal);
  color: var(--so-ink);
}
.bed-ai__msg--user .bed-ai__bubble {
  background: var(--so-green-teal);
  color: #fff;
}

.bed-ai__typing { display: inline-flex; gap: 5px; padding: 14px; background: var(--so-line-soft); border-left: 3px solid var(--so-teal); }
.bed-ai__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--so-sage); animation: bedDot 1s infinite ease-in-out; }
.bed-ai__typing span:nth-child(2) { animation-delay: .15s; }
.bed-ai__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bedDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Room mention card inside AI */
.bed-ai__mention {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--so-white);
  border: 1px solid var(--so-line);
  padding: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow .15s var(--ease);
}
.bed-ai__mention:hover { box-shadow: 2px 2px 0 0 rgba(106, 194, 204, .5); }
.bed-ai__mention img { width: 56px; height: 48px; object-fit: cover; flex: 0 0 auto; }
.bed-ai__mention-body { min-width: 0; flex: 1 1 auto; }
.bed-ai__mention-name { font-weight: 700; font-size: 14px; color: var(--so-link-blue); }
.bed-ai__mention-meta { font-size: 12px; font-weight: 500; color: var(--so-ink-muted); }
.bed-ai__mention-price { font-size: 13px; font-weight: 700; color: var(--so-green-teal); }
.bed-ai__mention-go { color: var(--so-sage); }
.bed-ai__mention-go svg { width: 18px; height: 18px; }

.bed-ai__foot { flex: 0 0 auto; border-top: 1px solid var(--so-line); padding: 14px; }
.bed-ai__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bed-ai__chip {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--so-green-teal);
  background: rgba(30, 152, 138, .08);
  border: 1px solid rgba(30, 152, 138, .2);
  padding: 7px 11px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.bed-ai__chip:hover { background: rgba(30, 152, 138, .18); }

.bed-ai__input { display: flex; gap: 8px; }
.bed-ai__input input {
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--so-line);
  border-radius: 0;
  outline: none;
}
.bed-ai__input input:focus { border-color: var(--so-green-teal); }
.bed-ai__send {
  flex: 0 0 auto;
  width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--so-green-teal);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.bed-ai__send:disabled { background: var(--so-sage); cursor: not-allowed; opacity: .6; }
.bed-ai__send svg { width: 20px; height: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .bed-modal__root { inset: 0; border-radius: 0; }
  .bed-title { font-size: 30px; }

  .bed-group__head { grid-template-columns: 1fr; gap: 4px; }
  .bed-group__col { display: none; }

  .bed-room { grid-template-columns: 1fr; }
  .bed-room__main { flex-direction: column; }
  .bed-room__photo { width: 100%; height: 160px; }
  .bed-room__cell {
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: 1px solid var(--so-line-soft);
    padding: 12px 20px;
  }
  .bed-room__cell::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--so-green-teal);
  }
}

@media (max-width: 720px) {
  /* Top bar keeps AI Assist + user/close; booking widget drops to its own row below. */
  .bed-toolbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "ai     right"
      "widget widget";
    row-gap: 12px;
  }
  .bed-toolbar__pill:first-child  { grid-area: ai; }
  .bed-toolbar__pill:nth-child(2) { grid-area: widget; }
  .bed-toolbar__pill--right       { grid-area: right; }

  /* Stack the widget's contents so it fits a phone width. */
  .bed-notch { width: 100%; flex-direction: column; align-items: stretch; }
  .bed-notch__context { flex-direction: column; align-items: stretch; min-width: 0; }
  .bed-notch__seg-wrap { width: 100%; }
  .bed-notch__segment { width: 100%; justify-content: space-between; }
  .bed-notch__seg-wrap + .bed-notch__seg-wrap .bed-notch__segment,
  .bed-notch__context .bed-notch__seg-wrap:not(:first-child) { border-top: 1px solid var(--so-line); }
  .bed-notch__divider { display: none; }
  .bed-notch__update { width: 100%; padding: 13px; border-top: 1px solid var(--so-line); }

  .bed-ai { width: 100%; max-width: 100%; top: 0; }
}
