/*
 * DocHorvatska custom overrides for AndTour template
 * Applied after style.css + responsive.css
 */

/* Logo sizing */
.navbar-brand img,
.main-responsive-nav .logo img {
    max-height: 63px;
    width: auto;
}

/* Search form select styling to match flight_Search_boxed input */
.flight_Search_boxed select.form-select {
    font-size: 18px;
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 500;
    height: 35px;
    padding: 0;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
}

.flight_Search_boxed select.form-select:focus {
    border: none;
}

.flight_Search_boxed select.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Client testimonials section — compensate for home_client_wrpper top:122px offset */
#hometwo_clinet_area {
    margin-bottom: 150px;
}

/* Quick pick grid items */
a.quick_pick_item {
    display: block;
    background: #2563eb15;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: var(--black-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.quick_pick_item:hover {
    background: var(--main-color);
    color: var(--white-color);
}

a.quick_pick_item i {
    margin-right: 10px;
    font-size: 12px;
}

/* Object card info list */
.card_info_list {
    padding: 2px 0 4px;
}

.card_info_list p {
    margin-bottom: 0;
    line-height: 1.35;
    font-size: 14px;
    color: var(--muted-color);
}

.card_info_list p i {
    width: 18px;
    color: var(--main-color);
    font-size: 13px;
    text-align: center;
    margin-right: 4px;
}

.card_info_list p strong {
    color: var(--black-color);
}

/* About section — recolor purple icons to main blue */
#about_two_area .about_two_item_icon img {
    filter: hue-rotate(-50deg) saturate(1.5);
}

/* About section: every icon the same size; the template's width of 14 % shrank with a longer text beside it (UVOD-Z17) */
#about_two_area .about_two_item_icon {
    flex: 0 0 40px;
    width: 40px;
}

#about_two_area .about_two_item_icon img {
    width: 40px;
    height: auto;
}

/* About section — full-width text below image */
#about_two_area h4 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
}

#about_two_area .about_two_list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

#about_two_area .about_two_list li {
    padding: 8px 0 8px 30px;
    color: var(--paragraph-color);
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

#about_two_area .about_two_list li:last-child {
    border-bottom: none;
}

#about_two_area .about_two_list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--main-color);
    font-size: 14px;
}

/* Sidebar filter counts */
.form-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter_count {
    font-size: 12px;
    color: var(--paragraph-color);
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 8px;
    min-width: 28px;
    text-align: center;
}

