:root {
    --primary-red: #F24E1E;
    --secondary-red: #E23E0E;
    --light-gray: #F8F9FA;
    --dark-gray: #6C757D;
    --white: #FFFFFF;
    --black: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-gray);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    position: relative;
    padding-top: 1rem;
    padding-bottom: 8rem;
    margin-bottom: -6rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.navbar {
    background-color: transparent !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white) !important;
}

.nav-link {
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.nav-link.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.search-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.nav-pills .nav-link {
    color: var(--dark-gray) !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-red);
    color: var(--white) !important;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(242, 78, 30, 0.25);
}

.btn-search {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: var(--secondary-red);
    transform: translateY(-1px);
}

.popular-routes {
    padding: 4rem 0;
}

.route-card {
    background: var(--white);
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advantages {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
}

.advantage-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.footer {
    background-color: #2D2D2D;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .reservation-form {
        margin: 1rem;
        padding: 1.5rem;
    }

    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .nav-pills .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }

    .footer {
        text-align: center;
        padding: 2rem 0;
    }

    .footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Common Input Styles */
.search-input-group,
.phone-input-group,
.date-input-square {
    height: 56px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.search-input-group:hover,
.phone-input-group:hover,
.date-input-square:hover {
    border-color: var(--primary-blue);
}

/* Phone Input Styles */
.phone-input-group {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-right: 1px solid #e7e7e7;
    min-width: 100px;
}

.country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

select.country-select {
    border: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 24px !important;
    width: auto;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    box-shadow: none !important;
}

.phone-input {
    border: none;
    padding: 0 16px;
    height: 100%;
    flex: 1;
    min-width: 0;
    font-size: 16px;
}

.phone-input:focus {
    outline: none;
}

/* Date Picker Styles */
.dates-wrapper {
    display: flex;
    gap: 8px;
}

.date-input-square {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.date-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.date-month {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.date-day {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.date-time {
    font-size: 12px;
    color: var(--primary-blue);
    margin-top: 2px;
}

.date-year {
    display: none;
}

.date-input-square .flatpickr-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e7e7e7;
    margin-top: 4px;
    padding-bottom: 60px !important;
}

.flatpickr-months {
    background: var(--primary-blue);
    border-radius: 8px 8px 0 0;
    padding: 8px 0;
    color: white;
}

.flatpickr-months .flatpickr-month {
    color: white;
    fill: white;
}

.flatpickr-current-month {
    font-size: 15px;
    padding: 0 !important;
}

.flatpickr-monthDropdown-months {
    background: transparent;
    color: white;
    font-weight: 500;
}

.flatpickr-monthDropdown-month {
    color: #333;
}

.flatpickr-weekday {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    background: transparent;
}

.flatpickr-day {
    border-radius: 4px;
    margin: 2px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.flatpickr-day.selected {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    font-weight: 500;
}

.flatpickr-day:hover {
    background: #f0f7ff;
    border-color: #f0f7ff;
}

.flatpickr-day.today {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 500;
}

.flatpickr-time {
    border-top: 1px solid #e7e7e7;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    height: 40px;
}

.flatpickr-time input {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    height: 40px;
}

.flatpickr-time .flatpickr-am-pm {
    font-size: 14px;
    color: #666;
    height: 40px;
}

.numInputWrapper:hover {
    background: transparent;
}

.flatpickr-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: white;
    border-top: 1px solid #e7e7e7;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 999;
}

.flatpickr-button-cancel,
.flatpickr-button-apply {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.flatpickr-button-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.flatpickr-button-cancel:hover {
    background: #ebebeb;
}

.flatpickr-button-apply {
    background: var(--primary-blue);
    color: white;
}

.flatpickr-button-apply:hover {
    background: var(--secondary-blue);
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 100% !important;
        max-width: none;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 12px 12px 0 0;
        padding-bottom: 76px !important;
    }

    .flatpickr-buttons {
        padding: 16px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .flatpickr-button-cancel,
    .flatpickr-button-apply {
        padding: 12px;
        font-size: 15px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 12px;
    }

    .search-col {
        width: 100%;
    }

    .dates-wrapper {
        width: 100%;
    }

    .date-input-square {
        flex: 1;
        width: auto;
        padding: 4px;
    }

    .date-year.mobile-only {
        display: block;
        font-size: 11px;
        color: #666;
        margin-top: 2px;
    }

    .flatpickr-calendar {
        width: 100% !important;
        max-width: none;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 12px 12px 0 0;
    }

    .flatpickr-days {
        width: 100% !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: auto;
        max-width: none;
    }

    .phone-input-group,
    .search-input-group,
    .date-input-square {
        width: 100%;
    }
}

.form-control-with-icon {
    position: relative;
    margin-bottom: 1rem;
}

.form-control-with-icon .form-control {
    height: 58px;
    padding-left: 45px;
    background: white;
    border: 1px solid #e7e7e7;
    color: #333;
    transition: all 0.3s ease;
}

.form-control-with-icon .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: none;
    background: white;
}

.form-control-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 4;
    pointer-events: none;
}

.form-control-with-icon label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: #666;
    margin: 0;
    pointer-events: none;
    z-index: 3;
    background: transparent;
    padding: 0 5px;
}

.form-control-with-icon .form-control:focus ~ label,
.form-control-with-icon .form-control:not(:placeholder-shown) ~ label {
    top: 0;
    left: 15px;
    transform: translateY(-50%) scale(0.85);
    background: white;
    color: var(--primary-blue);
    z-index: 5;
}

.form-control-with-icon .form-control:focus ~ i {
    color: var(--primary-blue);
}

/* Hover durumu için stil */
.form-control-with-icon:hover .form-control {
    border-color: var(--primary-blue);
}

/* Hata durumu için stil */
.form-control-with-icon.error .form-control {
    border-color: #dc3545;
}

.form-control-with-icon.error i,
.form-control-with-icon.error label {
    color: #dc3545;
}

.pac-container {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e7e7e7;
    margin-top: 0;
    font-family: inherit;
    padding: 8px 0;
    z-index: 1000;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white;
}

.pac-container:after {
    display: none;
}

.use-current-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e7e7e7;
    cursor: pointer;
    color: var(--primary-blue);
    font-weight: 500;
    background: white;
    transition: all 0.2s ease;
}

