/* Sicily Registration Popup */

.sicily-reg-container {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.45s ease, opacity 0.45s ease, visibility 0s 0.45s;
    pointer-events: none;
}

.sicily-reg-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: transform 0.45s ease, opacity 0.45s ease, visibility 0s 0s;
}

#sicily-reg-popup {
    position: relative;
    width: 1000px;
    height: 640px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    border-radius: 20px;
}

/* Left panel */
#sicily-reg-left {
    flex: 0 0 50%;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#sicily-reg-left .sicily-reg-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

#sicily-reg-left .sicily-reg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#sicily-reg-left .sicily-reg-slide.active {
    opacity: 1;
}

.sicily-reg-badge {
    position: absolute;
    z-index: 10;
    width: 100px;
    bottom: 80px;
    left: calc(50% - 67px);
}

/* Right panel */
#sicily-reg-right {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 50px 60px 40px 60px;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    flex: 0 0 50%;
    min-width: 0;
    --swiper-navigation-size: 21px;
    --swiper-theme-color: black;
}

#sicily-reg-right * {
    box-sizing: border-box;
}

#sicily-reg-right>strong {
    font-family: "GuthenBloots", arial, sans-serif;
    font-size: 50px;
    color: #000;
    text-align: center;
    display: block;
    line-height: 1;
    margin-top: 20px;
}

/* Close button */
.sicily-reg-close {
    cursor: pointer;
    position: absolute;
    right: 40px;
    top: 40px;
    display: block;
    width: 20px;
    height: auto;
}

/* Back button */
#sicily-reg-right .swiper-button-prev {
    position: absolute;
    top: 50px;
    left: 40px;
    width: 27px;
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sicily-reg-right .swiper-button-prev.swiper-button-disabled {
    display: none;
}

/* Swiper container */
.sicily-reg-swiper-container {
    width: 100%;
    flex: 1;
    min-height: 0;
}

.sicily-reg-swiper-container .swiper {
    height: 100%;
}

#sicily-reg-right .swiper-slide {
    display: flex;
    flex-direction: column;
    padding: 10px 15px 35px 15px;
}

/* Main button */
#sicily-reg-right .button {
    position: unset;
    color: #fff;
    min-height: 50px;
    width: 100%;
    padding: 12px 50px;
    margin-left: auto;
    margin-right: auto;
    background-color: #353944;
    border-radius: 30px;
    font-family: "Roboto", arial, sans-serif;
    line-height: normal;
    margin-top: auto;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#sicily-reg-right .swiper-button-next:hover {
    background-color: #007aff;
    transform: scale(1.02);
    color: white;
}

#sicily-reg-right .swiper-button-next::after {
    content: unset;
}

/* ====================== */
/* Step 1: Description    */
/* ====================== */

.sicily-reg-step-description p {
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #333;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* ====================== */
/* Step 2: Dates          */
/* ====================== */

.sicily-reg-subtitle {
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    text-align: center;
    margin: 0 0 40px 0;
}

#sicily-reg-right .sicily-reg-step-dates {
    padding-top: 0;
}

#sicily-reg-right .sicily-reg-step-description {
    padding-top: 40px;
}

.sicily-reg-dates-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

/* Shared radio/checkbox label styles */
#sicily-reg-right label.container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 50px;
    margin-bottom: 16px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    color: #333;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    min-height: 25px;
}

#sicily-reg-right .sicily-reg-step-config label.container {
    margin-bottom: 12px;
    padding-left: 40px;
    align-items: center;
}

#sicily-reg-right .sicily-reg-step-dates label.container {
    padding: 0 0px 0 40px;
    margin-bottom: 13px;
    font-size: 17px;
    font-weight: 350;
    width: 90%;
}


#sicily-reg-right label.container:last-of-type {
    margin-bottom: 0;
}

#sicily-reg-right label.container input[type="radio"],
#sicily-reg-right label.container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

#sicily-reg-right label.container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #efefef;
    border-radius: 50%;
    transition-duration: 0.3s;
}

