/*
   Custom Styles for Gervinelis Website
   Bootstrap 5 already includes normalization, so normalize.css is not needed.
   Bootstrap provides: Reboot (normalize alternative) + full CSS framework
*/

/* Sticky footer — keep footer pinned to bottom when content is short */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ==========================================
   NAVBAR
   ========================================== */
#navigation {
    background-image: linear-gradient(to right, #f1f0ed, #f0eeec, #eeecec, #ebebeb, #e9e9e9);
    border-bottom: 1px solid #A5A5A5;
    box-shadow: 0px 0px 14px 0px rgb(0 0 0 / 75%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0) scale(1.0, 1.0);
}

/* Mobile offcanvas nav */
#navmenu.offcanvas {
    width: 185px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#navmenu.offcanvas.show {
    transform: translateX(0);
}

#navmenu .nav-link {
    padding: 1rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .55);
    text-decoration: none;
    transition: all .5s;
}

#navmenu .nav-link:hover {
    color: #555;
}

#navmenu .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #aaa;
    text-decoration-thickness: 1px;
}

/* Smooth navbar link animations */
nav ul li a,
nav ul li a:after,
nav ul li a:before {
    transition: all .5s;
}

nav ul li a:hover {
    color: #555;
}

nav.navbar ul li a,
nav.fill ul li a {
    position: relative;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
}

#languageIcon {
    font-size: 32px;
}

/* Language translation links */
.gtranslate_wrapper a {
    color: black;
    display: block;
    padding: 5px 10px 5px 20px;
}

/* Mobile language dropdown - bigger & right-aligned */
#navmenu .gtranslate_wrapper {
    text-align: right;
}

#languageDropdownMobile .fa-globe {
    font-size: 1.5rem;
}

#navmenu .gtranslate_wrapper a {
    padding: 0.625rem 1rem;
    font-size: 1rem;
    text-align: right;
}

.sticky-top {
    transition: all 0.25s ease-in-out;
}


.navbar.sticky-top {
    padding-top: .1rem !important;
    padding-bottom: .1rem !important;
}

#logo {
    width: auto;
    height: 60px;
}

/* ==========================================
   LANDING PAGE
   ========================================== */
.slideshow {
    height: 800px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), 
                url("../assets/sodyba/Backgroundas_new.png") no-repeat center;
    background-size: cover;
    position: relative;
}
@media (max-width: 767px) {
    .slideshow {
        height: 700px;
        background-position: 60% center;
    }
}

/*#newsletter {
    margin-top: clamp(4rem, 15vh, 12rem);
}*/

/* ==========================================
   ACCOMMODATION SECTION
   ========================================== */
.accommodation {
    border-bottom: 1px solid #D3D3D3;
    border-top: 1px solid #D3D3D3;
    background-color: #e8e8e8;
}

/* ==========================================
   PROJECTS / CARDS Section
   ========================================== */
.card-bg {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    background-color: #E5E4E2;
}

.card-bg:hover {
    box-shadow: 0 14px 28px rgba(0, 5, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.25);
}

/* Boxes */
.section-subtitle {
  letter-spacing: 0.2em;
}

.circle-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) grayscale(0.1);
}

.circle-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(30, 30, 30, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.circle-unit {
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.loc-title {
  font-size: 1.05rem;
}

.loc-desc {
  max-width: 200px;
}

@media (max-width: 767px) {
  .circle-wrap {
    width: 155px;
    height: 155px;
  }

  .loc-desc {
    max-width: none;
  }
}

/* Location carousel slide animation */
#locationCarousel .carousel-item {
  transition: transform 0.4s ease-in-out;
}

/* Location carousel dots (mobile) */
#locationCarousel .location-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background-color: #ccc;
  transition: background-color 0.3s;
  text-indent: 0;
}

#locationCarousel .location-dot.active {
  background-color: #555;
}
/* ==========================================
   GALLERY Page
   ========================================== */

/* GLightbox: allow outside-click to close on mobile */
.glightbox-container .ginner-container {
    height: auto;
}

.gallery-col {
    transition: opacity 0.3s ease;
}

.gallery-col.hidden {
    display: none;
}

