/* === Menu === */
@media screen and (min-width: 1024px) {
    .menu-kontakt {
        display: none !important;
    }
}
.elementor-element-b20acb6 .elementor-nav-menu a {
    color: #161616 !important;
    position: relative !important;
}
.elementor-element-b20acb6 .elementor-nav-menu a:hover {
    color: #161616 !important;
    text-decoration: none !important;
}
.elementor-element-b20acb6 .elementor-nav-menu a:hover::after {
    content: " ";
    width: 100% !important;
    height: 2px !important;
    background-color: #20234a !important;
    position: absolute !important;
    bottom: 0 !important;
}

/*
.elementor-element-b20acb6 .elementor-nav-menu--dropdown li a {
    color: #515151;
    font-size: 15px;
    padding-left: 12px;
}
.elementor-element-b20acb6 .elementor-nav-menu--dropdown {
    background-color: #F2F2F2;
}
.elementor-element-b20acb6 .current-menu-item a {
    position: relative !important;
}
.elementor-element-b20acb6 .current-menu-item a::after {
    content: " ";
    width: 100% !important;
    height: 2px !important;
    background-color: #20234a !important;
    position: absolute !important;
    bottom: 0 !important;
}
@media screen and (max-width: 767px) {
    .elementor-element-b20acb6 .current-menu-item a::after {
        width: 30px !important;
        bottom: 7px !important;
    }
}
.elementor-element-b20acb6 .elementor-nav-menu--dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: #F2F2F2;
    border-top: 0;
    margin-left: -10px;
    margin-top: -10px;
}
*/

/* === Scroll offset pro sticky menu === */
#uvod,
#popis-projektu,
#nabidka,
#technicke-reseni {
    scroll-margin-top: 133px !important;
}
#kontakt {
    scroll-margin-top: 170px !important;
}

/* === Sticky menu === */
.elementor-30 .elementor-element.elementor-element-fdb0dff {
    box-shadow: none !important;
    transition: all 0.2s linear !important;
}
.elementor-30 .elementor-element.elementor-element-fdb0dff > .elementor-container {
    transition: min-height 0.2s ease !important;
}
.elementor-30 .elementor-element.elementor-element-fdb0dff.elementor-sticky--effects {
    background: white !important;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.18) !important;
    transition: all 0.2s linear;
}
@media screen and (min-width: 1200.5px) {
    .elementor-30 .elementor-element.elementor-element-fdb0dff.elementor-sticky--effects {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
}
.elementor-30 .elementor-element.elementor-element-fdb0dff .elementor-nav-menu--dropdown {
    top: 28px !important;
}
@media screen and (max-width: 758px) {
    .elementor-30 .elementor-element.elementor-element-fdb0dff > .elementor-container,
    .elementor-30 .elementor-element.elementor-element-fdb0dff > .elementor-background-overlay {
        max-height: 96px !important;
    }
}

/* === Hlavička stránky === */
.elementor-30 .elementor-element.elementor-element-5d24db4,
.elementor-30 .elementor-element.elementor-element-5d24db4 > .elementor-background-overlay {
    border-radius: 20px !important;
}

/* === Image Gallery karusel === */
.elementor-element-d194912 .elementor-widget-container {
  border-radius: 32px !important;
  overflow: hidden !important;
}
.uael-grid-img-thumbnail.uael-ins-target {
    border-radius: 20px;
}
.slick-next {
  background: url('./assets/images/Group-1650@2x.png') center center no-repeat !important;
  background-size: 100% !important;
  width: 50px !important;
  height: 50px !important;
  text-indent: -9999px;
  border: none;
  right: 30px !important;
}
.slick-prev {
  background: url('./assets/images/Group-1649@2x.png') center center no-repeat !important;
  background-size: 100% !important;
  width: 50px !important;
  height: 50px !important;
  text-indent: -9999px;
  border: none;
  left: 30px !important;
}
.uael-img-gallery-wrap {
  margin-bottom: 0 !important;
  position: relative;
}
.vht-gl {
  position: relative;
}
.vht-gl .swiper-pagination {
  bottom: 50px !important;
}
.vht-gl .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #fff !important;
  border-radius: 50% !important;
  opacity: 0.4 !important;
}
.vht-gl .swiper-pagination-bullet-active {
  opacity: 1 !important;
}
@media (max-width: 800px) {
  .vht-gl .swiper-pagination {
    bottom: 25px !important;
  }
}
@media (max-width: 480px) {
  .vht-gl .swiper-pagination {
    bottom: 5px !important;
  }
}

