/* Trip Planner Styles */

.trip-planner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.trip-header h2 {
    margin: 0;
    color: var(--gold);
}

.trip-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Trip Builder */
.trip-builder {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.trip-builder h3 {
    margin-top: 0;
    color: var(--gold);
}

.trip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat.highlight {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2) 0%, rgba(212, 175, 55, 0.2) 100%);
    border: 1px solid var(--gold);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trip Summary */
.trip-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
}

.trip-info h3 {
    color: var(--gold);
    margin: 0 0 5px 0;
}

.trip-meta {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 25px 0;
}

/* Budget Breakdown */
.budget-breakdown {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.budget-breakdown h4 {
    margin-top: 0;
    color: var(--gold);
}

.budget-chart {
    margin-top: 15px;
}

.budget-item {
    margin-bottom: 15px;
}

.budget-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 14px;
}

.budget-icon {
    font-size: 16px;
}

.budget-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.budget-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, #d4af37 100%);
    transition: width 0.3s ease;
}

.budget-amount {
    text-align: right;
    font-weight: bold;
    color: var(--gold);
}

.budget-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-total .budget-amount {
    font-size: 20px;
}

.budget-note {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* Itinerary */
.trip-itinerary {
    margin: 30px 0;
}

.trip-itinerary h4 {
    color: var(--gold);
}

.itinerary-timeline {
    margin-top: 15px;
}

.itinerary-travel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 10px 0;
    background: rgba(184, 134, 11, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 5px;
}

.travel-icon {
    font-size: 24px;
}

.travel-route {
    font-weight: bold;
    margin-bottom: 3px;
}

.travel-details {
    font-size: 12px;
    color: var(--text-light);
}

.itinerary-city {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.city-marker {
    font-size: 20px;
}

.itinerary-city h5 {
    margin: 0;
    color: var(--gold);
}

.itinerary-match {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: background 0.2s ease;
}

.itinerary-match:hover {
    background: rgba(0, 0, 0, 0.3);
}

.match-date {
    min-width: 80px;
    font-weight: bold;
    color: var(--gold);
}

.match-details {
    flex: 1;
}

.match-title {
    font-weight: 500;
    margin-bottom: 3px;
}

.match-time {
    font-size: 12px;
    color: var(--text-light);
}

/* Route Map */
.trip-route {
    margin: 30px 0;
}

.trip-route h4 {
    color: var(--gold);
}

.route-cities {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.route-city {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-width: 120px;
}

.city-number {
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.city-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.city-matches {
    font-size: 12px;
    color: var(--text-light);
}

.route-arrow {
    font-size: 24px;
    color: var(--gold);
}

/* Trip Export */
.trip-export {
    margin-top: 30px;
    text-align: center;
}

/* Empty State */
.trip-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.trip-empty h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.trip-empty p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.trip-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.trip-steps li {
    margin: 12px 0;
    color: var(--text-light);
}

/* Weekend Packages Modal */
.trip-packages-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.trip-packages-modal .modal-content {
    background: var(--dark-bg);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.trip-packages-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trip-packages-modal .modal-header h3 {
    margin: 0;
    color: var(--gold);
}

.trip-packages-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.trip-packages-modal .modal-close:hover {
    color: #fff;
}

.trip-packages-modal .modal-body {
    padding: 20px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-header h4 {
    margin: 0;
    color: var(--gold);
}

.package-price {
    font-weight: bold;
    color: var(--gold);
}

.package-matches {
    margin: 15px 0;
}

.package-match {
    padding: 8px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.package-match .match-date {
    font-weight: bold;
    color: var(--gold);
    display: block;
    margin-bottom: 3px;
}

.package-match .match-teams {
    color: var(--text-light);
}

.package-cities {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .trip-planner {
        padding: 15px;
    }

    .trip-header {
        flex-direction: column;
        align-items: stretch;
    }

    .trip-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .stat-value {
        font-size: 24px;
    }

    .route-cities {
        flex-direction: column;
        align-items: stretch;
    }

    .route-arrow {
        transform: rotate(90deg);
    }

    .itinerary-match {
        flex-direction: column;
        gap: 8px;
    }

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

/* Print Styles */
@media print {
    .trip-header,
    .trip-actions,
    .trip-export {
        display: none;
    }

    .trip-planner {
        background: white;
        color: black;
    }

    .budget-breakdown,
    .trip-summary {
        page-break-inside: avoid;
    }
}
