:root {
  --bg: #f9f5ea;
  --surface: rgba(255, 252, 245, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: #fff8ec;
  --line: rgba(184, 138, 42, 0.18);
  --line-strong: rgba(184, 138, 42, 0.28);
  --text: #193153;
  --muted: #6f6d68;
  --brand: #0a3773;
  --brand-2: #c79b38;
  --gold: #d7ab4e;
  --gold-soft: #fff1c9;
  --blue-soft: #eaf3ff;
  --shadow: 0 20px 60px rgba(9, 51, 112, 0.12);
  --shadow-soft: 0 10px 30px rgba(9, 51, 112, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1280px;
  --font-body: "Söhne", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 171, 78, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(12, 62, 128, 0.16), transparent 20%),
    linear-gradient(180deg, #fffdf7 0%, #fdf7ea 42%, #f6efe0 100%);
  color: var(--text);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: 0;
}

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

.app-shell {
  padding: 18px 18px 104px;
}

.page-wrap,
.subpage-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-wrap {
  display: grid;
  gap: 26px;
}

.glass-card,
.promo-banner,
.feed-card,
.modal-dialog,
.profile-section,
.booking-form,
.booking-summary,
.profile-hero {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  max-width: var(--max-width);
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 999px;
}

.topbar-left,
.topbar-right,
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo,
.drawer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(8, 55, 118, 0.18);
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tagline,
.drawer-text,
.field-hint,
.metric-card span,
.meta-row,
.banner-content p,
.feed-caption,
.card-desc,
.comment-item p,
.comment-meta,
.booking-summary p,
.empty-state,
.account-card p,
.success-card p,
.profile-stat span,
.profile-bio,
.profile-section li,
.profile-schedule-item small {
  color: var(--muted);
}

.brand-tagline {
  margin: 2px 0 0;
  font-size: 0.86rem;
}

.icon-btn,
.lang-btn,
.install-btn,
.quick-action,
.pill-btn,
.bottom-item,
.drawer-link,
.banner-btn,
.modal-close,
.search-voice,
.hint-chip {
  transition: 0.22s ease;
}

.icon-btn,
.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 59, 125, 0.07);
  color: var(--brand);
}

.icon-btn:hover,
.lang-btn:hover,
.install-btn:hover,
.quick-action:hover,
.pill-btn:hover,
.drawer-link:hover,
.banner-btn:hover,
.search-voice:hover,
.hint-chip:hover,
.bottom-item:hover {
  transform: translateY(-2px);
}

.ghost {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 59, 125, 0.06);
}

.lang-btn {
  min-width: 44px;
  padding: 9px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.lang-btn.active,
.install-btn,
.quick-action.primary,
.banner-btn,
.search-voice,
.pill-btn.active,
.bottom-item.active,
.drawer-link.active {
  background: linear-gradient(135deg, #b98a2a, #0a3773 72%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 59, 125, 0.2);
}

.install-btn,
.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.install-btn.full {
  width: 100%;
}

.banner-btn.secondary,
.quick-action,
.pill-btn,
.bottom-item,
.drawer-link,
.search-voice,
.hint-chip {
  background: linear-gradient(180deg, #fffaf0, #fff2d5);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(11, 59, 125, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-xl);
  min-height: 300px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(211, 167, 77, 0.2), transparent 70%);
}

.hero::after {
  width: 300px;
  height: 300px;
  left: -70px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(11, 59, 125, 0.12), transparent 72%);
}

.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 234, 208, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(211, 167, 77, 0.35);
  color: #8f6722;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h2,
.banner-content h3,
.section-head h3,
.booking-head h1,
.profile-hero h1 {
  margin: 14px 0 10px;
  line-height: 1.08;
}

.hero h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.search-shell {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 840px);
  padding: 14px 16px 14px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11, 59, 125, 0.08);
  box-shadow: 0 22px 48px rgba(10, 40, 94, 0.12);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
}

.search-icon {
  color: var(--brand);
  font-size: 1.18rem;
}

.search-voice {
  min-width: 52px;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
}

.search-hints,
.quick-actions,
.feed-tools,
.account-actions,
.card-actions,
.banner-cta-row,
.meta-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.search-hints {
  margin-top: 14px;
}

.hint-chip {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.quick-actions {
  margin-top: 18px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 700;
}

.banner-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.25fr 1fr;
}

.promo-banner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-xl);
  padding: 26px;
  display: grid;
  gap: 20px;
}

.banner-home {
  background:
    radial-gradient(circle at 75% 25%, rgba(211, 167, 77, 0.30), transparent 24%),
    linear-gradient(135deg, rgba(255,250,239,0.98), rgba(255,241,206,0.98) 42%, rgba(236,243,255,0.98));
  grid-template-columns: 1.1fr 0.9fr;
}

