:root {
  color-scheme: light;
  --leaf: #2d5a3f;
  --leaf-dark: #193929;
  --water: #2d7f8b;
  --sun: #d7a33a;
  --paper: #fffaf0;
  --ink: #1d2520;
  --muted: #617066;
  --line: #d8ddcf;
  --danger: #9f2f2f;
  --ok: #286a43;
  --whatsapp: #25d366;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f6f4ea;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 430px);
}

.public-shell {
  min-height: 100vh;
  background: var(--paper);
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  padding: clamp(28px, 6vw, 80px);
  color: white;
  background:
    linear-gradient(90deg, rgba(25, 57, 41, 0.86), rgba(25, 57, 41, 0.38)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.public-hero {
  min-height: 72vh;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.services span {
  border: 1px solid rgba(255, 255, 255, 0.56);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) minmax(190px, 260px);
  align-items: stretch;
  gap: 1px;
  background: var(--line);
}

.ad-rail {
  min-width: 0;
  background: var(--paper);
}

.ad-slot {
  position: sticky;
  top: 18px;
  margin: 0;
  min-height: 220px;
  padding: 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.ad-label {
  margin: 0 0 12px;
  color: var(--water);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-slot h2 {
  margin: 0 0 12px;
  color: var(--leaf-dark);
  font-size: 1.2rem;
  line-height: 1.25;
}

.ad-slot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ad-slot a {
  display: inline-block;
  margin-top: 18px;
  color: var(--leaf-dark);
  font-weight: 700;
  text-decoration: none;
}

.ad-slot a:hover,
.ad-slot a:focus-visible {
  color: var(--water);
}

.public-main {
  min-width: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.public-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.public-info article {
  min-height: 180px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
}

.public-info h2 {
  margin: 0 0 12px;
  color: var(--leaf-dark);
  font-size: 1.35rem;
  line-height: 1.2;
}

.public-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.public-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.public-detail-grid article {
  min-height: 210px;
  padding: clamp(22px, 3vw, 36px);
  background: white;
}

.public-detail-grid h2 {
  margin: 0 0 12px;
  color: var(--leaf-dark);
}

.public-detail-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.town-events {
  background: var(--paper);
  padding: clamp(24px, 4vw, 42px);
}

.event-carousel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--leaf-dark);
}

.event-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
}

.event-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.event-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-slide div {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(22px, 4vw, 42px);
  color: white;
  background: linear-gradient(180deg, rgba(25, 57, 41, 0.64), rgba(25, 57, 41, 0.94));
}

.event-slide h3,
.event-slide p {
  margin: 0;
}

.event-slide h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.event-slide p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots button {
  width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  background: white;
  color: var(--leaf-dark);
  border: 1px solid var(--line);
}

.carousel-dots button.active {
  background: var(--leaf);
  color: white;
}

.service-blocks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  isolation: isolate;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  color: white;
  background: var(--leaf-dark);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: center/cover;
  transform: scale(1.02);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 57, 41, 0.12), rgba(25, 57, 41, 0.86));
}

.restaurant-card::before {
  background-image: url("https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=1000&q=80");
}

.pool-card::before {
  background-image: url("https://images.unsplash.com/photo-1572331165267-854da2b10ccc?auto=format&fit=crop&w=1000&q=80");
}

.cabin-card-public::before {
  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1000&q=80");
}

.service-card h2,
.service-card p {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.reservation-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1px;
  background: var(--line);
}

.reservation-copy,
.reservation-form {
  background: var(--paper);
  padding: clamp(24px, 4vw, 42px);
}

.reservation-copy h2,
.reservation-form h3 {
  margin: 0 0 12px;
  color: var(--leaf-dark);
}

.reservation-copy > p,
.reservation-form .muted {
  max-width: 680px;
  margin: 0 0 22px;
  line-height: 1.6;
}

.reservation-cabins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reservation-cabin-card {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px auto;
  text-align: left;
  background: white;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(25, 57, 41, 0.10);
}

.reservation-cabin-card:hover,
.reservation-cabin-card:focus-visible,
.reservation-cabin-card.selected {
  background: white;
  color: var(--ink);
  border-color: var(--water);
}

