* {
  box-sizing: border-box;
  font-family: "Instrument Sans", Arial, sans-serif;
}

body,
html {
  font-family: "Instrument Sans", Arial, sans-serif;
}
body {
  margin: 0;
  background: linear-gradient(to bottom, #dfe9f5, #fafafa);
  color: #222;
}

/* Launch Screen Styles */
.launch-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #dfe9f5, #fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.launch-screen.fade-out {
  opacity: 0;
}

.launch-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.launch-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 30vh 0 15vh 0;
  box-sizing: border-box;
}

.launch-logo {
  width: 280px;
  height: auto;
  filter: none;
  color: var(--accent-color);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.launch-logo.animate-out {
  transform: scale(1.2);
  opacity: 0;
}

.start-button {
  background: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 30px;
  color: var(--accent-color);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Instrument Sans", Arial, sans-serif;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Onboarding Screen Styles */
.onboarding-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--Background-Default-Default);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  overflow-y: auto;
  overflow-x: hidden;
}

.onboarding-screen.fade-out {
  opacity: 0;
}

.onboarding-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.onboarding-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
  max-width: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

.onboarding-header {
  text-align: left;
  margin-bottom: 20px;
  margin-top: 40px;
  width: 100%;
}

.onboarding-logo {
  width: 120px;
  height: auto;
  filter: none;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.onboarding-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -0.02em;
}

.onboarding-header p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* All Steps on One Page */
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.onboarding-step {
  display: block;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
  padding: 32px 0;
  border-bottom: 1px solid #e0e0e0;
}

.onboarding-step:last-child {
  border-bottom: none;
}

.onboarding-step:nth-child(1) {
  animation-delay: 0.2s;
}
.onboarding-step:nth-child(2) {
  animation-delay: 0.4s;
}
.onboarding-step:nth-child(3) {
  animation-delay: 0.6s;
}
.onboarding-step:nth-child(4) {
  animation-delay: 0.8s;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  margin-bottom: 16px;
}

.form-section {
  width: 100%;
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
  font-size: 0.9rem;
  line-height: 1.2;
}

.checkbox-option input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.label-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  flex: 1;
  text-align: left;
}

/* Input Groups */
.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Instrument Sans", sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(88, 167, 194, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Budget Presets */
.budget-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.budget-preset {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.budget-preset:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.budget-preset.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.consent-text {
  margin: 0 0 16px 0;
  text-align: left;
  line-height: 1.3;
}

.step-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  stroke-width: 2px;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px 0;
}

.step-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.3;
}

.get-started-button {
  background: #519db8;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 1rem;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 40px;
  cursor: pointer;
}

/* App container and centering */
.app-container {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: 110px;
  position: relative;
}

#searchbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 32px;
}

/* Test Selection Styles */
.test-selection-container {
  margin-top: 20px;
}

.test-selection-header {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  padding-left: 12px;
}

.test-selection-buttons {
  width: calc(100% + 16px);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.test-selection-buttons-inner {
  display: flex;
  gap: 8px;
  width: max-content;
  margin-right: 16px;
}

.test-selection-buttons::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.test-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 400;
  min-height: 54px;
  max-width: 180px;
  min-width: 160px;
  text-align: left;
  position: relative;
  flex-shrink: 0;
}

.test-btn:hover {
  background: #f1f3f4;
  border-color: #adb5bd;
}

.test-btn.active {
  background: #fbfbfb;
  border-color: var(--accent-color);
  color: #1e1e1e;
}

.test-btn-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.test-btn.active .test-btn-number {
  background: rgba(255, 255, 255, 0.3);
}

.test-btn-label {
  white-space: normal;
  font-family: "Instrument Sans", Arial, sans-serif;
  line-height: 1;
  word-wrap: break-word;
  flex: 1;
}

.test-btn-arrow {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 14px;
  color: #bbb;
  opacity: 0.7;
}

