* {
  box-sizing: border-box
}

:root {
  --primary: #1d1e66;
  --accent: #c49a5a;
  --bg: #f7f5f1;
  --surface: #fff;
  --text: #20252b;
  --muted: #73777c;
  --border: #dfddd8;
  --success: #23855b;
  --danger: #c94b4b
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif
}

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

button {
  cursor: pointer
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto
}

.header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  margin-right: auto
}

.brand-logo {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font: 700 15px "Playfair Display";
  color: var(--accent)
}

.brand b {
  display: block;
  font: 600 17px "Playfair Display"
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted)
}

.desktop-nav {
  display: flex;
  gap: 25px
}

/* account block lives in the nav for mobile; the desktop header uses
   .nav-actions instead, so hide this on desktop */
.mobile-account {
  display: none
}

.desktop-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px
}

.nav-actions {
  display: flex;
  gap: 8px
}

.flash-stack {
  padding-top: 16px
}

.flash-message {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff
}

.flash-success {
  border-color: #b7dfcd;
  color: #1f6b4e;
  background: #edf9f2
}

.flash-error,
.field-error {
  color: var(--danger)
}

.profile-menu {
  position: relative
}

.profile-trigger {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text)
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #3344aa);
  color: #fff;
  font-weight: 700
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 45px #00000014;
  padding: 10px;
  display: none
}

.profile-dropdown.show {
  display: block
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  text-align: left;
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 0;
  background: transparent
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--bg)
}

.text-btn,
.back-btn,
.modal-links button {
  border: 0;
  background: none;
  color: var(--primary)
}

.outline-btn {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 8px;
  padding: 10px 16px
}

.hamburger {
  display: none;
  border: 0;
  background: none;
  font-size: 23px
}

.hero {
  height: 450px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: end;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #11152dcc, #11152d66), url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=85") center/cover
}

.hero-content {
  position: relative;
  padding-bottom: 60px
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px
}

.hero h1 {
  font: 600 clamp(38px, 5vw, 62px)/1.05 "Playfair Display";
  margin: 0 0 12px
}

.stars {
  color: #e7c178;
  font-size: 13px
}

.stars span {
  color: #eee;
  margin-left: 8px
}

.hero p {
  max-width: 580px;
  color: #eee;
  line-height: 1.7
}

.hero-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid #fff4;
  border-radius: 30px;
  font-size: 11px;
  background: #fff1
}

.booking-area {
  margin-top: -35px;
  position: relative;
  z-index: 4
}

.booking-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr .7fr .7fr 1.3fr;
  gap: 8px;
  box-shadow: 0 15px 40px #0002
}

.booking-bar label {
  padding: 7px 12px;
  border-right: 1px solid var(--border)
}

.booking-bar small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px
}

.booking-bar input,
.booking-bar select {
  border: 0;
  outline: 0;
  background: #fff;
  width: 100%;
  min-height: 28px
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700
}

.primary-btn:hover {
  box-shadow: 0 8px 20px #1d1e6626;
  transform: translateY(-1px)
}

.primary-btn:disabled,
.outline-btn:disabled,
.secondary-btn:disabled,
.text-btn:disabled,
button.is-loading {
  opacity: .72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none
}

.wide {
  width: 100%
}

.section {
  padding: 75px 0
}

.rooms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px
}

.section-head h2,
.info-grid h2,
.about-box h2,
.checkout-form-card h2,
.modal-box h2 {
  font: 600 34px/1.15 "Playfair Display";
  margin: 0 0 7px
}

.section-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 0
}

.muted {
  color: var(--muted);
  font-size: 12px
}

.room-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 38% 62%;
  transition: .2s
}

.room-card.in-cart {
  border-color: var(--accent);
  box-shadow: 0 10px 30px #c49a5a16
}

.room-photo {
  height: 100%;
  min-height: 330px;
  position: relative;
  background: #ddd
}

.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.photo-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #fff;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700
}

.room-info {
  padding: 23px
}

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

.room-name {
  font: 600 24px "Playfair Display";
  margin: 0
}

.room-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px
}

.status {
  background: #e9f5ef;
  color: var(--success);
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  height: max-content
}

.room-desc {
  font-size: 13px;
  color: #5d6267;
  line-height: 1.6
}

.facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.facility {
  background: var(--bg);
  border-radius: 20px;
  padding: 7px 9px;
  font-size: 10px
}

.rates {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 15px
}

.rates-title {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px
}

.rate-list {
  display: grid;
  gap: 6px
}

.rate {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px
}

.rate.active {
  border-color: var(--accent);
  background: #fcf8f1
}

.rate input {
  width: auto
}

.rate b {
  margin-left: auto
}

.rate small {
  color: var(--muted);
  font-size: 10px
}

.room-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px
}

.secondary-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 700
}

.secondary-btn.remove {
  border-color: #e5b6b6;
  color: var(--danger)
}

.similar {
  margin: 0 18px 18px 18px;
  padding: 17px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #faf9f6
}

.similar h4 {
  font: 600 19px "Playfair Display";
  margin: 0 0 12px
}

.similar-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.similar-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden
}

.similar-item img {
  width: 100%;
  height: 100px;
  object-fit: cover
}

.similar-body {
  padding: 9px
}

.similar-body b {
  font-size: 12px
}

.similar-body small {
  display: block;
  color: var(--muted);
  margin: 4px 0
}

.similar-body button {
  width: 100%;
  padding: 7px;
  border-radius: 6px;
  font-size: 10px
}

.reservation-summary,
.checkout-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  height: max-content;
  position: sticky;
  top: 95px
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px
}

.summary-head h3 {
  font: 600 20px "Playfair Display";
  margin: 0
}

.summary-head span {
  font-size: 10px;
  color: var(--muted)
}

.summary-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 35px 10px
}

.summary-room-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border)
}

.summary-room-item img {
  width: 58px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover
}

.summary-room-item b {
  font: 600 14px "Playfair Display"
}

.summary-room-item small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.remove-mini {
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 11px
}

.summary-totals {
  margin-top: 12px
}

.summary-totals>div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px
}

.summary-totals .grand {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 13px;
  font-size: 16px
}

.summary-totals .grand b {
  font: 600 23px "Playfair Display"
}

.payment-preference {
  border: 1px dashed #cfcfcf;
  border-radius: 10px;
  padding: 12px;
  margin: 15px 0
}

.cancellation-policy-box {
  border: 1px solid var(--border);
  background: #fbf7f1;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 15px 0
}

.cancellation-policy-box p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted)
}

.cancellation-policy-box .policy-tiers {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7
}

.pay-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  font-weight: 700;
  font-size: 13px
}

.pay-option input {
  margin-top: 3px;
  accent-color: var(--primary)
}

.pay-option span:last-child {
  margin-left: auto;
  white-space: nowrap
}

.or {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  padding: 6px
}

.empty {
  background: #fff;
  border: 1px dashed var(--border);
  padding: 50px;
  text-align: center;
  border-radius: 12px
}

.hidden {
  display: none !important
}

.info-section {
  padding: 70px 0;
  background: #ebe7df
}

.info-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px
}

.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px
}

.amenities div {
  border-bottom: 1px solid #d8d3ca;
  padding-bottom: 15px
}

.amenities b {
  display: block
}

.amenities small {
  color: var(--muted);
  display: block;
  margin-top: 5px
}

.map-box {
  padding: 20px 0;
  grid-template-columns: 1fr 130px 130px;
  gap: 25px;
  align-items: center
}

.about {
  padding: 70px 0
}

.about-box {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  gap: 25px;
  align-items: center
}

.about-box p {
  color: #d5d6df
}

.about-box>strong {
  border-left: 1px solid #fff3;
  padding-left: 20px;
  font: 600 28px "Playfair Display";
  color: #e4c27f
}

.about-box>strong small {
  display: block;
  font: 400 10px "DM Sans";
  color: #d5d6df
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 25px;
  font-size: 12px
}

.footer p {
  color: var(--muted);
  margin: 6px 0
}

/* Pages bar: dynamic page links */
.footer-pages {
  border-top: 1px solid var(--border);
  background: #fafafa
}

.footer-pages-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 0;
  padding: 14px 0;
  font-size: 12.5px
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px
}

.footer-bottom-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600
}

.footer-bottom-links a:hover {
  color: var(--primary)
}

/* Credit bar: own section with a distinct background */
.footer-credit {
  background: var(--primary, #1d1e66)
}

.footer-credit-inner {
  padding: 14px 0;
  text-align: center;
  font-size: 12.5px
}

.footer-bottom-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.85)
}