.reservation-cabin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reservation-cabin-card span {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.reservation-cabin-card strong {
  color: var(--leaf-dark);
  font-size: 1.1rem;
}

.reservation-cabin-card small {
  color: var(--water);
  font-weight: 700;
}

.reservation-cabin-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.reservation-form {
  align-content: start;
  gap: 10px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.login-panel h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 8px;
  color: var(--leaf-dark);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 1rem;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(45, 127, 139, 0.22);
  border-color: var(--water);
}

textarea {
  min-height: 88px;
  padding-top: 10px;
  font-family: inherit;
  resize: vertical;
}

button {
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 6px;
  background: var(--leaf);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: var(--leaf-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.message {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.message.ok {
  color: var(--ok);
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px);
  background: #eef1e8;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 42px;
  margin-top: 0;
  padding: 0 14px;
  background: white;
  color: var(--leaf-dark);
  border: 1px solid var(--line);
}

.tab-button.active {
  background: var(--leaf);
  color: white;
  border-color: var(--leaf);
}

.admin-grid {
  display: block;
}

.admin-section {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-panel[hidden] {
  display: none;
}

.wide-section {
  grid-row: span 2;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title h2,
.section-title h3,
.admin-section h2,
.admin-section h3 {
  margin: 0;
  color: var(--leaf-dark);
}

.compact-title {
  margin: 22px 0 12px;
}

.secondary-button {
  background: white;
  color: var(--leaf-dark);
  border: 1px solid var(--line);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #edf3ec;
  color: var(--leaf-dark);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.product-list,
.table-list,
.cabin-list {
  display: grid;
  gap: 10px;
}

.product-row,
.cabin-card,
.order-box,
.receipt-box {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-row,
.cabin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lodging-card {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.4fr) minmax(180px, 0.55fr);
}

.lodging-card label {
  margin-top: 0;
}

.lodging-card .client-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.product-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.product-row div,
.cabin-card div {
  display: grid;
  gap: 4px;
}

.inline-field {
  min-width: 120px;
  margin: 0;
}

.inline-field input {
  min-height: 40px;
}

.product-row span,
.cabin-card span,
.muted {
  color: var(--muted);
}

.product-row button,
.cabin-card button,
.section-title button,
.admin-section button {
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
}

.table-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.table-button {
  min-height: 62px;
  background: white;
  color: var(--leaf-dark);
  border: 1px solid var(--line);
}

.table-button.active {
  background: var(--water);
  color: white;
  border-color: var(--water);
}

.danger-button {
  background: #fff5f2;
  color: var(--danger);
  border: 1px solid #e7b8ae;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #ffe7e0;
  color: var(--danger);
}

.icon-danger {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.request-row {
  align-items: center;
}

.request-row .client-actions {
  justify-content: flex-end;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.reservation-card form {
  display: grid;
  gap: 10px;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-row {
  align-items: center;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(360px, auto);
}

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

.client-actions .button-link,
.client-actions button {
  min-height: 38px;
  margin: 0;
  white-space: nowrap;
}

.qr-panel img {
  width: 180px;
  height: 180px;
}

.button-link {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--leaf);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--leaf-dark);
}

.client-shell {
  min-height: 100vh;
  background: #eef1e8;
}

.client-header {
  padding: clamp(28px, 6vw, 64px);
  color: white;
  background:
    linear-gradient(90deg, rgba(25, 57, 41, 0.88), rgba(25, 57, 41, 0.42)),
    url("https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.client-header h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
}

.client-section {
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-section h2,
.client-section h3 {
  margin: 0 0 14px;
  color: var(--leaf-dark);
}

.client-menu {
  display: grid;
  gap: 12px;
}

.client-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.client-product div {
  display: grid;
  gap: 4px;
}

.client-product span {
  color: var(--muted);
}

.song-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.order-box {
  margin-top: 16px;
}

.order-box ul {
  display: grid;
  gap: 8px;
  min-height: 54px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.order-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.receipt-box {
  display: grid;
  gap: 10px;
}

.receipt-header,
.receipt-box li,
.summary-list article,
.history-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.receipt-box p,
.history-list p {
  margin: 0;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-list article {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-total {
  margin: 16px 0 0;
  color: var(--leaf-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 12px 28px rgba(25, 57, 41, 0.28);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: white;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe5d;
  outline: 3px solid rgba(37, 211, 102, 0.26);
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 58vh;
  }

  .login-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .service-blocks,
  .public-detail-grid {
    grid-template-columns: 1fr;
  }

  .event-carousel {
    min-height: 520px;
  }

  .event-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
  }

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

  .reservation-section,
  .reservation-cabins {
    grid-template-columns: 1fr;
  }

  .ad-slot {
    position: static;
    min-height: auto;
  }

  .ad-rail:first-child {
    display: none;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .admin-header,
  .section-title,
  .product-row,
  .cabin-card,
  .lodging-card {
    align-items: stretch;
    flex-direction: column;
  }

  .order-layout,
  .inventory-layout,
  .client-grid,
  .qr-panel,
  .client-row,
  .lodging-card {
    grid-template-columns: 1fr;
  }

  .client-actions {
    justify-content: stretch;
  }

  .client-actions .button-link,
  .client-actions button {
    width: 100%;
  }

  .client-product {
    grid-template-columns: 1fr;
  }

  .client-product img,
  .qr-panel img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
  }

  .wide-section {
    grid-row: auto;
  }
}
