/* ========================================
   ARIZONA ADVENTURE - LUXURY TRAVEL GUIDE
   Refined Editorial Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;600;700&family=Jost:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@300;400;600&display=swap');

:root {
    /* Refined Desert Palette */
    --terracotta: #C97651;
    --terracotta-light: #E09B7A;
    --terracotta-dark: #A85E3F;
    --sandstone: #E8DCC4;
    --sandstone-dark: #D4C6A8;
    --sage: #8B9E87;
    --sage-dark: #6B7A67;
    --clay: #8B4F39;
    --copper: #B87333;
    --cream: #FAF8F3;
    --warm-white: #FFFCF7;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F3A;
    --rust: #A54E2E;

    /* Semantic Colors */
    --primary: var(--terracotta);
    --primary-light: var(--terracotta-light);
    --primary-dark: var(--terracotta-dark);
    --secondary: var(--sage);
    --secondary-dark: var(--sage-dark);
    --accent: var(--copper);

    --background: var(--cream);
    --background-light: var(--warm-white);
    --surface: var(--warm-white);
    --surface-elevated: #FFFFFF;
    --surface-overlay: rgba(250, 248, 243, 0.95);

    --text: var(--charcoal);
    --text-secondary: var(--charcoal-light);
    --text-muted: #87796E;
    --text-light: #B0A599;

    --border: rgba(139, 79, 57, 0.12);
    --border-light: rgba(139, 79, 57, 0.06);
    --divider: rgba(201, 118, 81, 0.2);

    /* Location Colors */
    --scottsdale: #C97651;
    --sedona: #A54E2E;

    /* Spacing & Layout */
    --sidebar-width: 300px;
    --content-max: 1400px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Enhanced Shadows */
    --shadow-soft: 0 2px 20px rgba(44, 36, 32, 0.06);
    --shadow: 0 4px 30px rgba(44, 36, 32, 0.08);
    --shadow-lg: 0 8px 50px rgba(44, 36, 32, 0.12);
    --shadow-xl: 0 16px 70px rgba(44, 36, 32, 0.15);
    --glow-terracotta: 0 0 40px rgba(201, 118, 81, 0.2);
    --glow-copper: 0 0 30px rgba(184, 115, 51, 0.25);

    /* Typography Scale */
    --font-display: 'Crimson Pro', 'Georgia', serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
}

/* ========================================
   BASE & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 79, 57, 0.015) 2px, rgba(139, 79, 57, 0.015) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 79, 57, 0.015) 2px, rgba(139, 79, 57, 0.015) 4px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ========================================
   LAYOUT
   ======================================== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* ========================================
   SIDEBAR - EDITORIAL NAVIGATION
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg,
            rgba(255, 252, 247, 1) 0%,
            rgba(250, 248, 243, 1) 50%,
            rgba(248, 244, 238, 1) 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.04);
}

/* Decorative Border Element */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
            rgba(201, 118, 81, 0) 0%,
            rgba(201, 118, 81, 0.15) 30%,
            rgba(201, 118, 81, 0.15) 70%,
            rgba(201, 118, 81, 0) 100%);
}

.sidebar-header {
    padding: 32px 24px 24px;
    border-bottom: 1px solid var(--divider);
    position: relative;
}

/* Decorative Header Accent */
.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta) 0%, transparent 100%);
}

.logo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.logo-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(201, 118, 81, 0.3));
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.logo-text p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--terracotta) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.nav-btn:hover {
    background: rgba(201, 118, 81, 0.06);
    color: var(--text);
    transform: translateX(4px);
}

.nav-btn:hover::before {
    width: 4px;
}

.nav-btn.active {
    background: linear-gradient(135deg,
            rgba(201, 118, 81, 0.12) 0%,
            rgba(201, 118, 81, 0.06) 100%);
    color: var(--primary);
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(201, 118, 81, 0.1);
}

.nav-btn.active::before {
    width: 4px;
    background: var(--terracotta);
}

.nav-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-btn:hover .nav-icon,
.nav-btn.active .nav-icon {
    transform: scale(1.1);
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--divider);
    background: linear-gradient(180deg, transparent 0%, rgba(201, 118, 81, 0.03) 100%);
    position: relative;
}

/* Decorative Footer Accent */
.sidebar-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta) 0%, transparent 100%);
}

.trip-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--background);
}

.main-content.side-layout {
    flex-direction: row-reverse;
}

