*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Azeret Mono", monospace;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: "Azeret Mono", monospace;
  color: #373D43;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.logo:hover {
  color: #373D43;
  opacity: 0.85;
}

.logo:active,
.logo:focus {
  color: #E6602E;
  opacity: 1;
  outline: none;
  background: transparent;
}
.logo::-moz-focus-inner {
  border: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-right .btn {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: "Azeret Mono", monospace;
  color: #878D96;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-right .btn:hover {
  color: #878D96;
  opacity: 0.8;
  background: transparent;
}

.header-right .btn:active,
.header-right .btn:focus {
  color: #878D96;
  opacity: 1;
  outline: none;
  background: transparent;
}

.header-right .btn-active {
  color: #E6602E;
  background: transparent;
  border: none;
}

.header-right .btn-active:hover,
.header-right .btn-active:active,
.header-right .btn-active:focus {
  color: #E6602E;
  opacity: 1;
  outline: none;
  background: transparent;
}

.header-right .btn::-moz-focus-inner {
  border: 0;
}

/* Map */
.map-container {
  position: relative;
  height: calc(100vh - 56px);
  width: 100%;
}

#map {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 262px;
  min-height: 35px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: "Azeret Mono", monospace;
  font-size: 0.75rem;
  color: #333;
  z-index: 1000;
}

.map-legend__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-legend__dot--tbd {
  background: #E6602E;
}

.map-legend__dot--completed {
  background: #22c55e;
}

/* Location card modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.dot-card {
  position: relative;
  width: 320px;
  height: 180px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Gallery card (MoMA, Frick, etc.): larger so first image is fully visible */
.dot-card.dot-card--gallery {
  width: 420px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
}

.dot-card-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  background-color: #e8e8e8;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 8px 8px;
}

.dot-card-streetview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dot-card-streetview[src=""],
.dot-card-streetview.no-coverage {
  opacity: 0;
  pointer-events: none;
}

/* MoMA card: vertical scroll of images (replaces gray box) */
.dot-card-gallery {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: #e8e8e8;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.dot-card-gallery[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.dot-card-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.dot-card-gallery img[hidden] {
  display: none;
}

.dot-card-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 10px;
  min-height: 0;
}

.dot-card-location {
  font-family: "Azeret Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #000;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: normal;
}

.dot-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.dot-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E6602E;
}

.dot-card-status--completed .dot-card-dot {
  background: #22c55e;
}

.dot-card-tbd {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #000;
}

/* About page */
.about-container {
  display: none;
  min-height: calc(100vh - 56px);
  background: #fff;
  overflow-y: auto;
  font-family: "PP Neue Montreal", sans-serif;
}

body.about-active .map-container {
  display: none;
}

body.about-active .about-container {
  display: block;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: #333;
}

.about-title {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  color: #333;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.about-tldr {
  background: rgba(153, 194, 235, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 48px;
}

.about-tldr p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.about-tldr strong {
  color: #3D5ABA;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 32px;
  margin-bottom: 40px;
}

.about-section--left {
  flex-direction: row;
}

.about-section--left .about-text {
  flex: 1 1 280px;
}

.about-section--left .about-polaroid--right {
  flex: 0 0 auto;
}

.about-section--right {
  flex-direction: row-reverse;
}

.about-section--right .about-text {
  flex: 1 1 280px;
  text-align: right;
}

.about-section--right .about-polaroid--left {
  flex: 0 0 auto;
}

.about-text {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.about-text p {
  margin: 0 0 1em;
}

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

.about-text strong {
  color: #3D5ABA;
}

.about-hobby-quote {
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

.about-text--full {
  flex: 1 1 100%;
}

.about-section--last {
  margin-bottom: 32px;
}

/* About section images (assets are already polaroid-style) */
.about-polaroid {
  flex-shrink: 0;
  /* Slide shadow: soft, offset shadow for each polaroid */
  filter: drop-shadow(4px 6px 12px rgba(0, 0, 0, 0.15)) drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.08));
}

.about-polaroid--tilt-1 {
  transform: rotate(2deg);
}

.about-polaroid--tilt-2 {
  transform: rotate(-3deg);
}

.about-polaroid--tilt-3 {
  transform: rotate(1.5deg);
}

.about-polaroid img {
  display: block;
  width: 220px;
  height: auto;
  vertical-align: top;
}

.about-polaroid--tilt-3 img {
  width: 280px;
}

.about-icon-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 32px;
}

.about-icon-wrap--flower {
  margin-top: 16px;
  margin-bottom: 48px;
  width: 100%;
}

.about-icon-wrap--flower .about-flower-link {
  width: 100%;
  justify-content: flex-start;
}

.about-icon-wrap--flower .about-flower-link::before {
  content: "";
  width: calc(50% - 40px);
  flex-shrink: 0;
}

.about-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.about-icon--cherry {
  width: 88px;
  height: 88px;
}

.about-icon--flower {
  width: 80px;
  height: 80px;
  color: #333;
  transition: color 0.2s ease;
}

.about-flower-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.about-flower-link:hover .about-icon--flower {
  color: #E6602E;
}

.about-flower-arrow {
  width: 40px;
  height: 20px;
  color: #333;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.about-go-to-map {
  font-family: "Caveat", "Rousie", cursive;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
}
