/*
Theme Name: rd
Version: 1.0
Description: A child theme of Twenty Twenty
Template: twentytwenty
Author: Administrator
*/
@import url("../twentytwenty/style.css");


@import url("../rd/assets/css/rd.css");

:root {
    --admin-bar: 32px;
}

/*--------------------------------------------------ANIMACE*/

#top a,
#top a::after,
#top a::before,
#top h2,
#top button,
#top button::after,
#top button:before,
#top span,
#top span::after,
#top span::before,
#top img,
#top:not(.showing-modal) ul,
#top:not(.showing-modal) li,
#top:not(.showing-modal) li::after,
#top:not(.showing-modal) li::before,
header#site-header,
.header-inner,
#top .slick-slider {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s -webkit-filter ease-in-out;
    -moz-transition: all 0.3s -moz-filter ease-in-out;
    -ms-transition: all 0.3s -ms-filter ease-in-out;
    -o-transition: all 0.3s -o-filter ease-in-out;
}

#top .slick-slider,
.slide-bgr {
    transition: all 0.7s ease-in-out;
    -webkit-transition: all 0.7s -webkit-filter ease-in-out;
    -moz-transition: all 0.7s -moz-filter ease-in-out;
    -ms-transition: all 0.7s -ms-filter ease-in-out;
    -o-transition: all 0.7s -o-filter ease-in-out;
}



/*----------------------------------------------------------------------------------------------------TYPOGRAFIE*/

#top * {
    letter-spacing: unset;
}

#top a {
    text-decoration: none;
}

#top,
.entry-content,
.price,
.onsale,
.entry-content cite,
.entry-content figcaption,
.entry-content table,
.entry-content address,
.entry-content .wp-caption-text,
.entry-content .wp-block-file,
.woocommerce table.shop_table tbody tr,
.woocommerce-page table.shop_table tbody tr,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message.woocommerce-message,
#site-content .woocommerce-error,
#site-content .woocommerce-info,
.entry-content p,
.entry-content li,
.entry-header p,
button,
.widget-content {
    font-family: var(--font);
    font-size: 16px;
    line-height: 150%;
    color: var(--n-80);
}

.playfair {
    font-family: "PlayfairDisplay" !important;
}

#top .entry-content .has-large-font-size {
    font-size: 20px !important;
}

#top .entry-content .has-larger-font-size {
    font-size: 24px !important;
}

.entry-content p {
    margin-bottom: 16px;
}

.color-accent,
.color-accent-hover:hover,
.color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus):first-letter,
.wp-block-button.is-style-outline,
body a {
    color: var(--n100);
}

/*--------------------------------------------------IKONY*/
.icon a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.icon a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
}

.mail a::before {
    background: url(/wp-content/themes/rd/assets/img/mail.svg);
}

.phone a::before {
    background: url(/wp-content/themes/rd/assets/img/phone.svg);
}

.mail.primary a::before {
    background: url(/wp-content/themes/rd/assets/img/mail-p.svg);
}

.phone.primary a::before {
    background: url(/wp-content/themes/rd/assets/img/phone-p.svg);
}

/*--------------------------------------------------NADPISY*/
#top .wp-block-heading:first-child {
    margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--n-100);
    line-height: 120%;
    font-weight: 500;
    text-transform: none;
}

h1,
.heading-size-1 {
    font-size: 42px;
}

h2,
.heading-size-2,
.wp-block-cover-image h2,
.wp-block-cover h2 {
    font-size: 42px;
}

h3,
.heading-size-3 {
    font-size: 32px;
}

h4,
.heading-size-4 {
    font-size: 28px;
}

h5,
.heading-size-5 {
    font-size: 24px;
}

h6,
.heading-size-6 {
    font-size: 22px;
}

/*----------------------------------------------------------------------------------------------------GENERAL*/


/*--------------------------------------------------HIDE*/

.site-description,
p.powered-by-wordpress,
.home .entry-header,
.entry-content hr::before,
.entry-content hr::after,
hr.styled-separator::before,
hr.styled-separator::after,
.post-meta-wrapper.post-meta-edit-link-wrapper,
.home div#breadcrumbs,
nav.pagination-single hr,
.toggle-text,
.nav-toggle .toggle-inner,
.sr-only,
.carousel-gallery .slick-arrow::before,
.frm_screen_reader,
.privacy-policy .frm_primary_label {
    display: none;
}