.main-content.side-layout .map-container {
    width: 45%;
    height: 100%;
    border-bottom: none;
    border-left: 1px solid var(--border);
}

.main-content.side-layout .content-panel {
    width: 55%;
    height: 100%;
    overflow-y: auto;
}

/* Resize Handle */
.resize-handle {
    background: var(--border);
    flex-shrink: 0;
    transition: background 0.3s ease;
    position: relative;
    z-index: 100;
}

.resize-handle::after {
    content: '';
    position: absolute;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resize-handle:hover::after,
.resize-handle.dragging::after {
    opacity: 1;
}

.main-content:not(.side-layout) .resize-handle {
    height: 8px;
    cursor: ns-resize;
}

.main-content:not(.side-layout) .resize-handle::after {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.main-content.side-layout .resize-handle {
    width: 8px;
    cursor: ew-resize;
}

.main-content.side-layout .resize-handle::after {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 60px;
    border-radius: 2px;
}

/* ========================================
   MAP CONTAINER
   ======================================== */
.map-container {
    height: 45%;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background: #E8DCC4;
}

.map-legend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--surface-overlay);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-legend h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.legend-marker.hotel {
    background: #3498db;
}

.legend-marker.golf {
    background: #27ae60;
}

.legend-marker.restaurant {
    background: #e74c3c;
}

.legend-marker.activity {
    background: #9b59b6;
}

/* ========================================
   CONTENT PANEL
   ======================================== */
.content-panel {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
    background: var(--background);
    scroll-behavior: smooth;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 24px;
}

/* Decorative underline */
.content-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta) 0%, transparent 100%);
    border-radius: 2px;
}

.content-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
}

/* ========================================
   OVERVIEW TAB - EDITORIAL CARDS
   ======================================== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.overview-card {
    background: var(--surface);
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--copper) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(201, 118, 81, 0.2));
    display: inline-block;
    animation: gentleFloat 3s ease-in-out infinite;
}

.overview-card:nth-child(2) .card-icon {
    animation-delay: 0.5s;
}

.overview-card:nth-child(3) .card-icon {
    animation-delay: 1s;
}

.overview-card:nth-child(4) .card-icon {
    animation-delay: 1.5s;
}

.overview-card h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.overview-card p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text);
    font-weight: 400;
}

.overview-card p strong {
    color: var(--primary);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(135deg,
            rgba(201, 118, 81, 0.08) 0%,
            rgba(139, 158, 135, 0.08) 100%);
    border: 1px solid rgba(201, 118, 81, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(201, 118, 81, 0.05);
}

/* Decorative corner accent */
.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top left, rgba(201, 118, 81, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-box h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

.highlight-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.highlight-box li {
    padding-left: 32px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.highlight-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 700;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    background: rgba(139, 158, 135, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ========================================
   LOCATION CARDS - LUXURY EDITORIAL STYLE
   ======================================== */
.location-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-cards.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.location-cards.horizontal .location-card {
    flex: 1;
    min-width: 320px;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.location-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element */
.location-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 118, 81, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.location-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--glow-terracotta);
    transform: translateY(-4px);
}

.location-card:hover::before {
    transform: translate(-25%, -25%);
}

.location-card.small {
    padding: 24px;
}

.location-card.small h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.card-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-badge.scottsdale {
    background: linear-gradient(135deg, rgba(201, 118, 81, 0.15) 0%, rgba(201, 118, 81, 0.08) 100%);
    color: var(--scottsdale);
    border: 1px solid rgba(201, 118, 81, 0.2);
}

.card-badge.sedona {
    background: linear-gradient(135deg, rgba(165, 78, 46, 0.15) 0%, rgba(165, 78, 46, 0.08) 100%);
    color: var(--sedona);
    border: 1px solid rgba(165, 78, 46, 0.2);
}

.card-badge.day {
    background: linear-gradient(135deg, rgba(139, 158, 135, 0.15) 0%, rgba(139, 158, 135, 0.08) 100%);
    color: var(--sage-dark);
    border: 1px solid rgba(139, 158, 135, 0.2);
}

.card-badge.alt {
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.15) 0%, rgba(184, 115, 51, 0.08) 100%);
    color: var(--copper);
    border: 1px solid rgba(184, 115, 51, 0.2);
}

.location-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-rating {
    color: #D4A574;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
    font-weight: 400;
}

