/* MostMaker — Component classes and overrides */

/* Dietary requirements collapsible */
#section-avoids summary { list-style: none; }
#section-avoids summary::-webkit-details-marker { display: none; }
#section-avoids[open] .avoids-hint { display: none; }
#section-avoids summary .avoids-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-avoids[open] summary .avoids-chevron {
  transform: rotate(90deg);
}

/* Cuisine section collapsible */
#section-fancies summary { list-style: none; }
#section-fancies summary::-webkit-details-marker { display: none; }
#section-fancies[open] .fancies-hint { display: none; }
#section-fancies summary .fancies-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-fancies[open] summary .fancies-chevron {
  transform: rotate(90deg);
}

/* Other section collapsible */
#section-other summary { list-style: none; }
#section-other summary::-webkit-details-marker { display: none; }
#section-other[open] .other-hint { display: none; }
#section-other summary .other-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-other[open] summary .other-chevron {
  transform: rotate(90deg);
}

/* Music vibes section collapsible */
#section-music-vibes summary { list-style: none; }
#section-music-vibes summary::-webkit-details-marker { display: none; }
#section-music-vibes[open] .music-vibes-hint { display: none; }
#section-music-vibes summary .music-vibes-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-music-vibes[open] summary .music-vibes-chevron {
  transform: rotate(90deg);
}

/* Genres section collapsible */
#section-genres summary { list-style: none; }
#section-genres summary::-webkit-details-marker { display: none; }
#section-genres[open] .genres-hint { display: none; }
#section-genres summary .genres-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-genres[open] summary .genres-chevron {
  transform: rotate(90deg);
}

/* Import section collapsible */
#section-import summary { list-style: none; }
#section-import summary::-webkit-details-marker { display: none; }
#section-import[open] .import-hint { display: none; }
#section-import summary .import-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-import[open] summary .import-chevron {
  transform: rotate(90deg);
}

/* Import service tabs */
.import-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #837D78;
  background-color: #1C1C20;
  border: 1.5px solid #28282E;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.import-tab:hover {
  border-color: #333339;
  color: #A8A3A0;
}
.import-tab.active {
  background-color: rgba(229, 165, 75, 0.1);
  border-color: #E5A54B;
  color: #E5A54B;
}

/* Music other section collapsible */
#section-music-other summary { list-style: none; }
#section-music-other summary::-webkit-details-marker { display: none; }
#section-music-other[open] .music-other-hint { display: none; }
#section-music-other summary .music-other-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-music-other[open] summary .music-other-chevron {
  transform: rotate(90deg);
}

/* Vibe section collapsible */
#section-vibes summary { list-style: none; }
#section-vibes summary::-webkit-details-marker { display: none; }
#section-vibes[open] .vibes-hint { display: none; }
#section-vibes summary .vibes-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: #A8A3A0;
}
#section-vibes[open] summary .vibes-chevron {
  transform: rotate(90deg);
}

/* Vibe selection cards */
.vibe-card {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0.75rem;
  background-color: #1C1C20;
  border: 1.5px solid #28282E;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.vibe-card:hover {
  border-color: #333339;
}
.vibe-card:active {
  transform: scale(0.97);
}
.vibe-card .vibe-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #E0DBD7;
}
.vibe-card .vibe-brief {
  font-size: 0.75rem;
  color: #837D78;
  margin-top: 0.125rem;
  line-height: 1.3;
}
.vibe-card.fancy {
  background-color: rgba(229, 165, 75, 0.12);
  border-color: #E5A54B;
}
.vibe-card.fancy .vibe-title {
  color: #E5A54B;
}
.vibe-card.fancy .vibe-brief {
  color: #C49045;
}
.vibe-card.not-fancy {
  background-color: rgba(107, 102, 96, 0.1);
  border-color: #28282E;
}
.vibe-card.not-fancy .vibe-title {
  color: #837D78;
  text-decoration: line-through;
}
.vibe-card.not-fancy .vibe-brief {
  color: #5A5652;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: #E5A54B;
  color: #0A0A0C;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: #D4922E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 165, 75, 0.25);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: transparent;
  color: #E5A54B;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1.5px solid #E5A54B;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background-color: rgba(229, 165, 75, 0.08);
  transform: translateY(-1px);
}

/* Form inputs */
.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: #141417;
  color: #F5F0EB;
  font-size: 1rem;
  border: 1.5px solid #28282E;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder {
  color: #837D78;
}
.form-input:focus {
  border-color: #E5A54B;
  box-shadow: 0 0 0 3px rgba(229, 165, 75, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Date/time inputs — ensure calendar/clock icon is tappable */
input[type="date"].form-input,
input[type="time"].form-input {
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.75rem;
  cursor: pointer;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator,
input[type="time"].form-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.25rem;
  filter: invert(0.6);
  opacity: 1;
}

/* Cards */
.card {
  background-color: #141417;
  border: 1px solid #28282E;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .card { padding: 1.5rem; }
}
.card:hover {
  border-color: #333339;
}

/* Grain texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Tag pills */
.tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background-color: #1C1C20;
  color: #A8A3A0;
  border: 1px solid #28282E;
}

/* Domain card */
.domain-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1.5px solid #28282E;
  background-color: #141417;
  transition: all 0.2s ease;
}
.domain-card.active {
  border-color: #E5A54B;
  cursor: pointer;
}
.domain-card.active:hover {
  border-color: #F0C27A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 165, 75, 0.1);
}
.domain-card.coming-soon {
  opacity: 0.5;
  cursor: default;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #141417 25%, #1C1C20 50%, #141417 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 0.375rem;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid #28282E;
}
.tab {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #837D78;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1.5px;
}
.tab:hover {
  color: #A8A3A0;
}
.tab.active {
  color: #E5A54B;
  border-bottom-color: #E5A54B;
}

