@import url('https://fonts.cdnfonts.com/css/uber-move-text');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Uber Move Text", sans-serif;
}

.input {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    background-color: hsl(0, 0%, 95%);
    border: none;
    border-radius: 7px;
    color: hsl(0, 0%, 25%);
    padding: 0 20px;
}

.input input {
    height: 100%;
    width: 100%;
    margin-left: 15px;
    border: none;
    background-color: transparent;
    outline: none;
    font-weight: 300;
    font-size: 16px;
}

.input i {
    color: black;
}

.line {
    position: absolute;
    height: 43px;
    width: 0.5px;
    background-color: black;
    top: 100%;
    left: 45%;
    z-index: 1;
}

button {
    padding: 14px 25px;
    background-color: black;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    outline: none;
    border: none;
}

button:hover {
    background-color: hsl(0, 0%, 25%);
}

header {
    height: 64px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 84px;
    background-color: black;
    color: white;
    position: relative;
}

.header_part {
    display: flex;
    align-items: center;
}

.header_part h5 {
    font-size: 25px;
    font-weight: 400;
    margin-right: 20px;
}

.header_part_nav {
    display: flex;
    gap: 4px;
    list-style: none;
}

.header_part_nav li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: 0.3s;
}

.header_part_nav li:hover {
    background-color: hsl(0, 0%, 15%);
}

.login {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: 0.3s;
}

.login:hover {
    background-color: hsl(0, 0%, 15%);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 24px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background-color: hsl(0, 0%, 15%);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: black;
    z-index: 2000;
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid hsl(0, 0%, 20%);
    transform: translateX(100%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav li {
    list-style: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    color: white;
    transition: 0.2s;
}

.mobile-nav li:hover {
    background-color: hsl(0, 0%, 15%);
}

.mobile-nav .mobile-nav-divider {
    height: 1px;
    background-color: hsl(0, 0%, 20%);
    margin: 8px 0;
}

.mobile-nav .mobile-nav-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-nav .mobile-nav-actions span {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    color: white;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}

.mobile-nav .mobile-nav-actions span:last-child {
    background-color: white;
    color: black;
}

.mobile-nav .mobile-nav-actions span:first-child:hover {
    background-color: hsl(0, 0%, 15%);
}

main {
    width: 80%;
    padding: 4rem 0;
    margin: 0 auto;
}

.calculator {
    display: flex;
    gap: 4rem;
    justify-content: space-between;
}

.calculator h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 64px;
}

.inputTopic {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.inputTopic:hover i {
    background-color: hsl(0, 0%, 90%) !important;
    color: black !important;
}

.inputTopic:hover span {
    color: black !important;
}

.inputTopic.active i {
    background-color: hsl(0, 0%, 90%) !important;
    color: black !important;
}

.inputTopic.active span {
    color: black !important;
}

.form-ride,
.form-rent {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    max-width: 450px;
}

.form-rent {
    display: none;
}

.map {
    width: 576px;
    min-height: 420px;
    border-radius: 12px;
    background-color: hsl(0, 0%, 85%);
    overflow: hidden;
    flex-shrink: 0;
}

#leaflet-map {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 12px;
}

.suggestion {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.suggestion a {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    color: black;
    transition: 0.3s;
}

.suggestion a:hover {
    background-color: hsl(0, 0%, 85%);
}

.cards1 {
    flex-wrap: wrap;
}

.cards2 {
    flex-wrap: wrap-reverse;
}

.cards3 {
    flex-wrap: wrap;
}

.cards4 {
    flex-wrap: wrap-reverse;
}

.cards {
    margin-top: 128px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cards_img {
    display: flex;
    flex: 1;
}

.cards img {
    max-width: 100%;
    height: auto;
    flex: 1;
}

.cards .cards_content {
    flex: 1;
}

.cards h2 {
    font-size: 52px;
    font-weight: 700;
    line-height: 64px;
}

.cards p {
    color: hsl(0, 0%, 45%);
    letter-spacing: 0;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    margin: 20px 0;
}

.qrcodes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.qrcode {
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    background-color: white;
    padding: 24px;
    border-radius: 4px;
}

.qrcode i {
    font-size: 1.5rem;
    transition: 0.3s;
}

.qrcode img {
    width: 150px;
}

.qrcode:hover i {
    transform: translateX(10px);
}

.qrcode h2 {
    font-size: 24px;
    font-weight: 700;
}

.qrcode span {
    font-size: 16px;
    color: hsl(0, 0%, 20%);
}

footer {
    background-color: black;
    padding: 64px 0;
}

.footer_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.footer_container ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white;
}

.footer_container ul h5 {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 10px;
}

.footer_container a {
    color: white;
    text-decoration: none;
}

.footer_container a:hover {
    text-decoration: underline;
}

.rent-row {
    display: flex;
    gap: 1rem;
}

.rent-row .input {
    flex: 1;
}

.input select {
    height: 100%;
    width: 100%;
    margin-left: 15px;
    border: none;
    background-color: transparent;
    outline: none;
    font-weight: 300;
    font-size: 16px;
    color: hsl(0, 0%, 25%);
    cursor: pointer;
    font-family: "Uber Move Text", sans-serif;
}

@media only screen and (max-width: 1000px) {
    header {
        padding: 12px 24px;
    }

    .header_part_nav {
        display: none;
    }

    .header_right-desktop {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 2001;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.open {
        display: flex;
    }

    .calculator {
        display: flex;
        flex-direction: column;
    }

    .input {
        display: flex;
        align-items: center;
        width: 100%;
        height: 48px;
        background-color: hsl(0, 0%, 95%);
        border: none;
        border-radius: 7px;
        color: hsl(0, 0%, 25%);
        padding: 0 20px;
    }

    .map {
        width: 100%;
        height: 400px;
        min-height: 400px;
    }

    #leaflet-map {
        min-height: 400px;
    }

    .cards {
        flex-direction: column;
    }

    .cards2 .cards_img,
    .cards4 .cards_img {
        order: 0;
    }

    .cards2 .cards_content,
    .cards4 .cards_content {
        order: 1;
    }

    .cards_img {
        width: 100%;
    }

    .cards h2 {
        font-size: 42px;
        font-weight: 700;
        line-height: 50px;
    }

    .cards p {
        font-size: 14px;
        line-height: 20px;
    }

    .qrcode {
        gap: 1rem;
    }

    .qrcode img {
        width: 100px;
    }

    .qrcode h2 {
        font-size: 20px;
        font-weight: 700;
    }

    .qrcode span {
        font-size: 12px;
        color: hsl(0, 0%, 20%);
    }

    .qrcode i {
        display: none;
    }

    .footer_container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 5rem;
        column-gap: 2rem;
    }

    main {
        width: 90%;
    }

    .calculator h1 {
        font-size: 38px;
        line-height: 48px;
    }

    .form-ride,
    .form-rent {
        max-width: 100%;
    }
}

.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    font-family: "Uber Move Text", sans-serif !important;
}