﻿:root {
    --primary-color: #f15a29;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
    --medium-gray: #ccc;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wrapper {
    padding: 100px !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search form styling */
.search-container {
    margin-bottom: 20px;
}

.search-top-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.trip-type-selector {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.trip-type-label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--medium-gray);
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.trip-type-input:checked + .custom-radio {
    border-color: var(--primary-color);
}

    .trip-type-input:checked + .custom-radio::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        background-color: var(--primary-color);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.trip-type-input {
    position: absolute;
    opacity: 0;
}

.passenger-selector {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--medium-gray);
    padding-left: 20px;
}

.passenger-icon {
    margin-right: 5px;
    color: var(--dark-gray);
}

.passenger-dropdown {
    background: transparent;
    border: none;
    color: var(--dark-gray);
    font-weight: 500;
    cursor: pointer;
}

/* Search form fields */
.search-fields {
    display: flex;
    gap: 10px;
}

.search-field {
    position: relative;
    flex: 1;
}

.location-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.date-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.location-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    color: var(--primary-color);
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Day selector */
.day-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.day-card {
    flex: 1;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .day-card.active {
        border-color: var(--primary-color);
        background-color: var(--white);
        box-shadow: var(--box-shadow);
    }

.day-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.day-date {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Filter options */
.filter-options {
    display: flex;
    margin-bottom: 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
}

.filter-input:checked + .custom-checkbox::after {
    content: '✓';
    position: absolute;
    color: var(--white);
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-input:checked + .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-input {
    position: absolute;
    opacity: 0;
}

/* Tabs */
.custom-tabs {
    display: flex;
    border-radius: 30px;
    background-color: var(--light-gray);
    overflow: hidden;
    margin-bottom: 20px;
}

.custom-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

    .custom-tab.active {
        background-color: var(--primary-color);
        color: var(--white);
    }

/* Results */
.results-section {
    margin-bottom: 20px;
}

.results-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    font-size:15px;
}

.results-content {
    padding: 0;
}

/* Bus card */
.bus-card {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    background:white;
    border-radius:15px;
    border:1px solid lightgray;
}

.bus-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.company-info {
    display: flex;
    align-items: center;
}

.company-icon {
    margin-right: 10px;
}

.company-name {
    font-weight: 500;
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.bus-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.journey-info {
    display: flex;
    flex-direction: column;
}

.time {
    font-size: 20px;
    font-weight: 700;
}

.city {
    font-weight: 500;
    margin-top: 5px;
}

.station {
    color: var(--dark-gray);
    font-size: 14px;
}

.journey-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.journey-type {
    background-color: var(--light-gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.line {
    height: 2px;
    background-color: var(--medium-gray);
    width: 100%;
    position: relative;
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.dot-start {
    left: 0;
}

.dot-end {
    right: 0;
}

.bus-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.amenities {
    display: flex;
    align-items: center;
}

.amenity {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: var(--dark-gray);
}

.amenity-icon {
    margin-right: 5px;
}

.select-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 500;
    cursor: pointer;
}

/* Side panels */
.side-panels {
    margin-top: 20px;
}

.panel {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.weather-city {
    display: flex;
    align-items: center;
}

.weather-icon {
    margin-right: 10px;
}

.weather-temp {
    font-weight: 500;
    margin-right: 5px;
}

.info-text {
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 10px;
    display: flex;
}

.info-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.alert-info {
    display: flex;
    align-items: center;
    background-color: #e8f4fd;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.contact-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px;
    font-weight: 500;
    cursor: pointer;
}

/* Custom tab content */
.custom-tab-pane {
    display: none;
}

    .custom-tab-pane.active {
        display: block;
    }

.skeleton-loading {
    padding: 15px;
}

.skeleton-result {
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* General Styling */
.ticket-selection-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Selected Outbound Ticket */
.selected-ticket {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticket-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ticket-status h4 {
        margin: 0;
        font-weight: 600;
        color: #333;
    }

    .ticket-status i {
        color: #4CAF50;
        font-size: 20px;
    }

.ticket-date {
    color: #666;
    font-size: 14px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.carrier-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.carrier-name {
    font-weight: 500;
    color: #333;
}

.ticket-price {
    font-weight: 600;
    color: #ff5722;
    font-size: 18px;
}

.journey-details {
    display: grid;
    grid-template-columns: auto 50px auto;
    gap: 10px;
    align-items: start;
}

.time {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.city {
    font-weight: 500;
    color: #333;
    margin-top: 5px;
}

.station {
    color: #666;
    font-size: 13px;
}

.plus-day {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.journey-line {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 60px;
}

    .journey-line .line {
        background-color: #ddd;
        width: 2px;
        height: 100%;
        position: absolute;
        top: 12px;
        bottom: 12px;
    }

.journey-start {
    color: #ff5722;
    font-size: 12px;
    margin-bottom: auto;
    z-index: 1;
}

.journey-end {
    color: #666;
    font-size: 14px;
    margin-top: auto;
    z-index: 1;
}

/* Return Ticket Selection */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 20px;
    color: #333;
}

.return-ticket-option {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.2s ease;
}

    .return-ticket-option:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

.best-price-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.options-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 5px;
}

.journey-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.journey-path {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 20px;
}

.route-line {
    height: 2px;
    background-color: #e0e0e0;
    flex: 1;
    position: relative;
}

.journey-type {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0 10px;
    color: #666;
    font-size: 13px;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.amenities {
    display: flex;
    gap: 15px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

    .amenity i {
        color: #2196F3;
    }

.buy-btn {
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .buy-btn:hover {
        background-color: #e64a19;
    }


/* Selected bus card styling */
.bus-card.selected {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Price tag badge styling */
.best-price-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

/* Make sure bus card has position: relative for the tag positioning */
.bus-card {
    position: relative;
}





.search-field {
    position: relative;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

    .location-dropdown.show {
        display: block;
    }

.location-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .location-option:hover {
        background-color: #f5f5f5;
    }

    .location-option i {
        color: #666;
        margin-right: 12px;
        font-size: 14px;
    }

.location-details {
    flex: 1;
}

.city-name {
    font-weight: 500;
    color: #333;
}

.country-name {
    font-size: 12px;
    color: #666;
}