/*--------------------------------------------------ZÁKLADNÍ HTML*/




/*--------------------------------------------------LAYOUT*/
#top .section-inner,
.entry-content>.alignwide,
.wp-block-group.alignfull .alignwide,
.nav-thumbnail.alignwide,
.wp-block-cover.alignfull .wp-block-cover__inner-container,
.scroll-hint {
    width: calc(100% - 40px);
    max-width: 1440px;
    margin: 0 auto;
}

.wp-block-cover.alignfull .alignwide,
.wp-block-cover.alignfull .wp-block-cover__inner-container {
    max-width: unset;
    width: 100%;
}

#top .entry-content>.wp-block-group {
    margin: 0;
    padding-top: 100px;
}

.alignfull>[class*="__inner-container"]>*:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 920px;
    padding: 0 20px;
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 48px;
}

/*margins*/
.primary-menu>li,
ul.primary-menu,
.header-titles .site-logo,
.header-titles,
table {
    margin: 0;
}

#top .entry-content>.alignwide:first-child,
.wp-block-columns.alignfull+.wp-block-columns.alignfull,
#top .wp-block-heading:first-child,
#top .footer-widgets .wp-block-group,
#top .footer-widgets .wp-block-columns {
    margin-top: 0;
}

/*paddings*/
#top .af-submit,
.wp-block-columns.alignfull,
.alignfull:not(.has-background) .wp-block-columns {
    padding: 0;
}

#top .has-background {
    padding: 24px;
}

.wp-block-cover-image .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container {
    padding: 80px 0;
}

/*--------------------------------------------------CLASSY*/
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-20 {
    margin-top: 40px !important;
}

#technicke-parametry .wp-block-columns {
    gap: 20px;
}

#technicke-parametry .wp-block-heading {
    margin-bottom: 16px;
}

/*proofpoints*/
.proofpoints .wp-block-column {
    display: flex;
    gap: 24px;
    border: 1px solid var(--n-20);
    padding: 24px 16px;
}

.proofpoints figure {
    flex-basis: 48px;
}

.proofpoints img {
    height: unset;
    max-width: unset;
}

.proofpoints .wp-block-heading {
    font-size: 20px;
    font-weight: 700;
}

/*map icons*/
.map-icons>.wp-block-group__inner-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}


#top .map-icons>.wp-block-group__inner-container>.wp-block-group {
    flex: 1 100px;
    max-width: 120px;
}

/*kontakty*/
#kontakty>.wp-block-group__inner-container>.wp-block-columns {
    margin-top: -446px;
    padding-left: 80px;
}

#kontakty>.wp-block-group__inner-container>.wp-block-columns>.wp-block-column:first-child {
    border: 1px solid var(--n-05);
}

#kontakty .wp-block-column .wp-block-columns>div:first-child {
    max-width: 120px;
}

/*--------------------------------------------------HOVERY*/
#top .widget-content a:hover {
    text-decoration: underline;
}

button:focus,
button:hover,
.button:focus,
.button:hover,
.faux-button:focus,
.faux-button:hover,
.wp-block-button .wp-block-button__link:focus,
.wp-block-button .wp-block-button__link:hover,
.wp-block-file .wp-block-file__button:focus,
.wp-block-file .wp-block-file__button:hover,
input[type="button"]:focus,
input[type="button"]:hover,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
#top .primary-menu>li.cta:hover>a {
    background: var(--p-120);
    border-color: var(--p-120);
    text-decoration: none !important;
}

#top .is-style-outline .wp-block-button__link:hover {
    background: var(--p-100);
    color: white;
}

#top .primary-menu>li:hover>a {
    color: var(--p-120) !important;
}

/*----------------------------------------------------------------------------------------------------DEFAULT BLOCKS*/
/*--------------------------------------------------BUTTONS*/
body button,
body .button,
body .faux-button,
body .wp-block-button__link,
body .wp-block-file .wp-block-file__button,
body input[type="button"],
body input[type="reset"],
body input[type="submit"],
body .bg-accent,
body .bg-accent-hover:hover,
body .bg-accent-hover:focus,
:root .has-accent-background-color,
body .comment-reply-link,
.single-product#top .woocommerce-variation-add-to-cart .button {
    background: var(--p-100);
    border: 1px solid var(--p-100);
    color: white;
    text-transform: none;
    font-weight: 700;
    line-height: normal;
    padding: 12px 32px;
    border-radius: 8px;
}