.banner-spa {
  background:
    radial-gradient(circle at top right, rgba(11, 59, 125, 0.10), transparent 18%),
    radial-gradient(circle at bottom left, rgba(211, 167, 77, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255,251,242,0.98), rgba(255,244,216,0.96) 45%, rgba(247,250,255,0.98));
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
}

.banner-content p {
  margin: 0;
  max-width: 560px;
  line-height: 1.65;
}

.banner-visual {
  position: relative;
  min-height: 220px;
}

.luxury-orb {
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211, 167, 77, 0.28);
}

.orb-1 {
  width: 88%;
  height: 88%;
  background: radial-gradient(circle, rgba(255, 247, 225, 0.75), rgba(255, 255, 255, 0));
}

.orb-2 {
  width: 62%;
  height: 62%;
  box-shadow: inset 0 0 50px rgba(11, 59, 125, 0.08);
}

.banner-logo-mark {
  position: relative;
  width: min(68%, 270px);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(11, 59, 125, 0.18));
}

.mini-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
}

.metric-card,
.profile-stat,
.meta-chip,
.section-chip {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,247,255,0.95));
  border: 1px solid rgba(11, 59, 125, 0.08);
  border-radius: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--brand);
}

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

.section-head.inline {
  align-items: center;
}

.section-head h3 {
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.feed-card {
  grid-column: span 4;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.feed-card.spa {
  grid-column: span 6;
}

.card-head,
.card-body,
.card-footer,
.comment-item,
.detail-top,
.profile-section,
.success-card,
.account-card,
.booking-summary {
  padding: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-avatar,
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(11, 59, 125, 0.16);
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
}

.card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.card-type-badge,
.rating-badge,
.price-badge,
.tag-badge,
.meta-chip,
.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.card-type-badge,
.rating-badge,
.tag-badge,
.meta-chip,
.section-chip {
  background: linear-gradient(180deg, rgba(234,243,255,0.92), rgba(255,255,255,0.96));
  border: 1px solid rgba(11,59,125,0.09);
}

.price-badge {
  background: linear-gradient(180deg, rgba(244,234,209,0.98), rgba(255,255,255,0.98));
  border: 1px solid rgba(211,167,77,0.24);
  color: #95681d;
}

.media-shell {
  position: relative;
  background: #dae7f8;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-shell img,
.media-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(8, 32, 77, 0.75);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.card-body {
  display: grid;
  gap: 14px;
}

.card-desc {
  margin: 0;
  line-height: 1.6;
}

.card-footer {
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-actions {
  flex-wrap: nowrap;
}

.action-btn,
.comment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #fffaf0, #fff2d5);
  border: 1px solid var(--line);
  color: var(--text);
}

.action-btn.primary {
  background: linear-gradient(135deg, #b98a2a, #0a3773 72%);
  color: #fff;
}

.feed-loader {
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 50;
  width: min(calc(100% - 18px), 580px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
}

.bottom-item {
  min-height: 58px;
  border-radius: 18px;
  display: grid;
  gap: 4px;
  place-items: center;
  font-weight: 700;
}

.bottom-icon {
  font-size: 1.1rem;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(92vw, 360px);
  background: linear-gradient(180deg, #0b3b7d, #0a2f65 80%);
  color: #fff;
  padding: 24px 18px 30px;
  z-index: 60;
  transform: translateX(-105%);
  transition: transform 0.26s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  box-shadow: 0 30px 70px rgba(8, 24, 58, 0.35);
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(6, 17, 41, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: grid;
  gap: 16px;
}

.brand-row--drawer {
  justify-content: space-between;
}

.drawer-nav {
  display: grid;
  gap: 12px;
  align-content: start;
}

.drawer-link {
  width: 100%;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}

.drawer-actions {
  display: grid;
  gap: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 16, 40, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(100%, 720px);
  border-radius: 28px;
  overflow: hidden;
}

.modal-lg {
  width: min(100%, 980px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.detail-top {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-visual {
  overflow: hidden;
  border-radius: 24px;
  min-height: 320px;
}

.detail-visual img,
.detail-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-side h3,
.comment-title,
.booking-summary h2,
.profile-section h3 {
  margin: 0;
}

.detail-body,
.comment-list,
.profile-services,
.profile-reviews,
.profile-schedule {
  padding: 0 18px 18px;
}

.comment-item {
  border-top: 1px solid var(--line);
}

.comment-item strong {
  display: block;
  margin-bottom: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(7, 32, 77, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(5, 16, 40, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  z-index: 80;
}

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

.activity-panel,
.profile-hero,
.profile-section,
.booking-form,
.booking-summary,
.subpage-top {
  border-radius: var(--radius-xl);
}

.activity-panel {
  padding: 22px;
}

.booking-history {
  display: grid;
  gap: 12px;
}

.booking-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.booking-item h4,
.booking-item p,
.booking-item small {
  margin: 0;
}

.booking-item small {
  color: var(--muted);
}

.subpage-body {
  padding: 20px;
}

.subpage-wrap {
  display: grid;
  gap: 20px;
}

.subpage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.profile-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.profile-cover {
  min-height: 100%;
}

.profile-cover img,
.profile-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.profile-main h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-stat {
  padding: 12px 16px;
}

.profile-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
}

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.profile-section {
  overflow: hidden;
}

.profile-section ul {
  margin: 0;
  padding-left: 18px;
}

.profile-schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.profile-schedule-item:first-child {
  border-top: 0;
}

.booking-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.85fr;
}

.booking-form,
.booking-summary {
  padding: 24px;
}

.booking-head p,
.booking-head h1 {
  margin-bottom: 10px;
}

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

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.field-label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(11, 59, 125, 0.12);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text);
  outline: none;
}

.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus,
.search-box:focus-within {
  border-color: rgba(11, 59, 125, 0.22);
  box-shadow: 0 0 0 4px rgba(11, 59, 125, 0.08);
}

.banner-btn.large {
  min-height: 56px;
  width: 100%;
}

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

.summary-total {
  border-bottom: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.account-sheet,
.success-sheet {
  max-width: 480px;
}

.account-card,
.success-card {
  text-align: center;
}

.account-avatar,
.success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(11, 59, 125, 0.16);
}

.hidden {
  display: none !important;
}

.desktop-only {
  display: inline-flex;
}

.empty-state {
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(11, 59, 125, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

@media (max-width: 1160px) {
  .banner-grid,
  .booking-layout,
  .profile-grid,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .feed-card,
  .feed-card.spa {
    grid-column: span 6;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-cover {
    min-height: 320px;
  }
}

@media (max-width: 860px) {
  .app-shell,
  .subpage-body {
    padding: 14px 14px 110px;
  }

  .topbar {
    border-radius: 24px;
    top: 10px;
    align-items: start;
    padding: 12px;
  }

  .desktop-only {
    display: none;
  }

  .hero,
  .promo-banner,
  .activity-panel,
  .booking-form,
  .booking-summary,
  .profile-main,
  .card-head,
  .card-body,
  .card-footer,
  .detail-top,
  .detail-body,
  .comment-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .banner-home {
    grid-template-columns: 1fr;
  }

  .mini-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .feed-card,
  .feed-card.spa {
    grid-column: span 12;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-actions,
  .feed-tools,
  .card-footer,
  .card-actions {
    flex-wrap: wrap;
  }

  .bottom-nav {
    width: calc(100% - 18px);
  }

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

@media (max-width: 560px) {
  .brand-row {
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
  }

  .topbar-right {
    width: auto;
  }

  .install-btn {
    padding: 10px 12px;
  }

  .install-btn span:last-child {
    display: none;
  }

  .search-box {
    padding-right: 10px;
  }

  .search-box input {
    font-size: 0.96rem;
  }

  .quick-action,
  .banner-btn,
  .action-btn,
  .comment-btn {
    width: 100%;
    justify-content: center;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .bottom-item {
    min-height: 62px;
    font-size: 0.9rem;
  }

  .detail-visual {
    min-height: 220px;
  }
}


.topbar,
.hero,
.promo-banner,
.feed-card,
.activity-panel,
.nearby-map-panel,
.profile-section,
.booking-form,
.booking-summary,
.profile-hero,
.subpage-top {
  border: 1px solid rgba(204, 163, 74, 0.24);
  box-shadow:
    0 18px 36px rgba(11, 59, 125, 0.08),
    0 6px 24px rgba(202, 160, 72, 0.12);
}

.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(213, 171, 77, 0.22), transparent 20%),
    radial-gradient(circle at 12% 95%, rgba(10, 55, 115, 0.10), transparent 18%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 243, 207, 0.96) 48%, rgba(244, 248, 255, 0.95));
}

.quick-action {
  background: linear-gradient(180deg, #fff7e3, #ffe7ad);
  border: 1px solid rgba(191, 146, 53, 0.22);
}

.quick-action.primary {
  color: #fff;
}

.feed-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,236,0.98));
}

.feed-card .price-badge,
.rating-badge {
  background: linear-gradient(180deg, #fff4cf, #ffe5a3);
  color: #8b6320;
}

.tag-badge,
.meta-chip,
.section-chip {
  background: linear-gradient(180deg, #fff9ea, #fff0cb);
  border: 1px solid rgba(193, 153, 61, 0.22);
}

.nearby-map-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.nearby-head {
  margin-bottom: 18px;
}

.nearby-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.map-shell {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(8,46,98,0.94), rgba(17,73,141,0.94)),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 224, 145, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.map-grid,
.map-grid::before,
.map-grid::after {
  position: absolute;
  inset: 0;
  content: "";
}

.map-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.22;
}

.map-grid::before {
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 220, 131, 0.18), transparent 18%),
    radial-gradient(circle at 76% 68%, rgba(255, 220, 131, 0.16), transparent 16%);
}

.map-grid::after {
  background:
    linear-gradient(60deg, transparent 46%, rgba(255, 221, 130, 0.18) 48%, transparent 50%),
    linear-gradient(138deg, transparent 44%, rgba(255,255,255,0.08) 46%, transparent 48%);
  opacity: 0.8;
}

.map-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
}

.map-glow-a {
  width: 220px;
  height: 220px;
  background: rgba(255, 221, 130, 0.22);
  top: -40px;
  right: -30px;
}

.map-glow-b {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.10);
  bottom: -28px;
  left: -30px;
}

.map-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.map-rings span {
  position: absolute;
  border: 1px solid rgba(255, 224, 145, 0.28);
  border-radius: 50%;
}

.map-rings span:nth-child(1) { width: 110px; height: 110px; }
.map-rings span:nth-child(2) { width: 180px; height: 180px; }
.map-rings span:nth-child(3) { width: 260px; height: 260px; }

.map-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  font-size: 1.75rem;
  z-index: 3;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
}

.map-pins {
  position: absolute;
  inset: 0;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffeebf, #d9a83c);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 16px rgba(0,0,0,0.28);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 225, 142, 0.15);
}

.map-user-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 250, 239, 0.93);
  color: var(--text);
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

.map-user-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.nearby-list-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.nearby-note,
.nearby-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,228,0.98));
  border: 1px solid rgba(204, 163, 74, 0.2);
}

.nearby-note p,
.nearby-card p,
.nearby-meta {
  color: var(--muted);
}

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

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

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

.nearby-top strong {
  display: block;
  font-size: 1rem;
}

.nearby-distance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0a3773, #114f97);
  color: #fff;
  font-weight: 700;
}