.use-current-location:hover {
    background: #f5f9ff;
}

.use-current-location i {
    font-size: 16px;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: none;
}

.pac-item:hover {
    background-color: #f5f9ff;
}

.pac-item-query {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.pac-matched {
    color: var(--primary-blue);
    font-weight: 600;
}

.pac-secondary-text {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .pac-container {
        position: absolute !important;
        top: calc(100% + 4px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        max-height: 300px;
        overflow-y: auto;
        border-radius: 8px;
        margin: 0;
        padding: 8px 0;
        z-index: 9999 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        background: white;
        transform: none !important;
    }

    .pac-container:empty {
        display: none;
    }

    .pac-container:after {
        display: none;
    }

    .use-current-location {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid #e7e7e7;
        cursor: pointer;
        color: var(--primary-blue);
        font-weight: 500;
        background: white;
    }

    .use-current-location i {
        font-size: 16px;
    }

    .pac-item {
        padding: 12px 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 12px;
        border-top: none;
    }

    .pac-icon {
        width: 20px;
        height: 20px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pac-item-query {
        font-size: 14px;
        color: #333;
        font-weight: 500;
    }

    .pac-secondary-text {
        font-size: 13px;
        color: #666;
    }

    /* Mobil overlay */
    .mobile-places-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }

    .mobile-places-overlay.show {
        display: block;
    }

    /* Input aktif olduğunda overlay'i göster */
    .search-input-wrapper.active .mobile-places-overlay {
        display: block;
    }
}

.search-input-wrapper {
    position: relative;
    z-index: 1000;
}

.form-control-with-icon {
    position: relative;
    z-index: 1000;
}

/* Google Places Autocomplete Stilleri */
.pac-container {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    margin-top: 4px;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    background: white;
    z-index: 1001 !important;
}

.pac-container:after {
    display: none;
}

.use-current-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e7e7e7;
    cursor: pointer;
    color: var(--primary-blue);
    font-weight: 500;
    background: white;
}

.use-current-location:hover {
    background: #f5f9ff;
}

.use-current-location i {
    font-size: 16px;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: none;
}

.pac-item:hover {
    background: #f5f9ff;
}

.pac-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pac-item-query {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.pac-matched {
    color: var(--primary-blue);
    font-weight: 600;
}

.pac-secondary-text {
    font-size: 13px;
    color: #666;
}

/* Mobil Özel Stiller */
@media (max-width: 768px) {
    .search-box {
        position: relative;
        z-index: 1000;
    }

    .search-form {
        position: relative;
        z-index: 1000;
    }

    .search-input-wrapper {
        position: relative;
        z-index: 1000;
    }

    .pac-container {
        position: absolute !important;
        top: calc(100% + 4px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 240px;
        overflow-y: auto;
        border-radius: 8px;
        margin: 0;
        padding: 0;
        transform: none !important;
        z-index: 100000 !important;
    }

    /* Scroll stilini özelleştir */
    .pac-container::-webkit-scrollbar {
        width: 6px;
    }

    .pac-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .pac-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .pac-container::-webkit-scrollbar-thumb:hover {
        background: #666;
    }

    /* Konum önerileri için arka plan overlay */
    .location-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }

    .location-overlay.show {
        display: block;
    }

    /* Input focus durumunda z-index ayarı */
    .search-input-wrapper.active {
        z-index: 1001;
    }
}

.search-box {
    position: relative !important;
    z-index: 9999 !important;
}

.search-form {
    position: relative !important;
    z-index: 9999 !important;
}

.search-input-wrapper {
    position: relative !important;
    z-index: 9999 !important;
}

/* Google Places Autocomplete için kesin pozisyon kuralları */
.pac-container {
    position: absolute !important;
    inset: auto 0 auto 0 !important;
    top: 100% !important;
    bottom: auto !important;
    margin-top: 2px !important;
    transform: none !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    background: white !important;
    font-family: inherit !important;
    z-index: 99999 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

/* Mobil cihazlar için özel kurallar */
@media (max-width: 768px) {
    .pac-container {
        position: absolute !important;
        top: calc(100% + 2px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        transform: none !important;
        max-height: 240px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        z-index: 99999 !important;
    }

    /* Scroll stillerini özelleştir */
    .pac-container::-webkit-scrollbar {
        width: 4px !important;
    }

    .pac-container::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 2px !important;
    }

    .pac-container::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 2px !important;
    }
}

/* Özel konum öğeleri stilleri */
.pac-item {
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-top: none !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover {
    background-color: #f5f9ff !important;
}

.pac-item-query {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    padding-right: 8px !important;
}

.pac-matched {
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
}

.pac-secondary-text {
    font-size: 13px !important;
    color: #666 !important;
}

/* Mevcut konum butonu */
.use-current-location {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e7e7e7 !important;
    cursor: pointer !important;
    color: var(--primary-blue) !important;
    font-weight: 500 !important;
    background: white !important;
}

.use-current-location:hover {
    background: #f5f9ff !important;
}

.use-current-location i {
    font-size: 16px !important;
}

/* Google Places logosunu gizle */
.pac-container:after {
    display: none !important;
}

/* Aktif input için z-index ayarı */
.search-input-wrapper.active {
    z-index: 100000 !important;
}

/* Özel Places Container */
.custom-places-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100000;
    border: 1px solid #e7e7e7;
}

.custom-place-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.custom-place-item:hover {
    background-color: #f5f9ff;
}

.custom-place-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-blue);
    font-size: 16px;
}

.custom-place-info {
    flex: 1;
    min-width: 0;
}

.custom-place-primary {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-place-secondary {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-place-primary .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Mevcut konum butonu */
.use-current-location {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e7e7e7;
    color: var(--primary-blue);
    font-weight: 500;
    background: white;
    transition: background-color 0.2s ease;
}

.use-current-location:hover {
    background-color: #f5f9ff;
}

.use-current-location i {
    margin-right: 12px;
    font-size: 16px;
}

/* Mobil cihazlar için scroll stilleri */
@media (max-width: 768px) {
    .custom-places-container {
        max-height: 240px;
    }

    .custom-places-container::-webkit-scrollbar {
        width: 4px;
    }

    .custom-places-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .custom-places-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
} 