﻿.main-columns-grid {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 0.6fr 1fr 0.6fr;
    height: 100%;
    min-height: 80%;
    max-height: 100%;
}

.main-first-part-container {
    padding: 50px 30px 0px 10px;
    display: flex;
    justify-content: center;
}

.main-second-part-container {
    justify-items: center;
    display: grid;
}

.main-third-part-container {
    padding: 50px 0px 10px 30px;
}

.main-third-part-items {
    height: 100%;
    width: 100%;
    backdrop-filter: blur(1.5px);
}

.main-first-part-items {
    height: 100%;
    width: 100%;
}

.main-second-part-column-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    width: 100%;
}

.second-part-row {
    display: flex;
    justify-content: flex-start;
    height: 100%;
    flex-direction: column;
}

.second-part-location-first {
    margin-top: 2px !important;
}

.second-part-location,
.category-container {
    display: flex;
    flex-direction: column;
    height: 60px;
    margin-top: 15px;
}

.footer {
    margin-top: 10px;
}

.search-pass-button {
    margin-top: 3px;
    display: none;
    border-width: 1.8px 1.5px 1.8px 1.5px;
    backdrop-filter: blur(1.5px);
}

.btn-search-option {
    backdrop-filter: blur(2px);
}

.search-pass-button:hover {
    backdrop-filter: none;
}

#location-city-container-pass {
    display: block;
}

.main-header-img {
    display: block;
}

.second-part-row-location {
    margin-top: 60px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column
}

.search-location,
.search-category {
    width: 100%;
    box-sizing: border-box;
    border: 4px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    background-image: url('/assets/icons/searchicon.svg');
    background-position: 10px 9px;
    background-repeat: no-repeat;
    padding: 12px 30px 12px 60px;
}

.search-location::-webkit-search-cancel-button,
.search-category::-webkit-search-cancel-button {
    display: none;
}

#search-city-location-response,
#search-town-location-response,
#search-district-location-response,
#search-category-response {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 999 !important;
    max-height: 18vh;
    line-height: 3vh;
    overflow: scroll;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 10px;
}

ul.search-responses::-webkit-scrollbar {
    width: 12px;
}

ul.search-responses::-webkit-scrollbar-track {
    background: white;
}

ul.search-responses::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    border-radius: 20px;
    border: 2px solid grey;
}

#search-city-location-response li a,
#search-town-location-response li a,
#search-district-location-response li a,
#search-category-response li a {
    border: 1px solid #ddd;
    margin-top: -1px; /* Prevent double borders */
    background-color: #f6f6f6;
    padding: 9px;
    text-decoration: none;
    font-size: 15px;
    color: black;
    display: block
}

#search-city-location-response li a:hover:not(.header),
#search-town-location-response li a:hover:not(.header),
#search-district-location-response li a:hover:not(.header),
#search-category-response li a:hover:not(.header) {
    background-color: #eee;
}

#search-city-location-response {
    display: none;
}

.input-search-label {
    font-size: 14px;
    font-weight: bold;
    text-align: right;
}

.search-item-icon {
    margin-left: 5px;
    margin-right: 10px;
}

.search-item-value {
    cursor: pointer;
}

.option-buttons {
    display: none;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    height: 150px;
    margin-top: 25px;
}

.option-buttons {
    margin: 20px 0px 5px 0px;
    padding: 5px;
}

.btn-search-option-location {
    margin: 0px 5px 0px 0px;
}

.btn-search-option-route {
    margin: 0px 0px 0px 5px;
}

.btn-sky {
    background-color: #78bccd;
    border: 1px solid black;
}

.btn-outline-sky {
    border: 1px solid black;
}

.btn-outline-sky:hover {
    background-color: #78bccd;
}

.btn-search-option {
    font-size: 20px;
}

.btn-search-option .fa-map-location-dot,
.btn-search-option .fa-route {
    height: 25px;
    width: 25px;
}

.search-button-container {
    display: none;
    margin-top: 20px;
    width: 100%;
}

.button-search {
    width: 100%;
    background-color: aliceblue;
    color: black;
}

.button-search:hover {
    background-color: #78bccd;
}

.location-district-container,
.location-town-container,
.location-district-container,
.category-container {
    display: none;
}

