/* ==========================================================================
   SICILY 2026 TRAVEL DASHBOARD - STYLESHEET
   Aesthetic: McKinsey Clean Premium (Serif/Sans pairing, Navy, Terracotta, Olive)
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variables */
:root {
    --primary-navy: #0F1E36;
    --primary-navy-light: #1A2F4C;
    --accent-terracotta: #C85C40;
    --accent-terracotta-hover: #B04E35;
    --accent-terracotta-light: #FDF2EF;
    --accent-olive: #5B6B54;
    --accent-olive-light: #EBF0EA;
    --accent-gold: #D4AF37;
    --bg-sand: #FAF8F5;
    --bg-white: #FFFFFF;
    --text-dark: #2D3139;
    --text-muted: #64748B;
    --border-color: #E6E2DC;
    --card-shadow: 0 4px 20px -2px rgba(15, 30, 54, 0.05), 0 2px 6px -1px rgba(15, 30, 54, 0.03);
    --hover-shadow: 0 10px 30px -5px rgba(15, 30, 54, 0.08), 0 4px 12px -2px rgba(15, 30, 54, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --sidebar-width: 280px;
    --border-radius: 8px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-sand);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-navy);
    font-weight: 700;
}

p {
    font-size: 0.95rem;
}

a {
    color: var(--accent-terracotta);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-terracotta-hover);
    text-decoration: underline;
}

/* Sticky Sidebar Layout */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-navy);
    color: var(--bg-sand);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.sidebar-brand {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h1 {
    color: var(--bg-white);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
}

.sidebar-brand span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-terracotta);
    font-weight: 600;
    display: block;
}

.lang-switch-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--bg-sand);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active, .lang-btn:hover {
    background-color: var(--accent-terracotta);
    color: var(--bg-white);
}

.trip-progress-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trip-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.trip-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.trip-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-terracotta);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Navigation List */
.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 1rem 0 0.5rem 0.5rem;
    font-weight: 600;
}

.nav-item button {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.nav-item button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
}

.nav-item.active button {
    background-color: var(--accent-terracotta);
    color: var(--bg-white);
    font-weight: 600;
}

.nav-item button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc(100% - var(--sidebar-width));
}

/* Header & Hero */
.hero-banner {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 30, 54, 0.1) 0%, rgba(15, 30, 54, 0.8) 100%);
}

.hero-text {
    position: relative;
    z-index: 10;
    color: var(--bg-white);
}

.hero-text h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.hero-text p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Tab Viewport */
.tab-viewport {
    padding: 2.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-grow: 1;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

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

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-terracotta);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

/* Travel Bookings Cards */
.booking-item {
    padding: 1rem;
    border-left: 3px solid var(--accent-terracotta);
    background: #FAF9F6;
    margin-bottom: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.booking-item:last-child {
    margin-bottom: 0;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.booking-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.booking-detail {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.booking-badge {
    background: var(--accent-olive-light);
    color: var(--accent-olive);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-badge.confirmed {
    background: #E3F8EB;
    color: #1B7A42;
}

.booking-badge.booked {
    background: var(--accent-olive-light);
    color: var(--accent-olive);
}

/* Timeline/Itinerary Styling */
.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline .booking-item {
    position: relative;
    margin-left: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.timeline .booking-item::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -27px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-terracotta);
    border: 2px solid var(--bg-sand);
}

/* Destination Dashboard Layout */
.destination-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-navy);
    padding-bottom: 1rem;
}

.destination-meta h3 {
    font-size: 2.2rem;
}

.destination-meta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.destination-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.destination-progress span {
    font-size: 0.85rem;
    font-weight: 600;
}

.destination-bar {
    width: 100px;
    height: 8px;
    background: #E6E2DC;
    border-radius: 4px;
    overflow: hidden;
}

.destination-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-olive);
    transition: width 0.4s ease-out;
}

/* POI List Layout */
.poi-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poi-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.poi-item:hover {
    border-color: var(--accent-terracotta);
    box-shadow: var(--hover-shadow);
}

.poi-image-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background-color: #E6E2DC;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.poi-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
    cursor: pointer;
}

.poi-item:hover .poi-card-image {
    transform: scale(1.06);
}

.poi-card-body {
    display: flex;
    padding: 0;
    gap: 1rem;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 0;
}

.poi-checkbox-wrapper {
    margin-top: 0.2rem;
}

.poi-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-terracotta);
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.poi-content {
    flex-grow: 1;
    min-width: 0;
}

