:root {
  color-scheme: light;
  --tg-bg: var(--tg-theme-bg-color, #f7f2e9);
  --tg-text: var(--tg-theme-text-color, #162329);
  --tg-button: var(--tg-theme-button-color, #162329);
  --ink: #162329;
  --ink-2: #34454b;
  --muted: #778188;
  --cream: #f7f2e9;
  --paper: #fffdf7;
  --line: rgba(22, 35, 41, 0.11);
  --pool: #0f98a6;
  --pool-2: #146d78;
  --coral: #d9654d;
  --sun: #e5ae55;
  --green: #6c9f63;
  --shadow: 0 14px 34px rgba(20, 34, 40, 0.12);
  --shadow-soft: 0 8px 22px rgba(20, 34, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 242, 233, 0.96), rgba(238, 247, 244, 0.95) 48%, #f7f2e9),
    repeating-linear-gradient(135deg, rgba(15, 152, 166, 0.045) 0 1px, transparent 1px 18px);
  color: var(--tg-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 7vw, 4.3rem);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.03;
  font-weight: 930;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 880;
  letter-spacing: 0;
}

p {
  line-height: 1.48;
}

.app-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, rgba(12, 24, 30, 0.82), rgba(12, 24, 30, 0.46) 45%, rgba(12, 24, 30, 0.08)),
    url("assets/victoria-hero.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 54px rgba(20, 34, 40, 0.22);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 660px;
  align-content: center;
  padding: clamp(22px, 5vw, 48px);
  color: #fffdf7;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.eyebrow,
.section-kicker,
.panel-kicker {
  margin: 0;
  color: var(--pool-2);
  font-size: 0.72rem;
  font-weight: 920;
  text-transform: uppercase;
  letter-spacing: 0;
}

.app-hero .eyebrow {
  color: rgba(255, 253, 247, 0.82);
}

.hero-text {
  max-width: 580px;
  margin-bottom: 14px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 1.08rem;
}

.venue-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.venue-line span,
.venue-line a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.13);
  color: rgba(255, 253, 247, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.14);
  color: #fffdf7;
  cursor: pointer;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.hero-action:hover {
  background: rgba(255, 253, 247, 0.22);
}

.service-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  width: min(360px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.14);
  color: #fffdf7;
  backdrop-filter: blur(18px);
}

.service-card div {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  padding: 13px;
  background: rgba(255, 253, 247, 0.08);
}

.service-card strong {
  color: var(--sun);
  font-size: 0.78rem;
}

.service-card span {
  font-size: 0.84rem;
  font-weight: 820;
}

.status-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-grid;
  min-width: 82px;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.16);
  color: #fffdf7;
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 7px;
  border: 1px solid rgba(22, 35, 41, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.tab {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 850;
}

.tab.active {
  background: var(--tg-button);
  color: #fffdf7;
}

.cart-tab b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.74rem;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 30px 14px calc(100px + env(safe-area-inset-bottom));
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head p:not(.section-kicker) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.home-card {
  display: grid;
  min-height: 142px;
  gap: 8px;
  align-content: end;
  padding: 16px;
  border: 1px solid rgba(22, 35, 41, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.home-card.primary-home {
  background: linear-gradient(135deg, var(--ink), #29464d);
  color: #fffdf7;
}

.home-card strong {
  font-size: 1.08rem;
}

.home-card span {
  color: var(--muted);
  line-height: 1.45;
}

.home-card.primary-home span {
  color: rgba(255, 253, 247, 0.76);
}

.today-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.today-strip article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(22, 35, 41, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.today-strip small {
  color: var(--muted);
  font-weight: 800;
}

.today-strip strong {
  color: var(--ink);
}

.category-chips {
  display: flex;
  gap: 8px;
  margin: 0 -4px 18px;
  padding: 0 4px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 840;
  box-shadow: 0 5px 14px rgba(20, 34, 40, 0.05);
}

.category-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf7;
}

.date-rail {
  display: flex;
  gap: 9px;
  margin: -4px -4px 18px;
  padding: 4px 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-rail::-webkit-scrollbar {
  display: none;
}

.date-chip {
  display: grid;
  flex: 0 0 132px;
  gap: 3px;
  min-height: 86px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.date-chip strong {
  font-size: 0.95rem;
}

.date-chip span {
  color: var(--muted);
  font-weight: 800;
}

.date-chip small {
  color: var(--pool-2);
  font-weight: 900;
}

.date-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf7;
}

.date-chip.active span,
.date-chip.active small {
  color: rgba(255, 253, 247, 0.78);
}

select,
input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(22, 35, 41, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 152, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 152, 166, 0.14);
}

textarea {
  resize: vertical;
}

.grid {
  display: grid;
  gap: 14px;
}

.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
}

.item-card,
.bungalow-card,
.promo-card,
.side-panel,
.cart-item,
.payment-box,
.status-view {
  border: 1px solid rgba(22, 35, 41, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-soft);
}

.item-card {
  display: grid;
  min-height: 342px;
  grid-template-rows: 154px minmax(104px, 1fr) auto;
  gap: 13px;
  overflow: hidden;
  padding: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.item-card:hover,
.bungalow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.menu-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-image: url("assets/menu-spread.jpg");
  background-size: 225%;
  background-position: center;
}

.media-pizza {
  background-position: 18% 30%;
}

.media-pepperoni {
  background-position: 35% 47%;
}

.media-drink {
  background-position: 72% 35%;
}

.media-ice {
  background-position: 60% 78%;
}

.media-cocktail {
  background-position: 86% 66%;
}

.prep-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.item-body {
  padding: 0 4px;
}

.category {
  width: fit-content;
  margin-bottom: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 152, 166, 0.1);
  color: var(--pool-2);
  font-size: 0.74rem;
  font-weight: 900;
}

.item-card p,
.promo-card p,
.cart-item p,
.bungalow-card p {
  color: var(--muted);
}

.item-actions,
.cart-actions,
.total-row,
.bungalow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 950;
}

.primary,
.secondary,
.qty-button,
.mobile-summary button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.primary {
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, var(--ink), #283d45);
  color: #fffdf7;
  box-shadow: 0 12px 24px rgba(22, 35, 41, 0.2);
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.62;
  cursor: wait;
}

.secondary,
.qty-button {
  min-height: 42px;
  padding: 0 14px;
  background: var(--ink);
  color: #fffdf7;
}

.secondary.wide {
  width: fit-content;
}

.add-button {
  min-width: 106px;
  border-radius: 999px;
}

.booking-layout,
.cart-layout,
.tickets-layout,
.spa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.ticket-list {
  display: grid;
  gap: 12px;
}

.ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(22, 35, 41, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-soft);
}

