/* =========================
   MOBILE FIRST BASELINE
   ========================= */

/* Hide map on mobile */
#map {
  display: none;
}

html{
  font-size: 30px;
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #fff;
  color: #111;
}

/* =========================
   HEADER (TITLE + FILTERS)
   ========================= */

#header {
  position: sticky;
  top: 0;
  width: 100%;

  background: #fff;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 16px 0;
}

/* Title */

#page-title {
  margin: 0 0 20px 0;
  text-align: center;

  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: black;

  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 2px;


  pointer-events: none;
}

/* =========================
   FILTERS
   ========================= */

#filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  
}

/* =========================
   FILTER BUTTONS
   ========================= */


button {
  background: none;
  border: none;
  padding: 10px;

  font-size: 50px;
  font-weight: 300;

  color: #111;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;

  appearance: none;
  -webkit-appearance: none;
}



/* Hover (desktop only, harmless on mobile) */

/* =========================
   ACTIVE FILTER STATE
   ========================= */

/* Active always wins — hover, focus, active included */
button.active,
button.active:hover,
button.active:active,
button.active:focus {
  background: black;
  color: fff;

  font-weight: 500;
  outline: none;
}

/* =========================
   LIST LAYOUT
   ========================= */

#list {
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

/* =========================
   LIST ITEMS
   ========================= */

.list-item {
  padding: 30px;
  margin-bottom: 40px;
  cursor: pointer;
  
}

.list-item:last-child {
  margin-bottom: 0;
}

/* Typography */

.spot-name {
  font-size: 35px;   /* ~29–30px */
  font-weight: 300;
  line-height: 1.4;

  text-decoration: underline;
  text-underline-offset: 12px;
  text-decoration-thickness: 2px;
}

.spot-vibe {
  font-size: 30px;  /* ~20–21px */
  line-height: 1.6;
  color: #666;

  margin: 10px 0 18px;
}


.list-item:hover .spot-name {
  text-decoration: underline;
}

/* =========================
   MODAL
   ========================= */

.modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.4);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: #fff;
  padding: 30px;

  width: 90%;
  max-width: 700px;
  max-height: 90vh;

  font-size: 30px;
  line-height: 1.8;

  overflow-y: auto;
  position: relative;
}

/* Close button */

#modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Modal images */



/* =========================
   P5 CANVAS (BACKGROUND)
   ========================= */

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* =========================
   MAP MARKERS (DESKTOP ONLY)
   ========================= */

.custom-marker {
  width: 10px;
  height: 10px;

  background: #0303fc;
  border-radius: 50%;
  opacity: 0.8;

  cursor: pointer;
  pointer-events: auto;
}

.spot-address {
  margin-top: 16px;
  font-size: 25px;
}

.spot-address a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.spot-address a:hover {
  opacity: 0.7;
}


