:root {
  --bg: #f7f2ff;
  --surface: #ffffff;
  --ink: #251531;
  --muted: #6d6078;
  --soft: #f0e6ff;
  --line: rgba(63, 31, 84, 0.12);
  --purple: #7b2cff;
  --purple-strong: #5a18c9;
  --purple-deep: #3b0d6f;
  --orange: #7b2cff;
  --orange-strong: #5a18c9;
  --blue: #1877f2;
  --teal: #1aa68f;
  --green: #19a463;
  --gold: #f5a623;
  --shadow: 0 14px 34px rgba(52, 22, 89, 0.16);
  --radius: 8px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% -10%, rgba(123, 44, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #fbf8ff 0%, var(--bg) 44%, #fff 100%);
  color: var(--ink);
  font-size: 18px;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.app-shell {
  width: min(100%, 780px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  box-shadow: 0 2px 12px rgba(91, 24, 201, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--purple-strong);
  background: #fff;
  font-weight: 900;
}

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

.brand strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.icon-button,
.close-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
}

.list-hero {
  margin: 14px 14px 0;
  padding: 18px 16px;
  border: 1px solid rgba(123, 44, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(59, 13, 111, 0.96), rgba(123, 44, 255, 0.9)),
    url("assets/brand/booking-bg.jpg") center 45% / cover no-repeat;
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 24, 201, 0.2);
}

.list-hero p,
.list-hero h1,
.list-hero span {
  display: block;
  margin: 0;
  color: #fff;
}

.list-hero p {
  font-size: 18px;
  font-weight: 900;
}

.list-hero h1 {
  margin-top: 6px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
}

.list-hero span {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
}

.notice-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 14px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  box-shadow: 0 8px 22px rgba(52, 22, 89, 0.08);
  font-size: 16px;
  font-weight: 800;
}

.notice-strip strong {
  color: var(--purple-strong);
  font-size: 24px;
}

.notice-strip span {
  flex: 0 1 auto;
}

.notice-strip i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(123, 44, 255, 0.35);
}

.hotel-section,
.coming-section {
  padding: 18px 14px 0;
}

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

.section-title p,
.section-title h2 {
  margin: 0;
}

.section-title p {
  color: var(--purple);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title h2 {
  margin-top: 2px;
  font-size: 30px;
  line-height: 1.2;
}

.section-title button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(123, 44, 255, 0.18);
  border-radius: 999px;
  color: var(--purple-strong);
  background: #f0e6ff;
  font-size: 16px;
  font-weight: 800;
}

.filter-strip {
  display: none;
  gap: 8px;
  margin: 0 -14px 12px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.filter-chip.is-active {
  border-color: rgba(123, 44, 255, 0.38);
  color: var(--purple-strong);
  background: #f0e6ff;
}

.hotel-list {
  display: grid;
  gap: 16px;
}

.hotel-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(18, 27, 43, 0.07);
  cursor: pointer;
}

.hotel-card:focus-visible {
  outline: 3px solid rgba(123, 44, 255, 0.35);
  outline-offset: 2px;
}

.hotel-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #d9e0e8;
}

.hotel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-count,
.status-pill {
  position: absolute;
  right: 7px;
  max-width: calc(100% - 14px);
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 15px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.photo-count {
  bottom: 7px;
}

.status-pill {
  top: 7px;
  left: 7px;
  right: auto;
}

.hotel-body {
  min-width: 0;
  padding: 14px;
}

.hotel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 17px;
}

.hotel-meta span {
  min-width: 0;
}

.hotel-meta .region {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-meta .score {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--purple-strong);
  font-size: 16px;
  font-weight: 900;
}

.hotel-body h3 {
  margin: 8px 0 7px;
  font-size: 30px;
  line-height: 1.22;
}

.hotel-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.badge-row,
.scene-row,
.amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge-row span,
.scene-row span,
.amenity-row span {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--purple-deep);
  background: #f0e6ff;
  font-size: 16px;
  font-weight: 700;
}

.badge-row span:first-child {
  color: #fff;
  background: var(--purple-strong);
}

.amenity-row {
  margin-top: 10px;
}

.amenity-row span {
  color: #5d3b19;
  background: #fff2d8;
}

.hotel-bottom {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.price-block {
  min-width: 0;
}

.price-block span {
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.price-block strong {
  display: block;
  margin-top: 3px;
  color: var(--purple-strong);
  font-size: 32px;
  line-height: 1.05;
}

.price-block small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.price-block em {
  display: block;
  margin-top: 6px;
  color: #5d3b19;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
}

.hotel-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.primary-button {
  border: 1px solid var(--purple);
  color: #fff;
  background: var(--purple);
}

.empty-state {
  padding: 24px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: var(--surface);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 6px;
  color: var(--muted);
}

.coming-section {
  padding-bottom: 18px;
}

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

.soon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.soon-item strong {
  min-width: 0;
  font-size: 21px;
}

.soon-item span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.bottom-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.bottom-bar a,
.bottom-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
}

.bottom-bar a {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.bottom-bar button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.drawer-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 780px);
  max-height: min(90vh, 900px);
  margin: 0 auto;
  overflow: auto;
  border-radius: 8px 8px 0 0;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.close-button {
  position: sticky;
  top: 10px;
  z-index: 2;
  margin: 10px 10px 0 auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.drawer-hero {
  margin-top: -58px;
  aspect-ratio: 16 / 10;
  background: #d9e0e8;
}

.drawer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-main {
  padding: 14px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--purple-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.drawer-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-main h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.drawer-score {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.drawer-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.facts-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.fact-item {
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact-item strong,
.fact-item span {
  display: block;
}

.fact-item strong {
  color: var(--purple-strong);
  font-size: 12px;
}

.fact-item span {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.42;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  margin: 16px -14px 0;
  padding: 0 14px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  scroll-snap-align: center;
  background: #d9e0e8;
}

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

.gallery-item span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.detail-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

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

.detail-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  line-height: 1.58;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
}

.package-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.package-card {
  border-color: rgba(123, 44, 255, 0.2);
  background: #fbf8ff;
}

.package-price strong,
.package-price span {
  display: block;
}

.package-price strong {
  color: var(--purple-strong);
  font-size: 34px;
  line-height: 1.05;
}

.package-price small {
  color: var(--muted);
  font-size: 18px;
}

.package-price span {
  margin-top: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.drawer-actions .primary-button,
.drawer-actions .secondary-button {
  min-height: 44px;
  font-size: 14px;
}

.consult-panel {
  padding: 18px 14px 20px;
  background: var(--surface);
}

.consult-panel h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.16;
}

.consult-note {
  margin: 12px 0;
  color: var(--muted);
}

.consult-note strong {
  color: var(--ink);
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.6;
}

.consult-panel .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  font-size: 14px;
}

.fineprint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 80;
  display: none;
  width: min(calc(100% - 32px), 420px);
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(17, 24, 39, 0.92);
  text-align: center;
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

@media (min-width: 680px) {
  .list-hero,
  .notice-strip {
    margin-right: 24px;
    margin-left: 24px;
  }

  .hotel-section,
  .coming-section,
  .drawer-main,
  .consult-panel {
    padding-right: 24px;
    padding-left: 24px;
  }

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

  .gallery-strip {
    grid-auto-columns: 42%;
  }
}
