/*vyhledávací navigace*/

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        margin: 0;
    }
    .header-inner {
        padding: 6px 6px;
    }
    .logo img {
        max-width: 100%;
        height: 120px;
    }
    .slogan h1 {
        font-size: 32px;
        line-height: 1.25;
        text-align: center;
        padding: 0 18px;
    }
    .content {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
    }
    .search-panel {
        width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
    } 
    .search {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .field,
    .select-city,
    .user-query {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .city-list,
    .user-query input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-button-wrapper {
        width: 30%;
        display: flex;
        justify-content: center;
    }
    .search-button {
        width: 100%;
        max-width: 220px;
    }
}

/*vyhledávací boxy*/


@media (max-width: 768px) {

    .homepage-section {
        padding: 0 16px;
        margin-top: 44px;
        box-sizing: border-box;
    }

    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.2;
        margin: 0;
        flex: 1;
    }

    .carousel-controls {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
/*
    .carousel-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--orange);
        color: #fff !important;
        border: none !important;
        font-size: 26px;
        line-height: 1;
        opacity: 1 !important;
    }

    .carousel-btn:disabled {
        opacity: 0.25 !important;
        background: #ddd !important;
    }
*/
    .carousel-viewport {
        width: 100%;
        overflow: hidden;
    }

    .carousel-row {
        display: flex;
        gap: 7px;
    }

}

/*footer*/

@media (max-width: 768px) {

    .footer {
        padding: 26px 3px;
        margin-top: 50px;
        background: #ff9800;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 40px;
        row-gap: 14px;
        align-items: start;
        justify-content: start;
    }

    .instagram-link {
        grid-column: 1;
        grid-row: 1 / 5;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 2px;
    }

    .instagram-icon {
        width: 50px;
        height: 50px;
        display: block;
        margin-left: 26px;
    }

    .footer-link {
        color: #fff !important;
        font-size: 19px;
        line-height: 1.25;
        text-align: left;
        justify-self: start;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        width: auto;
    }

    .footer-link:hover {
        transform: none;
    }
}

/* výsledky hledání */

@media (max-width: 768px) {

    .restaurant-card {
        overflow: hidden;
        border-radius: 18px;
        margin-bottom: 34px;
    }

    .restaurant-hero {
        border-radius: 18px 18px 0 0;
    }

    .comparison-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: auto !important;
    }

    .comparison-fixed {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        box-sizing: border-box;
        padding: 8px;
    }

    .comparison-carousel-search {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        box-sizing: border-box;
    }

    .carousel-viewport-search {
        width: 100%;
        height: auto !important;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 0px;
    }

    .carousel-row-search {
        display: flex;
        gap: 0;
        width: 100%;
        height: auto !important;
        align-items: flex-start;
    }

    .carousel-page {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 8px;

        height: auto !important;
        min-height: auto !important;
        align-content: start;
    }

    .comparison-carousel-search .carousel-card {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin: 0 auto;
        min-height: 100px;
        height: auto !important;
        box-sizing: border-box;
    }

    .comparison-carousel-search .carousel-card-body {
        display: flex;
        min-height: 90px;
        height: auto !important;
        padding: 8px 12px;
        box-sizing: border-box;
    }
}

.carousel-card-body h3 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* maintenance page */
@media (max-width: 768px) {

    .maintenance-content {
        flex: 1;
    }

}
/* cookies */
@media (max-width: 768px) {

    .cookie-buttons {
    flex-direction: column;
    }

}