@charset "UTF-8";

/* =========================================================
   EBR BASE RESET + TOKENS (scoped)
   ========================================================= */

:where(.ebr-scope, #searchresults, #guest-root, #summary-root),
:where(.ebr-scope, #searchresults, #guest-root, #summary-root) * {
  box-sizing: border-box;
}



:where(.ebr-scope, #searchresults, #guest-root, #summary-root)
:where(table, th, td) {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

:where(.ebr-scope, #searchresults, #guest-root, #summary-root) [hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :where(.ebr-scope, #searchresults, #guest-root, #summary-root) * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

:where(.ebr-scope, #searchresults, #guest-root, #summary-root) {
  --ebr-ink:          inherit;
  --ebr-heading:      inherit;
  --ebr-border:       currentColor;
  --ebr-panel:        transparent;
  --ebr-primary:      var(--wp--preset--color--primary, var(--primary-color, currentColor));
  --ebr-accent:       var(--wp--preset--color--primary, var(--accent, var(--primary-color, currentColor)));

  --ebr-radius:       18px;
  --ebr-radius-sm:    12px;

  --ebr-shadow-1:     0 10px 30px rgba(0,0,0,.06);
  --ebr-shadow-2:     0 16px 44px rgba(0,0,0,.10);

  --ebr-ring:         rgba(255,106,60,.22);
  --ebr-ring-strong:  rgba(255,106,60,.34);

  --ebr-btn-h:        46px;
  --ebr-btn-r:        12px;
  --ebr-btn-pad:      0 22px;

  font-family: calibri, Arial, sans-serif;
  color: var(--ebr-ink);
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  :where(.ebr-scope, #searchresults, #guest-root, #summary-root) {
    --ebr-border: color-mix(in srgb, var(--ebr-primary) 10%, var(--ebr-border));
  }
}

/* =========================================================
   SEARCH BAR (selectors kept stable)
   ========================================================= */

.ebr-scope #searchbody {
  --radius:     12px;
  --radius-sm:  10px;
  --box-h:      46px;

  max-width: 100%;
  margin: 0 auto;
  padding: 14px;
  color: var(--ebr-ink);
  background: var(--ebr-panel);
  border: 1px solid var(--ebr-border);
  border-radius: var(--radius);
  box-shadow: var(--ebr-shadow-1);
  position: relative;
  overflow: visible;
}

.ebr-scope #searchbody::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, currentColor 8%, transparent),
    transparent
  );
  opacity: .85;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  .ebr-scope #searchbody::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 1px);
    pointer-events: none;
    background:
      radial-gradient(
        1200px 220px at 20% -10%,
        color-mix(in srgb, var(--ebr-accent) 18%, transparent),
        transparent 60%
      ),
      radial-gradient(
        900px 220px at 85% 0%,
        color-mix(in srgb, var(--ebr-accent) 10%, transparent),
        transparent 55%
      );
    opacity: .9;
  }
}

.ebr-scope #searchtable {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: separate !important;
  border-spacing: 12px 8px !important;
  position: relative;
  z-index: 1;
}

.ebr-scope #searchtable td { vertical-align: top; }
.ebr-scope #searchtable td.ebr-cell--submit { vertical-align: middle; }
.ebr-scope #searchtable td:last-child { width: 1%; white-space: nowrap; }

.ebr-scope .ebr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 18px;
  margin-bottom: 8px;
}

.ebr-scope .droplabel,
.ebr-scope #numnights {
  font: 15px/1 calibri;
  color: var(--ebr-ink);
  letter-spacing: .2px;
}

.ebr-scope #datetitle .droplabel {
  font-weight: 700;
  color: var(--ebr-heading);
}

.ebr-scope #dateselector,
.ebr-scope #guestselector,
.ebr-scope #promoselector {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--box-h);
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--ebr-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .ebr-scope #dateselector,
  .ebr-scope #guestselector,
  .ebr-scope #promoselector {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
  }
}

.ebr-scope #dateselector { width: 430px; }
.ebr-scope #guestselector { width: 200px; cursor: pointer; }
.ebr-scope #promoselector { width: 200px; cursor: pointer; }

.ebr-scope #dateselector:hover,
.ebr-scope #guestselector:hover,
.ebr-scope #promoselector:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.9);
}

.ebr-scope #dateselector:focus-within,
.ebr-scope #guestselector:focus-within,
.ebr-scope #promoselector:focus-within {
  border-color: var(--ebr-primary);
  box-shadow: 0 0 0 4px var(--ebr-ring), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-1px);
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  .ebr-scope #dateselector:focus-within,
  .ebr-scope #guestselector:focus-within,
  .ebr-scope #promoselector:focus-within {
    border-color: color-mix(in srgb, var(--ebr-primary) 55%, var(--ebr-border));
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--ebr-primary) 22%, transparent),
      inset 0 1px 0 rgba(255,255,255,.9);
  }
}

.ebr-scope #dategroup { display: flex; align-items: center; gap: 10px; }
.ebr-scope .ebr-datewrap { display: flex; align-items: center; gap: 6px; }

.ebr-scope #dateselector input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font: 17px/1 calibri;
  color: var(--ebr-heading);
  width: 150px;
  text-align: center;
  box-shadow: none !important;
}

.ebr-scope #dateselector input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .8;
  margin-left: 6px;
}

.ebr-scope .ebr-nav {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  line-height: 1;
  font: 18px/1 calibri;
  color: var(--ebr-heading) !important;
  border-radius: 10px;
  cursor: pointer;
  transition: background .14s ease, transform .14s ease, box-shadow .14s ease;
}