.active-filter {
    pointer-events: none;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-header {
    display: none;
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    color: white;
    padding: 10px;
    font-size: 25px;
    text-align: center;
}

/* Gallery Pagination */

.page-link {
    color: #000;
    border: 1px solid #000;
    background-color: transparent;
    border-radius: 0;
}

.page-link:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.page-item.active .page-link {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.page-item.disabled .page-link {
    color: #999;
    border-color: #999;
    background-color: transparent;
}

/* ==========================================
   SAUNA RESERVATION STYLES
   ========================================== */

/* ----- Sticky Reservation Card ----- */
.sticky-reservation-wrapper {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Toast container shouldn't block clicks when empty */
.toast-container {
    pointer-events: none;
}
.toast-container .toast {
    pointer-events: auto;
}
/* Hide container entirely when no toast is actively showing */
.toast-container:not(:has(.toast.show)) {
    visibility: hidden;
}

/* ========== MOBILE STICKY FOOTER & BOTTOM SHEET ========== */
.product-sticky-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 1040;
    padding: 0.75rem 1.25rem;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.sheet-handle-bar {
    width: 40px;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

@media (max-width: 767px) {
    .sticky-reservation-wrapper.bottom-sheet-mobile {
        position: fixed !important;
        bottom: -100%;
        left: 0; right: 0;
        top: auto !important;
        z-index: 1050;
        transition: bottom 0.38s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 88vh;
        overflow: visible !important;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -4px 16px -4px rgba(0, 0, 0, 0.25);
        background: #fff;
    }

    .sticky-reservation-wrapper.bottom-sheet-mobile.sheet-open {
        bottom: 0;
    }

    /* Calendar pops upward, doesn't push content down (sauna/sodyba sheet only) */
    .bottom-sheet-mobile #calendar-container:not(.d-none) {
        bottom: 100%;
        top: auto !important;
        left: 0;
        right: 0;
        z-index: 10;
    }

    /* Push page content above the sticky footer (only on pages that have one) */
    body:has(.product-sticky-footer) #footer {
        padding-bottom: 3rem;
    }

    /* Move toast to top on mobile so it doesn't overlap calendar / sticky footer */
    .toast-container.bottom-0 {
        bottom: auto !important;
        top: 1rem !important;
    }
}

.product-location-map {
    height: 260px;
    border-radius: 0.5rem;
}

.reservation-card {
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.reservation-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* ----- Date Input Boxes ----- */
.date-input-box {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
    min-height: 0px;
}

.date-input-box:hover {
    border-color: #222222;
}

.date-input-box.active {
    border-color: #222222;
    box-shadow: 0 0 0 1px #222222;
}

.date-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #222222;
    display: block;
    text-transform: uppercase;
}

.date-display {
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    background: transparent;
    width: 100%;
    cursor: pointer;
    color: #222222;
}

.date-display:focus {
    outline: none;
}

.date-display::placeholder {
    color: #717171;
    font-weight: 300;
}

/* ----- Kayak extras modal ----- */
#kayak_dates_picker {
    display: none !important;
}

.kayak-modal-input-box {
    padding: 6px 10px;
}

.kayak-qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 11px;
    flex-shrink: 0;
}

.kayak-qty-label {
    font-size: 11px;
}

.kayak-qty-number {
    width: 2rem;
}

#kayak-calendar-container {
    z-index: 9999;
}

#baidares-map-modal {
    height: 220px;
}

#baidares-map-modal .baidares-legend,
#baidares-map-modal .leaflet-control-zoom {
    display: none;
}

#routeSelectModal {
    padding-right: 80px;
}

#route-difficulty-badge-modal {
    top: 50%;
    transform: translateY(-50%);
    right: 36px;
    pointer-events: none;
}


/* ----- Flatpickr Calendar ----- */
#reservation_dates {
    display: none;
}

.flatpickr-calendar.inline {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* ----- Modal swoop-in animation (booking modal + kayak extras modal) ----- */
#bookingModal .modal-dialog,
#kayakExtrasModal .modal-dialog {
    transition: none !important;
    will-change: transform, opacity;
}

#bookingModal.show .modal-dialog,
#kayakExtrasModal.show .modal-dialog {
    animation: booking-swoop-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 767px) {
    #kayakExtrasModal .modal-dialog {
        position: fixed !important;
        bottom: 0; left: 0; right: 0;
        margin: 0 !important;
        max-width: 100% !important;
        align-items: flex-end !important;
    }

    #kayakExtrasModal .modal-content {
        border-radius: 1.25rem 1.25rem 0 0;
    }

    #kayakExtrasModal.show .modal-dialog {
        animation: kayak-sheet-up 0.38s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    @keyframes kayak-sheet-up {
        from { transform: translateY(100%); opacity: 1; }
        to   { transform: translateY(0);    opacity: 1; }
    }
}

@keyframes booking-swoop-in {
    from {
        transform: translate(var(--swoop-x, 0px), var(--swoop-y, 0px)) scale(0.08);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* ----- Extras Checkboxes ----- */
#extras-section .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

#extras-section .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

#extras-section .form-check-label {
    font-size: 13px;
    margin-bottom: 0;
}

/* ----- Guest Input ----- */
.guests-input {
    width: auto;
    min-width: 0;
}

.guests-input::-webkit-outer-spin-button,
.guests-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.guests-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

#extras-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#extras-content.open {
    max-height: 200px;
}

