﻿/* Import Google font - Poppins */
#workers, #date, #times, #form {
    scroll-margin-top: 16px;
}

html {
    scroll-behavior: auto;
}
/* nech sa nebijeme s natívnym smooth scrollom */

.wrapper {
    width: 80%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

    .wrapper header {
        display: flex;
        align-items: center;
        padding: 25px 30px 10px;
        justify-content: space-between;
    }

header .icons {
    display: flex;
}

    header .icons span {
        height: 38px;
        width: 38px;
        margin: 0 1px;
        cursor: pointer;
        color: #878787;
        text-align: center;
        line-height: 30px;
        font-size: 1.9rem;
        user-select: none;
        border-radius: 50%;
    }

.icons span:last-child {
    margin-right: -10px;
}

/*#occupied-times-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
*/
.occupied-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.occupied-time {
    border: 1px solid #ffb8b8;
    color: #9e9e9e !important;
    cursor: no-drop !important;
    opacity: 0.75;
}

header .icons span:hover {
    background: #f2f2f2;
}

header .current-date {
    font-size: 1.45rem;
    font-weight: 500;
}

.calendar {
    padding: 20px;
}

    .calendar ul {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        text-align: center;
    }

    .calendar .days {
        margin-bottom: 20px;
    }

    .calendar li {
        color: #333;
        width: calc(100% / 7);
        font-size: 1.07rem;
    }

    .calendar .weeks li {
        font-weight: 500;
        cursor: default;
    }

    .calendar .days li {
        z-index: 1;
        cursor: pointer;
        position: relative;
        margin-top: 30px;
    }

.days li.inactive {
    color: #aaa;
    cursor: not-allowed;
}

.days li.disabled {
    color: #aaa;
    cursor: not-allowed;
}

.days li.active {
    color: #fff;
}

.days li::before {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    height: 40px;
    width: 40px;
    z-index: -1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.header-wrapper .alert-light{
    margin-right:25px;
    font-size:14px;
}

body {
    font-family: "Raleway", sans-serif;
}

h2 {
    font-size: 45px;
    font-weight: 400;
}


.roundoval {
    border: 1px solid #d9d9d9;
    border-radius: 20px 20px 20px 0;
    display: block;
    padding: 14px 30px;
    font-size: 16px;
    cursor: pointer;
    margin: 4px 0;
    font-weight: bold;
}

#services .roundoval {
    border: 1px solid #d9d9d9;
    border-radius: 20px 20px 20px 0;
    display: block;
    padding: 14px 30px;
    font-size: 16px;
    cursor: pointer;
    margin: 4px 0;
    font-weight: bold;
}

/* horný riadok */
    #services .roundoval .service-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* keď sa názov zalomí */
        gap: 12px;
    }

        #services .roundoval .service-head strong {
            white-space: nowrap; /* cena sa nezalomí */
            flex: 0 0 auto;
        }

    /* aby názov mohol kľudne zalamovať */
        #services .roundoval .service-head span {
            flex: 1 1 auto;
            min-width: 0;
        }

/* voliteľne: jemné odsadenie textov pod tým */
    #services .roundoval .service-paybefore,
    #services .roundoval .service-note {
        display: block;
        font-weight: normal;
        font-size: 12px;
        margin-top: 6px;
    }

.service-note-wrap {
    margin-top: 6px;
}

.service-note {
    display: block;
    font-weight: normal;
    font-size: 12px;
    line-height: 1.35;
}

/* orež len pri dlhých poznámkach */
.service-note-wrap:not(.no-toggle) .service-note {
    overflow: hidden;
    max-height: calc(1.35em * 2); /* 3 riadky */
}

/* po rozbalení */
.service-note-wrap.open .service-note {
    max-height: none;
}

.service-note-toggle {
    color:#333333 !important;
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.nadpisbg {
    background: #fbfbfb;
    display: inline-block;
    padding: 6px 30px 6px 30px;
    width: 300px;
    border-radius: 20px 20px 20px 0;
    border: 1px solid #d9d9d9;
    font-size: 12px;
    font-weight: bold;
}

.hide {
    display: none;
}


#ebform3 {
    padding-bottom: 150px !important;
}

.stateicon {
    font-size: 70px;
    border: 4px solid #5bcd3f;
    color: #5bcd3f;
    border-radius: 50%;
    margin: 0 auto !important;
    text-align: center;
    width: 120px;
    height: 120px;
    line-height: 120px;
}

.stateicon-x {
    font-size: 70px;
    border: 4px solid #f31c1c;
    color: #f31c1c;
    border-radius: 50%;
    margin: 0 auto !important;
    text-align: center;
    width: 120px;
    height: 120px;
    line-height: 115px;
}