#sicily-reg-right .sicily-reg-step-dates label.container .checkmark {
    left: 0;
}

#sicily-reg-right label.container:not(.disabled):hover:not(:has(.sicily-reg-flight-link:hover)) input~.checkmark {
    background-color: #ddd;
    transform: scale(1.25);
}

#sicily-reg-right label.container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #007aff;
}

#sicily-reg-right label.container input:checked~.checkmark::after {
    display: block;
}

/* Disabled (full) dates */
#sicily-reg-right label.container.disabled {
    cursor: default;
}

#sicily-reg-right label.container.disabled .checkmark {
    background-color: #f5f5f5;
}

#sicily-reg-right label.container.disabled .checkmark::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    transform: none;
    width: 15px;
    height: 15px;
    background: red;
    border-radius: 50%;
    display: block !important;
}

#sicily-reg-right label.container.disabled:hover .checkmark {
    background-color: #f5f5f5;
    transform: none;
}

/* Fixed package (always checked) */
#sicily-reg-right label.container.fixed {
    cursor: default;
}

#sicily-reg-right label.container.fixed .checkmark::after {
    display: block;
}

/* Date row layout */
.sicily-reg-date-info {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.sicily-reg-date-text {
    flex: 1;
    white-space: nowrap;
    font-weight: 500;
}

.sicily-reg-date-availability {
    color: #666;
    flex-shrink: 0;
    margin-left: 8px;
}

.sicily-reg-avail-low {
    font-weight: 500;
}

.sicily-reg-flight-links {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    margin-left: 22px;
}

.sicily-reg-flight-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    text-decoration: none;
    color: #555;
    background: #efefef;
    border-radius: 50%;
    letter-spacing: normal;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sicily-reg-flight-link:hover {
    background: #ddd;
    color: #007aff;
    transform: scale(1.25);
}

.sicily-reg-flight-link .sicily-reg-flight-icon {
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
}

.sicily-reg-tooltip {
    position: fixed;
    z-index: 9999;
    background: #fff;
    color: #333;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sicily-reg-tooltip.visible {
    opacity: 1;
}

.sicily-reg-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #fff;
}

.sicily-reg-transfer-info {
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #888;
    line-height: 1.5;
    text-align: center;
    margin: 35px 0 0 0;
}

/* ====================== */
/* Step 3: Config & price */
/* ====================== */

#sicily-reg-right .sicily-reg-step-config {
    padding-top: 25px;
    gap: 0;
}

.sicily-reg-config-header {
    text-align: center;
    margin-bottom: 25px;
}

.sicily-reg-config-title {
    display: block;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #000;
    line-height: 1.2;
}

.sicily-reg-chosen-date {
    display: block;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    margin-top: 4px;
}

.sicily-reg-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 16px;
    color: #333;
}

.sicily-reg-config-label {
    font-weight: 500;
    color: #000;
}

.sicily-reg-config-value {
    font-weight: 400;
    color: #333;
    margin-left: 4px;
}

/* Free spaces row: count next to label, no right-justify */
.sicily-reg-avail-row {
    justify-content: flex-start;
    margin-bottom: 4px;
}

/* Persons stepper aligned with the bed stepper below.
   Bed stepper sits at: 40px row-indent + bed-label-width + 16px gap.
   Persons label stays at x=0; push stepper right by 40px so stepper-X matches
   (works when persons-label-width ≈ bed-label-width, which "Počet osôb:" and
   "Počet lôžok:" satisfy). */
.sicily-reg-persons-row {
    justify-content: flex-start;
    gap: 16px;
}

.sicily-reg-persons-row .sicily-reg-stepper {
    margin-left: 40px;
}

.sicily-reg-config-block {
    margin-top: 14px;
    margin-bottom: 14px;
}

.sicily-reg-config-block-label {
    margin-bottom: 8px;
}

.sicily-reg-accommodation-list {
    display: flex;
    flex-direction: column;
}

