/* CSS Reset & Variables */
:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Light Theme Palette - Warm Italian Sun & Terra Cotta */
    --bg-main: #fcf9f5;
    --bg-card: #ffffff;
    --bg-card-subtle: #f6f1eb;
    --text-main: #2b2523;
    --text-muted: #6b625e;
    --primary: #c85a32; /* Terracotta */
    --primary-hover: #b04923;
    --secondary: #1a5e63; /* Mediterranean Emerald */
    --accent-gold: #d99b26;
    --border-color: #e8ded4;
    --shadow-sm: 0 2px 8px rgba(43, 37, 35, 0.05);
    --shadow-md: 0 6px 20px rgba(43, 37, 35, 0.08);
    --shadow-lg: 0 12px 32px rgba(43, 37, 35, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] {
    --bg-main: #14181a;
    --bg-card: #1e2428;
    --bg-card-subtle: #272f34;
    --text-main: #f0f4f6;
    --text-muted: #a0acb5;
    --primary: #e07a5f;
    --primary-hover: #f08a6f;
    --secondary: #3d8b90;
    --accent-gold: #f4a261;
    --border-color: #313a40;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 36, 40, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.75rem; }
.mb-4 { margin-bottom: 1.75rem; }
.hidden { display: none !important; }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
}

.sub-heading {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.35rem;
}