.ticket-card.disabled {
  opacity: 0.54;
}

.ticket-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.ticket-buy {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ticket-buy strong {
  white-space: nowrap;
}

.bungalow-grid {
  display: grid;
  gap: 12px;
}

.bungalow-map {
  display: grid;
  grid-template-columns: minmax(104px, 0.62fr) minmax(230px, 1.25fr) minmax(104px, 0.62fr);
  align-items: stretch;
  gap: 10px;
  min-height: 430px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.92), transparent 29%),
    linear-gradient(90deg, rgba(104, 157, 95, 0.14), rgba(244, 225, 184, 0.88) 34%, rgba(224, 243, 238, 0.82) 66%, rgba(104, 157, 95, 0.12)),
    repeating-linear-gradient(0deg, rgba(92, 122, 91, 0.08) 0 1px, transparent 1px 20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.map-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.46);
}

.map-side-right {
  justify-content: space-evenly;
}

.pool-zone {
  display: grid;
  grid-template-rows: 22px minmax(210px, 0.72fr) 22px;
  gap: 7px;
  align-content: center;
}

.pool-deck-line {
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(121, 88, 52, 0.16) 0 14px, rgba(255, 255, 255, 0.32) 14px 16px),
    #dbc99f;
  box-shadow: inset 0 0 0 1px rgba(107, 82, 48, 0.12);
}

.pool-plan {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 10px solid #f1e6ca;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.72), transparent 18%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 5px, transparent 5px 24px),
    linear-gradient(160deg, rgba(79, 205, 222, 0.95), rgba(10, 137, 166, 0.96));
  color: #fffdf7;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.24),
    0 14px 28px rgba(24, 87, 102, 0.18);
}

.pool-plan::before,
.pool-plan::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.pool-plan::before {
  top: 34%;
}

.pool-plan::after {
  bottom: 34%;
}

.pool-shine {
  position: absolute;
  inset: 20px auto auto 22px;
  width: 54px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(1px);
}

.pool-ladder {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 70px;
  height: 18px;
  transform: translateX(-50%);
  border-block: 3px solid rgba(255, 255, 255, 0.72);
  border-inline: 0;
}

.pool-ladder::before,
.pool-ladder::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  height: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.pool-ladder::before {
  left: 20px;
}

.pool-ladder::after {
  right: 20px;
}

.pool-title {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 950;
}

.pool-plan strong {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.84rem;
}