.footer-bottom-credit a {
  color: #fff;
  font-weight: 600;
  text-decoration: none
}

.footer-bottom-credit a:hover {
  text-decoration: underline
}

/* Dynamic page body (footer link pages) */
.dynamic-page-body {
  margin-top: 10px;
  line-height: 1.7;
  color: var(--text)
}

.dynamic-page-body h1,
.dynamic-page-body h2,
.dynamic-page-body h3 {
  margin: 18px 0 8px
}

.dynamic-page-body p {
  margin: 0 0 12px
}

.dynamic-page-body ul,
.dynamic-page-body ol {
  padding-left: 20px;
  margin: 0 0 12px
}

.modal {
  position: fixed;
  inset: 0;
  background: #11152db3;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 15px
}

.modal-box,
.details-box {
  background: #fff;
  border-radius: 15px;
  width: min(480px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 30px;
  position: relative
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--muted)
}

.modal-box form {
  display: grid;
  gap: 12px
}

.modal-box label,
.checkout-form-card label {
  font-size: 12px;
  font-weight: 700
}

.modal-box label input,
.checkout-form-card input,
.checkout-form-card select,
.checkout-form-card textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px;
  margin-top: 5px;
  background: #fff;
  outline: 0
}

.password-input {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 5px
}

.password-input input {
  border: 0 !important;
  margin: 0 !important
}

.password-input button {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0 10px
}

.modal-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  font-size: 11px
}

.modal-links button {
  color: var(--primary)
}

.details-box {
  width: min(900px, 100%)
}

.details-hero {
  height: 320px;
  position: relative
}

.details-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px
}

.details-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px
}

.details-thumbs img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px
}

.details-content {
  padding-top: 20px
}

.details-content h2 {
  font: 600 30px "Playfair Display";
  margin: 0
}

.details-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 12px
}

.details-rate {
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between
}

.checkout-page {
  min-height: calc(100vh - 76px);
  padding: 45px 0 80px
}

.checkout-top {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 20px
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 25px
}

.checkout-form-card,
.checkout-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 28px
}

.checkout-form-card h2 {
  margin-bottom: 5px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 25px
}

.form-grid .full {
  grid-column: 1/-1
}

.form-grid textarea {
  min-height: 100px;
  resize: vertical
}

.checkout-summary-card {
  position: sticky;
  top: 95px
}

.checkout-room {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px
}

.checkout-room img {
  width: 65px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover
}

.checkout-room b {
  font: 600 14px "Playfair Display"
}

.pay-now {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 15px
}

.pay-now b {
  font: 600 22px "Playfair Display";
  color: var(--primary)
}

.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 50;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 25px #0002
}

/* text block must not grow into / over the button */
.mobile-cart-bar>div {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden
}

/* keep the button at full size and guaranteed on top for taps */
.mobile-cart-bar .primary-btn {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  cursor: pointer;
  white-space: nowrap
}

.mobile-cart-bar small,
.mobile-cart-bar strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mobile-cart-bar small {
  font-size: 10px;
  color: var(--muted)
}

.mobile-cart-bar strong {
  font: 600 20px "Playfair Display"
}

.success {
  width: 55px;
  height: 55px;
  background: #e9f5ef;
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 15px
}

.confirmation {
  text-align: center
}

.confirmation-details {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  margin: 18px 0
}

.confirmation-details div {
  display: flex;
  justify-content: space-between;
  padding: 6px;
  font-size: 12px
}

/* Confirmation action buttons stack with consistent spacing */
.confirmation .confirmation-mybookings {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px
}

.confirmation .primary-btn.wide {
  display: block;
  width: 100%
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s;
  font-size: 12px;
  /* never intercept taps meant for the button/cart bar beneath it */
  pointer-events: none
}

.toast.show {
  opacity: 1;
  transform: none
}