.ebr-scope .ebr-nav:hover { background: rgba(0,0,0,.06); transform: translateY(-1px); }
.ebr-scope .ebr-nav:active { transform: translateY(0); }

.ebr-scope .ebr-nav:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--ebr-ring);
}

.ebr-scope .ebr-sep { font: 18px/1 calibri; color: rgba(0,0,0,.28); }

.ebr-scope #searchgroup {
  display: flex;
  align-items: stretch;
  padding: 0;
  width: 120px;
  height: var(--box-h);
}

.ebr-scope #daterange { position: absolute; left: -9999px; }

/* popups */
.ebr-scope .ebr-pop {
  position: fixed;
  z-index: 99999;
  background: var(--ebr-panel);
  border: 1px solid var(--ebr-border);
  border-radius: var(--ebr-radius);
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  padding: 14px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform-origin: top left;
  animation: ebrPopIn .14s ease;
}

@keyframes ebrPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ebr-scope .ebr-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.ebr-scope .ebr-line select {
  width: 150px;
  height: 40px;
  border: 1px solid var(--ebr-border);
  border-radius: 10px;
  padding: 0 10px;
  font: 15px/1 calibri;
  color: var(--ebr-heading);
  background: #fff;
  outline: 0;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.ebr-scope .ebr-line select:focus {
  border-color: var(--ebr-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ebr-accent) 20%, transparent);
}

.ebr-scope .ebr-field {
  display: block;
  height: 42px;
  max-width: 100%;
  border: 1px solid var(--ebr-border);
  border-radius: 12px;
  font: 16px/1 calibri;
  color: var(--ebr-heading);
  background: #e4e4e4;
  margin: 8px 0 12px;
  outline: 0;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.ebr-scope .ebr-field:focus {
  border-color: var(--ebr-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ebr-accent) 20%, transparent);
}

.ebr-scope .ebr-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  margin: 8px 0 10px;
  padding: 11px 12px;
  font: 16px/1.15 calibri;
  color: #fff;
  background: var(--ebr-primary);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  .ebr-scope .ebr-option {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--ebr-primary) 92%, #ffffff),
      color-mix(in srgb, var(--ebr-primary) 86%, #000000)
    );
  }
}

.ebr-scope .ebr-option:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.ebr-scope .ebr-option:active { transform: translateY(0); }

/* =========================================================
   BUTTONS (shared)
   ========================================================= */

:where(.ebr-scope, #searchresults, #guest-root, #summary-root)
:where(
  #searchresults .ebr-rate-select,
  .ebr-cart-clear,
  .ebr-cart-remove,
  .ebr-cart-checkout,
  #guest-root .btn,
  #ebr-rooms-modal .ebr-rooms-confirm,
  #summary-root .btn
) {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ebr-btn-h);
  padding: var(--ebr-btn-pad);
  border-radius: var(--ebr-btn-r);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  font: 16px/1 calibri;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}