.search-arrow-home-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-arrow-home {
    margin-top: 50px;
    padding: 50px;
    height: 300px;
    display: grid;
    grid-template-columns: 1fr;
    background-color: transparent;
    backdrop-filter: blur(3px);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.search-warning-empty {
    display: none;
    margin-top: 10px;
}

.city-search-columns {
    margin-bottom: 5vh;
    padding-top: 3vh;
}

.airport-bus-stations-container {
    display: flex;
    width: 76%;
}

.featured-airports-columns:not(:has(div.featured-airports-main-container)),
.featured-bus-stations-columns:not(:has(div.featured-bus-stations-main-container)) {
    display: none;
}

.featured-airports-bus-stations-main-container {
}

.airport-bus-stations-container .featured-airports-columns,
.airport-bus-stations-container .featured-bus-stations-columns {
    flex: 1;
}

.featured-airport-image-container {
    width: 12%;
    text-align:right;
    margin-top:30px;
    padding:0;
}

.featured-airports-bus-stations-row {
    padding: 0 20px;
}

.featured-bus-station-image-container {
    width: 12%;
    text-align: left;
    margin-top: 30px;
    padding: 0;
}

.featured-airport-img,
.featured-bus-station-img {
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.home-search-arrow-icon-container {
    display: flex;
    justify-content: center;
}

.home-search-arrow-text-container {
    display: flex;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: black;
    align-items: center;
}

.search-arrow-home .search-arrow-home-icon {
    width: 100px;
    height: 100%;
}

@media (min-width:1024px) and (max-width:1200px) {
    .main-third-part-container {
        padding: 20px 0px 10px 20px;
    }

    .search-arrow-home .search-arrow-home-icon {
        width: 80px;
    }
}

@media (min-width:992px) and (max-width:1024px) {
    .main-third-part-container {
        display: none;
    }

    .main-first-part-container {
        display: none;
    }

    .search-arrow-home .search-arrow-home-icon {
        width: 60px;
    }

    .home-search-arrow-text-container {
        font-size: 28px;
    }

    .main-columns-grid {
        display: grid;
        grid-auto-rows: 1fr;
        grid-template-columns: 1fr;
        height: 100%;
    }

    .main-second-part-column-grid {
        width: 80%;
    }
}

@media (max-width:992px) {
    body {
        max-height: 100vh;
    }

    .search-pass-button {
        margin-top: 5px;
    }

    .main-header-img {
        display: none;
    }

    .second-part-row-location {
        margin-top: 30px;
        margin-bottom:10px;
    }

    .main-third-part-container {
        display: none;
        padding: 20px 0px 10px 20px;
    }

    .search-arrow-home-container {
        width: 80%;
        top: 60%;
        display: block;
    }

    .search-arrow-home {
        border-radius: 20%;
        padding: 100px 20px;
    }

    .search-arrow-home .search-arrow-home-icon {
        width: 50px;
    }

    .home-search-arrow-text-container {
        font-size: 24px;
    }

    .main-first-part-container {
        display: none;
    }

    .main-second-part-container {
        justify-items: center;
        display: grid;
    }

    .main-second-part-column-grid {
        width: 80%;
    }

    .main-columns-grid {
        display: grid;
        grid-auto-rows: 1fr;
        grid-template-columns: 1fr;
        height: 100%;
        min-height: 90vh;
    }

    .second-part-location-first {
        margin-top: 60px !important;
    }


    .btn-search-option {
        font-size: 15px;
    }

    .option-buttons {
        display: none;
        grid-auto-rows: 1fr;
        grid-template-columns: 1fr 1fr;
        height: 100px;
        margin-top: 10px;
    }

    .search-location,
    .search-category {
        border: 3px solid #ccc;
        border-radius: 3px;
        font-size: 15px;
        background-size: 32px;
        background-position: 8px 8px;
        background-repeat: no-repeat;
    }

    #search-city-location-response li a,
    #search-town-location-response li a,
    #search-district-location-response li a,
    #search-category-response li a {
        border: 1px solid #ddd;
        margin-top: -1px;
        background-color: #f6f6f6;
        padding: 10px;
        font-size: 14px;
    }

    .second-part-location,
    .category-container {
        height: 50px;
        margin-top: 15px;
    }

    .city-search-columns {
        margin-bottom: 0;
        padding-top: 0;
        border: 0;
    }

    .featured-airports-bus-stations-main-container {
        display:none;
    }

    .btn-search-option-location {
        margin: 0px 2px 0px 0px;
    }

    .btn-search-option-route {
        margin: 0px 0px 0px 2px;
    }
}
