/* ========================================
   Sicily Holiday Plan  - Stylesheet
   Mediterranean theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --sea-blue: #1a7fa0;
  --sea-light: #e8f4f8;
  --terracotta: #c4603a;
  --terracotta-light: #fdf0eb;
  --sand: #f5e6c8;
  --sand-dark: #d4a853;
  --olive: #5a7247;
  --olive-light: #edf3ea;
  --white: #ffffff;
  --off-white: #faf9f7;
  --gray-100: #f3f2ef;
  --gray-200: #e5e3df;
  --gray-400: #9e9a91;
  --gray-600: #6b6660;
  --gray-800: #3d3731;
  --gray-900: #2a2520;
  --warning-bg: #fff8e1;
  --warning-border: #f9a825;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 860px;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ========== Navigation ========== */
.nav {
  background: var(--gray-900);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 14px 16px;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav a.active {
  color: #fff;
  border-bottom-color: var(--terracotta);
}

.nav a.nav-home {
  font-weight: 700;
  color: #fff;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 4px;
}

/* ========== Main Container ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ========== Hero / Page Header ========== */
.hero {
  background: linear-gradient(135deg, var(--sea-blue), #2da0c4);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.day-hero {
  position: relative;
  overflow: hidden;
}

.day-hero.day-fri { background: linear-gradient(135deg, #c4603a, #d4784e); }
.day-hero.day-sat { background: linear-gradient(135deg, #5a7247, #6f8c59); }
.day-hero.day-sun { background: linear-gradient(135deg, #1a7fa0, #2da0c4); }
.day-hero.day-mon { background: linear-gradient(135deg, #2e86ab, #45a5c9); }
.day-hero.day-tue { background: linear-gradient(135deg, #d4a853, #e0bd6e); }
.day-hero.day-wed { background: linear-gradient(135deg, #c4603a, #b54e2a); }
.day-hero.day-thu { background: linear-gradient(135deg, #6b6660, #8a847c); }

.day-number {
  font-size: 5rem;
  font-weight: 700;
  opacity: 0.15;
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  line-height: 1;
}

/* ========== Weather Banner ========== */
.weather-banner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--sea-light);
  border: 1px solid #cde8f0;
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.weather-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
}

.weather-item strong {
  color: var(--gray-800);
}

/* ========== Section Cards ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 20px;
  margin-bottom: 12px;
}

/* ========== Activities List ========== */
.activities {
  list-style: none;
  padding: 0;
}

.activities li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}

.activities li:last-child {
  border-bottom: none;
}

.activities li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea-blue);
  position: absolute;
  left: 4px;
  top: 16px;
}

.activities .highlight {
  font-weight: 600;
  color: var(--gray-900);
}

/* ========== Callout / Note Boxes ========== */
.callout {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.callout.warning {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
}

.callout.info {
  background: var(--sea-light);
  border-left: 4px solid var(--sea-blue);
}

.callout.tip {
  background: var(--olive-light);
  border-left: 4px solid var(--olive);
}

.callout.booked {
  background: var(--olive-light);
  border-left: 4px solid var(--olive);
  text-decoration: line-through;
  opacity: 0.7;
}

/* ========== Tables ========== */
.timings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0;
}

.timings-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--gray-200);
}

.timings-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.timings-table tr:last-child td {
  border-bottom: none;
}

.timings-table .time {
  font-weight: 600;
  color: var(--sea-blue);
  white-space: nowrap;
  width: 120px;
}

.timings-table tr:hover td {
  background: var(--gray-100);
}

/* ========== Accommodation Badge ========== */
.stay-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  color: var(--gray-800);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 16px;
}

/* ========== Day Navigation (prev/next) ========== */
.day-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
}

.day-nav a {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-800);
  transition: all 0.2s;
  flex: 1;
  box-shadow: var(--shadow);
}

.day-nav a:hover {
  border-color: var(--sea-blue);
  box-shadow: var(--shadow-hover);
}

.day-nav a .label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.day-nav a .title {
  font-weight: 600;
  font-size: 0.95rem;
}

.day-nav a.next {
  text-align: right;
}

/* ========== Checklist (Home page) ========== */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--olive);
  color: white;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.checklist li.pending::before {
  content: '';
  background: var(--white);
  border: 2px solid var(--gray-200);
}

/* ========== Flight Card ========== */
.flight-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.flight-card:last-child {
  border-bottom: none;
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.flight-point {
  text-align: center;
}

.flight-code {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.flight-time {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.flight-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  position: relative;
  min-width: 60px;
}

.flight-line::after {
  content: '✈';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--off-white);
  padding: 0 8px;
  color: var(--sea-blue);
  font-size: 1.1rem;
}

.card .flight-line::after {
  background: var(--white);
}

.flight-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ========== Day Cards Grid (Home page) ========== */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.day-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--gray-800);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.day-card:hover {
  border-color: var(--sea-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.day-card .day-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.day-card .day-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.day-card .day-summary {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.day-card.fri { border-top: 4px solid #c4603a; }
.day-card.sat { border-top: 4px solid #5a7247; }
.day-card.sun { border-top: 4px solid #1a7fa0; }
.day-card.mon { border-top: 4px solid #2e86ab; }
.day-card.tue { border-top: 4px solid #d4a853; }
.day-card.wed { border-top: 4px solid #c4603a; }
.day-card.thu { border-top: 4px solid #6b6660; }

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .hero {
    padding: 32px 20px;
  }

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

  .day-number {
    font-size: 3rem;
    right: 16px;
  }

  .card {
    padding: 20px;
  }

  .weather-banner {
    padding: 12px 16px;
    gap: 12px;
  }

  .nav a {
    padding: 12px;
    font-size: 0.75rem;
  }

  .flight-route {
    flex-direction: column;
    gap: 8px;
  }

  .flight-line {
    width: 60px;
    min-width: unset;
  }

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

  .day-nav {
    flex-direction: column;
  }

  .timings-table td,
  .timings-table th {
    padding: 8px 10px;
  }
}