:where(.ebr-scope, #searchresults, #guest-root, #summary-root)
:where(
  
  #searchresults .ebr-rate-select,
  .ebr-cart-clear,
  .ebr-cart-remove,
  .ebr-cart-checkout,
  #guest-root .btn,
  #ebr-rooms-modal .ebr-rooms-confirm,
  #summary-root .btn
):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

:where(.ebr-scope, #searchresults, #guest-root, #summary-root)
:where(
  
  #searchresults .ebr-rate-select,
  .ebr-cart-clear,
  .ebr-cart-remove,
  .ebr-cart-checkout,
  #guest-root .btn,
  #ebr-rooms-modal .ebr-rooms-confirm,
  #summary-root .btn
):active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

:where(.ebr-scope, #searchresults, #guest-root, #summary-root)
:where(
  
  #searchresults .ebr-rate-select,
  .ebr-cart-clear,
  .ebr-cart-remove,
  .ebr-cart-checkout,
  #guest-root .btn,
  #ebr-rooms-modal .ebr-rooms-confirm,
  #summary-root .btn
):focus-visible {
  outline: 0;
  box-shadow: 0 0 0 5px var(--ebr-ring-strong), 0 14px 34px rgba(0,0,0,.18);
}

.ebr-scope #searchbutton { min-width: 120px; width: 100%; }
#searchresults .ebr-rate-select { min-width: 132px; }
.ebr-cart-checkout { width: 100%; margin-top: 10px; }

.ebr-cart-actions { align-items: stretch; }

.ebr-cart-clear,
.ebr-cart-remove {
  height: var(--ebr-btn-h) !important;
  min-height: var(--ebr-btn-h) !important;
  padding: var(--ebr-btn-pad) !important;
  line-height: 1;
}

/* =========================================================
   RESULTS SHELL + LIST + CARDS
   ========================================================= */

:where(#searchresults, .ebr-results-shell) {
  max-width: 1120px;
  margin: 32px auto 48px;
  padding: 0 16px 24px;
  font-family: inherit;
  color: var(--ebr-ink);
}

:where(#searchresults, .ebr-results-shell) .ebr-error,
:where(#searchresults, .ebr-results-shell) .ebr-results-state {
  padding: 12px 14px;
  border: 1px solid var(--ebr-border);
  border-radius: var(--ebr-radius-sm);
  background: rgba(0,0,0,.02);
  font-size: 14px;
}

:where(#searchresults, .ebr-results-shell) .ebr-wrap-results {
  margin-top: 8px;
  padding-top: 16px;
}

:where(#searchresults, .ebr-results-shell) .ebr-results-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

:where(#searchresults, .ebr-results-shell) .ebr-card {
  background: var(--ebr-panel);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--ebr-radius);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  margin: 20px;
}

:where(#searchresults, .ebr-results-shell) .ebr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 56px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.10);
}

:where(#searchresults, .ebr-results-shell) .ebr-card__media {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,.02);
  aspect-ratio: 4 / 3;
}

:where(#searchresults, .ebr-results-shell) .ebr-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 50% 35%, rgba(0,0,0,.04), rgba(0,0,0,0));
  pointer-events: none;
}

:where(#searchresults, .ebr-results-shell) .ebr-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01) translateZ(0);
  transition: transform .25s ease, filter .25s ease;
}

:where(#searchresults, .ebr-results-shell) .ebr-card:hover .ebr-card__media img {
  transform: scale(1.05) translateZ(0);
  filter: saturate(1.02) contrast(1.02);
}

:where(#searchresults, .ebr-results-shell) .ebr-card__media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

:where(#searchresults, .ebr-results-shell) .ebr-card__media:hover .ebr-card__media-badge {
  background: rgba(0,0,0,.78);
}

:where(#searchresults, .ebr-results-shell) .ebr-card__body {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:where(#searchresults, .ebr-results-shell) .ebr-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--ebr-heading);
  letter-spacing: .2px;
}

:where(#searchresults, .ebr-results-shell) .ebr-card__summary {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgba(0,0,0,.55);
}

:where(#searchresults, .ebr-results-shell) .ebr-card__rates {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) ;
  column-gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,.07);
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-row:first-child { border-top: none; }

:where(#searchresults, .ebr-results-shell) .ebr-rate-label {
  font-size: 18px;
  font-weight: 900;
  color: var(--ebr-heading);
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-note {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(0,0,0,.70);
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-note-main p { margin: 0 0 4px; }
:where(#searchresults, .ebr-results-shell) .ebr-rate-note-main ul,
:where(#searchresults, .ebr-results-shell) .ebr-rate-note-main ol { margin: 4px 0 0 18px; padding: 0; }

:where(#searchresults, .ebr-results-shell) .ebr-rate-note-max {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ebr-heading);
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-price {
  text-align: right;
  white-space: nowrap;
  color: var(--ebr-heading);
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-small {
  display: block;
  font-size: 11px;
  opacity: .82;
  margin-bottom: 2px;
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-amount {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
}

:where(#searchresults, .ebr-results-shell) .ebr-rate-cta { text-align: right; }
:where(#searchresults, .ebr-results-shell) .ebr-card__no-rate {
  padding-top: 8px;
  font-size: 14px;
  color: rgba(0,0,0,.6);
}

@media (min-width: 860px) {
  :where(#searchresults, .ebr-results-shell) .ebr-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }
  :where(#searchresults, .ebr-results-shell) .ebr-card__media {
    min-height: 220px;
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
  }
  :where(#searchresults, .ebr-results-shell) .ebr-card__body { padding: 18px 22px 22px; }
}

/* =========================================================
   CART (inline results shell)
   ========================================================= */

.ebr-results-shell { margin-top: 16px; }

.ebr-results-shell.ebr-results-shell--has-cart {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 340px);
  gap: 18px;
  align-items: flex-start;
}

.ebr-results-shell .ebr-results { min-width: 0; }

.ebr-cart { width: 100%; max-width: 340px; }
.ebr-cart.ebr-cart--empty { display: none; }

.ebr-results-shell .ebr-cart {
  position: sticky;
  top: 120px;
}

.ebr-cart {
  background: var(--ebr-panel);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--ebr-radius);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
  overflow: hidden;
}

.ebr-cart-header {
  padding: 14px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.015);
}

.ebr-cart-title { font-weight: 900; color: var(--ebr-heading); }

.ebr-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: var(--ebr-primary);
  color: #fff;
}

.ebr-cart-body {
  padding: 12px 14px 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ebr-cart-item {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  padding: 10px 12px;
  background: #fff;
}

.ebr-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ebr-cart-row:last-child { margin-bottom: 0; }

.ebr-cart-name { font-weight: 900; color: var(--ebr-heading); }
.ebr-cart-meta { font-size: 12px; color: rgba(0,0,0,.62); }

.ebr-cart-footer {
  margin-top: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.012);
}

.ebr-cart-total-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ebr-cart-total { font-size: 18px; }

.ebr-cart-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}

/* =========================================================
   GALLERY (isolated) - UPDATED FOR GRID & NAV
   ========================================================= */

/* keep gallery isolated from scope reset */
#ebr-gallery,
#ebr-gallery * { box-sizing: border-box; }

#ebr-gallery {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;

  --ebr-ink:      var(--body-text-color, #5f5f5f);
  --ebr-heading:  var(--heading-text-color, #2b2b2b);
  --ebr-border:   var(--border-color, #cfcfcf);
  --ebr-panel:    var(--widget-bg, #ffffff);
  --ebr-accent:   var(--primary-color, #ff6a3c);

  font-family: calibri, Arial, sans-serif;
  color: var(--ebr-ink);
}

#ebr-gallery.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#ebr-gallery .ebr-gallery__backdrop {
  position: absolute;
  inset: 0;
}

@supports (backdrop-filter: blur(1px)) {
  #ebr-gallery .ebr-gallery__backdrop {
    backdrop-filter: blur(4px);
  }
}

/* --- THE MAIN DIALOG --- */
#ebr-gallery .ebr-gallery__dialog {
  position: relative;
  z-index: 1;

  /* Wider to accommodate side-by-side layout */
  width: min(1100px, 96vw);
  max-height: calc(100vh - 36px);

  background: var(--ebr-panel);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;

  box-shadow:
    0 30px 90px rgba(0,0,0,.55),
    0 0 0 1px rgba(0,0,0,.25);

  overflow: hidden;
  display: flex;
  flex-direction: column;

  transform-origin: center;
  animation: ebrGalleryIn .16s ease;
}

@keyframes ebrGalleryIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- THE CLOSE BUTTON --- */
#ebr-gallery .ebr-gallery__close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 10; /* Keep above sidebar content */

  width: 36px;
  height: 36px;

  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.92);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;
  color: rgba(0,0,0,.62);

  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transition: all .14s ease;
}

#ebr-gallery .ebr-gallery__close:hover {
  transform: translateY(-1px);
  color: rgba(0,0,0,.92);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  background: #fff;
}

#ebr-gallery .ebr-gallery__grid {
  display: flex;
  flex-direction: row;
  height: clamp(400px, 80vh, 750px);
}

/* --- LEFT SIDE: IMAGES --- */
#ebr-gallery .ebr-gallery__left {
  flex: 1 1 65%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(0,0,0,.02);
  border-right: 1px solid rgba(0,0,0,.08);
  min-width: 0; /* Prevents flexbox blowouts */
}

/* The Main Image Stage */
#ebr-gallery .ebr-gallery__stage {
  position: relative;
  flex: 1;
  border-radius: 12px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.15);
}
#ebr-gallery .ebr-gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#ebr-gallery .ebr-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Image Navigation Arrows */
#ebr-gallery .ebr-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: all 0.2s;
  z-index: 5;
}

#ebr-gallery .ebr-gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
#ebr-gallery .ebr-gallery__nav--prev { left: 15px; }
#ebr-gallery .ebr-gallery__nav--next { right: 15px; }

/* Thumbnail Strip */
#ebr-gallery .ebr-gallery__thumbs-wrap {
  margin-top: 15px;
  height: 70px;
  flex-shrink: 0;
}

#ebr-gallery .ebr-gallery__thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 15px;
  height: 70px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for thumbs */
#ebr-gallery .ebr-gallery__thumbs::-webkit-scrollbar { height: 6px; }
#ebr-gallery .ebr-gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 10px; }

#ebr-gallery .ebr-gallery__thumb {
  flex: 0 0 80px;
  height: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  transition: all 0.2s ease;
}

#ebr-gallery .ebr-gallery__thumb:hover { opacity: 0.9; }
#ebr-gallery .ebr-gallery__thumb.is-active {
  border-color: var(--ebr-accent);
  opacity: 1;
}