.btn-black {
    background-color: #333333;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 20px 20px 20px 0;
}


    .btn-black:hover {
        background-color: #333333;
        color: #fff;
    }


/* ===== MINIATÚRY + ŠÍPKY (overlay bez odsúvania obsahu) ===== */
.logo-wrapper {
    max-width: 100%;
    max-height: 150px; /* max pre vertikálne */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo-img {
    max-height: 150px; /* dovoľ vyššie logo */
    max-width: 170px; /* zasa obmedz šírku */
    width: auto;
    height: auto;
    object-fit: contain;
}



    .workerimage img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* vyplní rám, oreže okraje */
        object-position: center; /* stred */
        display: block;
    }

.worker {
    padding-bottom: 15px;
}

.header-wrapper {
    background: #FBFBFB;
    border-radius: 20px;
    padding: 20px;
}

.footer-wrapper {
    background: #FBFBFB;
    border-radius: 20px;
    padding: 50px;
}

.alert-light p {
    margin-bottom: 0;
}

.eb-thumbs-wrap {
    position: relative;
    margin-top: 10px;
}

/* pás miniatúr */
.eb-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* ŽIADNY padding kvôli šípkam -> neodsúva prvú mini */
    padding: 2px 0 2px;
    /* skryť scrollbar (funguje stále) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}

    .eb-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }
/* Chrome/Safari */

/* miniatúry 4 na šírku */
.eb-thumb {
    border: 0;
    padding: 0;
    background: transparent;
    flex: 0 0 calc((100% - (10px * 3)) / 5);
    max-width: calc((100% - (10px * 3)) / 5);
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

    .eb-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@media (max-width: 576px) {
    .eb-thumb {
        flex: 0 0 calc((100% - (10px * 2)) / 4);
        max-width: calc((100% - (10px * 2)) / 4);
    }
}


/* jemný gradient pod šípkami, aby boli čitateľné a pritom neodsúvali obsah */
.eb-left {
    left: 6px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0); /* nič, len nech sa nemení layout */
}

.eb-right {
    right: 6px;
}

.eb-thumbs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    z-index: 2;
    pointer-events: none;
}

.eb-thumbs-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.eb-thumbs-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* ===== TITULNÁ fotka ===== */
.eb-gallery-cover {
    width: 100%;
    overflow: hidden;
}

    .eb-gallery-cover img {
        width: 100%;
        height: 475px;
        object-fit: cover;
        /* MASKA */
        -webkit-mask-image: url('/Content/images/eb-mask.svg');
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: contain;
        mask-image: url('/Content/images/eb-mask.svg');
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
        background-color: transparent;
    }

@media (max-width:576px) {
    .eb-gallery-cover img {
        width: 100%;
        height: 300px;
    }
}

/* ===== LIGHTBOX: šípky + krížik naozaj v strede ===== */
.eb-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .eb-lightbox.is-open {
        display: block;
    }

.eb-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

.eb-lightbox-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: min(92vw, 1100px);
    height: min(86vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-lb-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    display: block;
    background: #111;
}

/* krížik: vertikálne centrovanie riešime flexom v tlačidle */
.eb-lb-close {
    position: absolute;
    top: 60px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(0,0,0,.65);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    display: flex;
    justify-content: center;
    font-size: 31px;
    line-height: 38px;
}

/* lightbox šípky: 100% centrované cez top/bottom */
.eb-lb-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    display: flex;
    justify-content: center;
    font-size: 32px;
    line-height: 42px;
}

.eb-lb-prev {
    left: 12px;
}

.eb-lb-next {
    right: 12px;
}

.lang-wrapper {
    position: relative; /* referenčný bod */
    display: inline-block;
}


.opening-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 360px;
}

    .opening-hours li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 0;
        border-bottom: 1px dashed #eee;
        font-size: 14px;
    }

        .opening-hours li:last-child {
            border-bottom: none;
        }

    .opening-hours .left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 160px;
    }

    .opening-hours .day {
        font-weight: 600;
        color: #333;
    }

    .opening-hours .hours {
        text-align: right;
        white-space: nowrap;
        font-weight: 500;
        color: #444; /* nech nie je zelený text */
    }

        .opening-hours .hours.closed {
            color: #9e9e9e;
            font-style: italic;
        }

/* status bodka */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 10px;
}

    /* otvorené = zelená bodka */
    .status-dot.open {
        background: #2e7d32;
        box-shadow: 0 0 0 4px rgba(46,125,50,0.12);
    }

    /* zatvorené = sivá bodka */
    .status-dot.closed {
        background: #bdbdbd;
        box-shadow: 0 0 0 4px rgba(189,189,189,0.15);
    }

.socials {
    font-size: 18px;
    margin-top: 20px;
}

    .socials a {
        margin-right: 10px;
    }