.card-details {
    background: linear-gradient(135deg,
            rgba(232, 220, 196, 0.3) 0%,
            rgba(232, 220, 196, 0.15) 100%);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(232, 220, 196, 0.4);
}

.detail {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    margin-bottom: 10px;
    align-items: baseline;
}

.detail:last-child {
    margin-bottom: 0;
}

.detail .label {
    color: var(--text-muted);
    min-width: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.detail:not(.detail .label) {
    color: var(--text);
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.cuisine-tag {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-body);
}

.price-tag {
    font-size: 0.95rem;
    color: var(--sage-dark);
    margin-top: 16px;
    font-weight: 600;
    font-family: var(--font-display);
}

/* Course Features Tags */
.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.course-features .feature {
    background: rgba(232, 220, 196, 0.4);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid rgba(232, 220, 196, 0.6);
    transition: all 0.3s ease;
}

.course-features .feature:hover {
    background: rgba(201, 118, 81, 0.1);
    border-color: rgba(201, 118, 81, 0.3);
    transform: translateY(-2px);
}

/* Pro Tips Box */
.pro-tips {
    background: linear-gradient(135deg,
            rgba(201, 118, 81, 0.06) 0%,
            rgba(201, 118, 81, 0.03) 100%);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 24px;
}

.pro-tips strong {
    display: block;
    margin-bottom: 14px;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

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

.pro-tips li {
    font-size: 0.95rem;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pro-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========================================
   BUTTONS - REFINED DESIGN
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(201, 118, 81, 0.25);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 118, 81, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 32px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 118, 81, 0.3);
}

.btn-small {
    background: rgba(232, 220, 196, 0.5);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(139, 158, 135, 0.25);
}

.btn-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 158, 135, 0.35);
}

/* ========================================
   FILTER TABS
   ======================================== */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    background: rgba(201, 118, 81, 0.08);
    color: var(--text);
    border-color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    color: white;
    border-color: var(--terracotta);
    box-shadow: 0 4px 12px rgba(201, 118, 81, 0.3);
}

/* ========================================
   ACTIVITIES TAB
   ======================================== */
.activity-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--divider);
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--terracotta);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

.trail-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.trail-stats .stat {
    background: rgba(232, 220, 196, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    flex-direction: row;
    gap: 6px;
    font-weight: 500;
    border: 1px solid rgba(232, 220, 196, 0.6);
}

/* ========================================
   GOLF TAB
   ======================================== */
.golf-summary-box {
    background: linear-gradient(135deg,
            rgba(39, 174, 96, 0.08) 0%,
            rgba(139, 158, 135, 0.08) 100%);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.golf-summary-box::before {
    content: '⛳';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.03;
    pointer-events: none;
}

.golf-summary-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #27ae60;
    font-weight: 600;
}

.golf-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.summary-item .value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.booking-tips-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-soft);
}

.booking-tips-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tip {
    padding: 20px;
    background: linear-gradient(135deg,
            rgba(232, 220, 196, 0.3) 0%,
            rgba(232, 220, 196, 0.1) 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(232, 220, 196, 0.4);
    transition: all 0.3s ease;
}

.tip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.tip p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   ITINERARY TAB
   ======================================== */
.itinerary-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.day-card.transfer {
    border-left: 4px solid #3498db;
}

.day-card.departure {
    border-left: 4px solid #e74c3c;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg,
            rgba(232, 220, 196, 0.3) 0%,
            rgba(232, 220, 196, 0.1) 100%);
}

.day-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(201, 118, 81, 0.3);
    flex-shrink: 0;
}

.day-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.day-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    font-style: italic;
}

.day-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    background: rgba(232, 220, 196, 0.2);
}

.timeline-item.highlight {
    background: linear-gradient(135deg,
            rgba(201, 118, 81, 0.08) 0%,
            rgba(201, 118, 81, 0.04) 100%);
    border-left: 3px solid var(--terracotta);
}

.timeline-item .time {
    min-width: 90px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item .activity {
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}

/* ========================================
   ROUTE TAB
   ======================================== */
.route-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.route-stat {
    flex: 1;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.route-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.route-stat .stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(201, 118, 81, 0.2));
}

.route-stat .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.route-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.route-explanation {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.route-explanation h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 600;
}

.route-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.benefit h4 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.benefit ul {
    list-style: none;
}

.benefit li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefit li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1.2;
}

.route-segments {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.route-segments h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 600;
}