#ebr-gallery .ebr-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- RIGHT SIDE: INFO & AMENITIES --- */
#ebr-gallery .ebr-gallery__right {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 20px;
}

#ebr-gallery .ebr-gallery__header {
  margin-bottom: 20px;
}

#ebr-gallery .ebr-gallery__title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--ebr-heading);
  line-height: 1.2;
}

#ebr-gallery .ebr-gallery__amenities-wrap {
  margin-top: 10px;
}

#ebr-gallery .ebr-gallery__amenities-h {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--ebr-heading);
  padding: 7px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}

/* Your original beautiful bullet amenities, adapted for the sidebar */
#ebr-gallery .ebr-gallery__amenities {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2; /* 2 columns fits better in the side panel */
  column-gap: 20px;
}

#ebr-gallery .ebr-gallery__amenities li {
  break-inside: avoid;
  position: relative;
  margin: 0 0 6px 0;
  padding: 6px 0 6px 18px;
  color: var(--ebr-heading);
  font-size: 14px;
  line-height: 1.3;
  border-bottom: 1px dotted rgba(0,0,0,.12);
  transition: background 0.2s, padding-left 0.2s;
}

#ebr-gallery .ebr-gallery__amenities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ebr-accent);
}

#ebr-gallery .ebr-gallery__amenities li:hover {
  background: rgba(0,0,0,.02);
  border-radius: 8px;
  padding-left: 22px;
}

/* --- MOBILE RESPONSIVE --- */
/* --- GALLERY: MOBILE RESPONSIVE --- */
@media (max-width: 860px) {
  #ebr-gallery .ebr-gallery__dialog { width: min(980px, 98vw); }
  
  #ebr-gallery .ebr-gallery__grid {
    flex-direction: column;
    height: 85vh; /* Switch to vertical height */
    overflow-y: auto; /* Overall scroll for the whole modal */
  }
  
  #ebr-gallery .ebr-gallery__left {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 15px;
  }

  #ebr-gallery .ebr-gallery__stage {
    min-height: 250px;
    max-height: clamp(250px, 45vh, 500px); /* Keeps image aspect ratio safe */
  }
  
  #ebr-gallery .ebr-gallery__right {
    flex: 1 1 auto;
    padding: 20px 15px;
    overflow-y: visible; /* Prevents the "double scrollbar" trap on phones */
  }
  
  #ebr-gallery .ebr-gallery__amenities {
    columns: 2; /* Tablets can handle 2 columns */
    column-gap: 20px;
  }
}

@media (max-width: 520px) {
  #ebr-gallery .ebr-gallery__header { 
    margin-bottom: 12px; 
    padding-right: 30px; /* Leave space so close button doesn't overlap text */
  }
  
  #ebr-gallery .ebr-gallery__title { 
    font-size: 20px; 
  }
  
  #ebr-gallery .ebr-gallery__close { 
    right: 12px; 
    top: 10px; 
    background: rgba(255,255,255,.95); 
  }
  
  #ebr-gallery .ebr-gallery__stage { 
    border-radius: 12px; 
  }
  
  #ebr-gallery .ebr-gallery__amenities { 
    columns: 1; /* Phones drop to a single column */
  }
  
  /* Shrink thumbnails slightly on tiny screens */
  #ebr-gallery .ebr-gallery__thumbs-wrap {
    height: 60px;
    margin-top: 12px;
  }
  #ebr-gallery .ebr-gallery__thumb {
    flex: 0 0 65px;
  }
}