/* === Table widget === */
.uael-table tbody th.mini-header {
    border-radius: 20px;
    line-height: 22px !important;
    background-color: #d5d5d5 !important;
    text-align: left !important;
    color: #585858 !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}
.uael-table tbody th.mini-header > span {
    font-family: Roboto;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #585858 !important;
}
.free-space {
    display: none !important;
}
.uael-table tbody tr:first-child th.free-space {
    display: table-cell !important;
}
.uael-table tbody tr:first-child th.free-space span {
    font-size: 1px !important;
    line-height: 1px !important;
}
.bold > span,
.uael-table tbody th.bold > span,
.uael-table tbody td.bold > span {
    font-weight: 700 !important;
}
.uael-table {
  width: 100% !important;
  border-collapse: collapse !important;
}
.uael-table-wrapper {
  overflow-x: auto !important;
}
.uael-table tbody th.rezervovano > span {
    color: #D59845 !important;
}
.uael-table th,
.uael-table td {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.uael-table tbody th,
.uael-table tbody td {
    vertical-align: middle !important;
}
.uael-table tbody th > span,
.uael-table tbody td > span {
    font-size: 16px !important;
    line-height: 22px !important;
}
.uael-table tbody th.btn-karta-bytu a,
.uael-table tbody th.btn-karta-bytu span {
    display: inline-block !important;
    background-color: #161616 !important;
    color: #ffffff !important;
    border-radius: 27px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-weight: bold !important;
    padding: 3px 8px;
}
.uael-table tbody th.mini-header > span {
    font-size: 14px !important;
}
.uael-table thead th {
    background-color: #161616 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.uael-table tbody tr:first-child th.free-space {
    padding: 0 !important;
}
.uael-table thead th > span {
    color: #ffffff !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
}
.uael-table tbody tr th:first-child,
.uael-table tbody tr td:first-child,
.uael-table thead tr th:first-child {
    padding-left: 30px !important;
    text-align: left !important;
}
.uael-table tbody tr th:last-child:not(.mini-header):not(.free-space),
.uael-table tbody tr td:last-child,
.uael-table thead tr th:last-child {
    padding-right: 0 !important;
    text-align: right !important;
}
/* Sloupce 2-3 (PLOCHA, CENA): doleva */
.uael-table thead tr th:nth-child(2),
.uael-table thead tr th:nth-child(3),
.uael-table tbody tr th:nth-child(2),
.uael-table tbody tr th:nth-child(3) {
    text-align: left !important;
}
/* Sloupce 4-6 (ORIENTACE, DISPOZICE, ZAHRADA): doprostřed */
.uael-table thead tr th:nth-child(4),
.uael-table thead tr th:nth-child(5),
.uael-table thead tr th:nth-child(6),
.uael-table tbody tr th:nth-child(4),
.uael-table tbody tr th:nth-child(5),
.uael-table tbody tr th:nth-child(6) {
    text-align: center !important;
}
/* Sloupec 6 (ZAHRADA): doprostřed v hlavičce i těle */
.uael-text-break.uael-table thead tr th:nth-child(6),
.uael-column-rules.uael-table thead tr th:nth-child(6) {
    text-align: center !important;
}
.uael-table thead tr th:nth-child(4) > span,
.uael-table thead tr th:nth-child(5) > span,
.uael-table thead tr th:nth-child(6) > span {
    display: inline !important;
}
/* Sloupec 7 (PARKOVACÍ STÁNÍ): doleva */
.uael-table thead tr th:nth-child(7),
.uael-table tbody tr th:nth-child(7) {
    text-align: left !important;
}
.uael-table-row {
    border-radius: 20px !important;
}
.uael-table tbody th {
    background-color: #F8F8F800 !important;
    color: #585858 !important;
}
.uael-text-break.uael-column-rules.uael-table thead tr:first-child th:first-child {
    border-radius: 20px 0px 0px 20px !important;
}
.uael-text-break.uael-column-rules.uael-table thead tr:last-child th:last-child {
    border-radius: 0px 20px 20px 0px !important;
}
.uael-text-break.uael-column-rules.uael-table {
    border: none !important;
}
@media (max-width: 1024px) {
  .uael-text-break.uael-table thead tr:last-child th:last-child {
    position: relative;
    background-clip: padding-box !important;
    overflow: hidden !important;
    border-radius: 0px 20px 20px 0px;
  }
  .uael-text-break.uael-table thead tr:first-child th:first-child {
    position: relative;
    background-clip: padding-box !important;
    overflow: hidden !important;
    border-radius: 20px 0px 0px 20px;
  }
  .uael-text-break.uael-table {
    table-layout: auto !important;
    width: 100%;
    border: none !important;
  }
  .uael-text-break.uael-table th,
  .uael-text-break.uael-table td {
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .slick-next, .slick-prev {
    width: 30px !important;
    height: 30px !important;
  }
  .uael-grid-img-thumbnail.uael-ins-target {
    background-color: #F8F8F8;
    border: 24px solid #F8F8F8;
    border-radius: 20px;
  }
}


/* ======== galerie justified ======= */
.justified-gallery .uael-grid-img-caption {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    left: auto !important;
    bottom: auto !important;
    background: #161616 !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 9px 18px !important;
    width: auto !important;
}
.justified-gallery .uael-grid-img-caption .uael-grid-caption-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
.justified-gallery .uael-grid-img-caption h4 {
    margin-top: 0 !important;
}

.justified-gallery .uael-grid-img-thumbnail.uael-ins-target {
    padding: 20px !important;
    background: #fff !important;
    border-radius: 20px;
}
.justified-gallery .uael-grid-item-content {
    margin: 20px 10px !important;
}
.justified-gallery .uael-grid-item.jg-entry.entry-visible {
}

/* ======== vht galerie grid ======= */
.vht-gl .vht-gl__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--vht-gl-gap, 20px);
}
.vht-gl .vht-gl__grid-item {
    grid-column: span 2;
    position: relative;
    aspect-ratio: 4 / 3;
}
.vht-gl .vht-gl__caption {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #161616;
    color: #ffffff;
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 20px;
    padding: 9px 18px;
    pointer-events: none;
}
.vht-gl .vht-gl__grid-item:nth-last-child(2):nth-child(3n+1),
.vht-gl .vht-gl__grid-item:nth-last-child(1):nth-child(3n+2) {
    grid-column: span 3;
}
.vht-gl .vht-gl__grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--vht-gl-radius, 20px);
    background: #ffffff;
}
@media (max-width: 767px) {
    .vht-gl .vht-gl__grid-item {
        grid-column: span 3;
    }
}

