@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

:root {
    --primary-color: #2887ff;
    --primary-color-dark: #2476da;
    --text-dark: #0a0a0a;
    --text-light: #737373;
    --extra-light: #f3f4f6;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.section__header {
    margin-bottom: 5px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 10px;
}

.section__description {
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 10px;
    padding: 10px 10px;
    text-align: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 5rem;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color-dark);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

img {
    display: flex;
    width: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
}

nav {
    position: fixed;
    isolation: isolate;
    top: 0;
    width: 100%;
    z-index: 9;
}

.nav__header {
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
}

.nav__logo .logo {
    font-size: 1.5rem;
    color: var(--white);
}

.nav__menu__btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.nav__links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--primary-color);
    transition: transform 0.5s;
    z-index: -1;
}

.nav__links.open {
    transform: translateY(100%);
}

.nav__links a {
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.nav__links a:hover {
    color: var(--text-dark);
}

.nav__btns {
    display: none;
}

header {
    margin-top: 5rem;
    padding-inline: 1rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

header::before {
    position: absolute;
    content: "";
    height: 100%;
    width: calc(100% - 2rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("/assets/Uzbekistan7.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 3rem;
    z-index: -1;
}

.header__container {
    display: grid;
}

.header__content {
    padding: 4rem 1rem;
}

.header__content p {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.header__content h1 {
    margin-bottom: 2rem;
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 5.5rem;
    text-align: center;
}

.header__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header__btns .btn {
    padding: 1rem 2rem;
}

.header__btns a {
    padding: 9px 13px;
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: var(--white);
    border-radius: 100%;
}

.header__btns a:hover {
    color: var(--white);
    background-color: var(--primary-color);
}

.destination__container :is(.section__header, .section__description) {
    text-align: left;
    margin-inline-start: unset;
    text-align: center;
}

.destination__grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem 1rem;
}

.destination__card {
    background-color: rgba(202, 202, 202, 0.6);
    padding: 8px;
    border-radius: 12px;
}

.destination__card img {
    border-radius: 1.5rem;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.hotelFilter_card {
    background-color: rgba(202, 202, 202, 0.6);
    padding: 8px;
    border-radius: 12px;
}

.hotelFilter_card img {
    border-radius: 1.5rem;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.destination__card__details {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.destination__card__details h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    columns: var(--text-dark);
}

.destination__card__details div p {
    color: #000;
}

.destination__rating {
    padding: 5px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 1rem;
    transition: 0.3s;
}

.destination__card:hover .destination__rating {
    background-color: var(--primary-color-dark);
}

.journey__grid {
    margin-top: 2rem;
    display: grid;
    gap: 0 1rem;
}

.journey__card {
    position: relative;
    isolation: isolate;
    padding-top: 4rem;
    overflow: hidden;
}

.journey__card__bg {
    padding: 2rem;
    background-color: var(--extra-light);
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
}

.journey__card__bg span {
    display: inline-block;
    margin-bottom: 4rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.journey__card__bg h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.journey__card__content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: var(--primary-color);
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    transition: 0.3s;
}

.journey__card:hover .journey__card__content {
    top: 0;
}

.journey__card__content span {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 7px 9px;
    font-size: 1rem;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 100%;
}

.journey__card__content h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.journey__card__content p {
    color: var(--extra-light);
}

.showcase__container {
    display: grid;
    gap: 2rem;
    overflow: hidden;
}

.showcase__image img {
    max-width: 400px;
    margin-inline: auto;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.showcase__content h4 {
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
}

.showcase__content p {
    margin-bottom: 1rem;
    color: #fff;
}

.showcase__content .btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    background-image: url("assets/header-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.banner__container {
    display: grid;
    gap: 2rem;
}

.banner__card {
    padding: 2rem 1rem;
    text-align: center;
    background-color: var(--extra-light);
    border-radius: 2rem;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.banner__card h4 {
    font-size: 5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.banner__card p {
    color: var(--text-light);
}

.discover__grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

.discover__card {
    padding: 2rem 1rem;
    text-align: center;
    transition: 0.3s;
    border-radius: 1rem;
    background-color: rgba(255, 253, 253, 0.6);
}

.discover__card:hover {
    box-shadow: 5px 5px 20px rgba(15, 0, 0, 0.397);
    background-color: rgba(155, 155, 155, 0.6);
}

.discover__card span {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 10px 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(40, 135, 255, 0.1);
    border-radius: 100%;
}

.discover__card h4 {
    max-width: 150px;
    margin-inline: auto;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.destination__card p {
    color: var(--text-light);
}

.swiper {
    margin-top: 4rem;
    width: 100%;
}

.swiper-slide {
    min-width: 375px;
}

.client__card {
    padding: 5px;
    background-color: var(--extra-light);
    border-radius: 1rem;
    transition: 0.3s;
}

.client__card:hover {
    background-color: var(--primary-color);
}

.client__content {
    padding: 1rem;
    background-color: var(--white);
    border-radius: calc(1rem - 5px);
}

.client__rating {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.client__content p {
    color: var(--text-dark);
}

.client__details {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: rem;
}

.client__details img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
}

.client__details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
}

.client__card:hover h4 {
    color: var(--white);
}

.client__details h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: 0.3s;
}

.client__card:hover h5 {
    color: var(--extra-light);
}

footer {
    background-color: var(--extra-light);
}

.footer__container {
    display: grid;
    gap: 4rem 2rem;
}

.footer__col p {
    max-width: 300px;
    margin-block: 2rem;
    color: var(--text-light);
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__socials a {
    display: inline-block;
    padding: 7px 10px;
    font-size: 1.25rem;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 100%;
}

.footer__socials a:hover {
    background-color: var(--primary-color-dark);
}

.footer__col h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.footer__links {
    display: grid;
    gap: 1rem;
}

.footer__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.footer__links a:hover {
    color: var(--primary-color);
}

.footer__links a span {
    font-size: 1.25rem;
}

.footer__col form {
    display: grid;
    gap: 1rem;
}

.footer__col input {
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--text-light);
    border-radius: 5px;
}

.footer__col input::placeholder {
    color: var(--text-light);
}

.footer__col .btn {
    border-radius: 5px;
}

.footer__bar {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.map {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}

.map #map {
    width: 80%;
}

.yt_video {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st_contact {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 80%;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: #1c83be;
    outline: none;
    box-shadow: 0 0 5px rgba(116, 235, 213, 0.5);
}

button {
    width: 100%;
    background: #1b6fa0;
    border: none;
    color: white;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #6996d8;
}

.success {
    margin-top: 10px;
    text-align: center;
    color: green;
}

.error {
    margin-top: 10px;
    text-align: center;
    color: red;
}

.filter-tabs {
    margin-bottom: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.tab-buttons {
    position: relative;
    display: flex;
    gap: 20px;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 8px 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-btn {
    background: #fff;
    margin: 3px;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    z-index: 1;
}

.filter-btn:hover {
    color: #fff;
}

.filter-btn.active {
    color: #fff;
    background-color: #007BFF;
}

.tab-indicator {
    position: absolute;
    bottom: 4px;
    height: 36px;
    width: 0;
    background-color: #007BFF;
    border-radius: 8px;
    z-index: 0;
    transition: all 0.3s ease;
}

.text_about {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: 40px;
    color: #000;
    background-color: rgba(255, 253, 253, 0.6);
}

.text_about span {
    font-weight: 1000;
}

#langSwitcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border: 1px solid #ccc;
    padding: 2px;
    border-radius: 4px;
    cursor: move;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    user-select: none;
}

#langSwitcher button {
    background-color: #f1f1f1;
    border: none;
    padding: 0px;
    margin: 0 2px;
    cursor: pointer;
    font-weight: 100;
    border-radius: 4px;
    color: #000;
}

#langSwitcher button:hover {
    background-color: #ddd;
}

.slider {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.info {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
}

.info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info p {
    font-size: 1.2rem;
}

.hotelFilter_tabs {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hotelFilter_tab {
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background-color: white;
}

.hotelFilter_tab:hover,
.hotelFilter_tab.hotelFilter_active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tour-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* space between cards */
    justify-content: center;
    margin-top: 150px;
    height: auto;
}

.tour-card {
    background: #00000080;
    width: 0px;
    height: 390px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(33.333% - 20px);
    /* 3 per row */
    /* max-width: calc(33.333% - 20px); ensure they don't grow bigger   */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
}


.tour-title {
    color: white;
    font-weight: bold;
    font-size: 28px;
}

/* Responsive: 2 per row on tablets */
@media (max-width: 768px) {
    .tour-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* Responsive: 1 per row on mobile */
@media (max-width: 480px) {
    .tour-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* Behind everything */

    background-image: url(https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2e/38/bb/12/caption.jpg?w=1200&h=-1&s=1);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    /* Only this gets the filter */
    filter: brightness(0.85) blur(4px);
}


.tour-details {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    overflow: hidden;
    display: none;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.tour-details.show {
    display: flex;
}

.tour-details img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.tour-details .details-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #222;
}

.details-description {
    font-size: 1em;
    color: #555;
}

@media (max-width: 768px) {
    .tour-card {
        width: 100%;
    }

    .tour-details {
        flex-direction: column;
        align-items: center;
    }

    .tour-details img {
        width: 100%;
        height: auto;
    }

    .tour-details .details-text {
        align-items: center;
        text-align: center;
    }
}



@media (max-width: 768px) {
    .info h1 {
        font-size: 1.5rem;
    }

    .info p {
        font-size: 1rem;
    }
}



@media (width > 800px) {}


@media (width > 540px) {
    .destination__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .text_about {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px 120px;
        font-weight: 500;
        font-size: 18px;
    }

    .text_about span {
        font-weight: 1000;
    }

    .map {
        height: auto;
    }

    .journey__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .banner__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__col:last-child {
        grid-area: 2/1/3/2;
    }
}

@media (width > 768px) {
    nav {
        position: static;
        padding: 2rem 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;

    }

    .nav__header {
        flex: 1;
        padding: 0;
        background-color: transparent;
    }

    .nav__logo .logo {
        color: var(--text-dark);
    }

    .nav__menu__btn {
        display: none;
    }

    .nav__links {
        position: static;
        width: fit-content;
        padding: 0;
        flex-direction: row;
        background-color: transparent;
        transform: none !important;
    }

    .nav__links a {
        color: var(--text-dark);
    }

    .nav__links a:hover {
        color: var(--primary-color);
    }

    .nav__links li:last-child {
        display: none;
    }

    .nav__btns {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .nav__btns button {
        padding: 0.75rem 2rem;
        background-color: var(--text-dark);
    }

    header {
        margin-top: 0;
    }

    .header__container {
        grid-template-columns:
            minmax(0, 1fr) repeat(5, minmax(0, calc(var(--max-width) / 5))) minmax(0, 1fr);
    }

    .header__content {
        grid-column: 2/4;
        padding-block: 8rem;
    }

    .header__content :is(p, h1) {
        text-align: left;
    }

    .header__btns {
        justify-content: flex-start;
    }

    .header__image {
        grid-column: 4/8;
        position: relative;
        isolation: isolate;
        height: 100%;
    }

    .header__image img {
        position: absolute;
        top: 2rem;
        left: 0;
        height: 100%;
        width: unset;
    }

    .destination__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .journey__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .showcase__container {
        grid-template-columns: repeat(3, 1fr);
        background: rgba(0, 0, 0, 0.7);
        margin-top: 47px;
        border-radius: 15px;
    }

    .showcase__content {
        grid-column: 2/4;
    }

    .banner__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .discover__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .footer__col:last-child {
        grid-area: unset;
    }
}

@media (width > 1200px) {
    .header__content {
        padding-inline: 1rem 0;
    }

    .destination__grid {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {

    .filter-btn,
    .star-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        gap: 6px;
        padding: 4px 8px;
    }

    .filter-btn,
    .star-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
}

/* ACCESSIBILITY */
.filter-btn:focus-visible,
.star-btn:focus-visible {
    outline: 2px solid rgba(0, 123, 255, 0.6);
    outline-offset: 2px;
}