/* Ensure images never inherit weird filters from host site */
#ebr-gallery img {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* stop weird per-letter wrapping */
:where(#searchresults, .ebr-results-shell) .ebr-rate-label{
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 1100px){
  :where(#searchresults, .ebr-results-shell) .ebr-rate-row{
    grid-template-columns: minmax(0, 1fr) auto; /* label + price */
    row-gap: 8px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-rate-cta{
    grid-column: 1 / -1;        /* button goes full width row */
    justify-self: end;
    margin-top: 6px;
  }
}

@media (max-width: 860px) {
  #ebr-gallery .ebr-gallery__dialog { width: min(980px, 98vw); }
  #ebr-gallery .ebr-gallery__amenities { columns: 2; column-gap: 26px; }
  #ebr-gallery .ebr-gallery__stage { max-height: clamp(220px, 52vh, 620px); }
}

@media (max-width: 520px) {
  #ebr-gallery .ebr-gallery__header { font-size: 20px; padding: 16px 50px 12px 16px; }
  #ebr-gallery .ebr-gallery__body { padding: 0 16px 16px; }
  #ebr-gallery .ebr-gallery__close { right: 12px; top: 10px; }
  #ebr-gallery .ebr-gallery__stage { border-radius: 14px; padding: 10px; max-height: clamp(200px, 48vh, 520px); }
  #ebr-gallery .ebr-gallery__stage img,
  #ebr-gallery .ebr-gallery__stage video,
  #ebr-gallery .ebr-gallery__stage iframe { border-radius: 10px; }
  #ebr-gallery .ebr-gallery__amenities { columns: 1; }
}

#ebr-gallery img{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* =========================================================
   ROOMS MODAL
   ========================================================= */

#ebr-rooms-modal {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99998;
  padding: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease;
}

#ebr-rooms-modal.is-open { display: flex; opacity: 1; }

#ebr-rooms-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#ebr-rooms-modal .ebr-rooms-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  margin: auto;
  padding: 24px 24px 20px;
  border-radius: var(--ebr-radius);
  background: var(--wp--preset--color--base, var(--widget-bg, Canvas));
  box-shadow: 0 24px 80px rgba(0,0,0,.30);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  overflow: auto;
  animation: ebrSheetIn .16s ease;
}

@keyframes ebrSheetIn {
  from { transform: translateY(10px) scale(.99); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

#ebr-rooms-modal .ebr-rooms-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--ebr-heading);
}

#ebr-rooms-modal .ebr-rooms-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(0,0,0,.70);
}

#ebr-rooms-modal .ebr-rooms-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: rgba(0,0,0,.55);
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

#ebr-rooms-modal .ebr-rooms-close:hover {
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.85);
  transform: translateY(-1px);
}

#ebr-rooms-modal .ebr-rooms-control,
#ebr-rooms-modal .ebr-rooms-actions {
  display: flex;
  justify-content: center;
  align-self: center;
}

#ebr-rooms-modal .ebr-rooms-control {
  display: inline-flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ebr-border);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

#ebr-rooms-modal .ebr-rooms-input {
  width: 78px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--ebr-border);
  border-right: 1px solid var(--ebr-border);
  font-size: 16px;
  font-weight: 900;
  appearance: textfield;
  -moz-appearance: textfield;
  outline: 0;
}

#ebr-rooms-modal .ebr-rooms-input::-webkit-outer-spin-button,
#ebr-rooms-modal .ebr-rooms-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#ebr-rooms-modal .ebr-rooms-minus,
#ebr-rooms-modal .ebr-rooms-plus {
  width: 48px;
  font-size: 20px;
  cursor: pointer;
  font-weight: 900;
}

/* =========================================================
   GUEST ROOT
   ========================================================= */

#guest-root .wrap {
  max-width: 1120px;
  margin: 32px auto 48px;
  padding: 0 16px 32px;
  color: var(--ebr-ink);
}

#guest-root .header h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
  color: var(--ebr-heading);
}

#guest-root .page.has-cart {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: flex-start;
}

#guest-root .form {
  background: var(--ebr-panel);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
  padding: 18px 20px 20px;
}

#guest-root .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 12px;
}

#guest-root .field { display: flex; flex-direction: column; gap: 6px; }
#guest-root .field.span-2 { grid-column: span 2; }

#guest-root .label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ebr-heading);
}

#guest-root .input,
#guest-root .select,
#guest-root .textarea {
  border: 1px solid var(--ebr-border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ebr-heading);
  background:#f7f7f7;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

#guest-root .textarea { min-height: 74px; resize: vertical; }

#guest-root .input:focus,
#guest-root .select:focus,
#guest-root .textarea:focus {
  border-color: var(--ebr-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ebr-accent) 20%, transparent);
}

#guest-root .required-missing { border-color: #bb2d3b !important; background: #fff5f5; }
#guest-root .help { font-size: 11px; margin-top: 2px; color: #bb2d3b; }
#guest-root .help.hidden { display: none; }

#guest-root .phone-row.is-mobile { grid-template-columns: 110px 80px minmax(0, 1fr) 36px; }

#guest-root .wapp-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(0,0,0,.03);
}

#guest-root .wapp-wrap.wapp-disabled {
  opacity: .4;
  cursor: default;
  background: rgba(0,0,0,.02);
}

#guest-root .icon-whats { display: block; max-width: 24px; height: auto; }

#guest-root .actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#guest-root .page-aside {
  background: var(--ebr-panel);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
  padding: 14px 16px 18px;
  font-size: 14px;
  line-height: 1.4;
  position: sticky;
  top: 120px;
}