/* ========== textova sekce ========== */
.text-section h2 {
    color: #161616 !important;
    text-transform: uppercase;
    font-size: 19px;
    line-height: 30px;
}

.text-section p, ul li {
    color: #585858 !important;
    font-size: 19px !important;
    line-height: 30px !important;
}

.text-section .elementor-widget-heading {
    padding-top: 2rem;
    border-top: 1px solid #bababa;
}

.text-section .elementor-container div:first-child .elementor-widget-wrap .elementor-widget-heading:first-of-type,
.text-section.no-border .elementor-widget-heading {
    padding-top: 0 !important;
    border-top: none !important;
}

.text-section.no-border {
    justify-content: center;
}

/* ========== časová osa ========== */
.vht-tl {
    font-family: Roboto, sans-serif;
}

.vht-tl__title {
    color: var(--vht-tl-title-color, #161616);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.vht-tl__track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.vht-tl__track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #161616 15%, #161616 85%, transparent);
    top: 58px;
}

.vht-tl__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vht-tl__period {
    color: var(--vht-tl-period-color, #161616);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
    white-space: nowrap;
}

.vht-tl__dot {
    width: var(--vht-tl-dot-size, 30px);
    height: var(--vht-tl-dot-size, 30px);
    background: var(--vht-tl-dot-color, #20234A);
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.vht-tl__check {
    width: calc(var(--vht-tl-dot-size, 30px) * 0.65);
    height: calc(var(--vht-tl-dot-size, 30px) * 0.65);
    transform: translate(1px, 1px);
}

.vht-tl__desc {
    color: var(--vht-tl-desc-color, #585858);
    font-size: 19px;
    line-height: 1.5;
    text-align: center;
    max-width: 8rem;
}

@media (max-width: 1200px) {
    .vht-tl {
        padding: 0 2rem;
    }
}

@media (max-width: 767px) {
    .vht-tl {
        margin-bottom: -4rem;
    }
    .vht-tl__track {
        flex-direction: column;
        gap: 32px;
        padding: 2rem 0;
    }
    .vht-tl__track::before {
        width: 1px;
        height: 100%;
        left: calc(50% - 1px);
        right: auto;
        top: 0;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, transparent, var(--vht-tl-line-color, #161616) 15%, var(--vht-tl-line-color, #161616) 85%, transparent);
    }
    .vht-tl__item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .vht-tl__period {
        flex: 1;
        text-align: right;
        margin-bottom: 0;
    }
    .vht-tl__dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .vht-tl__desc {
        flex: 1;
        text-align: left;
        max-width: none;
    }
}

.vht-tl__item--done .vht-tl__dot,
.vht-tl__item--current .vht-tl__dot {
    background: var(--vht-tl-dot-current-color, #4BBA57);
    box-shadow: 0 0 8px 2px color-mix(in srgb, var(--vht-tl-dot-current-color, #4BBA57) 45%, transparent);
}

.vht-tl__item--future .vht-tl__dot {
    background: var(--vht-tl-dot-future-color, #a7a8b7);
}

.vht-tl__track--status::before {
    background: linear-gradient(
        to right,
        var(--vht-tl-dot-current-color, #4BBA57) 0%,
        var(--vht-tl-dot-current-color, #4BBA57) var(--vht-tl-current-split, 0%),
        var(--vht-tl-dot-future-color, #a7a8b7) var(--vht-tl-current-split, 0%),
        var(--vht-tl-dot-future-color, #a7a8b7) 85%,
        transparent 100%
    );
}

@media (max-width: 767px) {
    .vht-tl__track--status::before {
        background: linear-gradient(
            to bottom,
            var(--vht-tl-dot-current-color, #4BBA57) 0%,
            var(--vht-tl-dot-current-color, #4BBA57) var(--vht-tl-current-split, 0%),
            var(--vht-tl-dot-future-color, #a7a8b7) var(--vht-tl-current-split, 0%),
            var(--vht-tl-dot-future-color, #a7a8b7) 85%,
            transparent 100%
        );
    }
}

/* ========== kroky procesu ========== */
.vht-st {
    font-family: Roboto, sans-serif;
}

.vht-st__title {
    color: var(--vht-st-title-color, #161616);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 40px;
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.vht-st__track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.vht-st__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vht-st__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: var(--vht-st-dot-half, 35.5px);
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(to right, var(--vht-st-line-color, #cccccc) 0 8px, transparent 8px 14px);
    z-index: 0;
}

.vht-st__dot {
    width: var(--vht-st-dot-size, 71px);
    height: var(--vht-st-dot-size, 71px);
    background: var(--vht-st-dot-color, #20234A);
    color: var(--vht-st-dot-text-color, #ffffff);
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 33px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.vht-st__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.vht-st__step-title {
    color: var(--vht-st-step-title-color, #161616);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 12px;
}

.vht-st__desc {
    color: var(--vht-st-desc-color, #585858);
    font-size: 19px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 1200px) {
    .vht-st {
        padding: 0 2rem;
    }
}

@media (max-width: 767px) {
    .vht-st__track {
        flex-direction: column;
        gap: 32px;
        padding: 2rem 0;
    }
    .vht-st__item:not(:last-child)::after {
        left: var(--vht-st-dot-half, 35.5px);
        top: var(--vht-st-dot-half, 35.5px);
        width: 1px;
        height: calc(100% + 32px);
        background-image: repeating-linear-gradient(to bottom, var(--vht-st-line-color, #cccccc) 0 8px, transparent 8px 14px);
    }
    .vht-st__item {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }
    .vht-st__dot {
        margin-bottom: 0;
    }
    .vht-st__content {
        align-items: flex-start;
        max-width: none;
    }
    .vht-st__step-title,
    .vht-st__desc {
        text-align: left;
    }
}


/* ========== vizitky ========== */
.vht-vz {
    font-family: Roboto, sans-serif;
}
.vht-vz__wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vht-vz-gap, 24px);
}

.vht-vz__card {
    flex: 1;
    min-width: 260px;
    min-height: 253px;
    display: flex;
    align-items: flex-start;
    height: var(--vht-vz-height, 200px);
    border-radius: var(--vht-vz-radius, 20px);
    background: var(--vht-vz-bg, #20234A);
}

.vht-vz__photo {
    flex-shrink: 0;
    width: var(--vht-vz-photo-width, 272px);
    align-self: stretch;
    position: relative;
}

.vht-vz__photo img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.vht-vz__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 24px 20px;
    height: 100%;
}

.vht-vz__name {
    color: var(--vht-vz-name-color, #ffffff);
    font-size: 21px;
    line-height: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.vht-vz__phone,
.vht-vz__email {
    color: var(--vht-vz-contact-color, rgba(255, 255, 255, 0.5));
    font-size: 18px;
    line-height: 31px;
}
.vht-vz__phone a,
.vht-vz__email a {
    color: inherit;
    text-decoration: none;
}
.vht-vz__phone a:hover,
.vht-vz__email a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .vht-vz__card {
        min-height: 185px;
        height: var(--vht-vz-height, 185px);
    }
    .vht-vz__photo {
        width: 220px;
    }
    .vht-vz__name {
        font-size: 18px;
        line-height: 23px;
        margin-bottom: 14px;
    }
    .vht-vz__phone,
    .vht-vz__email {
        font-size: 15px;
        line-height: 26px;
    }
}

@media (max-width: 980px) {
    .elementor-widget-vht-vizitky {
        margin: -3rem 0 0;
    }
    .vht-vz__wrap {
        flex-direction: column;
        align-items: center;
        gap: 64px;
    }
    .vht-vz__card {
        min-width: 0;
        width: 100%;
        max-width: 600px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 400px) {
    .vht-vz__info {
        padding-left: 5px;
    }
}

@media (max-width: 480px) {
    .vht-vz__card {
        min-height: 150px;
        height: var(--vht-vz-height, 150px);
    }
    .vht-vz__photo {
        width: 160px;
    }
    .vht-vz__name {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 10px;
    }
    .vht-vz__phone,
    .vht-vz__email {
        font-size: 13px;
        line-height: 22px;
    }
}

@media (max-width: 768px) {
    #kontakt .elementor-widget-text-editor p {
        line-height: 23px !important;
    }
}

/* ========== vizualizace štítek ========== */
.vht-vizualizace-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(22, 22, 22, 0.6);
    color: #ffffff;
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 53px;
    border-radius: 10px;
    padding: 0 26px;
    pointer-events: none;
    z-index: 10;
}
@media (max-width: 767px) {
    .vht-vizualizace-badge {
        font-size: 13px;
        padding: 0 12px;
        line-height: 35px;
        top: 12px;
        left: 12px;
    }
}
@media (max-width: 450px) {
    .vht-vizualizace-badge {
        font-size: 12px;
        padding: 0 8px;
        line-height: 30px;
        top: 8px;
        left: 8px;
    }
}