.wp-block-buttons {
    margin: 20px auto;
    gap: 16px;
}

#top .is-style-outline .wp-block-button__link {
    padding: 12px 32px;
    background: white;
}

.is-style-outline .wp-block-button__link:not(.has-text-color) {
    border-color: var(--p-100);
    color: var(--n-100)
}

/*--------------------------------------------------FORMY*/

fieldset {
    padding: 0;
    border: none;
}

.frm_error_style {
    background: var(--p-10);
    padding: 16px;
    border-radius: 8px;
    color: var(--p-100);
    margin-bottom: 16px;
}

#top .frm_error {
    color: var(--p-50);
}

#top input,
#top textarea,
#top select {
    font-size: 16px;
    padding: 16px 8px;
    background: var(--n-05);
    border: 1px solid var(--n-20);
    color: var(--neutral-100);
    border-radius: 8px;
}

label {
    font-weight: 700;
    color: var(--n-100);
}

label a {
    color: var(--p-100);
}

.frm_form_field {
    margin-bottom: 16px;
}

#top input[type="checkbox"] {
    padding: 0;
    cursor: pointer;
}

.privacy-policy,
.frm_submit {
    text-align: center;
}

/*--------------------------------------------------LIGHTBOX*/
#top .lightbox-trigger {
    background: var(--p-100);
    visibility: visible;
    opacity: 1;
    width: 48px;
    height: 48px;
}

#top .lightbox-trigger svg {
    width: 24px;
    height: 24px;
}

/*--------------------------------------------------ODDĚLOVAČE*/
#top .wp-block-separator {
    background: var(--p-100) !important;
    color: var(--p-100) !important;
    margin: 40px auto;
}

#top .wp-block-separator.white-space {
    background: transparent !important;
    color: transparent !important;
}

/*--------------------------------------------------TABULKY*/
.wp-block-table.is-style-stripes table,
.home-selection__table,
table.home-selection__table * {
    border: none;
}

.home-selection__table tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.home-selection__info>*:nth-child(even) {
    background: var(--n-05);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background: white;
}

.wp-block-table.is-style-stripes table td:first-child,
.home-selection__info p:first-child {
    font-weight: 700;
    vertical-align: top;
}

/*----------------------------------------------------------------------------------------------------CUSTOM BLOCKS*/
#top .loader {
    width: 50px;
    height: 50px;
    margin: 200px auto;
    background: url(/wp-content/themes/rd/assets/css/ajax-loader.gif) no-repeat;
    background-size: contain;
}

#top .slick-slider {
    transform: none;
    z-index: 1;
}

#top .slick-slider:not(.slick-initialized) {
    transform: translateY(-200%);
    transform-origin: top;
}

/*--------------------------------------------------SLIDER WITH THUMBNAILS*/
.carousel-gallery .slick-list {
    overflow: visible;
}

.carousel-slide {
    display: block !important;
    margin: 0 4px 0 4px;
}

.carousel-slide:not(.slick-active) {
    opacity: 0.35;
}

.carousel-slide img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.carousel-gallery .slick-arrow {
    background: white;
    opacity: 1;
    width: 48px;
    height: 48px;
    border: 2px solid var(--p-100);
    z-index: 2;
    background-image: url(/wp-content/themes/rd/assets/img/arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-gallery .slick-prev {
    transform: rotate(180deg);
    left: 20px;
    top: calc(50% - 24px);
}

.carousel-gallery .slick-next {
    right: 20px;
}

/*--------------------------------------------------VÝBĚR DOMŮ*/
.home-selection__overlay-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.home-selection__overlay-wrapper.home-open {
    position: absolute;
}

.home-selection__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}


.home-selection__house:not(.house-active) .home-selection__info,
.home-selection__house:not(.house-active) {
    display: none;
}


.home-selection__buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    z-index: 2;
}

.home-selection__house {
    position: relative;
}