.main-heading {
    font-size: 2.2rem;
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.4rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-badge {
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(200, 90, 50, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    padding: 4rem 1rem;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.6) 0%, rgba(15, 20, 25, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.92;
    max-width: 750px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

/* Countdown */
.countdown-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 2rem;
}

.countdown-title {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.countdown-grid {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.cd-box span {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.cd-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Main Content & Section Blocks */
.main-content {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.section-block {
    margin-bottom: 4.5rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Alert Banner */
.alert-banner {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
}

.info-alert {
    background-color: rgba(26, 94, 99, 0.08);
    border: 1px solid rgba(26, 94, 99, 0.25);
    color: var(--text-main);
}

.info-alert .alert-icon {
    color: var(--secondary);
    font-size: 1.6rem;
}

.warning-alert {
    background-color: rgba(217, 155, 38, 0.12);
    border: 1px solid rgba(217, 155, 38, 0.35);
}

.warning-alert .alert-icon {
    color: var(--accent-gold);
    font-size: 1.6rem;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover, .pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Timeline Day Cards */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.day-card.completed {
    opacity: 0.82;
    border-left: 5px solid #2e7d32;
}

.day-header {
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card-subtle);
    cursor: pointer;
}

.day-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.day-number-badge {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(200, 90, 50, 0.3);
}

.day-title-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
}

.day-date-str {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.day-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 700;
}

.primary-badge { background: rgba(200, 90, 50, 0.15); color: var(--primary); }
.secondary-badge { background: rgba(26, 94, 99, 0.15); color: var(--secondary); }
.info-badge { background: rgba(33, 150, 243, 0.15); color: #1976d2; }
.warning-badge { background: rgba(217, 155, 38, 0.18); color: #b78103; }
.success-badge { background: rgba(46, 125, 50, 0.15); color: #2e7d32; }

.check-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.check-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.day-content {
    padding: 1.5rem 1.75rem;
}

.day-summary-text {
    font-size: 1.025rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.day-activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.activity-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.85rem;
}

.activity-item i {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.activity-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.activity-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.day-pro-tip {
    background: rgba(217, 155, 38, 0.08);
    border-left: 4px solid var(--accent-gold);
    padding: 0.85rem 1.1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.875rem;
}

.day-pro-tip strong {
    color: var(--accent-gold);
}

/* Map Section & Day Selector Bar */
.map-card.fullscreen-map {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card) !important;
}

.map-card.fullscreen-map .leaflet-map-container {
    flex-grow: 1;
    height: 100% !important;
}

.map-day-selector-bar {
    background: var(--bg-card-subtle);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.map-day-selector-bar .bar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.day-sel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-sel-btn:hover, .day-sel-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(200, 90, 50, 0.3);
}

.btn-show-map {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 20px !important;
    font-size: 0.825rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(200, 90, 50, 0.25) !important;
}

/* Dedicated Individual Day Pages */
.day-hero {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, rgba(200, 90, 50, 0.15) 0%, rgba(26, 94, 99, 0.15) 100%);
    border-bottom: 1px solid var(--border-color);
}

.day-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.day-badge-lg {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.day-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.day-nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.day-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.day-map-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
}

.day-single-map {
    height: 440px;
    width: 100%;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.attraction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.attraction-card i.attr-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.attraction-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

/* Image Lightbox Modal */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.image-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.25s ease;
    object-fit: contain;
}

.image-lightbox-overlay.active .image-lightbox-img {
    transform: scale(1);
}

.image-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.clickable-img {
    cursor: zoom-in !important;
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* Hour-by-Hour Timeline Grid (08:00 - 21:00) */
.hourly-timeline-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
}

.hourly-timeline-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.hourly-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hourly-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    align-items: center;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.hourly-item:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.hourly-time {
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.hourly-content h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hourly-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .hourly-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .hourly-time {
        align-self: flex-start;
    }
}

.leaflet-map-container {
    height: 680px;
    width: 100%;
    z-index: 10;
    transition: all 0.3s ease;
}

.leaflet-map-container.fullscreen-map {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
}

.map-day-pin {
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.map-day-pin.active-highlight-pin {
    transform: scale(1.5) !important;
    z-index: 2000 !important;
    border: 3px solid #ffd700 !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.9), 0 6px 16px rgba(0,0,0,0.6) !important;
    animation: pinPulse 1.2s infinite alternate ease-in-out;
}

@keyframes pinPulse {
    0% { transform: scale(1.4); }
    100% { transform: scale(1.7); }
}

.btn-show-map {
    background: rgba(200, 90, 50, 0.12);
    color: var(--primary);
    border: 1px solid rgba(200, 90, 50, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-show-map:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.map-day-pin.pin-tuscany { background-color: #c85a32; }
.map-day-pin.pin-liguria { background-color: #1a5e63; }
.map-day-pin.pin-garda { background-color: #d99b26; }
.map-day-pin.pin-transit { background-color: #455a64; }
.map-day-pin.pin-base { background-color: #9c27b0; }
.map-day-pin.pin-warning { background-color: #d32f2f; }

.map-legend-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legend-badge {
    font-size: 0.775rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.base-badge { background: #9c27b0; color: #fff; }
.tuscany-badge { background: #e07a5f; color: #fff; }
.liguria-badge { background: #3d8b90; color: #fff; }
.garda-badge { background: #d99b26; color: #fff; }
.transit-badge { background: #455a64; color: #fff; }

.map-info-bar {
    padding: 1rem 1.5rem;
    background: var(--bg-card-subtle);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item i {
    color: var(--primary);
}

/* Cinque Terre Trails Grid */
.trails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trail-card.highlight {
    border: 2px solid var(--primary);
    position: relative;
}

.trail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.trail-step {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

.trail-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trail-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
}

.status-open { background: rgba(46, 125, 50, 0.15); color: #2e7d32; }
.status-closed { background: rgba(211, 47, 47, 0.15); color: #d32f2f; }

.trail-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.detail-tag {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    font-size: 0.775rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.trail-desc {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Calculator Card */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.calc-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.calc-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-results {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.res-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.res-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.res-note {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* Rules Grid */
.rules-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.rules-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rule-item {
    display: flex;
    gap: 1rem;
}

.rule-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.rule-icon.red { color: #d32f2f; }
.rule-icon.blue { color: #1976d2; }
.rule-icon.orange { color: #f57c00; }

.rule-item h4 {
    font-size: 0.975rem;
    margin-bottom: 0.35rem;
}

.rule-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tuscany Gems Cards */
.gems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.gem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}

.gem-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.gem-img-placeholder {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gem-title-overlay h3 {
    color: #ffffff;
    font-size: 1.6rem;
}

.gem-title-overlay span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.gem-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gem-body p {
    font-size: 0.925rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.gem-highlights {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gem-highlights span {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    font-size: 0.775rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
}

/* Logistics Grid */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.logistics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.logistics-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.logistics-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.logistics-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Tools & Dual Grid */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.tool-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Packing List */
.packing-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.packing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.packing-item label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.packing-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.packing-item.checked label {
    text-decoration: line-through;
    opacity: 0.6;
}

.delete-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.delete-item-btn:hover {
    color: #d32f2f;
}

.add-item-form {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Budget Breakdown */
.budget-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    align-items: center;
}

.budget-row span {
    color: var(--text-muted);

    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-row span i {
    color: var(--primary);
}

.budget-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.total-row {
    font-size: 1.05rem;
}

.total-row span {
    color: var(--text-main);
    font-weight: 700;
}

.total-amount {
    color: var(--primary) !important;
    font-size: 1.3rem !important;
    font-family: var(--font-heading);
}

/* Notes Notepad */
.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.notes-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card-subtle);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-main);
}

/* Footer */
.footer {
    background: var(--bg-card-subtle);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer .red { color: #e07a5f; }

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .trails-grid, .gems-grid, .logistics-grid, .dual-grid, .rules-grid { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links.show { display: flex; }
    .mobile-only { display: flex; }
    .hero-title { font-size: 2rem; }
    .main-heading { font-size: 1.75rem; }
    .day-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .day-header-right { width: 100%; justify-content: space-between; }
}