@media(max-width:900px) {

  .desktop-nav,
  .nav-actions {
    display: none
  }

  .hamburger {
    display: block
  }

  .booking-bar {
    grid-template-columns: 1fr 1fr
  }

  .booking-bar .primary-btn {
    grid-column: 1/-1
  }

  .rooms-layout,
  .checkout-layout {
    grid-template-columns: 1fr
  }

  .reservation-summary {
    display: none
  }

  .room-card {
    grid-template-columns: 1fr
  }

  .room-photo {
    height: 260px;
    min-height: 0
  }

  .similar-list {
    grid-template-columns: 1fr 1fr
  }

  .checkout-summary-card {
    position: static
  }

  .mobile-cart-bar:not(.hidden) {
    display: flex
  }

  .info-grid {
    grid-template-columns: 1fr
  }

  .about-box {
    grid-template-columns: 1fr 1fr
  }

  .about-box>div:first-child {
    grid-column: 1/-1
  }

  .footer {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:560px) {
  .container {
    width: calc(100% - 24px)
  }

  .hero {
    height: 480px
  }

  .booking-bar {
    grid-template-columns: 1fr
  }

  .booking-bar label {
    border-right: 0;
    border-bottom: 1px solid var(--border)
  }

  .section {
    padding: 55px 0
  }

  .section-head {
    align-items: start
  }

  .room-actions {
    flex-direction: column
  }

  .room-actions button {
    width: 100%
  }

  .similar {
    margin: 0 10px 10px
  }

  .similar-list {
    grid-template-columns: 1fr
  }

  .details-rate-grid,
  .form-grid {
    grid-template-columns: 1fr
  }

  .form-grid .full {
    grid-column: auto
  }

  .about-box {
    grid-template-columns: 1fr
  }

  .about-box>strong {
    border-left: 0;
    border-top: 1px solid #fff3;
    padding: 15px 0 0
  }

  .footer {
    grid-template-columns: 1fr
  }
}

.similar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px
}

.similar-head h4 {
  margin: 2px 0 4px
}

.similar-head small {
  color: var(--muted);
  font-size: 10px
}

.mini-rate {
  padding: 7px 8px;
  font-size: 10px
}

.similar-rate-list {
  display: grid;
  gap: 5px;
  margin: 10px 0
}

.similar-item .primary-btn {
  font-size: 11px;
  padding: 9px 11px
}

.similar-item .rate b {
  font-size: 11px
}

.brand-logo {
  overflow: hidden
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.brand-logo #brandLogoFallback {
  font-weight: 700
}

@media(max-width:900px) {
  .desktop-nav.mobile-open {
    display: flex !important;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px 16px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 25px #0001;
    z-index: 30;
  }

  /* account options inside the mobile dropdown */
  .desktop-nav.mobile-open .mobile-account {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .mobile-account .mobile-account-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .mobile-account a {
    color: var(--text);
    text-decoration: none;
  }

  .mobile-account form {
    margin: 0;
  }

  .mobile-account .wide {
    width: 100%;
  }
}

.summary-room-clickable {
  cursor: pointer;
  transition: background .15s
}

.summary-room-clickable:hover {
  background: #faf8f2
}

.summary-rate-switch {
  border-bottom: 1px solid var(--border);
  padding: 0 0 10px;
  margin-bottom: 2px
}

.rate-switch-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  padding: 6px 0
}

.summary-rate-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  margin-top: 5px
}

.summary-rate-option:hover,
.summary-rate-option.active {
  border-color: var(--accent);
  background: #fcf8f1
}

.summary-rate-option span {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.summary-rate-option small {
  display: block;
  color: var(--muted);
  font-size: 9px
}

.summary-rate-option strong {
  font: 600 14px "Playfair Display";
  white-space: nowrap
}

@media(min-width:901px) {
  .mobile-cart-bar {
    display: none !important
  }
}

/* V5 polish */
.brand {
  display: flex;
  align-items: center;
  margin-right: auto
}

.company-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important
}

.checkout-payment-card {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf7
}

.checkout-payment-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border)
}

.checkout-payment-title .eyebrow {
  margin-bottom: 4px
}

.checkout-payment-title>b {
  display: block;
  font-size: 13px
}

.checkout-pay-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 13px 12px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer
}

.checkout-pay-option:hover,
.checkout-pay-option.selected {
  border-color: var(--accent);
  background: #fcf8f1
}

.checkout-pay-option input {
  width: 16px !important;
  height: 16px;
  margin: 0 !important;
  accent-color: var(--primary)
}

.checkout-pay-option .pay-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

.checkout-pay-option .pay-copy b {
  font-size: 12px
}

.checkout-pay-option .pay-copy small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400
}

