/* ========================
   GLOBAL FIXES
======================== */

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

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: hidden;

  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-main);
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;

  transition:
    background-color 0.4s ease,
    color 0.3s ease;
}

/* ========================
   ROOT / DESIGN SYSTEM
======================== */

:root {
  --bg-main: #faf7f2;
  --bg-header: #e6e6e6;
  --bg-card: #ffffff;
  --bg-footer: #f0ece6;

  --text-main: #333;
  --text-muted: #666;

  --accent: #4b2e2b;
  --accent-light: #6b4a46;

  --border: #ccc;

  --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-strong: 0 8px 20px rgba(0,0,0,0.15);

  --radius: 12px;
}

/* ========================
   MAIN LAYOUT
======================== */

.mainLayout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.listSection {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topPickSection {
  position: sticky;
  top: 20px;
  height: fit-content;
  min-width: 0;
}

/* ========================
   CONTAINER
======================== */

.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);

  flex: 1;
  overflow-y: auto;
}

/* ========================
   CARDS (CONSOLIDATED)
======================== */

.location-card,
.mini-card,
#topPickCard {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid var(--accent);
}

/* Top picks + mini cards (stronger look) */
.mini-card,
#topPickCard {
  padding: 16px;
  box-shadow: var(--shadow-strong);
}

/* Location cards (lighter look) */
.location-card {
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

#listContainer {
  padding-right: 0;
}

/* ========================
   HEADER
======================== */

header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 50px;
}

.headerText h1 {
  margin: 0;
  font-size: 24px;
}

.headerText p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.vote-header {
  text-align: center;
  font-size: 24px;   
  font-weight: 700;     
  color: var(--text-main);
  margin-bottom: 1px;   
}

.vote-subtext {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0px;
  margin-bottom: 10px;
}

/* ========================
   ACTION BUTTONS
======================== */

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.actions button {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.locate-wrapper {
  display: flex;
  flex: 1;
  min-width: 0;
}

/* ========================
   LEGEND
======================== */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

/* ========================
   META / CONTENT
======================== */

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

/* Default text inside meta */
.meta span {
  cursor: default;
}

/* ========================
   ADDRESS
======================== */

.street {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
  width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ========================
   INTERACTIVE FIXES
======================== */

/* Force pointer ONLY where needed */
button,
[role="button"],
.mini-card,
.vote-inline button {
  cursor: pointer;
}

/* ⭐ STARS (FIXED) */
.stars span {
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.stars span:hover {
  color: gold;
  transform: scale(1.2);
}

.stars span:active {
  transform: scale(0.95);
}

/* 🚗 DIRECTIONS (FIXED) */
.directions {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.directions:hover {
  transform: scale(1.2);
}

/* ========================
   FOOTER
======================== */

footer {
  padding: 20px;
  background: var(--bg-footer);
  border-top: 1px solid var(--border);

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-right {
  display: flex;
}

/* ========================
   MOBILE
======================== */

@media (max-width: 900px) {
  .mainLayout {
    grid-template-columns: 1fr;
  }

  .topPickSection {
    position: static;
	order: -1;
  }
  
.topPickSection h2 {
  text-align: center;
}

  .container {
    padding: 12px;
  }
}

/* ========================
   SOCIAL ICON HARD LOCK
======================== */

.footer-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-right a:hover {
  transform: scale(1.2);
}

/* Brand colors */
.footer-right a .fa-instagram:hover {
  color: #E1306C;
}

.footer-right a .fa-facebook:hover {
  color: #1877F2;
}