/* ----- Extras Night List ----- */
.extras-nights {
    max-height: 120px;
    overflow-y: auto;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
}

/* ----- Product page carousel images ----- */
.product-carousel-img {
    height: 400px;
    object-fit: cover;
}

.product-thumb-img {
    height: 80px !important;
    object-fit: cover;
}

@media (max-width: 767px) {
    .product-thumb-img {
        height: 55px !important;
    }
}

/* ----- Carousel Thumbnails ----- */
.carousel-thumbnails a {
    display: block;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.carousel-thumbnails a:hover {
    opacity: 0.8;
    border-color: #6c757d;
}

.carousel-thumbnails a.active {
    opacity: 1;
    border-color: #333;
}

.carousel-thumbnails img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.row.single-form {
    box-shadow: 0 2px 20px 0px rgba(0, 0, 0, 0.5);
}

.right textarea {
    resize: none;
    height: 168px;
}

.right i {
    display: none;
    position: absolute;
    font-size: 100px;
    left: 99%;
    top: 43%;
    color: black;
}

.right button {
    border: none;
    background: black;
    width: 180px;
}

#map {
    height: 100%;
}

/* ==========================================
   MEDIA QUERIES - DESKTOP
   ========================================== */
@media (min-width: 768px) {
    /* Navbar spacing */
    .navbar li {
        margin-left: 1em;
        margin-right: 1em;
    }

    /* Navbar underline effect */
    nav.navbar ul li a:after,
    nav.fill ul li a:after {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 0%;
        content: '.';
        color: transparent;
        background: #aaa;
        height: 1px;
    }

    nav.navbar ul li a:hover:after,
    nav.navbar ul li a.active:after {
        width: 100%;
    }

    nav.navbar ul li #navbarDropdown:after,
    nav.fill ul li #navbarDropdown:after {
        background: none;
    }

    #languageDropdown {
        display: block;
    }
}

/* ==========================================
   MEDIA QUERIES - TABLET
   ========================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .right i {
        display: none;
        top: -52px;
        transform: rotate(90deg);
        left: 50%;
    }
    
    #product-images .carousel-inner {
        min-height: 300px;
    }

    #product-images .carousel-item img {
        height: 300px;
    }
}
/* ==========================================
   MEDIA QUERIES - MOBILE
   ========================================== */
@media (max-width: 767px) {

    .newsletter-header {
        display: none;
    }

    /* Contact form mobile style */
    .left {
        padding: 90px 15px;
        text-align: center;
    }

    #map {
        height: 300px;
        padding: 0;
    }

    .right textarea {
        height: 100px;
    }

    .left h2 {
        font-size: 25px;
    }

    .right {
        padding: 25px;
    }

    .right i {
        top: 92%;
        transform: rotate(90deg);
        left: 46%;
    }

    .right button {
        width: 150px;
        padding: 12px 0;
    }
    
    /* Carousel mobile sizing */
    #product-images .carousel-inner {
        min-height: 250px;
    }

    #product-images .carousel-item img {
        height: 250px;
    }

    /* Airbnb reservation form  */
    .sticky-reservation-wrapper {
        position: relative;
        top: 0;
    }
}

/* ==========================================
   BAIDARES Page
   ========================================== */
#routeSelect {
    padding-right: 80px;
}

#route-info {
    height: 4rem;
    overflow: hidden;
}

#route-difficulty-badge {
    top: 50%;
    transform: translateY(-50%);
    right: 36px;
    pointer-events: none;
}

#thumb-track {
    transition: transform 0.3s ease;
}

#thumb-prev,
#thumb-next {
    width: 32px;
    height: 32px;
    padding: 0;
}

#baidares-map {
    height: 60vh;
    min-height: 25rem;
}

@media (max-width: 767px) {
    #baidares-map {
        height: 45vh;
        min-height: 0;
    }
}

.baidares-legend .legend-start {
    color: #28a745;
}

.baidares-legend .legend-end {
    color: #dc3545;
}

.baidares-legend .legend-camp {
    color: #8b4513;
}

.baidares-legend .legend-poi {
    color: #0d6efd;
}

/* Leaflet popup sizing for POIs */
#baidares-map .leaflet-popup-content,
#baidares-map-modal .leaflet-popup-content {
    width: 13.75rem !important;
    margin: 10px 12px;
}

#baidares-map .leaflet-popup-content img,
#baidares-map-modal .leaflet-popup-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 6px 0;
    cursor: zoom-in;
}

/* Baidares image lightbox overlay */

.baidares-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
    padding: 1rem;
}

.baidares-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

