/* Hawaii 2027 Trip Planner — Stylesheet */
:root {
  --cream: #fdf8f0;
  --sand: #f5ebe0;
  --ocean: #1a6b8a;
  --ocean-light: #2a8fb0;
  --coral: #e07a5f;
  --coral-light: #f4a582;
  --lava: #5c3d2e;
  --palm: #2d6a4f;
  --palm-light: #40916c;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --border: #e0d5c8;
  --shadow: rgba(0,0,0,0.08);
  --recommendation-bg: #fff8e1;
  --recommendation-border: #ffd54f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* Navigation */
nav {
  background: var(--ocean);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--coral-light);
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Headers */
h1 {
  font-size: 2.4rem;
  color: var(--ocean);
  margin-bottom: 0.5rem;
  font-weight: normal;
}

h2 {
  font-size: 1.6rem;
  color: var(--ocean);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

h3 {
  font-size: 1.25rem;
  color: var(--lava);
  margin: 1.8rem 0 0.8rem;
}

h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.2rem 0 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  text-align: center;
  overflow: hidden;
  padding: 3rem 2rem;
}

.hero:has(img) {
  padding: 0;
}

.hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
}

.hero .dates {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Route Overview */
.route-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.route-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--coral);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  color: var(--text);
  text-decoration: none;
}

.route-card h3 {
  margin-top: 0;
  color: var(--ocean);
}

.route-card .nights {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Day Cards */
.day-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px var(--shadow);
  border-top: 4px solid var(--ocean);
}

.day-card.travel-day {
  border-top-color: var(--coral);
}

.day-card h3 {
  color: var(--ocean);
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.day-card .date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-style: italic;
}

.day-card .activity {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--sand);
}

.day-card .activity .time {
  font-weight: bold;
  color: var(--ocean);
  font-size: 0.9rem;
}

.day-card .activity .description {
  margin-top: 0.2rem;
}

/* Attraction Cards */
.attraction-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.attraction-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.attraction-card .info {
  padding: 1.2rem 1.5rem;
}

.attraction-card .info h4 {
  margin-top: 0;
  color: var(--ocean);
}

.attraction-card .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.5rem 0;
}

.attraction-card .links {
  margin-top: 0.8rem;
}

.attraction-card .links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 0.85rem;
  color: var(--ocean);
  text-decoration: none;
  border-bottom: 1px dotted var(--ocean);
}

.attraction-card .links a:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* Star Ratings */
.stars {
  text-decoration: none;
  color: var(--text);
}

.stars .filled {
  color: #f5a623;
}

.stars .empty {
  color: #ddd;
}

.stars .count {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Restaurant & Bar Cards */
.venue-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 1px 6px var(--shadow);
  border-left: 3px solid var(--palm);
}

.venue-card.splurge {
  border-left-color: var(--coral);
  background: linear-gradient(to right, #fff8f5, #fff);
}

.venue-card h4 {
  margin-top: 0;
  color: var(--lava);
}

.venue-card .cuisine {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
}

.venue-card .cost {
  font-weight: bold;
  color: var(--palm);
  font-size: 0.9rem;
}

/* Hotel Cards */
.hotel-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.2rem 0;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--ocean);
}

.hotel-card.hilton {
  border-left-color: #003b71;
}

.hotel-card .badge {
  display: inline-block;
  background: #003b71;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.hotel-card h4 {
  margin-top: 0.3rem;
}

.hotel-card .price {
  font-size: 1.1rem;
  color: var(--coral);
  font-weight: bold;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

thead {
  background: var(--sand);
}

th, td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: bold;
  color: var(--ocean);
}

tr:hover {
  background: var(--sand);
}

/* Budget Table */
.budget-table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
}

.budget-table .total-row {
  background: var(--ocean);
  color: #fff;
  font-weight: bold;
}

.budget-table .total-row td {
  border-bottom: none;
}

/* Info Boxes */
.info-box {
  background: var(--sand);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--ocean);
}

.info-box.tip {
  border-left-color: var(--palm);
  background: #f0f7f4;
}

.info-box.warning {
  border-left-color: var(--coral);
  background: #fef5f0;
}

.info-box h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--ocean);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

/* Weather Table */
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.weather-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 1px 6px var(--shadow);
}

.weather-card .temp {
  font-size: 1.5rem;
  color: var(--coral);
  font-weight: bold;
}

.weather-card .label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Personal Recommendations */
.personal-rec {
  background: var(--recommendation-bg);
  border: 2px solid var(--recommendation-border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}

.personal-rec .rec-badge {
  display: inline-block;
  background: var(--recommendation-border);
  color: var(--lava);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.personal-rec h4 {
  margin-top: 0.3rem;
  color: var(--lava);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Running Routes */
.route-run-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 1px 6px var(--shadow);
  border-left: 4px solid #e74c3c;
}

.route-run-card h4 {
  margin-top: 0;
  color: #c0392b;
}

.route-run-card .route-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.3rem 0;
}

.route-run-card .route-meta strong {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .route-overview {
    grid-template-columns: 1fr;
  }

  .attraction-card {
    grid-template-columns: 1fr;
  }

  .attraction-card img {
    height: 180px;
  }

  .weather-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  nav ul {
    gap: 0.7rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 2rem 1.2rem;
  }

  .day-card {
    padding: 1.2rem;
  }
}