.sicily-reg-acc-label {
    display: inline;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.3;
}

.sicily-reg-acc-label strong {
    font-weight: 500;
    color: #000;
}

.sicily-reg-acc-meta {
    font-weight: 300;
    color: #666;
}

/* Bed row: nested under atelier label */
.sicily-reg-bed-row {
    margin-left: 40px;
    margin-top: -4px;
    margin-bottom: 14px;
    justify-content: flex-start;
    gap: 16px;
}

.sicily-reg-bed-label {
    font-weight: 400;
    color: #333;
}

/* Stepper component */
.sicily-reg-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sicily-reg-stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    font-family: "Roboto", arial, sans-serif;
}

.sicily-reg-stepper-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #999;
}

.sicily-reg-stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sicily-reg-stepper-value {
    min-width: 18px;
    text-align: center;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

/* Price summary */
.sicily-reg-summary {
    margin-top: 6px;
    margin-bottom: 18px;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.sicily-reg-summary-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sicily-reg-summary-line strong {
    font-weight: 500;
    color: #000;
}

.sicily-reg-old-price {
    color: #888;
}

.sicily-reg-summary-total {
    margin-top: 2px;
}

.sicily-reg-summary-total strong {
    font-weight: 600;
}

.sicily-reg-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #999;
    color: #666;
    font-family: "Roboto", arial, sans-serif;
    font-size: 11px;
    cursor: help;
    flex-shrink: 0;
}

/* Wide tooltip variant for (i) summary icons */
.sicily-reg-tooltip.wide {
    white-space: normal;
    max-width: 260px;
    text-align: left;
    line-height: 1.4;
    padding: 14px 22px;
}


/* ====================== */
/* Step 3: Contact form   */
/* ====================== */

#sicily-reg-right .sicily-reg-step-contact {
    padding-top: 60px;
}

#sicily-reg-right .sicily-reg-step-contact form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#sicily-reg-right input[type="text"],
#sicily-reg-right input[type="email"],
#sicily-reg-right textarea {
    width: 100%;
    height: 40px;
    font-family: "Roboto", arial, sans-serif;
    font-weight: 400;
    color: #000;
    font-size: 14px;
    border: none;
    margin-top: 10px;
    background-color: rgba(200, 200, 200, 0.2);
    padding: 15px;
    outline: none;
    border-radius: 5px;
}

#sicily-reg-right input[type="text"]:first-child {
    margin-top: 0 !important;
}

#sicily-reg-right textarea {
    resize: none;
    padding: 10px 15px;
    overflow: auto;
    max-height: 100px;
    -ms-overflow-style: none;
    line-height: 1.4;
}

#sicily-reg-right textarea::-webkit-scrollbar {
    display: none;
}

#sicily-reg-right .sicily-reg-step-contact p {
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #999;
    margin-top: 15px;
    line-height: 1.4;
}

#sicily-reg-right .sicily-reg-step-contact button.submit-button {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 300;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 30px;
    min-height: 53px;
    width: 100%;
    padding: 12px 50px;
    background-color: #353944;
    margin-top: auto;
}

#sicily-reg-right .sicily-reg-step-contact button.submit-button:hover {
    background: #007aff;
    transform: scale(1.02);
}

/* ====================== */
/* Step 4: Result         */
/* ====================== */

#sicily-reg-right .result-content {
    text-align: center;
    font-family: "Roboto Condensed", arial, sans-serif;
    font-size: 18px;
    color: #333;
    flex-direction: column;
    height: 100%;
}

#sicily-reg-right .result-content .button {
    pointer-events: none;
    cursor: default;
}

#sicily-reg-right .form-result-message .button {
    background-color: #55a451;
    border: none;
}

#sicily-reg-right .form-result-message .button.error-back-button {
    background-color: #a1160f;
    border: none;
    pointer-events: auto;
    cursor: pointer;
}

#sicily-reg-right .form-result-message .button.error-back-button:hover {
    background: #353944;
    transform: scale(1.05);
}