.search-bar-modern {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Location bar at top right with Feather icon */
.location-bar {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
  color: #555;
  gap: 6px;
  z-index: 10;
}
.location-bar svg {
  width: 16px;
  height: 16px;
  stroke: #888;
  margin-right: 4px;
}

/* Accent heading above search bar */
.accent-heading {
  color: var(--accent-color);
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Modern SearchBar styles - fixed vertical layout */
.searchbar-outer.searchbar-vertical-fixed {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  height: 158px;
  box-sizing: border-box;
  padding: 16px;
  padding-bottom: 8px;
  background: var(--Background-Default-Default, #fff);
  border-radius: 32px;
  /* outline: 1px var(--Border-Default-Default, #D9D9D9) solid; */
  outline-offset: -0.5px;
}
.searchbar-prompt-fixed {
  color: var(--Text-Default-Default, #1e1e1e);
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
  text-align: left;
  display: flex;
  align-items: center;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: auto;
}
.searchbar-actions-row-fixed {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
}
.searchbar-action-btn {
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #757575;
  transition: background 0.15s;
  font-size: 1.5rem;
}

.searchbar-arrow-btn {
  border: 2px solid #d9d9d9;
  background: #fff;
  color: #1e1e1e;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.searchbar-arrow-btn.active {
  background: #1e1e1e;
  color: white;
  border-color: #1e1e1e;
}

/* Modern NavBar styles - improved spacing and vertical stack */
.navbar-modern {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--Schemes-Surface, #fafafa);
  border-bottom: 0.5px rgba(0, 0, 0, 0.37) solid;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 16px;
  padding-top: 4px;
}
.navbar-content {
  width: 100%;
  max-width: 700px;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  gap: 0;
  padding-left: 64px;
  padding-right: 64px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 80px;
  height: 100%;
  gap: 0px;
}
.nav-label {
  width: 100%;
  text-align: center;
  color: var(--Text-Neutral-Secondary, #5a5a5a);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  margin: 0;
}
.nav-item.active .nav-label {
  color: var(--Text-Default-Default, #1e1e1e);
  font-weight: 600;
}
.nav-icon-bg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  background: none;
}
.nav-icon-bg.active {
  background: #cfe6f1;
}
.nav-icon-bg i,
.nav-icon-bg svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

:root {
  --accent-color: #58a7c2;
  --icon-default-secondary: #757575;
}
.nav-icon-bg.active svg {
  stroke: var(--accent-color);
}
.nav-icon-bg:not(.active) svg {
  stroke: var(--icon-default-secondary);
}
.nav-item:not(.active) .nav-label {
  color: var(--icon-default-secondary);
}

.hidden {
  display: none !important;
  visibility: hidden !important;
}

.placeholder-fade {
  transition: opacity 0.3s ease-in;
}

svg {
  width: 20px;
  height: 20px;
}

.product-page {
  width: 100%;
  max-width: 100%;
}
.product-card-modular {
  width: 100%;
  max-width: 420px;
  background: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  margin: 16px auto;
}
.product-card-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-card-image-col {
  flex: 0 0 160px;
  display: flex;
  align-items: flex-start;
}
.product-image {
  width: 160px;
  height: 211px;
  object-fit: cover;
  border-radius: 12px;
  background: #f5f5f5;
}
.product-card-details-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 211px;
  justify-content: space-between;
}
.product-card-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.brand-logo-text {
  font-size: 13px;
}
.sold-by {
  color: #757575;
  font-size: 11px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: 0.06px;
}
.bookmark-btn {
  background: none;
  border: none;
  margin-left: auto;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.15s;
}

.product-title {
  color: #303030;
  font-size: 16px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 500;
  line-height: 21px;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px;
}
.product-price {
  color: #5a5a5a;
  font-size: 15px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 4px;
}
.product-badges-row {
  display: flex;
  height: 45px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 16px;
  font-size: 11px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: 0.06px;
  padding: 2px 4px;
  background: #fff;
  border: 1px solid #eee;
  align-items: center;
}
.badge svg {
  width: 16px;
  height: 16px;
}

.badge.trending {
  border: 1px solid #d732a8;
  color: #ba2a92;
}
.badge.selling {
  border: 1px solid #bf6a02;
  color: #bf6a02;
}
.badge.sale {
  background: #ffe5e5;
  color: #e53935;
  border: none;
}
.badge.rare {
  border: 1px solid #4fa3c7;
  color: #4fa3c7;
  background: #fff;
}

.product-meta-row {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 2px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5a5a5a;
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
}
.availability .dot {
  width: 8px;
  height: 8px;
  background: #00901a;
  border-radius: 50%;
  display: inline-block;
}
.distance {
  color: #5a5a5a;
  font-size: 12px;
  font-weight: 500;
}
.add-btn-modular {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: auto;
  border-radius: 24px;
  padding: 0;
  width: 54px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: var(--accent-color);
  background-color: #cfe6f1;
}
.add-btn-modular.in-trip {
  background: none !important;
  border: 2px solid #519db8;
}

#refine-page {
  max-width: 420px;
  padding: 24px 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInFromBottom 0.6s ease-out 1.8s forwards;
}

/* Once animation has played, keep elements visible */
#refine-page.animation-played {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
#refine-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #303030;
  margin-bottom: 18px;
  font-family: "Instrument Sans", Arial, sans-serif;
}
#refine-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 12px;
}
.refine-image-tile {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.1s, box-shadow 0.1s;
  box-shadow: none;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  min-width: 0;
}
.refine-image-tile.selected {
  border: 3px solid var(--accent-color);
  box-shadow: 0 2px 12px rgba(81, 157, 184, 0.18);
}
.refine-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.primary-btn {
  background: #519db8;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 1rem;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.refine-desc {
  color: var(--Text-Default-Default);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  width: 100%;
  max-width: 380px;
  padding: 36px 16px 12px;
  line-height: 1.1;
  background: none;
}

@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.refine-desc p {
  margin-top: 0;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInFromBottom 0.8s ease-out 3s forwards;
}

.refine-desc p:nth-child(1) {
  animation-delay: 0.2s;
}

.refine-desc p:nth-child(2) {
  animation-delay: 1s;
}

/* Once animation has played, keep elements visible */
.refine-desc.animation-played p {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
.back-btn-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  height: 56px;
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  /* Progressive blur mask: most blur at top, none at bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.back-btn {
  position: static;
  margin-left: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 10px 8px 8px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.filter-btn {
  position: static;
  margin-left: auto;
  margin-right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 10px 8px 8px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.products-bar-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 56px;
}
#back-btn-bar-products {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  height: fit-content;
}
.products-heading-row {
  width: 100%;
  display: block;
  padding: 0 20px 8px 20px;
}
.products-heading {
  display: block;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  padding-left: 8px;
  pointer-events: none;
}

.product-original-price {
  color: #b0b0b0;
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 4px;
  font-weight: 400;
}

.example-searches-container {
  width: 100vw;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 2px;
  padding-left: 16px;
}
.example-searches-scroll {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.example-search {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #d9d9d9;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #757575;
  font-family: "Instrument Sans", Arial, sans-serif;
  margin-bottom: 2px;
  width: 200px;
  flex: 0 0 200px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border 0.15s, box-shadow 0.15s;
}

/* Filter Sheet Modal Styles */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2000;
  transition: opacity 0.15s;
}
.filter-overlay.hidden {
  display: none;
  opacity: 0;
}
.filter-overlay.show {
  display: block;
  opacity: 1;
}

.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.15s ease-out;
  height: 90vh;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.filter-sheet.show {
  transform: translateY(0);
}

.filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.filter-sheet-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.close-filter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s;
}

