:root {
  --cream: #FEFEF4;
  --taupe: #A8A69B;
  --taupe-dark: #8F8D82;
  --taupe-light: #D0CEC1;
  --on-taupe: #FBFBEF;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--sans);
  color: var(--taupe-dark);
  -webkit-font-smoothing: antialiased;
}

.header-banner {
  display: block;
  width: 100%;
  height: auto;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  text-align: center;
}

.section-title {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--taupe);
  margin: 0 0 40px;
}

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.arrow:hover { opacity: 0.65; }
.arrow:active { transform: scale(0.9); }

.switch-icon {
  width: 28px;
  height: auto;
  display: block;
  transition: transform 0.15s ease;
}

.switch-prev {
  transform: scaleX(-1);
}

.carousel-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 513 / 632;
  overflow: hidden;
  background: var(--taupe-light);
}

.location-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fadeIn 0.35s ease;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.location-photo:hover {
  filter: brightness(0.92);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 30px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--taupe-light);
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: var(--taupe);
  transform: scale(1.3);
}

.location-btn {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--taupe);
  background: transparent;
  border: 1px solid var(--taupe-light);
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.location-btn:hover {
  background: var(--taupe);
  color: var(--on-taupe);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 24px 48px;
}

.footer-link {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--taupe-light);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-link:hover { color: var(--taupe); }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-icons img {
  display: block;
  border-radius: 50%;
}

/* Modal / floor map popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 38, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}

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

.modal-card {
  background: var(--cream);
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--on-taupe);
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.modal-map-header {
  background: var(--taupe);
  color: var(--on-taupe);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.modal-map-frame {
  overflow: auto;
  flex: 1;
  background: var(--cream);
  -webkit-overflow-scrolling: touch;
}

.modal-map-img {
  width: 100%;
  min-width: 750px;
  height: auto;
  display: block;
}

.directions-btn {
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--taupe);
  color: var(--on-taupe);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.directions-btn:hover { background: var(--taupe-dark); }

@media (min-width: 600px) {
  .section-title { font-size: 1.75rem; }
}

/* Zoom Controls inside Popup */
.zoom-controls {
  position: absolute;
  bottom: 72px; /* Floats above the 'Get Directions' button */
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(254, 254, 244, 0.95);
  border: 1px solid var(--taupe-light);
  color: var(--taupe-dark);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(40, 38, 32, 0.15);
  transition: background 0.2s ease, transform 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.zoom-btn:hover {
  background: var(--cream);
  color: var(--taupe);
}

.zoom-btn:active {
  transform: scale(0.92);
}

#zoomResetBtn {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 19px;
  width: auto;
  padding: 0 12px;
}