.otp-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 12px;
}

.otp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.otp-row input {
  flex: 1;
}

.otp-hint {
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8e7, #ffefc6);
  color: #8b6320;
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-actions {
  justify-content: flex-end;
}

.account-card.logged-in .otp-form {
  opacity: 0.55;
}

.account-card.logged-in #sendOtpBtn,
.account-card.logged-in #verifyOtpBtn {
  pointer-events: none;
}

@media (max-width: 980px) {
  .nearby-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nearby-map-panel {
    padding: 18px;
  }

  .map-shell {
    min-height: 340px;
  }

  .otp-row {
    flex-direction: column;
    align-items: stretch;
  }

  .otp-hint {
    text-align: center;
  }
}


.map-status-bar {
  margin: 10px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(215,171,78,0.16), rgba(10,55,115,0.08));
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.map-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0a3773;
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(10,55,115,.18);
}

.realmap-layout {
  align-items: start;
}

.map-live-column {
  display: grid;
  gap: 16px;
}

.real-map-shell {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, #edf3fb, #fff8eb);
}

.google-map,
.fallback-map {
  width: 100%;
  min-height: 460px;
}

.map-overlay-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 14px 16px;
  border-radius: 18px;
  max-width: 300px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 40px rgba(10,55,115,.16);
  border: 1px solid rgba(215,171,78,.28);
}

