/* Reset & Base adjustments for Itinerary Theme */
.page-itinerary {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
    font-family: 'Poppins', sans-serif;
}

.hero-itinerary {
    text-align: center;
    color: var(--brown-dark);
    margin-bottom: 40px;
    padding: 20px 20px;
}

.hero-itinerary h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--brown-dark);
    letter-spacing: -0.5px;
}

.hero-itinerary p {
    font-size: 1.15rem;
    color: var(--brown);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
}

/* Cards Styling */
.itinerary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 179, 36, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(61, 38, 17, 0.08);
    max-width: 1000px;
    margin: 0 auto 30px;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(244, 179, 36, 0.2);
    padding-bottom: 20px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brown-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-title i {
    color: var(--gold);
    font-size: 1.6rem;
}

/* Form Layout */
.search-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.form-group-inline {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.form-control-inline {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid rgba(244, 179, 36, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--brown-dark);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    height: 52px;
}

.form-control-inline:focus {
    border-color: var(--gold);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 179, 36, 0.15);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dark);
    font-size: 1.1rem;
}

.btn-submit-inline {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--brown-dark);
    border: none;
    padding: 0 30px;
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(244, 179, 36, 0.3);
}

.btn-submit-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(244, 179, 36, 0.4);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

/* Checkbox Interests Selection */
.interest-selection {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed rgba(244, 179, 36, 0.3);
}

.interest-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 15px;
    display: block;
}

.checkbox-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-pill {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(244, 179, 36, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brown);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-pill input {
    display: none;
}

.checkbox-pill.selected {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-color: var(--gold);
    color: var(--brown-dark);
    box-shadow: 0 4px 12px rgba(244, 179, 36, 0.3);
}

.checkbox-pill:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.9);
}

.checkbox-pill.selected:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
}

/* Trending Destinations */
.trending-subtitle {
    font-size: 0.95rem;
    color: var(--brown);
    margin-bottom: 15px;
    font-weight: 600;
}

.trending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trending-pill {
    background: rgba(255,255,255,0.7);
    color: var(--brown-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(244, 179, 36, 0.3);
}

.trending-pill i {
    color: var(--gold-dark);
}

.trending-pill:hover {
    background: var(--gold-light);
    color: var(--brown-dark);
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(244, 179, 36, 0.2);
}

/* Loading Spinner Overlay */
.loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(253, 251, 245, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 24px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(244, 179, 36, 0.2);
    border-top: 4px solid var(--gold-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    color: var(--brown-dark);
    font-weight: 800;
    font-size: 1.1rem;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Timeline Styling */
.timeline {
    position: relative;
    padding: 20px 0 0 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
    top: 0;
    bottom: 0;
    left: 31px;
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 35px;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 50%;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-dark);
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(244, 179, 36, 0.4);
}
.timeline-content {
    background: rgba(255,255,255,0.8);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(244, 179, 36, 0.2);
    box-shadow: 0 4px 15px rgba(61, 38, 17, 0.04);
    transition: all 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(61, 38, 17, 0.08);
    border-color: rgba(244, 179, 36, 0.4);
}
.time-badge {
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-size: 0.95em;
    display: inline-block;
    background: rgba(244, 179, 36, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}
.timeline-content h3 {
    margin-top: 0;
    color: var(--brown-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.timeline-content p {
    color: var(--brown);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.7;
}
.budget-tag {
    display: inline-block;
    background: rgba(244, 179, 36, 0.15);
    color: var(--brown-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}
.day-header {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--brown-dark);
    padding: 10px 25px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(244, 179, 36, 0.3);
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-form-row {
        flex-direction: column;
    }
    .form-group-inline {
        width: 100%;
    }
    .btn-submit-inline {
        width: 100%;
        justify-content: center;
    }
    .itinerary-card {
        padding: 25px 20px;
        margin: 0 15px 20px;
    }
    .hero-itinerary h1 {
        font-size: 2.2rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .timeline-dot {
        width: 32px;
        height: 32px;
        left: 4px;
        font-size: 0.85rem;
    }
}
