/* Trip Planner Styles - Enhanced Colorful Version */

/* Main Color Variables */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffbe0b;
    --gradient-start: #ff6b6b;
    --gradient-middle: #ffbe0b;
    --gradient-end: #4ecdc4;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --hover-transform: translateY(-5px);
}

/* Body Background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}

/* Header Styles */
.planner-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=600&fit=crop');
    background-position: center;
    background-size: cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.planner-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.7) 0%, rgba(255, 190, 11, 0.4) 100%);
    z-index: 1;
}

.planner-header-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.planner-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.planner-header p {
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Container */
.planner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Authentication Message */
.auth-message {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin: 50px auto;
    animation: fadeIn 0.8s ease-out;
}

.auth-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.auth-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8e8e 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4d4d4d 0%, #707070 100%);
    color: white;
}

.btn:hover {
    transform: var(--hover-transform);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Planner Sections */
.planner-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 35px;
    transition: transform 0.3s ease;
    border: 1px solid #eef2f7;
}

.planner-section:hover {
    transform: translateY(-3px);
}

.planner-section h2 {
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
    font-size: 1.6rem;
}

.planner-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Form Elements */
.planner-select, .planner-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.planner-select:focus, .planner-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Date Selector */
.date-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.date-field {
    flex: 1;
    position: relative;
}

.date-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
    font-size: 1.05rem;
}

.trip-duration {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #555;
    background-color: #f8f9fb;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 30px;
    color: #666;
    animation: pulse 1.5s infinite;
}

.loading-spinner i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Destination Info */
.destination-info {
    margin-top: 25px;
    animation: fadeIn 0.8s ease-out;
}

.destination-card {
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.destination-image {
    width: 40%;
    overflow: hidden;
    position: relative;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.05);
}

.destination-details {
    padding: 25px;
    flex: 1;
}

.destination-details h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.destination-details p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.destination-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 30px;
}

/* Accommodations List */
.accommodations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.accommodation-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    background: white;
    position: relative;
}

.accommodation-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.accommodation-card.selected {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

.accommodation-card.selected::before {
    content: '✓';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accommodation-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.accommodation-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
}

.accommodation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.accommodation-card:hover .accommodation-image img {
    transform: scale(1.05);
}

.accommodation-details {
    padding: 20px;
}

.accommodation-details h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.accommodation-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 15px;
}

/* Accommodation Rating and Amenities */
.accommodation-rating {
    color: #ffc107;
    margin-bottom: 12px;
}

.accommodation-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.amenity {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(255, 190, 11, 0.1) 100%);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.amenity i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.select-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8e8e 100%);
    color: white;
    border: none;
    border-radius: 30px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Transportation List */
.transportation-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.transportation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.transportation-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.transportation-card.selected {
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.transportation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.transportation-icon i {
    font-size: 30px;
    color: var(--secondary-color);
}

.transportation-details {
    text-align: center;
}

.transportation-details h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.transportation-details p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.transportation-price {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Attractions List */
.attractions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.attraction-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.attraction-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.attraction-card.selected {
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 190, 11, 0.3);
}

.attraction-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attraction-card:hover .attraction-image img {
    transform: scale(1.05);
}

.attraction-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.attraction-details {
    padding: 15px;
}

.attraction-details h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.attraction-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.attraction-duration, .attraction-price {
    color: #666;
    font-size: 0.9rem;
}

.attraction-price {
    font-weight: bold;
    color: var(--accent-color);
}

/* Itinerary Builder */
.itinerary-builder {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.itinerary-days {
    display: flex;
    background: #f5f7fa;
    border-bottom: 1px solid #eaeaea;
}

.day-tab {
    padding: 15px 20px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.day-tab:hover {
    background: #edeff3;
    color: #333;
}

.day-tab.active {
    background: white;
    color: var(--primary-color);
}

.day-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.day-planner {
    padding: 20px;
    min-height: 300px;
}

.empty-day-message {
    text-align: center;
    color: #888;
    padding: 80px 20px;
    font-style: italic;
}

.day-timeline {
    position: relative;
}

.day-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 70px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-time {
    width: 100px;
    padding-right: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-color);
    padding-top: 10px;
}

.timeline-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-attraction h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.timeline-attraction p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.timeline-actions {
    display: flex;
    gap: 8px;
}

.timeline-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
    padding: 5px;
}

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

/* Cost Summary */
.cost-summary {
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f7fa 100%);
    border-radius: 8px;
    padding: 20px;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cost-label {
    font-weight: bold;
    color: #666;
}

.cost-value {
    font-weight: bold;
}

.total-cost {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.2) 100%);
    border-left: 4px solid var(--primary-color);
}

.total-cost .cost-label,
.total-cost .cost-value {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Save Itinerary */
.save-itinerary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#itinerary-name {
    font-size: 1.1rem;
}

.save-itinerary-buttons {
    display: flex;
    gap: 15px;
}

/* Saved Itineraries */
.saved-itineraries {
    margin-top: 15px;
}

.saved-itinerary-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.saved-itinerary-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.itinerary-header {
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f7fa 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.itinerary-title {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.itinerary-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-draft {
    background: rgba(255, 190, 11, 0.1);
    color: #d19700;
    border: 1px solid rgba(255, 190, 11, 0.3);
}

.status-finalized {
    background: rgba(78, 205, 196, 0.1);
    color: #3aa39b;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.status-booked {
    background: rgba(127, 191, 63, 0.1);
    color: #68a02d;
    border: 1px solid rgba(127, 191, 63, 0.3);
}

.itinerary-details {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.itinerary-detail {
    display: flex;
    align-items: center;
    color: #666;
}

.itinerary-detail i {
    margin-right: 10px;
    color: var(--primary-color);
}

.itinerary-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.itinerary-btn {
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.itinerary-btn i {
    margin-right: 5px;
}

.view-btn {
    background: #f5f5f5;
    color: #555;
}

.edit-btn {
    background: rgba(78, 205, 196, 0.1);
    color: var(--secondary-color);
}

.book-btn {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.itinerary-btn:hover {
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .date-selector {
        flex-direction: column;
        gap: 15px;
    }
    
    .planner-header {
        height: auto;
        padding: 60px 20px;
    }
    
    .planner-header h1 {
        font-size: 2.2rem;
    }
    
    .accommodations-list, 
    .transportation-list, 
    .attractions-list {
        grid-template-columns: 1fr;
    }
    
    .save-itinerary {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .save-itinerary-buttons {
        flex-direction: column;
    }

    .timeline-time {
        width: 80px;
        font-size: 0.8rem;
    }

    .day-timeline::before {
        left: 50px;
    }

    .timeline-item::before {
        left: 50px;
    }

    .itinerary-actions {
        flex-wrap: wrap;
    }

    .header-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .header-buttons .btn {
        margin-right: 0;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    max-width: 350px;
}

.notification.visible {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--secondary-color);
}

.notification.info {
    border-left: 4px solid var(--accent-color);
}

.notification.error {
    border-left: 4px solid var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.notification.success i {
    color: var(--secondary-color);
}

.notification.info i {
    color: var(--accent-color);
}

.notification.error i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .notification {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        max-width: none;
    }
} 