.bungalow-card {
  display: grid;
  min-height: 58px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  justify-items: start;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(247, 235, 206, 0.88));
}

.bungalow-card:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.bungalow-card.selected {
  border-color: rgba(15, 152, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 152, 166, 0.13), var(--shadow);
}

.bungalow-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
}

.bungalow-canopy {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 7px;
  border-radius: 999px;
  background: rgba(65, 93, 63, 0.22);
}

.bungalow-roof {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 36px;
  height: 21px;
  clip-path: polygon(50% 0, 100% 58%, 88% 58%, 88% 100%, 12% 100%, 12% 58%, 0 58%);
  background: #b84d38;
  box-shadow: 0 5px 0 rgba(22, 35, 41, 0.1);
}

.bungalow-body {
  position: absolute;
  left: 8px;
  top: 20px;
  display: grid;
  width: 27px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(22, 35, 41, 0.12);
  border-radius: 0 0 7px 7px;
  background: #fff8e8;
  color: var(--ink);
  font-weight: 950;
}

.bungalow-window {
  position: absolute;
  left: 4px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: rgba(15, 152, 166, 0.35);
  box-shadow: 14px 0 0 rgba(15, 152, 166, 0.35);
}

.bungalow-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  font-size: 0.68rem;
}

.bungalow-posts {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 8px;
  border-left: 2px solid #8f6744;
  border-right: 2px solid #8f6744;
}

.bungalow-card.selected .bungalow-roof {
  background: var(--pool-2);
}

.bungalow-card:disabled .bungalow-roof,
.bungalow-card:disabled .bungalow-body {
  filter: grayscale(0.9);
}

.bungalow-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bungalow-copy strong {
  font-size: 0.74rem;
}

.bungalow-copy small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.bungalow-map-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 152, 166, 0.2);
  border-radius: 8px;
  background: rgba(15, 152, 166, 0.08);
}

.bungalow-map-detail span {
  color: var(--muted);
  font-weight: 780;
}

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.slot {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(108, 159, 99, 0.15);
  color: #40763d;
  font-size: 0.72rem;
  font-weight: 900;
}

.slot.busy {
  background: rgba(217, 101, 77, 0.12);
  color: #a24c3b;
}

.side-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 13px;
  padding: 17px;
}

.panel-kicker {
  margin-bottom: -6px;
}

.side-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.promo-list,
.cart-list {
  display: grid;
  gap: 12px;
}

.price-board {
  display: grid;
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(22, 35, 41, 0.1);
  border-radius: 8px;
  background: rgba(22, 35, 41, 0.1);
  box-shadow: var(--shadow-soft);
}

.price-board-head,
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(255, 253, 247, 0.94);
  padding: 13px 15px;
}

