/* ── Reset & base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f4f1ec;
  --surface:  #ffffff;
  --accent:   #2d5a4b;
  --accent-hover: #1e3f34;
  --text:     #1a1a1a;
  --muted:    #6b6b6b;
  --radius:   1.25rem;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
}

html, body { height: 100%; font-family: 'Segoe UI', system-ui, sans-serif; }

/* ── Dashboard ────────────────────────────────── */
body.dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('../assets/photos/144_town_walk_drive.jpg') center/cover no-repeat fixed;
  gap: 2.5rem;
  padding: 3rem 2rem 2rem;
  overflow-y: auto;
}

.site-header { text-align: center; }

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.tagline {
  margin-top: .6rem;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  text-transform: uppercase;
}

/* ── Tile grid ────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  min-height: 200px;
  -webkit-tap-highlight-color: transparent;
}

.tile:active,
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  background: var(--accent);
  color: #fff;
}

.tile__icon { font-size: 3rem; line-height: 1; }

.tile__label {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.tile--coming-soon {
  position: relative;
}

.tile__sublabel {
  font-size: .85rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
  color: var(--muted);
}

.tile--coming-soon:hover .tile__sublabel,
.tile--coming-soon:active .tile__sublabel { color: rgba(255,255,255,.8); }

.tile__badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: .25rem .65rem;
  border-radius: 2rem;
  text-align: center;
  align-self: center;
}

/* ── Highlights page ─────────────────────────── */
body.highlights-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
            url('../assets/photos/Living_room_night.JPG') center/cover no-repeat fixed;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem;
}

.feature-card--wide {
  grid-column: 1 / -1;
}

.feature-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-card__body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}

.feature-card__body p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .25rem;
}

.feature-list li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.feature-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Map page ─────────────────────────────────── */
body.map-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.back-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 1.25rem;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.back-btn {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: .5rem;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:active,
.back-btn:hover { background: rgba(255,255,255,.2); }

.back-bar h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.map-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#map { flex: 1; width: 100%; }

/* ── Category buttons ─────────────────────────── */
.cat-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding: .65rem .75rem;
  background: #f4f1ec;
  flex-shrink: 0;
  z-index: 1000;
}

.cat-btn {
  padding: .6rem 1rem;
  background: #fff;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  font-size: .9rem;
  font-weight: 600;
  font-family: 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, transform .1s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}

.cat-btn:active { transform: scale(.97); }

.cat-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(45,90,75,.4);
}

/* ── Map markers ──────────────────────────────── */
.home-pin {
  width: 48px;
  height: 48px;
  background: #dc2626;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-pin span {
  transform: rotate(45deg);
  font-size: 1.4rem;
  line-height: 1;
}

.photo-pin {
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #dc2626;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  overflow: hidden;
  background: #dc2626;
}

.photo-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(45deg) scale(1.4);
}

/* ── POI popup ────────────────────────────────── */
.poi-popup {
  width: 200px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.poi-popup img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: .4rem .4rem 0 0;
  display: block;
  margin: -13px -20px 0;
  width: calc(100% + 40px);
}

.poi-popup__body {
  padding: .6rem 0 0;
}

.poi-popup__body strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.poi-popup__body p {
  margin-top: .25rem;
  font-size: .85rem;
  color: var(--muted);
}