.poi-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.poi-index {
    background: var(--primary-navy);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.poi-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poi-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.poi-meta-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.poi-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    background: #F1EFFB;
    color: #4A3E85;
}

.poi-badge.booking {
    background: #FFEBE5;
    color: var(--accent-terracotta);
}

.poi-badge.free {
    background: #E3F8EB;
    color: #1B7A42;
}

.poi-actions {
    display: flex;
    gap: 0.5rem;
}

.poi-info-btn, .poi-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--accent-olive-light);
    color: var(--accent-olive);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.poi-info-btn:hover, .poi-map-link:hover {
    background: var(--accent-olive);
    color: var(--bg-white);
    text-decoration: none;
}

.poi-web-link {
    background: var(--accent-terracotta-light) !important;
    color: var(--accent-terracotta) !important;
}

.poi-web-link:hover {
    background: var(--accent-terracotta) !important;
    color: var(--bg-white) !important;
    text-decoration: none;
}

.poi-info-btn svg, .poi-map-link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Visited style overrides */
.poi-item.visited {
    background: #FAF8F5;
    opacity: 0.8;
}

.poi-item.visited .poi-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Sidebar Box & Tips Card */
.food-card {
    background: #FBF9F4;
    border-left: 4px solid var(--accent-terracotta);
}

.tip-box {
    background: var(--accent-olive-light);
    border-left: 4px solid var(--accent-olive);
    padding: 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 1rem;
}

.tip-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-olive);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Route Buttons Styling */
.route-buttons-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.route-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    background: var(--bg-sand);
    color: var(--primary-navy);
}

.route-btn.primary-route {
    background-color: var(--primary-navy);
    color: var(--bg-white);
}

.route-btn.primary-route:hover {
    background-color: var(--accent-terracotta);
    color: var(--bg-white);
}

.route-btn.secondary-route {
    background-color: var(--bg-sand);
    color: var(--primary-navy);
    border-color: var(--border-color);
}

.route-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Info Details Modal Styling */
.info-modal {
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 30, 54, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.info-modal-content {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px -10px rgba(15, 30, 54, 0.3);
    position: relative;
    animation: modalSlide 0.3s ease-out forwards;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.info-modal-close:hover {
    color: var(--accent-terracotta);
}

.info-details-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.info-details-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-terracotta);
    margin: 1.5rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-details-history {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.info-details-funfacts {
    background: #FAF8F3;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-gold);
    font-size: 0.9rem;
    font-style: italic;
    color: #8C6A15;
}

/* Lightbox Modal Styling */
.lightbox-modal {
    position: fixed;
    z-index: 250;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 30, 54, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-modal-content {
    max-width: 85%;
    max-height: 75%;
    object-fit: contain;
    border-radius: 4px;
    animation: modalSlide 0.3s ease-out;
}

#lightboxCaption {
    margin-top: 1.5rem;
    color: var(--bg-sand);
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--bg-sand);
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--accent-terracotta);
}

/* Restaurant Guide Styles */
.restaurant-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restaurant-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.restaurant-badges {
    display: flex;
    gap: 0.5rem;
}

.restaurant-description {
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

/* Mobile Nav Styles */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 150;
    background: var(--primary-navy);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Media Queries */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .tab-viewport {
        padding: 1.5rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .span-6, .span-8, .span-4 {
        grid-column: span 12;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 180px;
        padding: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .poi-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .poi-image-wrapper {
        width: 100%;
        height: 160px;
    }
}

/* Food Link inside POIs */
.poi-food-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--accent-terracotta);
    font-weight: 600;
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.poi-food-link:hover {
    color: var(--accent-terracotta-hover);
    text-decoration: underline;
}

/* Video Sources Box */
.video-sources-container {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    grid-column: span 12;
}

.video-sources-container h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-navy);
}

.video-sources-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
    padding: 0;
}

.video-source-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.video-source-item svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-terracotta);
    flex-shrink: 0;
}

.video-source-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.video-source-item a:hover {
    color: var(--accent-terracotta);
    text-decoration: none;
}

/* TikTok Specific Styles */
.video-source-item.tiktok-source-item {
    border-left: 3px solid #FE2C55;
    background: #FE2C5508;
}

.video-source-item.tiktok-source-item svg {
    fill: #FE2C55;
}

.tiktok-creator {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.8rem;
    background: #FE2C5515;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-right: 0.35rem;
    display: inline-block;
}

.video-source-item.tiktok-source-item a:hover {
    color: #FE2C55;
}