.filter-sheet-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.filter-sheet-content {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(80vh - 80px); /* leave space for sticky footer */
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dual-range-slider {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  pointer-events: none;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #519db8;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #519db8;
  cursor: pointer;
  border: none;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure max slider thumb appears above min slider */
.max-slider {
  z-index: 2;
}

.min-slider {
  z-index: 1;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

.distance-options,
.availability-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #519db8;
}

.filter-option span {
  font-size: 1rem;
  color: #333;
}

.keyword-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keyword-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #c5cad2;
  border-radius: 8px;
  transition: all 0.15s ease;
  pointer-events: none;
}

.filter-sheet.show .keyword-tag {
  pointer-events: auto;
}

/* Style for unchecked keyword tags */

.keyword-tag:has(input[type="checkbox"]:not(:checked)) {
  background: transparent;
  border: 1px solid transparent;
}

.keyword-tag input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #519db8;
  flex-shrink: 0;
  outline: none;
}

.keyword-tag span {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.3;
  flex: 1;
}

#custom-keyword-input {
  cursor: pointer;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #c5cad2;
  border-radius: 8px;
  font-size: 0.9rem;
}

.clear-filters-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.apply-filters-btn {
  flex: 2;
}

.bookmark-btn i {
  color: #519db8;
  font-size: 20px;
  transition: color 0.15s;
}

.bookmark-btn:hover i,
.bookmark-btn.active i {
  color: #357a96;
}

.searchbar-input {
  resize: none;
  /* Hide scrollbar for webkit browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
.searchbar-input::-webkit-scrollbar {
  display: none;
}

.refine-loading {
  color: var(--Text-Default-Default);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  width: 100%;
  max-width: 380px;
  padding: 36px 16px 12px;
  line-height: 1.1;
  background: none;
  text-align: center;
  display: block;
  margin: 0 auto;
  letter-spacing: 0.01em;
  animation: fadeInFromBottom 0.8s ease-out forwards;
}

#products-page h2 {
  position: sticky;
  top: 56px; /* height of .back-btn-bar */
  z-index: 900;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  margin-top: 0;
  padding: 0 8px 8px 8px;
}