.checkout-pay-option>strong {
  font: 600 16px "Playfair Display";
  white-space: nowrap;
  color: var(--primary)
}

.checkout-pay-or {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.checkout-pay-or:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border)
}

.checkout-pay-or span {
  position: relative;
  background: #fbfaf7;
  padding: 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700
}

.hotel-map-section {
  padding: 0 0 70px
}

.map-heading {
  margin-bottom: 20px
}

.map-heading h2 {
  font: 600 34px/1.15 "Playfair Display";
  margin: 0 0 7px
}

.map-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.map-card {
  height: 380px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8e5df;
  box-shadow: 0 10px 30px #0000000d
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

@media(max-width:560px) {
  .company-logo {
    height: 40px;
    max-width: 155px
  }

  .checkout-pay-option {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start
  }

  .checkout-pay-option>strong {
    grid-column: 2
  }

  .map-card {
    height: 300px
  }
}

.similar-rate-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.similar-rate-select:hover {
  border-color: var(--accent);
  background-color: #fdfcf9;
}

.similar-rate-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 30, 102, 0.08);
}

.similar-rate-select option {
  padding: 10px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

/* Similar room layout */
.similar-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.similar-body>b {
  font-size: 13px;
  color: var(--text);
}

.similar-body>small {
  font-size: 11px;
  color: var(--muted);
}

.similar-body .primary-btn {
  width: 100%;
  margin-top: 2px;
}

/* Mobile */
@media (max-width: 600px) {
  .similar-rate-select {
    min-height: 40px;
    padding: 9px 36px 9px 11px;
    font-size: 11px;
  }

  .similar-body {
    gap: 7px;
  }
}


.rate-switch-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px;
}

/* Individual rate plan option */
.rate-switch-options .rate-switch-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 13px 14px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: #fff;
  color: var(--text);

  cursor: pointer;
  text-align: left;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.rate-switch-options .rate-switch-option:hover {
  border-color: var(--accent);
  background: #fcfaf5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Selected rate plan */
.rate-switch-options .rate-switch-option.active {
  border-color: var(--accent);
  background: #f9f5ec;
  box-shadow: 0 0 0 2px rgba(29, 30, 102, 0.06);
}

/* Left side */
.rate-switch-options .rate-switch-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rate-switch-options .rate-switch-option span b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rate-switch-options .rate-switch-option span small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

/* Price */
.rate-switch-options .rate-switch-option strong {
  flex-shrink: 0;

  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 600;

  color: var(--primary);
  white-space: nowrap;
}

/* Custom scrollbar */
.rate-switch-options::-webkit-scrollbar {
  width: 5px;
}

.rate-switch-options::-webkit-scrollbar-track {
  background: transparent;
}

.rate-switch-options::-webkit-scrollbar-thumb {
  background: #d8d4ca;
  border-radius: 10px;
}

.rate-switch-options::-webkit-scrollbar-thumb:hover {
  background: #bdb8ac;
}

/* Mobile */
@media (max-width: 600px) {
  .rate-switch-options {
    max-height: 300px;
    gap: 8px;
  }

  .rate-switch-options .rate-switch-option {
    padding: 11px 12px;
    gap: 10px;
  }

  .rate-switch-options .rate-switch-option span b {
    font-size: 12px;
  }

  .rate-switch-options .rate-switch-option span small {
    font-size: 9px;
  }

  .rate-switch-options .rate-switch-option strong {
    font-size: 14px;
  }
}

.remove-btn {
  background: #fff !important;
  color: #b42318 !important;
  border: 1px solid #e2b8b4 !important;
}

.remove-btn:hover {
  background: #fff5f4 !important;
  border-color: #b42318 !important;
}
.page-shell {
  padding: 56px 0 80px
}

.page-card,
.dashboard-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 60px #0000000a
}

.page-card {
  padding: 28px
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px
}

.page-title {
  margin: 0;
  font: 600 clamp(28px, 4vw, 42px)/1.1 "Playfair Display"
}

.page-subtitle {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 700px
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px
}

.dashboard-sidebar,
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.sidebar-card {
  background: linear-gradient(180deg, #1d1e66, #2f327f);
  color: #fff;
  border-radius: 24px;
  padding: 24px
}

.sidebar-card p,
.sidebar-card small {
  color: #e6e8ff
}

.sidebar-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px
}