#guest-root .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 900;
  color: var(--ebr-heading);
}

#guest-root .note { font-size: 13px; color: rgba(0,0,0,.7); margin-bottom: 8px; }
#guest-root .divider { border: 0; border-top: 1px solid rgba(0,0,0,.08); margin: 10px 0 12px; }

#guest-root .sum-body { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }

#guest-root .sum-item {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  padding: 10px 12px;
  background: #fff;
}

#guest-root .sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 13px;
}
#guest-root .sum-row:last-child { margin-bottom: 0; }

#guest-root .sum-meta { font-size: 12px; color: rgba(0,0,0,.62); }

#guest-root .totals {
  margin-top: 6px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 10px;
}

#guest-root .totals .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

#guest-root .totals .line.total span:last-child {
  font-weight: 900;
  font-size: 15px;
}

#guest-root .field.section {
  grid-column: span 2;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

#guest-root .field.section .section-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ebr-heading);
}
#guest-root .phone-row{
  display:grid;
  grid-template-columns:140px 80px 110px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
#guest-root .phone-row.is-mobile{
  grid-template-columns:140px 80px minmax(0,1fr) auto;
}
#guest-root .phone-row > *{
  min-width:0;
}
#guest-root #g_cc,
#guest-root #g_area,
#guest-root #g_phone,
#guest-root #g_phonetype{
  width:100%;
  box-sizing:border-box;
}
#guest-root #g_area_wrap{
  display:block;
  min-width:0;
}
#guest-root .phone-row.is-mobile #g_area_wrap{
  display:none;
}
#guest-root #g_whatsapp_wrap{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  justify-self:start;
}
body.ebr-step-guest #bookbox__results,
body.ebr-step-summary #bookbox__results {
    display: none !important;
}
/* =========================================================
   SUMMARY ROOT
   ========================================================= */

#summary-root {
  color: var(--ebr-ink);

  --sum-heading:   var(--ebr-heading);
  --sum-muted:     var(--body-text-color-muted, rgba(0,0,0,.65));
  --sum-border:    var(--ebr-border);
  --sum-accent:    var(--ebr-primary);
  --sum-panel-bg:  var(--ebr-panel);
  --sum-banner-bg: rgba(0,0,0,.03);
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  #summary-root {
    --sum-banner-bg: color-mix(in srgb, var(--ebr-primary) 14%, rgba(0,0,0,0));
  }
}

#summary-root .book-summary {
  max-width: 1120px;
  margin: 32px auto 48px;
  background: var(--sum-panel-bg);
  border: 1px solid var(--sum-border);
  border-radius: var(--ebr-radius);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

#summary-root .book-summary > .header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--sum-banner-bg);
  border-bottom: 1px solid var(--sum-border);
}

#summary-root .book-summary > .header h1{
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sum-accent);
}

/* Confirmation pill next to title */
#summary-root .sum-refpill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--sum-border);
  background: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 900;
  color: var(--sum-heading);
}

#summary-root .sum-refpill .muted{
  color: var(--sum-muted);
  font-weight: 900;
}

#summary-root .book-summary-main,
#summary-root .book-summary-side { padding: 18px 24px 24px; }

#summary-root .book-summary-side {
  border-top: 1px solid var(--sum-border);
  padding-top: 10px;
}

#summary-root .panel { background: transparent; border: 0; box-shadow: none; padding: 14px 0 6px; }
#summary-root .panel + .panel { margin-top: 10px; }

#summary-root .section-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sum-accent);
  border-bottom: 1px solid var(--sum-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#summary-root .hidden { display: none !important; }

#summary-root .kv { display: flex; flex-direction: column; font-size: 13px; }

#summary-root .kv .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--sum-border);
}
#summary-root .kv .row:last-child { border-bottom: none; }

#summary-root .kv .key { flex: 0 0 45%; color: var(--sum-muted); }
#summary-root .kv .val {
  flex: 1 1 auto;
  text-align: right;
  font-weight: 900;
  color: var(--sum-heading);
  word-break: break-word;
}

#summary-root .table {
  margin-top: 6px;
  font-size: 13px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 90px minmax(0, 1.2fr);
}

#summary-root .table > .th {
  padding: 8px 0;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--sum-muted);
  border-bottom: 1px solid var(--sum-border);
}

#summary-root .table .tr { display: contents; }

#summary-root .table .cell {
  padding: 8px 0;
  border-bottom: 1px dotted var(--sum-border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#summary-root .table .cell:nth-child(4n),
#summary-root .table .cell.text-right { justify-content: flex-end; text-align: right; }

#summary-root .table .cell:nth-child(4n) { flex-direction: column; align-items: flex-end; }

#summary-root .table .cell .muted { font-size: 11px; color: var(--sum-muted); margin-bottom: 2px; }
#summary-root .table .cell .val { font-weight: 900; color: var(--sum-heading); }

#summary-root #sumPaymentPanel { padding-top: 18px; }

#summary-root #sumPaymentPanel .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--sum-border);
  font-size: 13px;
}

#summary-root #sumGrand { font-weight: 900; font-size: 18px; color: var(--sum-heading); }

#summary-root .pay-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }

#summary-root .sbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--sum-border);
  background: rgba(0,0,0,.02);
  font-size: 13px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

#summary-root .sbadge:hover { transform: translateY(-1px); background: rgba(0,0,0,.03); }
#summary-root .sbadge input[type="radio"] { margin: 0; }
#summary-root .sbadge span { white-space: nowrap; }

#summary-root #sumError.error { margin-top: 8px; font-size: 12px; color: #bb2d3b; }