.segment {
    display: grid;
    grid-template-columns: 120px 1fr 140px;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.segment:last-of-type {
    border-bottom: none;
}

.segment.highlight {
    background: linear-gradient(135deg,
            rgba(201, 118, 81, 0.06) 0%,
            rgba(201, 118, 81, 0.03) 100%);
    margin: 0 -32px;
    padding: 20px 32px;
    border-radius: var(--radius-sm);
}

.segment-day {
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.segment-route {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.segment-time {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.route-tips {
    background: linear-gradient(135deg,
            rgba(139, 158, 135, 0.12) 0%,
            rgba(139, 158, 135, 0.06) 100%);
    border: 1px solid rgba(139, 158, 135, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.route-tips::before {
    content: '💡';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 200px;
    opacity: 0.03;
    pointer-events: none;
}

.route-tips h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--sage-dark);
    font-weight: 600;
}

.route-tips ul {
    list-style: none;
}

.route-tips li {
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.route-tips li strong {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   TIMELINE TAB - HORIZONTAL VISUALIZATION
   ======================================== */
.horizontal-timeline-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    overflow-x: auto;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.timeline-legend {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    justify-content: center;
}

.timeline-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-legend .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timeline-legend .dot.golf {
    background: #27ae60;
}

.timeline-legend .dot.dining {
    background: #e74c3c;
}

.timeline-legend .dot.activity {
    background: #9b59b6;
}

.timeline-legend .dot.travel {
    background: #3498db;
}

.timeline-legend .dot.stay {
    background: #3498db;
    border: 2px solid var(--terracotta);
}

.horizontal-timeline {
    position: relative;
    min-height: 450px;
    min-width: 2200px;
    padding: 120px 80px;
}

.timeline-track {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.timeline-arrow-line {
    flex: 1;
    height: 5px;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--rust) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(201, 118, 81, 0.2);
}

.timeline-arrow-head {
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid var(--rust);
    filter: drop-shadow(2px 0 4px rgba(165, 78, 46, 0.3));
}

.timeline-day {
    position: absolute;
    top: 40%;
    transform: translate(-50%, -50%);
}

.day-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    border-radius: 50%;
    width: 68px;
    height: 68px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(201, 118, 81, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    border: 4px solid var(--background);
}

.day-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(201, 118, 81, 0.5);
}

.day-marker.transfer {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
}

.day-marker.sedona {
    background: linear-gradient(135deg, var(--rust) 0%, #8a3a20 100%);
    box-shadow: 0 6px 20px rgba(165, 78, 46, 0.35);
}

.day-marker.departure {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

.day-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.day-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

.day-events {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: max-content;
}

.event-branch {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-branch:not(.below):not(.mid):not(.stay-row) {
    bottom: 52px;
}

.event-branch.below {
    top: 52px;
}

.event-branch.mid {
    bottom: 120px;
}

.event-branch.mid.below {
    top: 120px;
    bottom: auto;
}

.event-branch.stay-row {
    top: 200px;
}

.branch-arrow {
    width: 3px;
    height: 40px;
    position: relative;
}

.event-branch.stay-row .branch-arrow {
    height: 188px;
    background: linear-gradient(to bottom, transparent 0%, rgba(52, 152, 219, 0.2) 20%, currentColor 100%);
    order: 1;
    margin-top: -148px;
    z-index: -1;
}

.event-branch:not(.below) .branch-arrow {
    background: linear-gradient(to top, transparent 0%, currentColor 100%);
}

.event-branch.below .branch-arrow {
    background: linear-gradient(to bottom, transparent 0%, currentColor 100%);
    order: 1;
}

.event-branch:not(.below) .branch-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 10px solid currentColor;
}

.event-branch.below .branch-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid currentColor;
}

.event-branch.golf {
    color: #27ae60;
}

.event-branch.dining {
    color: #e74c3c;
}

.event-branch.activity {
    color: #9b59b6;
}

.event-branch.travel {
    color: #3498db;
}

.event-branch.stay {
    color: #3498db;
}

.event-branch.stay-row .event-card {
    order: 2;
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    min-width: 140px;
}


.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    order: -1;
    box-shadow: var(--shadow-soft);
}

.event-branch.below .event-card {
    order: 2;
}

.event-card:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow);
}

.event-card.highlight {
    background: linear-gradient(135deg,
            rgba(52, 152, 219, 0.12) 0%,
            rgba(52, 152, 219, 0.06) 100%);
    border-color: #3498db;
}

.event-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.event-icon {
    font-size: 1.3rem;
}

.event-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.timeline-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.summary-category {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.summary-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.summary-category .category-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.summary-category h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.summary-category p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.summary-category.golf {
    border-left: 4px solid #27ae60;
}

.summary-category.dining {
    border-left: 4px solid #e74c3c;
}

.summary-category.hiking {
    border-left: 4px solid #9b59b6;
}

.summary-category.adventures {
    border-left: 4px solid #3498db;
}

/* ========================================
   MASTER PLANNER TAB
   ======================================== */
.planner-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.planner-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.planner-legend .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.planner-legend .dot.golf {
    background: #27ae60;
}

.planner-legend .dot.dining {
    background: #e74c3c;
}

.planner-legend .dot.activity {
    background: #9b59b6;
}

.planner-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 32px;
}

.planner-column {
    flex: 0 0 200px;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    border: 2px solid var(--border-light);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.planner-column.drag-over {
    border-color: var(--primary);
    background: rgba(201, 118, 81, 0.04);
    box-shadow: var(--glow-terracotta);
    transform: scale(1.02);
}

.planner-column-header {
    padding: 16px;
    background: linear-gradient(135deg,
            rgba(232, 220, 196, 0.3) 0%,
            rgba(232, 220, 196, 0.1) 100%);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    text-align: center;
}

.planner-column-header .day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(201, 118, 81, 0.3);
}

.planner-column-header .day-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 2px;
}

.planner-column-header .day-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planner-column-items {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
}

.planner-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--border);
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: var(--shadow-soft);
}