.footwrap {
    font-size: 14px;
}


@media only screen and (max-width: 992px) and (min-width: 767px) {
    .eb-gallery-cover img {
        mask-position: left;
    }

    .custompadding {
        padding-top: 30px !important;
        padding-left: 20px !important;
    }

    .eb-gallery-cover img {
        height: 508px !important;
    }
}
    @media (max-width: 767px) {
        .wrapper {
            width: 100%;
        }

        .subtitles {
            font-size: 14px;
        }

        .eb-gallery-cover img {
            mask-position: left;
        }

        .header-wrapper {
            flex-wrap: wrap-reverse;
            padding: 0px !important;
        }

            .header-wrapper .alert-light {
                margin-right: 0px;
            }

        .roundcircle {
            width: 50px !important;
            border-radius: 100%;
            display: inline-block;
            height: 50px !important;
            line-height: 50px !important;
            text-align: center;
            color: #fff;
            font-weight: bold;
            font-size: 20px !important;
        }

        .footwrap {
            padding-top: 20px;
        }

        #select-container {
            width: 48px !important;
            left: -50px !important;
        }

        .logo {
            width: 150px !important;
        }

        .logo-wrapper {
            margin-top: 20px;
            margin-bottom: 20px !important;
        }

        #companyname {
            font-size: 22px;
        }

        .abouttext {
            text-align: justify !important;
        }


        .header-wrapper .align-self-center {
            padding: 10px !important;
        }

            .header-wrapper .align-self-center .btn {
                padding: 10px 15px;
            }

        #select-container ul {
            list-style-type: none !important;
            position: relative !important;
            margin: 17px 6px !important;
        }

        .footer-wrapper {
            padding: 30px !important;
        }

        .eb-lb-nav {
            line-height: 42px;
        }

        .eb-lb-close {
            font-size: 29px;
        }
    }

/* fotografia služby v booking formulári */

/* mobile: obrázok nad textom, cez celú šírku */
.service-card-layout {
    display: flex;
    flex-direction: column;
}

.service-card-img {
    display: block;
    width: calc(100% + 60px);
    margin: -14px -30px 12px -30px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.service-card-body {
    flex: 1;
    min-width: 0;
}

/* desktop: obrázok vľavo, text vpravo */
@media (min-width: 768px) {
    .service-card-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        margin: -14px -30px -14px -30px;
        padding: 0;
    }

    .service-card-layout .service-card-img {
        width: 180px;
        height: auto;
        min-height: 120px;
        margin: 0;
        border-radius: 10px 0 0 0;
        flex-shrink: 0;
        align-self: stretch;
        object-fit: cover;
    }

    .service-card-layout .service-card-body {
        padding: 14px 30px 14px 0;
    }
}

/* Skupinová rezervácia — dropdown počtu osôb.
   Používa .form-control (nie Bootstrap .form-select), takže nemá vlastnú šípku,
   a natívnu prebíja appearance:none z globálnych štýlov. Doplníme šípku ako SVG. */
#guestCountSelect {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

/* Potvrdenie rezervácie — celoobrazovkový prekryv s EasyBooking pozadím.
   Zámerne prekryje formulár, aby nová rezervácia vyžadovala refresh stránky.
   Všetka funkcionalita (platba, pridanie do kalendára, wallet) ostáva vnútri #ebform3. */
#ebform3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background-image: linear-gradient(45deg, #fbb042, #f7ec32);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 16px;
    color: #1a1a1a;
    /* #ebform3 má triedu .row (negatívne bočné okraje z Bootstrapu) — tie posúvali
       obsah do strany. Vynulujeme ich a vnútorný obsah vycentrujeme. */
    margin: 0 !important;
}
#ebform3 > .row {
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Nadpis potvrdenia "Ďakujeme..." zmenšíme na mobile. */
@media (max-width: 767px) {
    h2.thx {
        font-size: 25px;
    }
}

/* Animovaná fajka (nahrádza fa-check-circle-o). Kruh aj háčik sa „nakreslia",
   celé to jemne vyskočí. Animácia sa spustí, keď sa #ebform3 zobrazí. */
.eb-success-check {
    width: 96px;
    height: 96px;
    display: block;
    margin: 8px auto 14px;
    /* tieň, aby biela fajka bola čitateľná aj na svetlej (žltej) časti gradientu */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    animation: eb-check-pop 0.4s ease-out both;
}

.eb-success-check__circle {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-dasharray: 151;   /* obvod ≈ 2·π·24 */
    stroke-dashoffset: 151;
    animation: eb-check-draw 0.6s ease-out forwards;
}

.eb-success-check__path {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: eb-check-draw 0.35s 0.5s ease-out forwards;   /* začne po dokreslení kruhu */
}

@keyframes eb-check-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes eb-check-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