#summary-root .actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }

#summary-root .book-summary-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 12px;
}

#summary-root .book-summary-main .panel { grid-column: 1 / -1; }
#summary-root .book-summary-main .panel:nth-child(1),
#summary-root .book-summary-main .panel:nth-child(2) {
  grid-column: span 1;
  padding-left: 12px;
  padding-right: 12px;
}

/* Payform modal shell (with backdrop) */
#summary-root .smodal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  z-index: 999999;
}
#summary-root .smodal.hidden { display: none !important; }
#summary-root #sumTncModal .ssheet{
  width: min(900px, 96vw);
  background: white;
}

/* keep the terms content behaving */
#summary-root #sumTncText{
  overflow-wrap: break-word;
  word-break: normal;
}
#sumPayModal .ssheet {
  width: min(520px, 96vw);
  height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--ebr-panel);
  border-radius: var(--ebr-radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.30);
}
#summary-root .smodal .ssheet{
  width: min(720px, 96vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
#sumPayModal .ssheet .body { flex: 1; min-height: 0; overflow: hidden; padding: 0; }

#sumPayModal #sumPayFrame {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  border: 0;
  display: block;
  background: #fff;
}

#sumPayModal .ssheet .foot {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: var(--ebr-panel);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#summary-root .tnc-link,
#summary-root .tnc-block a {
  color: var(--ebr-accent);
  text-decoration: underline;
  font-weight: 900;
}

@media print {
  @page {
    margin: 5mm;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  #summary-root {
    margin: 0 !important;
    padding: 0 !important;
  }

  #summary-root > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .booking-summary,
  .summary-wrap,
  .summary-panel,
  .ebr-card,
  .card,
  .panel {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1124px) {
  .ebr-scope #searchtable { border-spacing: 10px !important; }

  .ebr-scope #searchtable > tbody {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
  }

  .ebr-scope #searchtable > tbody > tr { display: contents; }

  .ebr-scope #searchtable td:nth-child(1) { flex: 1 1 100%; }
  .ebr-scope #searchtable td:nth-child(2) { flex: 1 1 360px; min-width: 300px; }
  .ebr-scope #searchtable td:nth-child(3) { flex: 1 1 300px; min-width: 240px; }
  .ebr-scope #searchtable td.ebr-cell--submit { flex: 0 0 180px; align-self: flex-end; }

  .ebr-scope #dateselector,
  .ebr-scope #guestselector,
  .ebr-scope #promoselector {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ebr-scope #searchgroup { height: 52px; width: 100%; }
  .ebr-scope #searchbutton { width: 100%; height: 52px; }
}

@media (max-width: 860px) {
  .ebr-scope #searchtable { display: block; border-spacing: 0 !important; }

  .ebr-scope #searchtable > tbody,
  .ebr-scope #searchtable tr { display: block; }

  .ebr-scope #searchtable td {
    display: block;
    width: 100% !important;
    margin: 0 0 12px 0;
    padding: 0 !important;
    position: relative;
  }

  .ebr-scope #dateselector,
  .ebr-scope #guestselector,
  .ebr-scope #promoselector {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 54px;
  }

  .ebr-scope #searchtable td:last-child { white-space: normal; }
  .ebr-scope #searchgroup { width: 100%; height: 54px; }
  .ebr-scope #searchbutton { width: 100%; height: 54px; }

  .ebr-scope .ebr-head { margin-bottom: 8px; }

  .ebr-scope .ebr-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    width: auto;
    max-width: none;
    max-height: 52vh;
    overflow: auto;
    margin: 0;
  }

  .ebr-results-shell.ebr-results-shell--has-cart { display: block; }
  .ebr-results-shell .ebr-cart { position: static; width: 100%; max-width: none; margin-top: 20px; }

  :where(#searchresults, .ebr-results-shell) .ebr-card { display: block; }
  :where(#searchresults, .ebr-results-shell) .ebr-rate-row { grid-template-columns: minmax(0, 1fr); }

  :where(#searchresults, .ebr-results-shell) .ebr-rate-cta { margin-top: 8px; }
}

@media (max-width: 768px) {
  #guest-root .page.has-cart {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #guest-root .page-aside {
    position: static;
    margin-top: 0;
    order: 2;
  }

  #guest-root .form {
    padding: 14px;
  }

  #guest-root .form-grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  #guest-root .field.span-2 {
    grid-column: span 1;
  }

  #guest-root .phone-row,
  #guest-root .phone-row.is-mobile {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }

  #guest-root #g_area_wrap {
    display: block;
  }

  #guest-root #g_whatsapp_wrap {
    white-space: normal;
  }

  #guest-root .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #guest-root .actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  #guest-root .wrap {
    padding: 0 12px 24px;
  }

  #guest-root .header h1 {
    font-size: 20px;
  }

  #guest-root .label {
    font-size: 11px;
  }

  #guest-root .input,
  #guest-root .select,
  #guest-root .textarea {
    font-size: 16px;
  }

  #guest-root .page-aside {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .ebr-scope #dateselector { height: auto; align-items: stretch; }
  .ebr-scope #dategroup { flex-wrap: wrap; gap: 8px 10px; width: 100%; }
  .ebr-scope .ebr-sep { display: none; }

  .ebr-scope .ebr-datewrap {
    flex: 1 1 160px;
    min-width: 0;
    justify-content: space-between;
  }

  .ebr-scope #dateselector input[type="date"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  #guest-root .page.has-cart { grid-template-columns: minmax(0, 1fr); }
  #guest-root .page-aside { position: static; margin-top: 20px; }

  #guest-root .form-grid { grid-template-columns: minmax(0, 1fr); }
  #guest-root .field.span-2 { grid-column: span 1; }
  #guest-root .phone-row { grid-template-columns: 1fr 1fr; }

  #guest-root .actions { flex-direction: column-reverse; align-items: stretch; }
  #summary-root .actions { flex-direction: column-reverse; align-items: stretch; }

  #summary-root .kv .row { flex-direction: column; align-items: flex-start; gap: 6px; }
  #summary-root .kv .val { text-align: left; }
}

