:root {
  --ink: #172021;
  --muted: #65706f;
  --line: #dfe7e4;
  --paper: #ffffff;
  --mist: #f4f8f6;
  --teal: #16746b;
  --teal-dark: #0f5a54;
  --coral: #ec775c;
  --gold: #e8aa3f;
  --forest: #244b3d;
  --shadow: 0 18px 50px rgba(19, 49, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: var(--mist);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 231, 228, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 166px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.main-nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  max-width: 150px;
  overflow: hidden;
  padding: 9px 12px;
  color: var(--forest);
  background: #edf6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-btn,
.primary-btn,
.filter,
.tab,
.add-btn,
.login-mode {
  border: 0;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ghost-btn {
  padding: 10px 18px;
  color: var(--teal);
  background: #e6f1ef;
}

.ghost-btn.danger {
  color: #b85243;
  background: #fff0ed;
}

.primary-btn {
  min-height: 50px;
  padding: 0 24px;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(22, 116, 107, 0.22);
}

.primary-btn:hover,
.add-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 0 48px 110px;
  background: var(--forest);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 34, 31, 0.8), rgba(10, 34, 31, 0.38) 48%, rgba(10, 34, 31, 0.12));
}

.hero-content {
  position: relative;
  max-width: 780px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: 56px;
  line-height: 1.12;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.search-shell {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: -72px auto 48px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab,
.filter {
  padding: 10px 16px;
  color: var(--muted);
  background: #eef4f2;
  font-weight: 700;
}

.tab.is-active,
.filter.is-active {
  color: #fff;
  background: var(--forest);
}

.search-form {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.75fr 0.9fr auto;
  gap: 12px;
  align-items: end;
}

.search-form label {
  display: grid;
  gap: 8px;
}

.search-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-form input,
.search-form select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-form input:focus,
.search-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 116, 107, 0.12);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 70px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spot-list {
  display: grid;
  gap: 18px;
}

.spot-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(21, 54, 49, 0.08);
}

.spot-card.is-hidden {
  display: none;
}

.spot-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.spot-body {
  padding: 22px;
}

.spot-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.spot-top h3,
.package-item h3,
.service-card h3 {
  margin: 0;
}

.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  color: #fff;
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.spot-body p,
.package-item p {
  color: var(--muted);
  line-height: 1.7;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.tags span {
  padding: 7px 10px;
  color: var(--teal-dark);
  background: #e9f4f1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price-row strong,
.package-item strong,
.total-row strong {
  color: var(--coral);
  font-size: 26px;
}

.add-btn {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--coral);
  font-weight: 800;
}

.packages {
  margin-top: 42px;
}

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

.package-item {
  min-height: 220px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.package-days {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 10px;
  color: #fff;
  background: var(--forest);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.booking-panel {
  position: sticky;
  top: 92px;
  height: max-content;
}

.panel-card,
.service-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(21, 54, 49, 0.08);
}

.panel-card h2 {
  margin: 0 0 20px;
}

.summary-line,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.summary-line span,
.total-row span {
  color: var(--muted);
}

.selected-list {
  min-height: 76px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.selected-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.selected-item button {
  color: var(--coral);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.full {
  width: 100%;
}

.service-card {
  margin-top: 16px;
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 29, 0.52);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel.wide {
  width: min(760px, 100%);
}

.modal-panel h2 {
  margin: 0 0 20px;
  font-size: 28px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #edf3f1;
  border: 0;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
}

.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.login-mode {
  min-height: 42px;
  color: var(--muted);
  background: #eef4f2;
  font-weight: 800;
}

.login-mode.is-active {
  color: #fff;
  background: var(--forest);
}

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

.modal-form.two-col {
  grid-template-columns: 1fr 1fr;
}

.modal-form label {
  display: grid;
  gap: 8px;
}

.modal-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.modal-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 116, 107, 0.12);
}

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

.wide-field {
  grid-column: 1 / -1;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.order-preview,
.pay-card,
.orders-list {
  margin-bottom: 18px;
}

.preview-row,
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.preview-row span,
.order-meta {
  color: var(--muted);
}

.preview-row strong {
  text-align: right;
}

.pay-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pay-card span {
  color: var(--muted);
}

.pay-card strong {
  color: var(--coral);
  font-size: 34px;
}

.pay-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.pay-methods label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-card {
  padding: 16px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-card + .order-card {
  margin-top: 12px;
}

.order-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #fff;
  background: var(--gold);
  border-radius: 8px;
  font-size: 12px;
}

.status.paid {
  background: var(--teal);
}

.status.closed {
  background: #8b9693;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.small-btn {
  min-height: 36px;
  padding: 0 12px;
  color: var(--teal);
  background: #e6f1ef;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 18px;
  color: #fff;
  background: var(--forest);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 500px;
    padding: 0 24px 104px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .search-form,
  .content-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .ghost-btn {
    padding: 9px 12px;
  }

  .user-chip {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    min-height: 560px;
    padding: 0 18px 112px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .search-shell,
  .content-grid {
    width: calc(100% - 28px);
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .section-head {
    display: block;
  }

  .filter-row {
    margin-top: 14px;
  }

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

  .spot-card img {
    height: 210px;
    min-height: 210px;
  }

  .modal-form.two-col,
  .inline-field {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    padding: 22px;
  }
}
