/* --- Global Styles & Apple Font Stack --- */
:root {
    --primary: #000000; 
    --accent: #d4a017; /* Lakeland Gold */
    --text: #1d1d1f;   /* Apple Jet Black */
    --secondary-text: #6e6e73; /* Apple Gray */
    --bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --card-bg: #f5f5f7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    margin: 0;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; 
}

/* --- Header & Glass Effect --- */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 52px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo a {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #000 !important;
}

/* --- Navigation & Dropdowns --- */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #000 !important;
    font-size: 0.85rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.nav-list a:hover { opacity: 0.6; }
.has-dropdown { position: relative; }

.dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 10px 0;
    list-style: none;
    min-width: 200px;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 2000;
}

.has-dropdown:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown li a {
    padding: 10px 20px;
    display: block !important;
}

.dropdown li a:hover {
    background: #f5f5f7;
    opacity: 1;
}

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.65;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 5%;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1.05;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.9;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Photo Gallery Section --- */
.gallery-container {
    max-width: 1200px;
    margin: 60px auto;
}

.main-display {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.2); /* Faint display */
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.6);
}

.prev { left: 0; }
.next { right: 0; }

.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 0.8;
}

.thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

/* --- Walk Content & Typography --- */
.lead-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* Hike Summary Grid */
.hike-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.summary-card {
    background: #f5f5f7;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Timeline/Steps Styling */
.route-timeline {
    margin-bottom: 60px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.timeline-number {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    background: #fff4e5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.timeline-content p {
    margin: 0;
    color: #424245;
    line-height: 1.7;
}

/* Pro Tips Box */
.pro-tips-box {
    background: #000;
    color: #fff;
    padding: 35px;
    border-radius: 24px;
    margin-top: 60px;
}

.pro-tips-box h4 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: var(--accent);
}

.pro-tips-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-tips-box li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 1.05rem;
    opacity: 0.9;
}

.pro-tips-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* --- Map Stats Centering --- */
.stats-wrapper {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.stats-overlay {
    pointer-events: auto;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 32px;
    border-radius: 24px;
    display: flex;
    gap: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.4);
    white-space: nowrap;
}

.stat-item { display: flex; flex-direction: column; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary-text); font-weight: 700; margin-bottom: 4px; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: #000; }
.stat-unit { font-size: 0.85rem; font-weight: 600; margin-left: 2px; color: var(--secondary-text); }

/* --- Walk Grid & Cards --- */
.walk-grid {
    display: grid;
    /* Changed 320px to 250px to allow 4 columns on desktop */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.walk-card {
    background: #fff;
    border: 1px solid #f2f2f7;
    padding: 30px;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.walk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* --- Buttons & Utility --- */
.btn-download, .filter-btn {
    text-decoration: none;
    padding: 12px 24px;
    background: var(--bg);
    color: #000;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.btn-download:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hike-summary-grid { grid-template-columns: 1fr; }
    .timeline-item { gap: 15px; }
    .hero-wrapper { height: 60vh; }
    .stats-wrapper { position: static; display: block; margin-bottom: 20px; }
    .stats-overlay { gap: 20px; justify-content: space-between; padding: 15px; width: 100%; box-sizing: border-box; }
    .main-display { height: 350px; }
    .nav-btn { width: 50px; }
}