/* ====================== */
/* Responsive             */
/* ====================== */

@media only screen and (min-width: 800px) and (max-width: 1050px) {
    #sicily-reg-popup {
        width: 780px;
    }

    #sicily-reg-right {
        padding: 50px 30px 30px 30px;
    }

    #sicily-reg-right .sicily-reg-step-dates label.container {
        padding: 0 0 0 35px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    #sicily-reg-right .sicily-reg-step-dates label.container .checkmark {
        left: 0;
    }

    .sicily-reg-config-title {
        font-size: 20px;
    }

    .sicily-reg-config-row,
    .sicily-reg-acc-label {
        font-size: 15px;
    }

    .sicily-reg-step-description p {
        font-size: 15px;
    }

    #sicily-reg-right .button {
        min-height: 43px;
    }

    #sicily-reg-right .sicily-reg-step-contact button.submit-button {
        min-height: 43px;
    }

    .sicily-reg-flight-links {
        margin-left: 22px;
    }
}

@media only screen and (min-width: 1050px) {
    .sicily-reg-flight-links {
        margin-left: 32px;
    }
}

@media only screen and (max-width: 799.98px) {
    #sicily-reg-popup {
        width: 500px;
    }

    #sicily-reg-left {
        display: none;
    }

    #sicily-reg-right {
        flex: 0 0 100%;
        border-radius: 20px;
    }

    .sicily-reg-badge {
        display: none;
    }
    
    .sicily-reg-flight-links {
        margin-left: 32px;
    }
}

@media only screen and (max-width: 599.98px) {
    #sicily-reg-popup {
        max-width: 400px;
        width: 90%;
    }

    #sicily-reg-right {
        padding: 50px 25px 30px 25px;
    }

    #sicily-reg-right>strong {
        font-size: 45px;
    }

    #sicily-reg-right .button {
        min-height: 43px;
    }

    #sicily-reg-right label.container {
        padding-left: 38px;
        font-size: 13px;
        margin-bottom: 12px;
    }

    #sicily-reg-right label.container .checkmark {
        height: 22px;
        width: 22px;
    }

    #sicily-reg-right label.container .checkmark::after {
        width: 12px;
        height: 12px;
    }

    #sicily-reg-right label.container.disabled .checkmark::after {
        top: 5px;
        left: 5px;
        width: 12px;
        height: 12px;
    }

    .sicily-reg-flight-link {
        width: 22px;
        height: 22px;
    }

    .sicily-reg-flight-link .sicily-reg-flight-icon {
        width: 12px;
        height: 12px;
    }

    #sicily-reg-right .sicily-reg-step-dates label.container {
        padding: 0 0 0 35px;
        margin-bottom: 10px;
        font-size: 14px;
        width: 100%;
    }

    #sicily-reg-right .sicily-reg-step-dates label.container .checkmark {
        left: 0;
    }

    .sicily-reg-subtitle {
        font-size: 18px;
        margin: 15px 0 40px 0;
    }

    .sicily-reg-dates-header {
        margin: 0 10px 5px 45px;
        font-size: 11px;
    }

    .sicily-reg-config-title {
        display: none;
    }

    #sicily-reg-right .sicily-reg-step-config {
        padding-top: 15px;
    }

    .sicily-reg-config-header {
        margin-bottom: 40px;
    }

    .sicily-reg-chosen-date {
        font-size: 18px;
        margin-top: 0;
    }

    .sicily-reg-config-row,
    .sicily-reg-acc-label,
    .sicily-reg-summary {
        font-size: 14px;
    }

    .sicily-reg-bed-row {
        margin-left: 32px;
    }

    .sicily-reg-step-description p {
        font-size: 15px;
    }

    #sicily-reg-right .sicily-reg-step-contact button.submit-button {
        min-height: 43px;
    }
}


@media only screen and (max-width: 399.98px) {
    .sicily-reg-step-description p {
        font-size: 14px;
    }
}