#product-list {
  margin-top: 84px;
  margin-bottom: 32px;
  width: 100%;
}

.floating-trip-btn {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  background: #298ca2;
  color: #fff;
  border: none;
  border-radius: 40px;
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.18);
  padding: 8px 16px;
  /* height: 64px; */
  min-width: 320px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  opacity: 0;
  transition: opacity 0.1s;
}
.floating-trip-btn.show {
  opacity: 1;
}
.floating-trip-btn:active {
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
}
.trip-btn-icon i {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}
.trip-btn-label {
  flex: 1;
  text-align: center;
  font-weight: 500;
}
.trip-btn-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
#trip-overlay .filter-sheet-content {
  padding: 16px;
  padding-bottom: 80px; /* Add space for fixed footer */
}

/* Trip Sheet Footer */
.trip-sheet-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  z-index: 2002;
}

.trip-map-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #519db8;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Instrument Sans", Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trip-map-btn:hover {
  background: #4a8ba3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trip-map-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trip-map-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.trip-sheet-header-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.trip-dropdown {
  width: 100%;
}
.trip-dropdown-header {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trip-dropdown-header span:last-child {
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.trip-dropdown-header span:first-child {
  display: inline-flex;
  width: 20px;
  justify-content: center;
  align-items: center;
}
.trip-dropdown-content {
  display: block;
  width: 100%;
}

/* Product Detail Overlay - Fullscreen */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 3000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  transition: opacity 0.2s;
  padding: 16px;
  padding-top: 0;
  overflow-y: auto;
  max-height: 100vh;
}
.product-detail-sheet {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 0;
  gap: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: none;
}
.product-detail-close-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 0 8px 0;
  min-height: 56px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 4010;
}
.close-detail-btn {
  background: none !important;
  box-shadow: none;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 4000;
  margin-right: 4px;
}
.close-detail-btn:hover {
  color: #222;
  background: none !important;
}
.product-detail-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
}
.product-detail-image-col {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8px;
}
.product-detail-image {
  height: 420px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #f5f5f5;
}
.product-detail-info-col {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 32px 24px;
}
.product-detail-title-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2px;
}
.product-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #181818;
  line-height: 1.1;
}
.product-detail-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: #6b6b6b;
  margin-left: 16px;
}
.product-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.star-icon {
  color: #ffd600;
  margin-right: 2px;
}
.product-detail-rating {
  font-weight: 500;
  color: #444;
}
.product-detail-reviews {
  color: #2196f3;
  text-decoration: none;
  margin-left: 2px;
}
.product-detail-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.3;
}
.product-detail-color-row {
  margin: 24px 0;
}
.product-detail-color-label {
  font-size: 14px;
  font-weight: 600;
  color: #181818;
  margin-bottom: 4px;
}
.product-detail-color-swatches {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #e0e0e0;
  display: inline-block;
  box-sizing: border-box;
  margin-right: 0;
}
.color-swatch.selected {
  border: 3px solid #181818;
}
.color-white {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}
.color-gray {
  background: #4b4b4b;
  border: none;
}
@media (max-width: 600px) {
  .product-detail-info-col {
    padding: 18px 8px 32px 8px;
  }
  .product-detail-title {
    font-size: 1.5rem;
  }
  .product-detail-price {
    font-size: 1.1rem;
  }
  .product-detail-description {
    font-size: 1rem;
  }
  .color-swatch {
    width: 26px;
    height: 26px;
  }
  .product-detail-close-row {
    min-height: 40px;
    padding-bottom: 8px;
  }
  .close-detail-btn {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }
}

.product-detail-section {
  width: 100%;
  margin-top: 32px;
  padding-top: 36px;
  border-top: 1px solid #ececec;
}
.product-detail-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.product-detail-description-text {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.5;
  margin-left: 2px;
}

.product-detail-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.product-detail-list li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-detail-list li:last-child {
  margin-bottom: 0;
}
.product-detail-subsection {
  margin-bottom: 12px;
}
.product-detail-subsection-title {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 2px;
}
.product-detail-subsection-content {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.5;
  margin-left: 2px;
}