.map-live-panel {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,246,226,.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.map-live-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.map-live-head h4 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.fleet-count,
.driver-badge,
.nearby-eta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7ab4e, #b98a2a);
  color: #fff;
  font-weight: 800;
}

.selected-driver-card {
  min-height: 172px;
}

.driver-card-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.driver-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(10,55,115,.16);
}

.driver-sub,
#mapConfigHint {
  color: var(--muted);
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.driver-stats div,
.nearby-service-row {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(215,171,78,.16);
}

.nearby-service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.nearby-price {
  font-weight: 800;
  color: var(--brand);
}

.nearby-card.active {
  border-color: rgba(10,55,115,.28);
  box-shadow: 0 14px 30px rgba(10,55,115,.12);
}

.fallback-map {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(215,171,78,.18), transparent 20%),
    radial-gradient(circle at 70% 30%, rgba(10,55,115,.18), transparent 24%),
    linear-gradient(180deg, #f4f8ff, #fff7e9);
}

.fallback-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,55,115,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,55,115,.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.fallback-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a3773, #d7ab4e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 18px 44px rgba(10,55,115,.24);
}

.fallback-pins {
  position: absolute;
  inset: 0;
}

.fallback-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(10,55,115,.2);
}

.fallback-pin.therapist {
  background: #0a3773;
}

.fallback-pin.spa {
  background: #d7ab4e;
}

@media (max-width: 900px) {
  .real-map-shell,
  .google-map,
  .fallback-map {
    min-height: 360px;
  }

  .driver-stats {
    grid-template-columns: 1fr;
  }
}
