/* LOCATION SECTION */
.location-section {
  background-color: var(--color-bg-alt);
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .location-section {
    padding-block: 120px;
  }
}

/* Intro */
.location-section__intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding-inline: 20px;
}

@media (min-width: 1024px) {
  .location-section__intro {
    margin-bottom: 64px;
  }
}

.location-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 8px; /* reduced space to subtitle */
  text-wrap: balance;
}

.location-section__subtitle {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400; /* slightly lighter than title */
  color: var(--color-primary-dark); /* bronze/primary */
  margin-bottom: 24px;
}

.location-section__copy {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Rail (Mobile/Tablet only) */
.location-rail {
  position: relative;
  max-width: 600px;
  margin: 0 auto 32px;
  padding-inline: 20px;
}

@media (min-width: 1024px) {
  .location-rail {
    display: none; /* Hidden on desktop grid */
  }
}

.location-rail__track {
  position: relative;
  height: 2px;
  background-color: var(--color-border);
  margin-bottom: 20px;
  border-radius: 1px;
}

.location-rail__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--color-primary);
  width: 0%; /* updated via JS */
  transition: width 0.3s ease-out;
  border-radius: 1px;
}

.location-rail__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.location-rail__step {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 44x44px touch target without changing visual size */
.location-rail__step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
}

.location-rail__step:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.location-rail__step.active {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-surface);
}

/* Scroller / Grid */
.location-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding-inline: 20px;
  padding-bottom: 40px; /* Safe area for scrolling */
}

.location-cards::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

@media (min-width: 768px) {
  .location-cards {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .location-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-inline: 40px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
}

/* Card */
.location-card {
  position: relative;
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  text-align: left;
  /* subtle shadow */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (min-width: 430px) {
  .location-card {
    flex: 0 0 75%;
  }
}

@media (min-width: 768px) {
  .location-card {
    flex: 0 0 48%;
    min-height: 460px;
  }
}

@media (min-width: 1024px) {
  .location-card {
    min-height: 500px;
    padding: 40px 32px;
  }
}

.location-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-border); /* Placeholder warm neutral */
  z-index: 1;
}

.location-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 26, 21, 0.9) 0%, rgba(30, 26, 21, 0.4) 50%, rgba(30, 26, 21, 0) 100%);
  z-index: 2;
}

.location-card__content {
  position: relative;
  z-index: 3;
}

.location-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.location-card__number {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-surface);
  background-color: rgba(251, 248, 243, 0.15); /* Glassy ivory */
  padding: 4px 10px;
  border-radius: 4px;
}

@media (min-width: 1024px) {
  .location-card__number {
    display: none;
  }
}

.location-card__icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .location-card__icon {
    width: 26px;
    height: 26px;
  }
}

.location-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.location-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 28px);
  font-weight: 500;
  color: var(--color-surface);
  margin-bottom: 12px;
  line-height: 1.2;
}

.location-card__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(251, 248, 243, 0.85); /* Slightly muted ivory */
}