.home-selection__info {
    width: 33%;
    position: absolute;
    background: white;
    padding: 24px;
    top: 50%;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--n-100);
    transform: translateY(-50%);
}

div[data-house="1"] .home-selection__info {
    left: 25%;
}

div[data-house="2"] .home-selection__info {
    left: 50%;
}

div[data-house="3"] .home-selection__info {
    right: 50%;
}

div[data-house="4"] .home-selection__info {
    right: 25%;
}

#top .home-selection__title {
    margin: 0 0 16px 0;
}


.home-selection__info p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 8px;
}

.home-selection__info p:last-of-type {
    border-bottom: none;
}

.home-selection__info p span,
.home-selection__info p b,
.home-selection__info p strong+* {
    font-weight: 700;
}

.home-selection__image {
    margin-top: 20px;
}

/* Pro responzivní vzhled */
@media (max-width: 600px) {
    .home-selection__info {
        max-width: 100%;
        padding: 20px;
    }


}


/* Styl tlačítek */
#top .home-selection__button {
    background: #f5f4f44f;
    border: 2px solid white;
    border-radius: 100px;
    padding: 0;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;

    /* schodovitý efekt – posun každého tlačítka dolů a vpravo */
    transform: translateY(calc(var(--step) * 10px)) translateX(calc(var(--step) * 10px));
}

/* Hover a aktivní tlačítko */
#top .home-selection__button:hover,
#top .home-selection__button.btn-active {
    background: white;
    color: #000;
}

/* Přístupnost – viditelný focus */
#top .home-selection__button:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Responsivní úprava – na mobilech se schodovitý efekt vypne */
@media (max-width: 768px) {
    #top .home-selection__button {
        transform: none;
    }
}

#top .home-selection__button:hover,
#top .home-selection__button.btn-active {
    background: white;
}

.home-selection__button::after {
    content: "+";
    color: var(--p-100);
    font-size: 32px;
}

#top .home-selection__button.btn-active::after {
    content: "-";
}

/*tabulka*/
.home-selection__table {
    width: 100%;

    margin: 20px auto;
}

.home-selection__table th,
.home-selection__table td {
    padding: 16px;
}

.home-selection__table td:first-child {
    color: var(--n-100);
    font-weight: 700;
}

.home-selection__table thead th {
    font-weight: 700;
    color: var(--n-100);
    border-bottom: 2px solid var(--p-100);
}

/* Stav */
.status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status.volny::before {
    background-color: #4CAF50;
}

.status.obsazeny::before {
    background-color: #D32F2F;
}

.status.rezervovany::before {
    background-color: #FBC02D;
}

.home-selection__row td:nth-child(4):contains("Volný")::before {
    background-color: #4CAF50;
}

.home-selection__row td:nth-child(4):contains("Obsazený")::before {
    background-color: #D32F2F;
}

.home-selection__row td:nth-child(4):contains("Rezervovaný")::before {
    background-color: #FBC02D;
}

/* PDF odkaz */
.home-selection__table a {
    font-weight: 700;
    color: var(--p-100)
}

.home-selection__table a:hover {
    text-decoration: underline;
}

.home-selection__table .no-doc {
    color: #999;
    font-style: italic;
}

/* Layout */
.home-selection__table th:nth-child(6),
.home-selection__table td:nth-child(6) {
    text-align: center;
}

.home-selection__table th:nth-child(1),
.home-selection__table td:nth-child(1),
.home-selection__table th:nth-child(6),
.home-selection__table td:nth-child(6) {
    width: 120px;
}

.home-selection__table th:nth-child(2),
.home-selection__table td:nth-child(2),
.home-selection__table th:nth-child(4),
.home-selection__table td:nth-child(4),
.home-selection__table th:nth-child(5),
.home-selection__table td:nth-child(5) {
    width: 142px;
}

.home-selection__table th:nth-child(3),
.home-selection__table td:nth-child(3) {
    width: auto;
}

/*--------------------------------------------------SLIDER WITH THUMBNAILS*/
#top .slider-thumbnails {
    margin-top: 0;
    margin-bottom: 0;
}

.slider-thumbnails .slide {
    height: calc(100vh - 80px);
}

.slider-thumbnails .slide-bgr {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.slider-thumbnails .slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00000036;
    z-index: -1;
}