/* Price pills */
.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #A8A3A0;
  background-color: #1C1C20;
  border: 1.5px solid #28282E;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.price-pill:hover {
  border-color: #E5A54B;
  color: #E5A54B;
}
.price-pill.active {
  background-color: rgba(229, 165, 75, 0.12);
  border-color: #E5A54B;
  color: #E5A54B;
}

/* Station search dropdown */
.station-dropdown {
  position: absolute;
  z-index: 20;
  width: 100%;
  max-height: 15rem;
  overflow-y: auto;
  background-color: #1C1C20;
  border: 1px solid #28282E;
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Station chip */
.station-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: #E5A54B;
  background-color: rgba(229, 165, 75, 0.08);
  border: 1px solid rgba(229, 165, 75, 0.25);
  border-radius: 9999px;
}
.station-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #A8A3A0;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  line-height: 1;
}
.station-chip button:hover {
  color: #F5F0EB;
}

/* Reservable badge */
.badge-reservable {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E5A54B;
  background-color: rgba(229, 165, 75, 0.08);
  border: 1px solid rgba(229, 165, 75, 0.2);
  border-radius: 9999px;
}

/* Availability note */
.availability-note {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #A8A3A0;
  background-color: rgba(229, 165, 75, 0.04);
  border-left: 2px solid #E5A54B;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* Leaflet overrides — keep above grain overlay */
.leaflet-top,
.leaflet-bottom {
  z-index: 51;
}
.leaflet-popup-content-wrapper {
  background-color: #141417;
  color: #F5F0EB;
  border: 1px solid #28282E;
  border-radius: 0.5rem;
}
.leaflet-popup-tip {
  background-color: #141417;
  border: 1px solid #28282E;
}
.leaflet-popup-content {
  margin: 0.75rem;
  font-size: 0.875rem;
}

/* Preference checkbox labels */
.pref-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #A8A3A0;
  background-color: #1C1C20;
  border: 1.5px solid #28282E;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 2.75rem;
  -webkit-tap-highlight-color: transparent;
}
.pref-check:has(input:checked) {
  background-color: rgba(229, 165, 75, 0.1);
  border-color: #E5A54B;
  color: #E5A54B;
}
.pref-check:active {
  transform: scale(0.97);
}
.pref-check input {
  accent-color: #E5A54B;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Cuisine 3-state toggle */
.cuisine-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #A8A3A0;
  background-color: #1C1C20;
  border: 1.5px solid #28282E;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  min-height: 2.75rem;
  -webkit-tap-highlight-color: transparent;
}
.cuisine-toggle:hover {
  border-color: #333339;
}
.cuisine-toggle:active {
  transform: scale(0.96);
}
.cuisine-toggle.fancy {
  background-color: rgba(229, 165, 75, 0.12);
  border-color: #E5A54B;
  color: #E5A54B;
}
.cuisine-toggle.not-fancy {
  background-color: rgba(107, 102, 96, 0.1);
  border-color: #28282E;
  color: #837D78;
  text-decoration: line-through;
}

/* Full-bleed: break out of constrained parent */
.hero-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -2rem;
  margin-bottom: 2rem;
}

/* Hero section */
.hero {
  background: #0A0A0C;
  padding: 4rem 0 5rem;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 25% 50%, rgba(229, 165, 75, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 75% 30%, rgba(229, 165, 75, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(180, 120, 40, 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(229, 165, 75, 0.4) 30%, rgba(229, 165, 75, 0.4) 70%, transparent 95%);
}
@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
/* Prevent image container from being affected by text reflow */
.hero-image-wrap {
  flex-shrink: 0;
}
.hero-text {
  width: 100%;
  text-align: center;
}
.hero-title {
  font-family: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw + 0.8rem, 5.5rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F5F0EB;
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: heroTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-title .accent {
  color: #E5A54B;
  position: relative;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 3px;
  background: #E5A54B;
  opacity: 0.4;
  border-radius: 2px;
}
@keyframes heroTitleIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.45s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-image {
  max-width: 90%;
  max-height: 200px;
  object-fit: contain;
  opacity: 0;
  filter: brightness(1.15) contrast(1.05);
  animation: heroImageIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards,
             heroDrift 20s ease-in-out 1.5s infinite;
}
@keyframes heroImageIn {
  0% { opacity: 0; transform: translateY(16px) scale(0.97); }
  100% { opacity: 0.9; transform: translateY(0) scale(1); }
}
@keyframes heroDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Rotating accent: fixed height so word swaps don't shift layout */
.hero-title .accent {
  display: inline-block;
  vertical-align: bottom;
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; min-height: 440px; }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 400px);
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0 4rem;
  }
  .hero-text { text-align: center; }
  .hero-image-wrap { justify-content: center; }
  .hero-image { max-height: 320px; max-width: 100%; }
}
@media (min-width: 1024px) {
  .hero { padding: 5rem 0 7rem; }
  .hero-inner { padding: 0 6rem; }
  .hero-image { max-height: 360px; }
}
@media (min-width: 1280px) {
  .hero-image { max-height: 400px; }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #28282E;
  border-top-color: #E5A54B;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
