/* ===================================================
   TheCuzzorts — Turkey Maps Page
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kreon:wght@400;700&family=Roboto+Condensed:wght@400;700&display=swap');

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  background: #f0f2f5;
  color: #222;
  min-height: 100vh;
}

/* --- Header ---------------------------------------- */
header {
  background: #1a2e3b;
  color: #fff;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

header h1 {
  font-family: 'Kreon', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.home-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.35);
  transition: color 0.2s, border-color 0.2s;
}

.home-link:hover {
  color: #E8A020;
  border-bottom-color: #E8A020;
}

/* --- Main Content ---------------------------------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* --- Section Heading ------------------------------- */
.section-heading {
  font-family: 'Kreon', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a9aaa;
  margin: 1.75rem 0 0.75rem;
}

/* --- Person Grid ----------------------------------- */
.person-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.person-grid.grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .person-grid.grid-2col {
    grid-template-columns: 1fr;
  }

  .expand-btn {
    display: none;
  }
}

/* --- Person Card ----------------------------------- */
.person-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.25rem 1.25rem 1rem;
  border-top: 5px solid #ccc;
}

.person-card[data-person="josh"]   { border-top-color: #00AC4B; }
.person-card[data-person="sam"]    { border-top-color: #662684; }
.person-card[data-person="jack"]   { border-top-color: #0898ff; }
.person-card[data-person="debbie"] { border-top-color: #d9259a; }

.person-card h2 {
  font-family: 'Kreon', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2e3b;
  margin-bottom: 0.2rem;
}

.person-card .count {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.85rem;
}

/* --- Map Container (responsive aspect-ratio) ------- */
.map-container {
  position: relative;
  width: 100%;
}

/* US map — roughly 8:5 ratio using the LCC projection */
.map-container.us-map {
  padding-bottom: 62%;
}

.map-container .map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* jVectorMap overrides */
.jvectormap-container {
  width: 100% !important;
  height: 100% !important;
}

.jvectormap-tip {
  background: #1a2e3b;
  border: none;
  color: #fff;
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 220px;
}

/* --- Expand Button --------------------------------- */
.expand-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  line-height: 1;
  color: #aaa;
  transition: color 0.15s, border-color 0.15s;
}

.expand-btn:hover {
  color: #444;
  border-color: #aaa;
}

.expand-btn svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.person-card.expanded {
  grid-column: 1 / -1;
}

/* --- List Toggle ----------------------------------- */
.list-toggle {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.35rem 0 0;
  background: none;
  border: none;
  border-top: 1px solid #eee;
  color: #aaa;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}

.list-toggle:hover {
  color: #555;
}

/* --- Visit List ------------------------------------ */
.visit-list {
  display: none;
  margin-top: 0.5rem;
}

.visit-list.open {
  display: block;
}

.turkey-group {
  margin-bottom: 0.55rem;
}

.turkey-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.25rem;
}

.visit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.visit-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.75rem;
  background: #f0f2f5;
  border: 1px solid #ddd;
  color: #444;
  white-space: nowrap;
}

/* Hunted-but-not-harvested chip */
.turkey-chip--hunted {
  font-style: italic;
  background: rgba(232, 160, 32, 0.1) !important;
  border-color: rgba(232, 160, 32, 0.5) !important;
  border-style: dashed !important;
  color: #7a5a10;
}

/* Per-person chip accent colors */
.person-card[data-person="josh"]   .visit-chip { background: rgba(0,172,75,0.08);   border-color: rgba(0,172,75,0.3); }
.person-card[data-person="sam"]    .visit-chip { background: rgba(102,38,132,0.08); border-color: rgba(102,38,132,0.3); }
.person-card[data-person="jack"]   .visit-chip { background: rgba(8,152,255,0.08);  border-color: rgba(8,152,255,0.3); }
.person-card[data-person="debbie"] .visit-chip { background: rgba(217,37,154,0.08); border-color: rgba(217,37,154,0.3); }

/* --- Footer ---------------------------------------- */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: #aaa;
}