.slider-thumbnails .slide-overlay.gradient {
    background: linear-gradient(180deg, rgba(16, 19, 22, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.slider-thumbnails .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 20px;
}

#top .slider-thumbnails .slide-title {
    font-weight: 800;
    font-size: 72px;
    margin: 0;
    color: white
}

#top .slider-thumbnails .slide-subtitle {
    font-size: 40px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
}

#top .slider-thumbnails .slide-text {
    font-size: 20px;
    color: white;
    margin: 0;
}

#top .slider-thumbnails .wp-block-buttons {
    justify-content: center;
}

/*nav*/
#top .nav-thumbnail {
    position: absolute;
    left: 20px;
    bottom: 65px;
}

.nav-thumbnail .slick-list {
    margin: 0 -4px;
}

.nav-thumbnail .slick-slide {
    margin: 0 4px;
}

.slider-thumbnail {
    width: 80px;
    border: 2px solid transparent;
    cursor: pointer;
}

.nav-thumbnail .slick-current,
.slider-thumbnail:hover {
    border: 2px solid var(--p-100);

}

/*hint*/
.scroll-hint {
    display: flex;
    justify-content: flex-end;
    color: white;
    position: absolute;
    right: 20px;
    bottom: 65px;
    width: 110px;
    z-index: 2;
}

.scroll-hint span {
    width: 110px;
    display: flex;
    font-size: 14px;
    text-align: right;
    gap: 20px;
}

.scroll-hint span::before {
    content: "\f347";
    font-family: 'dashicons';
    font-size: 20px;
    position: absolute;
    right: -9px;
    bottom: -10px;
}

.scroll-hint span::after {
    content: "";
    display: block;
    width: 4px;
    height: 80px;
    background: white;
}

/*progress bar*/
#top .slider-progress-bar {
    width: 100%;
    height: 5px;
    margin-top: -5px;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.slider-progress-bar .progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--p-100);
    /* barva naplnění */
}

/*responze slideru*/
@media (min-width: 1480px) {
    .scroll-hint {
        right: calc((100vw - 1440px) / 2);
    }

    #top .nav-thumbnail {
        left: calc((100vw - 1440px) / 2);
    }
}

/*----------------------------------------------------------------------------------------------------HEADER*/

header#site-header {
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
}

.scrolled #site-header {
    border-bottom: 1px solid var(--n-05);
}

.header-inner {
    padding: 20px 0;
}

.admin-bar header#site-header {
    top: var(--admin-bar);
}

.scrolled header#site-header .header-inner {
    padding: 8px 0;
}

#top .header-titles-wrapper {
    justify-content: space-between;
    padding: 0;
}

/*--------------------------------------------------TOPBAR*/


/*--------------------------------------------------LOGO*/
.site-logo img {
    max-height: 48px;
}

/*--------------------------------------------------MENU*/
#top .primary-menu {
    gap: 16px;
}

#top .primary-menu>li>a {
    color: var(--n-100);
    font-size: 14px;
    font-weight: 700;
    padding: 16px 8px;
    text-decoration: none !important;
}

#top .primary-menu>li.cta>a,
#top .modal-menu .cta a {
    border: 1px solid var(--p100);
    background: var(--p-100);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#top .primary-menu>li.cta>a::before,
#top .modal-menu .cta a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: url(/wp-content/themes/rd/assets/img/phone.svg);
}

@media (max-width: 1200px) {
    #top .primary-menu>li.cta>a {
        font-size: 0;
        padding: 12px;
        gap: 0;
    }
}

.current a {
    color: var(--p-100) !important;
}

/*--------------------SUBMENU*/

/*--------------------------------------------------BURGERMENU*/
.menu-modal .contact-menu {
    border-top: 1px solid var(--n-05);
    justify-content: center;
    padding-top: 4px;
}

.header-inner .toggle {
    position: relative;
}

button.toggle.close-nav-toggle.fill-children-current-color {
    outline: none !important;
}

#top .nav-toggle {
    position: unset;
    width: unset;
    padding: 12px;
    background: var(--p-100);
    border-radius: 8px;
    text-decoration: none !important;
}

#top .nav-toggle::after {
    content: "\f228";
    font-family: 'dashicons';
    color: white;
    background: var(--p-100);
    font-size: 24px;

}

