/* =========================
   Root Variables (Theme)
========================= */
:root {
    --primary: #BC5434;
    --primary-light: #D97706;
    --bg: #1C1614;
    --card-bg: rgba(43, 31, 26, 0.6);
    --text-main: #FDF4E3;
    --text-dim: #C4B5A5;
    --accent: #F59E0B;
    --merged: #798670;
    --arrival: #5B8291;
}

/* =========================
   Base Styles
========================= */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 0%, #442C23 0%, #1C1614 100%);
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   Header
========================= */
header {
    height: 450px;
    background: linear-gradient(rgba(28, 22, 20, 0.4), rgba(28, 22, 20, 0.8)),
        url('https://images.unsplash.com/photo-1713970969592-d14b7ea5ebb8?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 30px;
    border: 1px solid rgba(188, 84, 52, 0.3);
    height: auto;
    padding: 60px 20px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #F59E0B, #BC5434);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    font-weight: 400;
}

.itinerary-header {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.itinerary-header label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#day-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

/* =========================
   Day Cards
========================= */
.day-grid {
    display: grid;
    gap: 40px;
}

.day-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(188, 84, 52, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s ease;
    position: relative;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(245, 158, 11, 0.4);
}

.day-image-container {
    position: relative;
    min-height: 280px;
}

.day-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.day-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* =========================
   Tags & Labels
========================= */
.party-track {
    position: absolute;
    top: 20px;
    right: 30px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(10, 15, 30, 0.85);
}

/*.track-p1 { color: var(--arrival); }*/
.track-p1 { color: var(--accent); }
/*.track-merged { color: var(--merged); }*/
.track-merged { color: var(--accent); }

/* =========================
   Cost Tags
========================= */
.price-tag,
.price-legend span {
    color: var(--accent);
    font-weight: bold;
}
.price-legend {
    display: flex;            /* Aligns items horizontally */
    flex-wrap: wrap;         /* Ensures it looks good on mobile phones */
    gap: 40px;               /* Space between the $ and $$ sections */
    margin-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* =========================
   Content Elements
========================= */
.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums; /* Keeps numbers from jumping */
    display: inline-block;
    margin-right: 10px;
}
.day-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    color: var(--text-dim);
}

.event-list li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.event-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* =========================
   Alerts & Suggestions
========================= */
.meetup-alert {
    grid-column: 1 / -1;
    background: rgba(121, 134, 112, 0.1);
    border: 2px solid var(--merged);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.breakfast-suggestion,
.dinner-suggestion {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
}

.breakfast-suggestion {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dinner-suggestion {
    background: rgba(121, 134, 112, 0.08);
    border: 1px solid rgba(121, 134, 112, 0.2);
}

/* =========================
   Transport
========================= */
.transport-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 40px;
    padding-top: 10px;
    margin-top: 60px;
}
.transport-grid {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 769px) {
    .transport-grid {
        grid-template-columns: repeat(3, 1fr); /* Only 3 columns on desktop */
    }
    .day-nav a {
        padding: 12px 20px; /* Larger tap area */
        flex: 1 1 30%;      /* Forces 3 buttons per row for better alignment */
        text-align: center;
    }
}
.t-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.t-section h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}  
.t-flight {
  margin-bottom: 20px;
}
.t-flight p {
  color: var(--dim);
  font-size: 0.9rem;
  margin: 0;
}
.t-flight strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.t-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  margin-bottom: 4px;
}
/* Layover indicators */
.t-layover {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid currentColor;
  letter-spacing: 0.5px;
}
.t-layover.tight { 
  background: rgba(239, 68, 68, 0.2); 
  color: #ef4444; 
  border-color: rgba(239, 68, 68, 0.4); 
}
.t-layover.doable { 
  background: rgba(245, 158, 11, 0.2); 
  color: #fbbf24; 
  border-color: rgba(245, 158, 11, 0.4); 
}
.t-layover.easy { 
  background: rgba(16, 185, 129, 0.2); 
  color: #10b981; 
  border-color: rgba(16, 185, 129, 0.4); 
}

/* =========================
   Lodging
========================= */
.lodging-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 40px;
    padding-top: 10px;
    margin-top: 60px;
}

.lodging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.l-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
}

.l-card strong {
    color: var(--accent);
}
.l-details {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.l-details div {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.l-link {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
}
.hotel-link {
    /*color: #00feba; /* Matches your theme's accent color */
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #00feba;
    transition: opacity 0.2s;
}

.hotel-link:hover {
    opacity: 0.8;
    border-bottom: 1px solid #00feba;
}
/* =========================
   Dining
========================= */
.dining-legend-box {
  background: rgba(251, 191, 36, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 30px;
  padding: 30px;
  margin-top: 40px;
}
.dining-legend-box h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 0.95rem;
    color: var(--text-main);
}
.legend-item span{
    color: var(--accent);
    font-weight: bold;
}
.legend-note {
    font-size: 0.85rem; 
    color: var(--text-dim); 
    margin-top: 15px; 
    opacity: 0.7;
    font-style: italic;
}

/* =========================
   Footer
========================= */
.site-footer {
    margin-top: 60px;
    padding: 80px 20px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    border-radius: 30px;
    text-align: center;
}

.site-footer h2 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fbbf24, #d35400);
    /*-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
}

/* =========================
   Navigation
========================= */
.day-nav {
    display: grid;
    /* This creates 5 equal columns by default */
    grid-template-columns: repeat(5, 1fr); 
    gap: 12px;
    margin-bottom: 50px;
}

.day-nav a {
    padding: 12px 5px; /* Taller but narrower to fit 5 across */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem; /* Slightly smaller text to prevent wrapping */
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-nav a:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
   Mobile Responsiveness for Nav
========================= */

/* Tablets: 3 columns */
@media (max-width: 900px) {
    .day-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Phones: 2 columns */
@media (max-width: 480px) {
    .day-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .day-nav a {
        padding: 15px 5px; /* Larger tap targets for thumbs */
        font-size: 0.9rem;
    }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    .day-card {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Print Fixes
========================= */
@media print {
    .t-layover {
        border: 1px solid #aaa !important;
        color: #000 !important;
        background: #eee !important;
    }
}

/* =========================
   Slim View Logic
========================= */
/* Hide photos and reset the grid to 1 column */
.slim-mode .day-image-container {
    display: none !important;
}
.slim-mode .day-card {
    grid-template-columns: 1fr !important;
}

/* Sections to Hide */
.slim-mode .breakfast-suggestion,
.slim-mode .dinner-suggestion,
.slim-mode .lodging-module,
.slim-mode .lodging-box,
.slim-mode .dining-legend-box,
.slim-mode .day-nav,
.slim-mode .lodging-summary-box {
    display: none !important;
}

/* Compact Adjustments */
.slim-mode .day-content {
    padding: 15px 30px;
}
.slim-mode .day-grid {
    gap: 15px;
}


/* =========================
   Slider Toggle Aesthetic
========================= */
.view-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 30px;
}

.view-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* The switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* The sliding circle */
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-dim);
    transition: .4s;
    border-radius: 50%;
}

/* When checked: change background and move circle */
input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary-light);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* Slim Mode Rules (Keep your previous logic, just ensure .day-nav is included) */
.slim-mode .day-image-container,
.slim-mode .breakfast-suggestion,
.slim-mode .dinner-suggestion,
.slim-mode .lodging-module,
.slim-mode .lodging-box,
.slim-mode .dining-legend-box,
.slim-mode .lodging-summary-box,
.slim-mode .day-nav {
    display: none !important;
}

.slim-mode .day-card {
    grid-template-columns: 1fr !important;
}