.planner-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.planner-item:active {
    cursor: grabbing;
}

.planner-item.dragging {
    opacity: 0.6;
    transform: rotate(4deg) scale(1.05);
}

.planner-item .item-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.planner-item .item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}

.planner-item .item-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
}

.planner-item.golf .item-type {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.planner-item.restaurant .item-type {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.planner-item.activity .item-type {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.planner-unscheduled {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px dashed var(--border);
    box-shadow: var(--shadow-soft);
}

.planner-unscheduled h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.unscheduled-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 80px;
    padding: 16px;
    background: rgba(232, 220, 196, 0.2);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.unscheduled-pool.drag-over {
    border: 2px dashed var(--primary);
    background: rgba(201, 118, 81, 0.08);
}

.unscheduled-pool .planner-item {
    flex: 0 0 auto;
}

.unscheduled-pool .empty-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: 20px;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 36, 32, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg,
            rgba(232, 220, 196, 0.3) 0%,
            rgba(232, 220, 196, 0.1) 100%);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(201, 118, 81, 0.1);
    transform: rotate(90deg);
}

#add-item-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--background-light);
    color: var(--text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 118, 81, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.conditional-fields {
    display: none;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    margin-top: 16px;
}

.conditional-fields.active {
    display: block;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.form-actions .btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.form-actions .btn-secondary:hover {
    background: rgba(201, 118, 81, 0.06);
    color: var(--text);
    border-color: var(--primary);
}

/* ========================================
   CUSTOM LEAFLET MARKERS
   ======================================== */
.custom-marker {
    background: var(--surface);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow);
    border: 3px solid white;
}

.marker-popup {
    min-width: 240px;
}

.marker-popup h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}

.marker-popup p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 20px;
    font-family: var(--font-body);
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--sandstone-dark);
    border-radius: 5px;
    border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta-light);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .route-benefits {
        grid-template-columns: 1fr;
    }

    .golf-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 90px;
    }

    .logo-text,
    .nav-text,
    .trip-stats {
        display: none;
    }

    .nav-btn {
        justify-content: center;
        padding: 18px;
    }

    .nav-icon {
        font-size: 1.6rem;
    }

    .content-panel {
        padding: 24px 20px;
    }

    .content-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .highlight-box ul {
        grid-template-columns: 1fr;
    }

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

    .route-stats {
        flex-direction: column;
    }

    .segment {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .segment-time {
        text-align: left;
    }

    .timeline-summary {
        grid-template-columns: 1fr;
    }

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

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .sidebar,
    .map-container,
    .resize-handle,
    .btn-add,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    .content-panel {
        padding: 0;
    }

    .location-card {
        page-break-inside: avoid;
    }
}