/*modal*/
#top .close-nav-toggle {
    padding: 16px;
    background: var(--p-100);
    width: max-content;
    margin-left: auto;
    margin-top: 22px;
    border-radius: 8px;
}

#top .close-nav-toggle svg {
    color: white;
    width: 16px;
    height: 16px;
    background: var(--p-100);
}

#top .menu-modal {
    background: none;
}



#top .modal-menu {
    left: 0;
    width: 100%;
}

nav.mobile-menu {
    margin-top: 16px;
}

.menu-wrapper .menu-item {
    border: none;
}

.menu-wrapper .menu-item .menu-item {
    margin: 0 20px;
}

.modal-menu .ancestor-wrapper {
    justify-content: center;
}

#top .modal-menu a {
    font-size: 20px;
    padding: 24px;
    color: var(--n-100);
    text-decoration: none;
    text-align: center;
    width: max-content;
}

#top .modal-menu .cta a {
    margin-top: 32px;
}

#top button.sub-menu-toggle {
    padding: 0;
    border: none;
    position: absolute;
    right: 10px;
    margin: 0;
    height: 100%;
    display: flex;
    padding-top: 16px;
}

#top .menu-item.active button.sub-menu-toggle::after {
    content: "\f343";
}

/*----------------------------------------------------------------------------------------------------MAIN CONTENT - BLOG*/
/*--------------------------------------------------SINGLE POST*/

#top .pagination-single {
    width: 100%;
    padding: 20px 0;
    font-size: 16px;
    border-top: 1px solid var(--neutral-10);
    margin-top: 40px;
}

/*----------------------------------------------------------------------------------------------------MAIN CONTENT - PAGE*/


/*--------------------------------------------------TITLE*/


/*--------------------BREADCRUMBY*/
div#breadcrumbs {
    padding: 10px 0;
    font-size: 14px;
    color: var(--neutral-70);
}

div#breadcrumbs a {
    color: var(--neutral-100);
}

/*--------------------------------------------------SIDEBAR*/


/*----------------------------------------------------------------------------------------------------FOOTER*/
.footer-nav-widgets-wrapper {
    background: var(--p-100);
    color: white;
}

.footer-nav-widgets-wrapper img {
    max-height: 80px;
    object-fit: contain !important;
}

.footer-widgets-outer-wrapper {
    border: none;
}

.footer-nav-widgets-wrapper .widget-content,
.footer-nav-widgets-wrapper .wp-block-heading,
.footer-credits .privacy-policy a {
    color: white;
}

.wp-block-social-links {
    gap: 20px;
}

.footer-nav-widgets-wrapper .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg {
    fill: white;
}

#top .widget-content a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

/*--------------------------------------------------SOCKET*/
footer#site-footer {
    background: var(--p-100);
    color: white;
    font-size: 16px;
    padding: 20px 0;
}

#site-footer .section-inner {
    justify-content: center;
}

.footer-copyright {
    font-weight: 400;
}

.footer-copyright a,
.footer-credits .privacy-policy a {
    font-weight: 700;
    text-decoration: none;
}

#top:not(.scrolled) .to-the-top {
    opacity: 0;
}

a.to-the-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    font-size: 0;
    text-decoration: none !important;
    border: 1px solid var(--n-20);
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

a.to-the-top::after {
    content: "\f343";
    font-family: 'dashicons';
    font-size: 40px;
    color: var(--p-100);
}

/*----------------------------------------------------------------------------------------------------RESPONZE*/
@media (max-width: 1480px) {
    :where(.wp-block-columns.is-layout-flex) {
        gap: 20px;
    }

    .proofpoints .wp-block-column {
        gap: 16px;
    }

    #top .has-background {
        padding: 20px;
    }

    #kontakty>.wp-block-group__inner-container>.wp-block-columns {
        padding-left: 20px;
        margin-top: -466px;
    }

    #kontakty .wp-block-cover {
        min-height: 486px !important;
    }
}