/* "Doporučené ubytování": the title written in the admin (Správa webu → Doporučujeme) */
.theme_two_box_content .card_highlight {
    color: var(--main-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin: 4px 0 8px;
}
.theme_two_box_content .card_highlight i {
    font-size: 12px;
    margin-right: 4px;
}

/* Card with a 4 : 3 photo, clickable as a whole through its title link (one Tab stop), focus ring around
   the card (base of the accommodation card v2 of GLOB-Z10; used by the guide card of GLOB-Z11) */
.card_v2 {
    position: relative;
}

.card_v2 .theme_two_box_img img {
    display: block;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card_v2 .card_v2_link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card_v2 .card_v2_link:focus-visible {
    outline: none;
    box-shadow: none;
}

.card_v2:has(.card_v2_link:focus-visible) {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

/* "od X € / apartmán / noc" on a card (from the accommodation card v2 of GLOB-Z10; used by the guide card
   of the destinations, DEST-Z7) */
.card_v2 .card_price {
    padding: 8px 0 0;
    font-size: 15px;
    color: var(--paragraph-color);
}

.card_v2 .card_price strong {
    font-size: 24px;
    font-weight: 500;
    color: var(--black-color);
}

/* "Podobné objekty" slider on the detail page (DET-Z3): the cards in view are equally tall and their
   prices sit on one line at the bottom, also when the sea distance wraps onto two lines */
.promotional_tour_slider .swiper-slide {
    height: auto;
    display: flex;
}

.promotional_tour_slider .swiper-slide > .theme_common_box_two {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.promotional_tour_slider .theme_two_box_content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotional_tour_slider .card_price {
    margin-top: auto;
}

/* Guide card (GLOB-Z11): label on the photo and the start of the description */
.guide_card_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(11, 47, 85, .85);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.guide_card .guide_card_excerpt {
    padding-top: 0;
    color: var(--paragraph-color);
    line-height: 1.5;
}

/* Slider dots: same 8 px look, 24 x 24 px to tap (GLOB-Z23, WCAG 2.5.8) */
.swiper-pagination-bullet {
    position: relative;
}

.swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    inset: -8px;
}

.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
    margin: 0 8px;
}

/* 404: ways back to the offer (E404-Z2) */
.error_content .error_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 32px;
}

.error_content .error_secondary {
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

.error_content .error_links h2 {
    margin: 18px 0 8px;
}

.error_content .error_links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
}

.error_content .error_links a {
    text-decoration: underline;
}

.error_content .error_links p {
    margin-top: 20px;
}

/* Privacy policy (CH-1): on a phone each table row is a card, the cells keep their column name */
.privacy_policy td { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .privacy_policy thead { display: none; }
    .privacy_policy :is(table, tbody, tr, th, td) { display: block; width: 100%; }
    .privacy_policy tr { padding: 10px 0; border-bottom: 1px solid var(--prose-line, #e6e8ef); }
    .privacy_policy :is(.content-prose th, .content-prose td, th, td) { padding: 2px 0; border: 0; }
    .privacy_policy td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--prose-heading, #1c1c1c); }
}

/* Search pagination: the theme colours every page number blue (style.css .pagination_area .page-link),
   which also hit the current page on Bootstrap's blue background, so its number was invisible */
.pagination_area .page-item.active .page-link {
    color: var(--white-color);
    background-color: var(--main-color);
    border-color: var(--main-color);
}

/* Intro of destination, region and selection pages: photo and text box equally tall. The photo is at
   least 4 : 3 (::before) and grows with a longer text (object-fit: cover); a shorter text starts at the
   top of a box as tall as the photo. Stacked below 992 px as before. */
.landing_intro_photo {
    position: relative;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.landing_intro_photo::before {
    content: "";
    display: block;
    padding-top: 75%;
}

.landing_intro_photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .landing_intro_text {
        display: flex;
        flex-direction: column;
    }

    .landing_intro_text > .tour_details_boxed {
        flex: 1 1 auto;
        margin-top: 0; /* the theme's 30px would push the box below the photo's top edge */
    }
}

/* Contact page: the address, e-mail and hours boxes as tall as the tallest one in their row. Up to
   992 px the theme gives each box a 30px bottom margin, which the height has to leave room for. */
.contact_boxed {
    height: 100%;
}

@media (max-width: 992px) {
    .contact_boxed {
        height: calc(100% - 30px);
    }
}

/* Google rating badge in the home banner (UVOD-Z12): a white pill with the Google logo and five stars filled
   to the rating (--rating in %), like the rating badge on kuoni.co.uk; the number and the count are in the
   link's label. It hangs below the subtitle without adding to the banner's height, so the search form and the
   sections below stay where they were before the badge (owner 23. 11.). */
.rating_badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    text-decoration: none;
}

.banner_one_text {
    position: relative;
}

.rating_badge--hero {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content; /* an absolute box at left 50% would otherwise shrink to half the width (phones) */
    margin-top: 32px; /* clearly apart from the subtitle, still well above the search form */
    white-space: nowrap;
}

/* The phone banner has only 56px below the subtitle: a smaller pill with the same gap ratio */
@media (max-width: 767px) {
    .rating_badge--hero {
        gap: 8px;
        margin-top: 16px;
        padding: 6px 12px;
    }

    .rating_badge.rating_badge--hero img {
        height: 20px;
    }

    .rating_badge--hero .rating_badge_stars {
        --star-size: 18px;
    }
}

.rating_badge img {
    display: block;
    flex-shrink: 0;
    height: 24px;
    width: auto;
}

.rating_badge_stars {
    --star-size: 22px;
    flex-shrink: 0;
    position: relative;
    display: block;
    width: calc(var(--star-size) * 5);
    height: var(--star-size);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d7dbe0' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--star-size) var(--star-size) repeat-x;
}

.rating_badge_stars::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--rating, 100%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b301' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--star-size) var(--star-size) repeat-x;
}

.rating_badge:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.rating_badge--hero:focus-visible {
    outline-color: #fff;
}

/* Phone in the home testimonials section always on one line (owner 24. 11.): the number does not wrap and
   its size fits the space next to the icon, at most the theme's 36px (the number is ~8.1 times the font
   size wide). Phones: the icon above the label, so the number gets the whole width. 993-1399px: a smaller
   left indent than the theme's 115px, so the number keeps its full size next to the testimonials. The
   German e-mail in the same place keeps wrapping. */
.sm_call_number {
    flex: 1 1 0; /* fills the row; a size container must not take its width from the text */
    container-type: inline-size;
}

.sm_call_number h2.sm_call_phone {
    white-space: nowrap;
    font-size: 26px; /* browsers without container units */
    font-size: min(36px, 12cqi);
}

@media (max-width: 575.98px) {
    .sm_call_area {
        flex-direction: column;
        align-items: flex-start;
    }

    .sm_call_number {
        align-self: stretch;
        flex-basis: auto;
        padding-left: 0;
        padding-top: 12px;
    }
}

/* Offer cards in the home section "Akční nabídky" (UXA-Z1, CH-5) */
.offer_card .offer_card_meta { font-size: 14px; color: var(--muted-color, #6b6a7b); }
.offer_card .offer_card_label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--main-color, #2563eb); }
.offer_card_image .theme_two_box_img { margin: 0; }

/* Croatian picture dictionary on /stranka/slovnicek (TXT-Z1) */
.vocabulary_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 10px 0 20px;
    padding: 0;
}

.vocabulary_grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid #e6e8ef;
    border-radius: 10px;
    text-align: center;
}

.vocabulary_grid img {
    width: 117px;
    height: auto;
}

.vocabulary_grid span {
    font-size: 16px;
    font-weight: 500;
    color: var(--black-color);
}

.vocabulary_legend {
    font-size: 14px;
    color: var(--muted-color, #6b6a7b);
}

@media (min-width: 992.02px) and (max-width: 1399.98px) { /* the theme sets 15px up to 992px */
    .two_client_area_left {
        padding-left: 40px;
    }
}

/* Slovak version of a Czech page (PREK-Z15): one line above the header, shown only by its script. On wide screens the
   header is absolute at the top of the page; next to a visible bar it takes its place in the flow, below the bar. */
.sk-version-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 40px;
    padding: 4px 48px;
    position: relative;
    background: var(--dch-soft, #f4f7ff);
    border-bottom: 1px solid var(--dch-line, #e6e8ef);
    font-size: 15px;
    line-height: 1.3;
}

.sk-version-bar[hidden] {
    display: none;
}

.sk-version-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-weight: 500;
    text-decoration: underline;
}

.sk-version-bar .language-flag {
    flex: none;
}

.sk-version-bar__close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--black-color);
    font-size: 22px;
    line-height: 1;
}