.sidebar-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: var(--bg);
  color: var(--primary)
}

/* Contact & Support card */
.support-card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.support-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600
}

.support-links a:hover {
  color: var(--primary)
}

.support-address {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5
}

/* Refund detail line under a booking row */
.refund-line {
  margin: 8px 16px 16px;
  padding: 14px 16px;
  background: #fbf7f1;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px
}

.refund-line-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px
}

.refund-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 3px 10px
}

.refund-line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.refund-line-grid span {
  display: block;
  font-size: 12px;
  color: var(--muted)
}

.refund-line-grid strong {
  display: block;
  font-size: 14px;
  word-break: break-word
}

.refund-reason {
  grid-column: 1 / -1
}

.refunded-value {
  color: var(--success, #198754)
}

@media (max-width:900px) {
  .refund-line-grid {
    grid-template-columns: 1fr 1fr
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.stat-card {
  background: #fffaf3;
  border: 1px solid #ead8ba;
  border-radius: 18px;
  padding: 18px
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px
}

.booking-group,
.booking-line {
  border: 1px solid var(--border);
  border-radius: 18px
}

.booking-group {
  overflow: hidden;
  margin-bottom: 18px
}

.booking-group-head,
.booking-line {
  padding: 18px
}

.booking-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #fcfbf8;
  border-bottom: 1px solid var(--border)
}

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
  min-width: 150px
}

.booking-actions .primary-btn,
.booking-actions .outline-btn {
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px
}

.booking-rooms {
  display: grid;
  gap: 12px;
  padding: 16px
}

.booking-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: center;
  background: #fff
}

.booking-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end
}

.booking-line-actions .room-action {
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 8px
}

.danger-btn {
  background: #d9534f;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer
}

.danger-btn:hover {
  filter: brightness(1.05)
}

/* My Bookings modals */
.mb-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .5)
}

.mb-modal.hidden {
  display: none
}

.mb-modal-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow: auto;
  padding: 22px 24px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .4)
}

.mb-modal-title {
  margin: 0 0 14px;
  font: 600 20px "Playfair Display"
}

.mb-modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text)
}

.mb-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px
}

.mb-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical
}

.policy-tiers {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.7
}

.policy-tiers li {
  margin-bottom: 6px
}

/* Paid / estimated-refund summary in the cancel modal */
.cancel-summary {
  background: #fbf7f1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px
}

.cancel-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 3px 0
}

.cancel-summary-row.refund strong {
  color: var(--success, #198754);
  font-size: 16px
}

.cancel-summary-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5
}

/* keep the confirm button looking disabled while loading */
.danger-btn:disabled {
  opacity: .7;
  cursor: not-allowed
}

/* Refresh button on My Bookings */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  align-self: flex-start
}

.refresh-btn .refresh-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1
}

.refresh-btn.is-refreshing {
  opacity: .7;
  cursor: wait
}

.refresh-btn.is-refreshing .refresh-icon {
  animation: refresh-spin .7s linear infinite
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg)
  }
}

.mb-textarea:focus {
  outline: 0;
  border-color: var(--primary)
}

.booking-line span,
.meta-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px
}

.booking-line strong,
.meta-value {
  display: block
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef3ff;
  color: var(--primary)
}

.status-pill.status-confirmed {
  background: #edf9f2;
  color: #1f6b4e
}

.status-pill.status-pending {
  background: #fff6e7;
  color: #a56a13
}

.status-pill.status-cancelled {
  background: #fdeeee;
  color: #a53d3d
}

.empty-state {
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: center;
  color: var(--muted)
}

.form-card {
  padding: 24px
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.profile-form-grid .full {
  grid-column: 1 / -1
}

.form-card label,
.modal-box label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text)
}

.form-card input,
.form-card select,
.form-card textarea,
.modal-box input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff
}

.form-card textarea {
  min-height: 120px;
  resize: vertical
}

.field-help {
  color: var(--muted);
  font-size: 13px
}

@media (max-width:900px) {
  .dashboard-grid,
  .profile-form-grid,
  .stats-grid,
  .booking-line {
    grid-template-columns: 1fr
  }

  .page-head,
  .booking-group-head {
    align-items: start;
    flex-direction: column
  }

  .booking-line-actions {
    justify-content: flex-start;
    margin-top: 6px
  }
}