/*malé notebooky*/
@media (max-width: 1024px) {
    .header-inner {
        padding: 8px 0;
    }

    .scrolled header#site-header .header-inner {
        padding: 4px 0;
    }


    #top .slider-thumbnails .slide-title {
        font-size: 48px;
    }

    #top .slider-thumbnails .slide-subtitle {
        font-size: 24px;

        margin: 0 0 8px 0;
    }

    #top .slider-thumbnails .slide-text {
        font-size: 16px;
    }

    #top .nav-thumbnail,
    .scroll-hint {
        bottom: 20px;
    }


    #top .proofpoints {
        flex-wrap: wrap !important;
    }

    .proofpoints .wp-block-column {
        min-width: 361px;
    }

    #top .proofpoints .wp-block-heading {
        margin-bottom: 8px;
    }


}

/*tablety*/
@media (max-width: 782px) {
    :root {
        --admin-bar: 46px;
    }

    .wp-block-buttons {
        gap: 4px;
    }

    .entry-content h1,
    .entry-content h2,
    .entry-content h3 {
        margin: 40px auto 16px auto;
    }

    h1,
    .heading-size-1 {
        font-size: 36px;
    }

    #top h2,
    #top .heading-size-2 {
        font-size: 32px;
    }

    h3,
    .heading-size-3 {
        font-size: 28px;
    }

    h4,
    .heading-size-4 {
        font-size: 24px;
    }

    h5,
    .heading-size-5 {
        font-size: 20px;
    }

    h6,
    .heading-size-6 {
        font-size: 16px;
    }

    #top .slider-thumbnails .slide-title {
        font-size: 36px;
        line-height: 120%;
        margin-bottom: 4px;
    }

    .slider-thumbnail {
        width: 48px;
    }

    .nav-thumbnail .slick-slide {
        margin: 0 2px;
    }

    .scroll-hint span::after {
        height: 48px;
    }

    #top .proofpoints * {
        max-width: unset;
        margin-left: 0;
        width: 100%;
    }

    #kontakty>.wp-block-group__inner-container>.wp-block-columns {
        padding-right: 20px;
    }

    #kontakty .wp-block-columns {
        margin-top: 0;
    }

    div#vyber-domu {
        padding-bottom: 80px;
    }

    .home-selection__info {
        width: 50%;
    }

    .home-selection__table {
        display: none;
    }

    #top .home-selection__info {
        position: relative;
        top: unset;
        transform: none;
        width: 100%;
        left: unset;
        right: unset;
        box-shadow: none;
        border: 1px solid var(--n-20);
    }

    .home-selection__buttons {
        bottom: 24px;
        top: unset;
    }

    #top .home-selection__button {
        width: 24px;
        height: 24px;
        padding: 0;
    }

    .home-selection__button::after {
        font-size: 16px;
    }
}

@media (max-width: 700px) {

    #top .widget-content {
        text-align: center;
    }

    #top .widget-content a {
        justify-content: center;
    }
}

/*mobily*/
@media (max-width: 600px) {
    .scroll-hint {
        display: none;
    }

    .proofpoints .wp-block-column {
        min-width: unset;
    }

    #top .section-inner,
    .entry-content>.alignwide,
    .wp-block-group.alignfull .alignwide,
    .nav-thumbnail.alignwide,
    .scroll-hint {
        width: calc(100% - 32px);
    }

    #top .has-background {
        padding: 16px;
    }

    :where(.wp-block-columns.is-layout-flex) {
        gap: 16px;
    }

    .mb-20 {
        margin-bottom: 16px !important;
    }

    .carousel-gallery .slick-arrow {
        width: 24px;
        height: 24px;
        background-size: 77%;
    }

    .carousel-gallery .slick-prev {
        top: calc(50% - 12px);
    }

    a.to-the-top {
        right: 16px;
        bottom: 16px;
    }
}
/* ---------- Responsivní tabulka se scrollem ---------- */

/* Obal tabulky (HTML: <div class="table-wrap"> ... </div>) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Volitelné: decentní scrollbar */
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--n-20); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }

/* Vynucení zobrazení tabulky na mobilech + horizontální scroll */
@media (max-width: 782px) {
  .home-selection__table {
    display: table !important;      /* přepíše původní display:none */
    border-collapse: collapse;
    width: 100%;
    min-width: 720px;               /* šířka, při které se aktivuje horizontální scroll */
  }

  .home-selection__table th,
  .home-selection__table td {
    padding: 12px 8px;
    font-size: 14px;
    white-space: nowrap;            /* nezalamovat, ať drží sloupce */
  }
}