.sk-version-bar__close:hover {
    background: var(--dch-line, #e6e8ef);
}

.sk-version-bar:not([hidden]) + .main_header_arae {
    top: auto;
}

/* Search by the name of an accommodation (HLED-Z11): the top bar field (from 1200 px) or icon (992-1199 px),
   the field at the top of the phone and tablet menu and the first box of the home page search */
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.topbar-name-search {
    align-items: center;
    flex: none;
    height: 28px;
    border: 1px solid #ffffff8c;
    border-radius: 14px;
    background: #ffffff26;
}

.topbar-name-search input {
    width: 170px;
    height: 26px;
    padding: 0 4px 0 12px;
    border: 0;
    background: transparent;
    color: var(--white-color);
    font-size: 14px;
}

.topbar-name-search input::placeholder {
    color: #ffffffd9;
}

.topbar-name-search input:focus {
    outline: none;
}

.topbar-name-search:focus-within {
    outline: 2px solid var(--white-color);
    outline-offset: 2px;
}

.topbar-name-search button,
.topbar-name-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 26px;
    padding: 0 8px 0 4px;
    border: 0;
    background: transparent;
    color: var(--white-color);
    font-size: 13px;
}

.topbar-name-link:hover,
.topbar-name-search button:hover {
    color: #000;
}

.menu-name-search {
    display: flex;
    width: 100%;
    margin: 8px 0 4px;
    border: 1px solid #c9d3e6;
    border-radius: 8px;
    background: #fff;
}

.menu-name-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.menu-name-search button {
    min-width: 48px;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: var(--main-color);
    color: var(--white-color);
}

/* Like the <p> label of the other boxes */
.flight_Search_boxed.search_name_box label {
    display: block;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 28px;
    color: var(--paragraph-color);
}

.flight_Search_boxed.search_name_box input {
    width: 100%;
}

@media (min-width: 993px) {
    .flight_Search_boxed.search_name_box {
        margin-bottom: 24px;
    }
}