.price-board-head {
  background: linear-gradient(135deg, var(--ink), #23434a);
  color: #fffdf7;
}

.price-board-head h3 {
  margin: 0;
}

.price-board-head span {
  color: rgba(255, 253, 247, 0.76);
  font-weight: 840;
}

.price-row span {
  color: var(--ink-2);
}

.price-row strong {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.price-row.accent {
  background: rgba(15, 152, 166, 0.1);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.rules-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(22, 35, 41, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.rules-grid strong {
  color: var(--pool-2);
}

.rules-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.promo-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 15px;
}

.promo-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(229, 174, 85, 0.16);
  color: #986923;
}

.cart-item {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qty-button {
  min-width: 40px;
  padding: 0;
}

.cart-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 26px;
  border: 1px dashed rgba(22, 35, 41, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.62);
  text-align: center;
}

.cart-empty svg {
  width: 38px;
  height: 38px;
  color: var(--pool-2);
}

.cart-empty p {
  max-width: 330px;
  margin-bottom: 0;
  color: var(--muted);
}

.form-message {
  min-height: 22px;
  margin-bottom: 0;
  color: var(--pool-2);
  font-weight: 820;
}

.form-message.error {
  color: var(--coral);
}

.mobile-summary {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(22, 35, 41, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 16px 38px rgba(22, 35, 41, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-summary[hidden] {
  display: none;
}

.mobile-summary small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.mobile-summary button {
  min-height: 44px;
  padding: 0 17px;
  background: var(--ink);
  color: #fffdf7;
}

.status-view {
  max-width: 640px;
  padding: 24px;
}

.payment-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.payment-box {
  width: min(460px, 100%);
  padding: 24px;
}

.mock-terminal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #274951);
  color: #fffdf7;
}

.mock-terminal span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mock-terminal strong {
  font-size: 1.35rem;
}

.payment-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.paypass-button {
  display: grid;
  min-height: 76px;
  gap: 4px;
  place-items: center;
}

.paypass-button span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.paypass-button strong {
  font-size: 1.02rem;
}

.payment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.payment-return {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 12px;
  color: var(--pool-2);
  font-weight: 850;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .app-hero {
    min-height: 360px;
    background-image:
      linear-gradient(180deg, rgba(12, 24, 30, 0.74), rgba(12, 24, 30, 0.26)),
      url("assets/victoria-hero.jpg");
  }

  .service-card {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: calc(100% - 36px);
    margin: 0 18px 18px;
  }

  .booking-layout,
  .cart-layout,
  .tickets-layout,
  .spa-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .bungalow-map {
    grid-template-columns: 80px minmax(154px, 1fr) 80px;
    gap: 7px;
    min-height: 390px;
  }

  .pool-zone {
    min-height: auto;
    order: initial;
    grid-template-rows: 18px minmax(190px, 0.72fr) 18px;
  }

  .map-side,
  .map-side-right {
    justify-content: space-between;
    gap: 5px;
    padding: 6px;
  }
}

@media (max-width: 680px) {
  body {
    background: linear-gradient(180deg, #f7f2e9, #edf7f4 54%, #f7f2e9);
  }

  .app-hero {
    width: calc(100% - 20px);
    min-height: 300px;
    margin-top: 10px;
  }

  .hero-content {
    padding: 18px;
    align-content: end;
  }

  .brand-line {
    margin-bottom: 48px;
  }

  .hero-text {
    margin-bottom: 14px;
    font-size: 0.98rem;
  }

  .venue-line {
    margin-bottom: 14px;
  }

  .venue-line span,
  .venue-line a {
    min-height: 30px;
    font-size: 0.72rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-action {
    min-height: 58px;
    justify-content: center;
    padding: 0 8px;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
  }

  .hero-action svg {
    width: 18px;
    height: 18px;
  }

  .service-card {
    grid-template-columns: repeat(3, 1fr);
    width: calc(100% - 24px);
    margin: 0 12px 12px;
  }

  .service-card div {
    min-height: 64px;
    padding: 9px;
  }

  .service-card span {
    font-size: 0.7rem;
  }

  .status-pill {
    top: 12px;
    right: 12px;
  }

  .tabs {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom));
    width: auto;
    margin: 0;
  }

  .tab {
    min-height: 54px;
    flex-direction: column;
    gap: 2px;
    font-size: 0.68rem;
  }

  .tab svg {
    width: 19px;
    height: 19px;
  }

  .cart-tab b {
    position: absolute;
    right: 10px;
    top: 6px;
  }

  main {
    padding: 22px 10px calc(154px + env(safe-area-inset-bottom));
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .item-card {
    min-height: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 10px;
  }

  .menu-media {
    min-height: 128px;
    grid-row: span 2;
  }

  .item-actions {
    align-self: end;
  }

  .price {
    font-size: 1rem;
  }

  .add-button {
    min-width: 92px;
  }

  .bungalow-grid {
    grid-template-columns: 1fr;
  }

  .bungalow-map {
    grid-template-columns: 68px minmax(138px, 1fr) 68px;
    gap: 6px;
    min-height: 370px;
    padding: 9px;
  }

  .map-side,
  .map-side-right {
    gap: 4px;
    padding: 5px;
  }

  .bungalow-card {
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px;
    padding: 5px 4px;
  }

  .bungalow-icon {
    width: 34px;
    height: 34px;
  }

  .bungalow-roof {
    width: 30px;
    height: 18px;
  }

  .bungalow-body {
    left: 6px;
    top: 17px;
    width: 23px;
    height: 16px;
  }

  .bungalow-window {
    display: none;
  }

  .bungalow-number {
    width: 16px;
    height: 16px;
    font-size: 0.62rem;
  }

  .bungalow-copy strong {
    font-size: 0.66rem;
  }

  .bungalow-copy small {
    display: none;
  }

  .pool-title {
    font-size: 0.98rem;
  }

  .pool-plan strong {
    font-size: 0.72rem;
  }

  .bungalow-map-detail {
    display: grid;
  }

  .promo-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .promo-icon {
    width: 48px;
    height: 48px;
  }

  .price-board-head,
  .price-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .price-row strong {
    text-align: left;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .today-strip {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 104px;
  }

  .ticket-card {
    grid-template-columns: 1fr;
  }

  .ticket-buy {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }

  .payment-row {
    grid-template-columns: 1fr 100px;
  }
}