/* Volitelné: mírné zmenšení na velmi úzkých mobilech */
@media (max-width: 480px) {
  .home-selection__table {
    min-width: 640px;
  }
}
/* ================= MOBILE FIX: scroll + širší sloupce + nezalamovat ================= */
@media (max-width: 782px) {
  /* Udělej tabulku sama o sobě scrollovatelnou (bez nutnosti sahat do HTML) */
  table.home-selection__table {
    display: block !important;          /* přepíše původní display:none */
    width: 100%;
    min-width: 980px;                   /* tabulka bude širší než viewport -> vznikne vodorovný scroll */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  /* Nezalamovat texty v buňkách (Volný, Rezervovaný, Cena, atd.) */
  table.home-selection__table th,
  table.home-selection__table td {
    white-space: nowrap;
    padding: 12px 10px;
    font-size: 14px;
  }

  /* Zrušit desktopové width a dát rozumné min šířky po sloupcích */
  table.home-selection__table th:nth-child(1),
  table.home-selection__table td:nth-child(1) {
    width: auto !important;
    min-width: 110px;
  }

  table.home-selection__table th:nth-child(2),
  table.home-selection__table td:nth-child(2) {
    width: auto !important;
    min-width: 170px;                   /* Dispozice */
  }

  table.home-selection__table th:nth-child(3),
  table.home-selection__table td:nth-child(3) {
    width: auto !important;
    min-width: 140px;                   /* Pozemek */
  }

  table.home-selection__table th:nth-child(4),
  table.home-selection__table td:nth-child(4) {
    width: auto !important;
    min-width: 140px;                   /* Stav */
  }

  table.home-selection__table th:nth-child(5),
  table.home-selection__table td:nth-child(5) {
    width: auto !important;
    min-width: 170px;                   /* Cena – víc místa, ať se vejde v kuse */
  }

  table.home-selection__table th:nth-child(6),
  table.home-selection__table td:nth-child(6) {
    width: auto !important;
    min-width: 130px;                   /* Dokumentace */
    text-align: center;
  }
}

/* Pokud bys přece jen obalil tabulku wrapperem, ať má taky scroll (neškodí to mít připravené) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.table-wrap::-webkit-scrollbar      { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb{ background: var(--n-20); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-track{ background: transparent; }

/* ===== Mobilní horizontální scroll pro výběrovou tabulku ===== */
.table-wrap{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

/* Volitelný decentní scrollbar */
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--n-20); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 782px){
  /* Zrušit původní display:none a nechat ji jako tabulku */
  .home-selection__table{
    display: table !important;
    border-collapse: collapse;
    width: 100%;
    min-width: 1000px;              /* šířka přes viewport => vznikne horizontální scroll */
  }

  /* Nezalamovat obsah, ať se sloupce nelámou na 3 řádky */
  .home-selection__table th,
  .home-selection__table td{
    white-space: nowrap;
    padding: 12px 10px;
    font-size: 14px;
  }

  /* Rozumné min-šířky po sloupcích (doladíš podle chuti) */
  .home-selection__table th:nth-child(1),
  .home-selection__table td:nth-child(1){ min-width: 110px; }  /* Číslo domu */
  .home-selection__table th:nth-child(2),
  .home-selection__table td:nth-child(2){ min-width: 180px; }  /* Dispozice */
  .home-selection__table th:nth-child(3),
  .home-selection__table td:nth-child(3){ min-width: 140px; }  /* Pozemek */
  .home-selection__table th:nth-child(4),
  .home-selection__table td:nth-child(4){ min-width: 140px; }  /* Stav */
  .home-selection__table th:nth-child(5),
  .home-selection__table td:nth-child(5){ min-width: 180px; }  /* Cena */
  .home-selection__table th:nth-child(6),
  .home-selection__table td:nth-child(6){
    min-width: 130px;               /* Dokumentace */
    text-align: center;
  }
}

/* Kdyby to blokoval nějaký rodič s overflow:hidden, následující to zneškodní pro danou sekci */
@media (max-width: 782px){
  #vyber-domu,
  #vyber-domu .wp-block-group,
  #vyber-domu .wp-block-group__inner-container{
    overflow: visible !important;
  }
}
