/* ==========================================================
   Stella Fyti Heights — location.css
   "About the location": photo carousel + map, story text, host quote
   ========================================================== */

.location {
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  background: var(--color-bg);
}

.location__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Two columns: carousel | map (same height on both) */
.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  background: #e8e0d6;
  border-radius: 4px;
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.carousel__slide {
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(31, 27, 24, 0.25);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel__btn:hover {
  background: #fff;
}

.carousel__btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.carousel__btn--prev {
  left: 0.75rem;
}

.carousel__btn--next {
  right: 0.75rem;
}

.carousel__btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(31, 27, 24, 0.65);
  border-radius: 999px;
}

/* ---------- Map ---------- */
.location__map {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8e0d6;
  border-radius: 4px;
}

.location__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Story text ---------- */
.location__story {
  max-width: 44rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.location__story h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}

.location__story p {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-ink-soft);
}

.location__story p:last-child {
  margin-bottom: 0;
}

/* ---------- Host quote ---------- */
.host-quote {
  max-width: 46rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding-top: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--color-line);
}

.host-quote blockquote {
  margin: 0;
}

.host-quote blockquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-style: italic;
  line-height: 1.55;
  text-wrap: pretty;
}

.host-quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.75rem;
  text-align: left;
}

.host-quote img {
  width: 3.5rem;            /* the photo is 55px: shown at its native size, so it stays sharp */
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.host-quote__name {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.host-quote__role {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--color-ink-soft);
}

/* ---------- Tablet and mobile: stack ---------- */
@media (max-width: 899px) {
  .location__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 38rem;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__btn {
    transition: none;
  }
}