@media (max-width: 360px) {
  .ebr-scope .ebr-datewrap { flex-basis: 100%; }
}
.g-whatsapp-label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.g-whatsapp-icon{width:16px;height:16px;object-fit:contain;display:inline-block;}

/* =========================================================
   EXTRA MOBILE POLISH
   Add this at the very bottom
   ========================================================= */

/* safer viewport on phones */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* better touch targets on mobile */
@media (max-width: 768px) {
  :where(.ebr-scope, #searchresults, #guest-root, #summary-root)
  :where(button, .btn, input, select, textarea) {
    min-height: 44px;
  }

  .ebr-scope #searchbody,
  #guest-root .wrap,
  #summary-root .book-summary {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .ebr-scope #searchbody {
    padding: 12px;
    border-radius: 12px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-card__body {
    padding: 14px 14px 16px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-card__title {
    font-size: 18px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-rate-label {
    font-size: 16px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-rate-amount {
    font-size: 18px;
  }

  #guest-root .form,
  #guest-root .page-aside {
    padding: 14px;
  }

  #summary-root .book-summary > .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  #summary-root .sum-refpill {
    width: 100%;
    justify-content: flex-start;
  }
}

/* phone-sized screens */
@media (max-width: 640px) {
  .ebr-scope .droplabel,
  .ebr-scope #numnights {
    font-size: 13px;
  }

  .ebr-scope #dateselector,
  .ebr-scope #guestselector,
  .ebr-scope #promoselector {
    padding: 8px;
    border-radius: 10px;
  }

  .ebr-scope #dateselector input[type="date"] {
    font-size: 16px; /* prevents weird zoom on iPhone */
  }

  .ebr-scope .ebr-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 70vh;
    border-radius: 16px;
  }

  .ebr-cart-header,
  .ebr-cart-body,
  .ebr-cart-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ebr-cart-actions {
    grid-template-columns: 1fr;
  }

  .ebr-cart-clear,
  .ebr-cart-remove,
  .ebr-cart-checkout {
    width: 100%;
  }

  #guest-root .header h1 {
    font-size: 20px;
  }

  #guest-root .label {
    font-size: 11px;
  }

  #guest-root .input,
  #guest-root .select,
  #guest-root .textarea {
    font-size: 16px; /* mobile typing comfort */
  }

  #guest-root .phone-row,
  #guest-root .phone-row.is-mobile {
    grid-template-columns: 1fr;
  }

  #guest-root #g_whatsapp_wrap {
    justify-self: start;
  }

  #guest-root .actions,
  #summary-root .actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
  }

  #summary-root .book-summary {
    border-radius: 12px;
  }

  #summary-root .panel {
    padding-top: 10px;
  }
}

/* summary table becomes stacked on small phones */
@media (max-width: 640px) {
  #summary-root .table {
    display: block;
  }

  #summary-root .table > .th {
    display: none;
  }

  #summary-root .table .tr {
    display: block;
    border: 1px solid var(--sum-border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(0,0,0,.01);
  }

  #summary-root .table .cell {
    display: flex;
    justify-content: space-between !important;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dotted var(--sum-border);
    text-align: left !important;
  }

  #summary-root .table .cell:last-child {
    border-bottom: 0;
  }
}

/* very small phones */
@media (max-width: 390px) {
  .ebr-scope #searchbody {
    padding: 10px;
  }

  .ebr-scope .ebr-head {
    margin-bottom: 6px;
  }

  .ebr-scope #searchbutton,
  #searchresults .ebr-rate-select,
  .ebr-cart-checkout,
  #guest-root .btn,
  #summary-root .btn {
    font-size: 15px;
    padding-left: 14px;
    padding-right: 14px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-card__title {
    font-size: 17px;
  }

  :where(#searchresults, .ebr-results-shell) .ebr-rate-note {
    font-size: 13px;
  }

  #summary-root .book-summary > .header h1 {
    font-size: 12px;
  }

  #summary-root #sumGrand {
    font-size: 16px;
  }
}

/* landscape phones */
@media (max-width: 900px) and (orientation: landscape) {
  .ebr-scope .ebr-pop,
  #ebr-rooms-modal .ebr-rooms-sheet,
  #sumPayModal .ssheet,
  #summary-root .smodal .ssheet {
    max-height: 88vh;
  }

  #ebr-gallery .ebr-gallery__dialog {
    max-height: 92vh;
  }
}

/* full-screen feeling for modals on small phones */
@media (max-width: 640px) {
  #ebr-rooms-modal {
    padding: 0;
  }

  #ebr-rooms-modal .ebr-rooms-sheet,
  #sumPayModal .ssheet,
  #summary-root .smodal .ssheet,
  #summary-root #sumTncModal .ssheet {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  #sumPayModal #sumPayFrame {
    min-height: calc(100dvh - 64px);
  }
}

/* safe area for newer phones */
@supports (padding: max(0px)) {
  @media (max-width: 640px) {
    .ebr-scope #searchbody,
    #guest-root .wrap,
    :where(#searchresults, .ebr-results-shell),
    #summary-root .book-summary {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }
}
.sum-tax-message-cell {
  justify-content: flex-end !important;
  display: grid !important;
}
