/* Trip Type Selection */
.trip-type-selection {
    margin: 40px 0 !important;
}

.trip-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.trip-card {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

.trip-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.trip-card.selected {
    border: 2px solid #0098D0 !important;
}

.trip-card.selected::before {
    content: "✓" !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #0098D0 !important;
    color: #fff !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    z-index: 1 !important;
}

.trip-card-image {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
}

.trip-card-content {
    padding: 16px !important;
}

.trip-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

.trip-card-subtitle {
    font-size: 14px !important;
    color: #666 !important;
}

/* Date Selection */
.date-selection {
    background: #fff !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin-top: 30px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.date-selection-title {
    font-size: 24px !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}

.date-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

@media (max-width: 768px) {
    .date-grid {
        grid-template-columns: 1fr !important;
    }
}

.date-column {
    text-align: center !important;
}

.date-column-title {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 12px !important;
}

/* Calendar Styling */
.date-calendar {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
    border-radius: 4px !important;
}

.date-calendar th {
    padding: 12px !important;
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.date-calendar td {
    padding: 8px !important;
    font-size: 14px !important;
    color: #333 !important;
}

.date-calendar .available {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.date-calendar .available:hover {
    background: rgba(0, 152, 208, 0.1) !important;
    color: #0098D0 !important;
}

.date-calendar .selected {
    background: #0098D0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.date-calendar .unavailable {
    color: #ccc !important;
    cursor: not-allowed !important;
}

.date-calendar .special-event {
    background: rgba(0, 152, 208, 0.1) !important;
    color: #0098D0 !important;
    font-weight: 600 !important;
}

/* Calendar Date States */
.date-calendar td {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Bus Running Indicator (Blue Date) */
.date-calendar td.has-bus {
    color: #0098D0 !important;
    font-weight: 600 !important;
}

/* Capacity Indicators */
.date-calendar td.available::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
}

/* Less than 15 seats (Yellow) */
.date-calendar td.low-capacity::after {
    background-color: #FFD700 !important;
}

/* Less than 30 seats (Green) */
.date-calendar td.medium-capacity::after {
    background-color: #4CAF50 !important;
}

/* Full Bus (Red) */
.date-calendar td.full::after {
    background-color: #FF4444 !important;
}

/* Selected Date (Orange Circle) */
.date-calendar td.selected {
    position: relative !important;
}

.date-calendar td.selected::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #FF9800 !important;
    z-index: 1 !important;
}

/* Unavailable Dates */
.date-calendar td.unavailable {
    color: #ccc !important;
    cursor: not-allowed !important;
}

/* Other Month Dates */
.date-calendar td.other-month {
    color: #ddd !important;
    cursor: default !important;
}

/* Hover Effects */
.date-calendar td.available:hover {
    background-color: rgba(0, 152, 208, 0.1) !important;
}

/* Today's Date */
.date-calendar td.today {
    font-weight: bold !important;
    color: #0098D0 !important;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.calendar-nav-btn:hover {
    color: #007bff;
}

.calendar-nav-month {
    font-weight: 600;
    font-size: 16px;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 0 0 4px 4px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-indicator.low {
    background-color: #ffd700;
}

.legend-indicator.medium {
    background-color: #4CAF50;
}

.legend-indicator.full {
    background-color: #f44336;
}

.legend-indicator.selected {
    background-color: #ff9800;
}

/* Calendar Container */
.date-calendar-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Update existing calendar styles */
.date-calendar {
    margin: 0;
    padding: 10px;
}

/* Location Selection */
.location-selection {
    margin-top: 30px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.location-field {
    position: relative !important;
}

.location-field label {
    display: block !important;
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
}

.location-field select {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff !important;
    cursor: pointer !important;
}

.location-field .copy-icon {
    position: absolute !important;
    right: 12px !important;
    top: 38px !important;
    color: #0098D0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.location-field .copy-icon:hover {
    opacity: 0.8 !important;
}

/* Package Selection */
.package-selection {
    display: none;
    margin-top: 30px;
}

.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Capacity indicators */
.package-card.low-capacity {
    border-left: 4px solid #ffd700;
}

.package-card.medium-capacity {
    border-left: 4px solid #4CAF50;
}

.package-card.full {
    border-left: 4px solid #f44336;
    opacity: 0.8;
}

/* Special event badge */
.special-event-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #ff9800;
    color: #fff;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.package-header {
    margin-bottom: 15px;
    padding-top: 10px;
}

.package-header h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.package-dates {
    color: #666;
    font-size: 14px;
}

.package-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.package-price {
    font-size: 24px;
    font-weight: 600;
    color: #0098D0;
}

.package-capacity {
    font-size: 14px;
    color: #666;
}

.seats-remaining {
    font-weight: 600;
    color: #333;
}

.select-package-btn {
    width: 100%;
    padding: 12px;
    background: #0098D0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.select-package-btn:hover:not(:disabled) {
    background: #007ba8;
}

.select-package-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* No packages message */
.no-packages {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Package Details Box */
.package-details-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.package-details-box h3 {
    color: #333;
    margin-bottom: 15px;
}

.package-info {
    color: #555;
    line-height: 1.6;
}

.package-info p {
    margin-bottom: 10px;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .package-options {
        grid-template-columns: 1fr;
    }
    
    .package-details {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
} 