.product-review {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.product-review:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.product-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.product-review-stars {
  color: #ffd600;
  font-size: 14px;
  letter-spacing: 1px;
}
.product-review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-review-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.product-review-date {
  font-size: 12px;
  color: #888;
}
.product-review-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-left: 0;
}

.department-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.department-preset {
  display: flex;
  align-items: center;
  width: 120px;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--icon-default-secondary);
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;

  user-select: none;
  justify-content: space-around;
}

.department-preset input[type="checkbox"] {
  display: none;
}

.department-preset:has(input[type="checkbox"]:checked) {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}
.department-preset:has(input[type="checkbox"]:checked) span {
  color: white;
}

.shirt-outline {
  color: var(--accent-color);
  background: none;
  font-weight: 400;
}

.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.select-wrapper select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px; /* space for icon */
  background: white;
  width: 100%;
  max-width: 100%;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  font-size: 1rem;
}

.select-caret {
  position: absolute;
  right: 18px;
  pointer-events: none;
  color: var(--icon-default-secondary);
  font-size: 0.9em;
  z-index: 2;
}

/* Product Detail Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #519db8;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.carousel-arrow.left {
  left: 8px;
}
.carousel-arrow.right {
  right: 8px;
}
.carousel-arrow:active {
  background: #e0f2fa;
}
.carousel-container .product-detail-image {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  object-fit: cover;
}
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0b0b0;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.carousel-dot.active {
  background: #777;
  transform: scale(1.1);
}

/* Carousel Slide Animations */
.slide-left-out {
  animation: slideLeftOut 0.25s forwards;
}
.slide-left-in {
  animation: slideLeftIn 0.25s forwards;
}
.slide-right-out {
  animation: slideRightOut 0.25s forwards;
}
.slide-right-in {
  animation: slideRightIn 0.25s forwards;
}
@keyframes slideLeftOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-60%);
  }
}
@keyframes slideLeftIn {
  0% {
    opacity: 0;
    transform: translateX(60%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideRightOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(60%);
  }
}
@keyframes slideRightIn {
  0% {
    opacity: 0;
    transform: translateX(-60%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.trip-time-bold {
  font-weight: 700;
  font-size: 1.08em;
}
.trip-time-unit {
  font-weight: 700;
}

@media (max-width: 600px) {
  .refine-image-tile {
    min-height: 0;
    aspect-ratio: 3/4;
  }
}

#map-page {
  width: 100%;
}

/* Profile Page Styles */
#profile-page {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e3f2fd;
  border: 2px solid #bbdefb;
  color: var(--accent-color);
}

.profile-avatar svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
}

.avatar-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.2;
}

.profile-joined {
  font-size: 0.9rem;
  color: #757575;
  font-weight: 400;
}

/* Profile Metrics */
.profile-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.metric-card:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-card.primary {
  background: #e3f2fd;
  border-color: #bbdefb;
}

.metric-card.primary:hover {
  background: #bbdefb;
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.2;
}

.metric-arrow {
  color: #adb5bd;
  display: flex;
  align-items: center;
}

.metric-arrow svg {
  width: 18px;
  height: 18px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metrics-grid .metric-card {
  padding: 12px 16px;
}

.metrics-grid .metric-value {
  font-size: 1.2rem;
}

/* Profile Menu */
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f8f9fa;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #f8f9fa;
}

.menu-item:active {
  background: #e9ecef;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #495057;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
}

.menu-label {
  flex: 1;
  font-size: 1rem;
  color: #1e1e1e;
  font-weight: 500;
}

.menu-arrow {
  color: #adb5bd;
  display: flex;
  align-items: center;
}

.menu-arrow svg {
  width: 18px;
  height: 18px;
}

/* Profile Footer */
.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-top: auto;
  border-top: 1px solid #e9ecef;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e1e;
}

.footer-logo svg {
  width: 20px;
  height: 20px;
  color: #1e1e1e;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #757575;
}

.mobbin-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1e1e1e;
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  #profile-page {
    padding: 16px 12px 120px 12px;
  }
  
  .profile-header {
    padding: 16px 0;
  }
  
  .avatar-image {
    width: 50px;
    height: 50px;
  }
  
  .profile-name {
    font-size: 1.2rem;
  }
  
  .metric-card {
    padding: 14px 16px;
  }
  
  .menu-item {
    padding: 14px 16px;
  }
}

/* Leaflet Map Styles */
#map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.leaflet-container {
  font-family: "Instrument Sans", Arial, sans-serif;
}

.map-info-panel {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-info-panel h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.map-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.map-stat {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.map-stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  display: block;
}

.map-stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}



