:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --surface: #FFFFFF;
  --surface-strong: #F7F7F7;
  --text: #4A4A4A;
  --heading: #4A4A4A;
  --muted: rgba(74, 74, 74, 0.72);
  --line: #E0E0E0;
  --accent: #2D7D99;
  --accent-strong: #2D7D99;
  --accent-soft: rgba(45, 125, 153, 0.16);
  --positive: #5C996D;
  --inverse: #FFFFFF;
  --deep: #4A4A4A;
  --danger: #4A4A4A;
  --shadow: 0 18px 44px rgba(74, 74, 74, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --surface: #FFFFFF;
  --surface-strong: #F7F7F7;
  --text: #4A4A4A;
  --heading: #4A4A4A;
  --muted: rgba(74, 74, 74, 0.72);
  --line: #E0E0E0;
  --accent: #2D7D99;
  --accent-strong: #2D7D99;
  --accent-soft: rgba(45, 125, 153, 0.16);
  --positive: #5C996D;
  --inverse: #FFFFFF;
  --deep: #4A4A4A;
  --danger: #4A4A4A;
  --shadow: 0 18px 44px rgba(74, 74, 74, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.app-root {
  min-height: 100dvh;
  background: var(--bg);
}

.screen {
  min-height: 100dvh;
  padding: 0;
}

.screen-inner {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
}

.phone-canvas {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-fill {
  flex: 1;
  min-height: 100dvh;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(74, 74, 74, 0.08) 0%, rgba(74, 74, 74, 0.72) 100%),
    var(--image),
    linear-gradient(135deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
  box-shadow: none;
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.splash-card {
  flex: 1;
  min-height: 100dvh;
  border-radius: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading);
  box-shadow: none;
}

[data-theme="dark"] .splash-card {
  background: var(--surface);
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.brand-mark {
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: var(--bg);
}

.brand-mark span {
  transform: rotate(-45deg);
  width: 54px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
}

.brand-title {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: var(--heading);
}

.brand-subtitle {
  margin: -12px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.onboarding-title {
  max-width: 310px;
  margin: 0 0 16px;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 0.96;
  font-weight: 950;
  color: #FFFFFF;
}

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

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.dot.active {
  background: var(--accent);
}

.round-btn,
.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: #FFFFFF;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(45, 125, 153, 0.24);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--heading);
  box-shadow: none;
  border: 1px solid var(--line);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 50px;
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.primary-btn {
  width: 100%;
  background: var(--accent);
  color: #FFFFFF;
}

.secondary-btn {
  background: var(--surface-strong);
  color: var(--heading);
  border: 1px solid var(--line);
}

.ghost-btn {
  background: transparent;
  color: var(--muted);
}

.auth-panel {
  flex: 1;
  min-height: 100dvh;
  border-radius: 0;
  background: var(--surface);
  padding: 0 clamp(18px, 5vw, 34px) calc(24px + var(--safe-bottom));
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.auth-photo {
  min-height: 220px;
  margin: 0 calc(clamp(18px, 5vw, 34px) * -1) 26px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--bg)),
    var(--image),
    linear-gradient(135deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
}

.auth-panel > :first-child:not(.auth-photo) {
  margin-top: calc(18px + var(--safe-top));
}

.backline {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.backline .icon-btn {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
}

.screen-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(30px, 8vw, 42px);
  line-height: 0.98;
  font-weight: 950;
}

.screen-copy {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 13px;
  max-width: 330px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  outline: 0;
  padding: 0 4px;
}

.textarea {
  padding-top: 10px;
  min-height: 96px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 20%);
}

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

.social-btn {
  height: 44px;
  border-radius: 13px;
  background: var(--surface-strong);
  color: var(--heading);
  border: 1px solid var(--line);
  font-weight: 900;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  justify-content: center;
}

.divider-text::before,
.divider-text::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.small-link {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.code-input {
  min-width: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--heading);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  outline: 0;
}

.setup-avatar {
  width: 122px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, var(--deep) 0 34%, transparent 35%),
    radial-gradient(circle at 50% 55%, rgba(92, 153, 109, 0.24), transparent 56%);
  margin: 48px auto 24px;
  position: relative;
}

.setup-avatar::after {
  content: "";
  width: 42px;
  height: 38px;
  position: absolute;
  right: 16px;
  bottom: 6px;
  background: var(--accent);
  border-radius: 999px 999px 10px 10px;
}

.main-shell {
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  padding: calc(12px + var(--safe-top)) clamp(16px, 4vw, 34px)
    calc(16px + var(--safe-bottom));
  background: var(--bg);
}

.main-shell > div {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.main-shell > div::-webkit-scrollbar {
  display: none;
}

.home-shell {
  gap: 14px;
}

.home-layout {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.home-layout .main-heading {
  margin: 2px 0 8px;
}

.home-layout .horizontal-list {
  padding-bottom: 10px;
}

.home-layout .result-list {
  margin-top: 2px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
  min-width: 0;
}

.topbar > div {
  flex: 0 0 auto;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  background: transparent;
  padding: 0;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--deep);
  color: var(--inverse);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
  flex: 0 0 auto;
}

.user-meta {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.user-meta strong {
  font-size: 12px;
  color: var(--heading);
}

.user-meta span {
  font-size: 10px;
  color: var(--muted);
}

.main-heading {
  margin: 4px 0 12px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 950;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}

.tabs::-webkit-scrollbar,
.horizontal-list::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid transparent;
}

.tab.active {
  color: var(--heading);
  background: var(--surface-strong);
  border-color: var(--line);
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 74%);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x mandatory;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.destination-card {
  min-height: 405px;
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  background:
    linear-gradient(180deg, rgba(74, 74, 74, 0.04), rgba(74, 74, 74, 0.74)),
    var(--image),
    linear-gradient(145deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.destination-card.compact {
  min-height: 156px;
  border-radius: 18px;
  padding: 14px;
}

.card-top {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-pill,
.price-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--positive);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.bookmark-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(74, 74, 74, 0.46);
  color: #FFFFFF;
  display: grid;
  place-items: center;
}

.bookmark-btn.active {
  background: var(--accent);
  color: #FFFFFF;
}

.destination-title {
  margin: 0 0 8px;
  max-width: 210px;
  color: #FFFFFF;
  font-size: 24px;
  line-height: 0.95;
  font-weight: 950;
}

.destination-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
}

.card-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 50px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.bottom-nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-btn {
  height: 46px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.nav-btn.active {
  background: var(--accent);
  color: #FFFFFF;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0 18px;
}

.search-box .input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.result-list {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.result-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  position: relative;
}

.result-thumb {
  border-radius: 14px;
  background:
    var(--image),
    linear-gradient(135deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
}

.result-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.result-info h3 {
  margin: 0;
  color: var(--heading);
  font-size: 16px;
  line-height: 1.05;
}

.result-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.result-bookmark {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.bookmark-dashboard,
.account-dashboard {
  display: grid;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head .screen-title {
  margin-bottom: 2px;
}

.compact-action {
  min-height: 38px;
  width: auto;
  padding-inline: 14px;
  border-radius: 12px;
  font-size: 12px;
}

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

.stat-card {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.stat-card span,
.stat-card small,
.admin-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.stat-card strong {
  color: var(--heading);
  font-size: clamp(18px, 5vw, 26px);
  line-height: 1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.bookmark-rail {
  grid-auto-columns: minmax(250px, 72%);
}

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

.saved-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.saved-thumb {
  min-height: 108px;
  border-radius: 14px;
  background:
    var(--image),
    linear-gradient(135deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
}

.saved-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.saved-info h3 {
  margin: 0;
  color: var(--heading);
  font-size: 17px;
  line-height: 1.05;
  font-weight: 950;
}

.saved-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.saved-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.account-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--inverse);
  font-size: 22px;
  font-weight: 950;
}

.account-summary {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.account-summary .screen-title {
  margin: 0;
}

.account-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-actions,
.admin-grid {
  display: grid;
  gap: 10px;
}

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

.admin-section {
  display: grid;
  gap: 12px;
}

.admin-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.admin-card strong {
  color: var(--heading);
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.booking-management,
.address-management,
.calendar-section {
  display: grid;
  gap: 16px;
}

.booking-card.is-cancelled {
  opacity: 0.72;
}

.booking-actions,
.address-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--positive);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
}

.status-pill.muted {
  background: var(--line);
  color: var(--muted);
}

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

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

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

.address-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.address-head strong {
  color: var(--heading);
  font-size: 16px;
  font-weight: 950;
}

.address-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.calendar-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-head strong {
  color: var(--heading);
  font-size: 18px;
  font-weight: 950;
}

.calendar-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-week span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.calendar-day.muted {
  color: rgba(74, 74, 74, 0.36);
}

.calendar-day.today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day strong {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 9px;
}

.filter-panel,
.content-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  gap: 16px;
}

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

.choice {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
}

.choice.active {
  background: var(--accent);
  color: #FFFFFF;
}

.detail-hero {
  min-height: 360px;
  margin: 0 -4px;
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  background:
    linear-gradient(180deg, rgba(74, 74, 74, 0.05), rgba(74, 74, 74, 0.76)),
    var(--image),
    linear-gradient(145deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
  padding: 16px;
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-layout {
  min-width: 0;
  max-width: 100%;
}

.detail-layout .result-list {
  grid-template-columns: 1fr;
}

.detail-title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 0.95;
  font-weight: 950;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.detail-tabs button {
  min-height: 38px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.detail-tabs button.active {
  color: var(--heading);
  background: var(--surface-strong);
}

.copy-block {
  color: var(--muted);
  font-size: 13px;
}

.price-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}

.price-bar strong {
  color: var(--heading);
  font-size: 22px;
  font-weight: 950;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-tile {
  min-height: 158px;
  border-radius: 18px;
  background:
    var(--image),
    linear-gradient(135deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
}

.gallery-tile:first-child {
  grid-row: span 2;
}

.review-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.geo-map {
  display: grid;
  gap: 10px;
}

.map-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 5;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(74, 74, 74, 0.12);
}

.map-zoom-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(74, 74, 74, 0.12);
  overflow: hidden;
}

.map-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--surface);
  color: var(--heading);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  display: grid;
  place-items: center;
}

.map-scale {
  min-width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--heading);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  border-inline: 1px solid var(--line);
}

.map-viewport {
  min-height: 410px;
  border-radius: 18px;
  background: var(--surface-strong);
  position: relative;
  overflow: auto;
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.map-canvas {
  min-width: 100%;
  min-height: 100%;
  position: relative;
  background: var(--surface-strong);
}

.street-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-tile {
  fill: var(--surface-strong);
}

.map-district {
  fill: rgba(255, 255, 255, 0.56);
  stroke: var(--line);
  stroke-width: 1.4;
}

.map-water {
  fill: rgba(45, 125, 153, 0.12);
  stroke: rgba(45, 125, 153, 0.18);
  stroke-width: 2;
}

.map-park {
  fill: rgba(92, 153, 109, 0.12);
  stroke: rgba(92, 153, 109, 0.28);
  stroke-width: 2;
}

.map-road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-road.casing {
  stroke: var(--line);
}

.map-road.major.casing {
  stroke-width: 25;
}

.map-road.major:not(.casing) {
  stroke: var(--surface);
  stroke-width: 18;
}

.map-road.secondary.casing {
  stroke-width: 18;
}

.map-road.secondary:not(.casing) {
  stroke: var(--surface);
  stroke-width: 12;
}

.map-road.local {
  stroke: rgba(74, 74, 74, 0.16);
  stroke-width: 4;
  stroke-linecap: round;
}

.map-road-label,
.map-place-label {
  fill: rgba(74, 74, 74, 0.62);
  font-size: 26px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.map-road-label {
  font-size: 22px;
  font-weight: 760;
}

.map-place-label.water {
  fill: var(--accent);
}

.map-location {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.map-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  box-shadow:
    0 0 0 6px rgba(45, 125, 153, 0.14),
    0 8px 18px rgba(74, 74, 74, 0.22);
  display: block;
  transform: rotate(-45deg);
  transform-origin: center;
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  left: 7px;
  top: 7px;
  background: var(--inverse);
}

.map-label {
  position: absolute;
  left: 18px;
  top: calc(50% + var(--label-y, 0px));
  min-width: 116px;
  max-width: 156px;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.map-location.label-left .map-label {
  left: auto;
  right: 18px;
}

.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.map-location-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.map-location-item strong {
  color: var(--heading);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
}

.map-location-item small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 750;
}

.payment-card {
  display: grid;
  gap: 12px;
}

.card-preview {
  min-height: 170px;
  border-radius: 22px;
  padding: 18px;
  color: #FFFFFF;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, var(--accent), var(--positive)),
    var(--accent);
  box-shadow: var(--shadow);
}

.success-mark {
  width: 138px;
  aspect-ratio: 1;
  border-radius: 999px;
  margin: 62px auto 18px;
  background:
    var(--image),
    linear-gradient(135deg, var(--bg-soft), var(--line));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 24px var(--accent-soft);
}

.empty-state {
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.empty-state h2 {
  margin: 0;
  max-width: 260px;
  color: var(--heading);
  font-size: 30px;
  line-height: 0.98;
  font-weight: 950;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.terms-body {
  max-height: 460px;
  overflow: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.terms-body h3 {
  color: var(--heading);
  font-size: 13px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 50;
  transform: translate(-50%, 120%);
  min-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--inverse);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

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

.skeleton {
  min-height: 130px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--surface), var(--surface-strong), var(--surface));
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 380px) {
  .screen {
    padding: 0;
  }

  .stat-grid,
  .account-actions,
  .saved-actions,
  .booking-actions,
  .address-actions {
    grid-template-columns: 1fr;
  }

  .saved-product {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .round-btn {
    width: 48px;
    height: 48px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .main-heading {
    font-size: 20px;
  }

  .screen-title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .horizontal-list {
    grid-auto-columns: minmax(220px, 82%);
    gap: 12px;
  }

  .destination-card {
    min-height: 372px;
    padding: 16px;
  }

  .result-card {
    grid-template-columns: 96px 1fr;
    min-height: 104px;
  }

  .bottom-nav {
    min-height: 60px;
    border-radius: 18px;
  }

  .nav-btn {
    height: 42px;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 8px;
  }

  .topbar .icon-btn {
    width: 40px;
    height: 40px;
  }

  .user-meta {
    max-width: 82px;
  }

  .user-meta strong,
  .user-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 760px) {
  .phone-canvas {
    max-width: none;
  }

  .auth-panel,
  .splash-card,
  .hero-fill {
    min-height: 720px;
  }

  .tablet-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.35fr);
    gap: 22px;
    align-items: stretch;
  }

  .tablet-grid > .content-panel,
  .tablet-grid > .filter-panel {
    min-height: 620px;
  }

  .horizontal-list {
    grid-auto-columns: minmax(280px, 34%);
  }

  .destination-card {
    min-height: 460px;
  }

  .home-layout {
    max-width: 100%;
  }

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

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

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

  .detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 22px;
  }

  .bottom-nav {
    width: min(430px, 100%);
    justify-self: center;
  }
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.05fr);
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .screen {
    padding-top: 0;
  }

  .auth-panel,
  .hero-fill,
  .splash-card {
    min-height: 480px;
  }

  .detail-hero {
    min-height: 300px;
  }

  .destination-card {
    min-height: 320px;
  }

  .map-viewport {
    min-height: 260px;
  }
}
