/* Fix for narrow sections */
.section.section-md .container {
    max-width: 100% !important;
    width: 100% !important;
}

.section.section-md.bg-default .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure rows don't collapse */
.row.row-40 {
    margin-left: -20px;
    margin-right: -20px;
}

.row.row-40 > [class*="col-"] {
    padding-left: 20px;
    padding-right: 20px;
}

/* Fix for box-icon-minimal to prevent narrow rectangles */
.box-icon-minimal {
    width: 100%;
    min-width: 0;
}

/* Ensure proper container width */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Banner size increase by 30% */
.swiper-container {
    min-height: 468px !important; /* Increased by 30% from 360px */
    max-height: 59.678125vw !important; /* Increased by 30% from 45.90625vw */
}

@media (max-width: 1199.98px) {
    .swiper-slider-corporate {
        min-height: calc((100vh - 56px) * 1.69) !important; /* Increased by 30% from 1.3 */
    }
}


/* Gallery thumbnail hover effect - make entire area clickable */
.thumbnail-mary-figure {
    position: relative;
    cursor: pointer;
}

.thumbnail-mary-figure .thumbnail-mary-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail-mary-figure:hover .thumbnail-mary-caption {
    opacity: 1;
}

.thumbnail-mary-figure .thumbnail-mary-caption .icon {
    color: #fff;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Make entire thumbnail clickable */
.thumbnail.thumbnail-mary > a {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Features list with bulletpoints - only for features, not navbar */
.list.list-description {
    list-style-type: disc;
    padding-left: 20px;
}

.list.list-description li {
    list-style-type: disc;
    display: list-item;
}

.list.list-description li > span {
    display: inline;
}

/* Ensure navbar lists are not affected */
.rd-navbar-nav,
.rd-menu,
.rd-navbar-dropdown {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Mobile: keep logo inside header */
@media (max-width: 767.98px) {
    .rd-navbar-brand img {
        max-height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block;
    }
}

.rd-navbar-nav li,
.rd-menu li,
.rd-navbar-dropdown li {
    list-style: none !important;
}

/* Accommodation gallery - make images clickable */
.accommodation-gallery a,
.owl-carousel.accommodation-gallery a {
    display: block;
    position: relative;
    cursor: pointer;
}

.accommodation-gallery a::after,
.owl-carousel.accommodation-gallery a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0);
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    opacity: 0;
}

.accommodation-gallery a:hover::after,
.owl-carousel.accommodation-gallery a:hover::after {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

/* LightGallery navigation arrows for accommodation gallery */
.lg-outer .lg-actions,
.lg-actions {
    display: block !important;
}

.lg-actions .lg-next,
.lg-actions .lg-prev {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1081 !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    text-align: center !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    font-size: 24px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    position: absolute !important;
    top: 50% !important;
    margin-top: -30px !important;
    pointer-events: auto !important;
}

.lg-actions .lg-next {
    right: 20px !important;
}

.lg-actions .lg-prev {
    left: 20px !important;
}

.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
}

.lg-actions .lg-next:before,
.lg-actions .lg-prev:after {
    display: inline-block !important;
    font-size: 24px !important;
    line-height: 60px !important;
}

.lg-actions .lg-next i,
.lg-actions .lg-prev i {
    font-size: 24px !important;
    line-height: 60px !important;
    display: inline-block !important;
}

/* LightGallery subtitle - larger font and white color for better visibility */
.lg-sub-html {
    color: #ffffff !important;
    font-size: 18px !important;
}

.lg-sub-html h4 {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 8px !important;
}

.lg-sub-html p {
    color: #ffffff !important;
    font-size: 16px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5 !important;
}

/* Mobile language switcher - white background with yellow active, black inactive */
@media (max-width: 991px) {
    /* Target language links in language switcher */
    .language-switcher .lang-link {
        background-color: #ffffff !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        margin: 0 4px !important;
        display: inline-block !important;
        text-decoration: none !important;
    }
    
    /* Active/current language - yellow/gold color (bruti) */
    .language-switcher .lang-link.active-lang-lv,
    .language-switcher .lang-link.active-lang-en {
        color: #FFD700 !important;
        font-weight: bold !important;
    }
    
    /* Inactive language - black color */
    .language-switcher .lang-link:not(.active-lang-lv):not(.active-lang-en) {
        color: #000000 !important;
    }
    
    /* Hide the separator on mobile */
    .language-switcher span {
        display: none !important;
    }
}

/* Add padding to dropdown links for better spacing */
.rd-dropdown-link {
    padding-left: 15px !important;
    padding-right: 15px !important;
    display: block !important;
}

/* Enhanced dropdown styling - make it more elegant */
.rd-navbar-dropdown {
    padding: 15px 18px 18px 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.18), 0 1px 5px rgba(0, 0, 0, 0.12) !important;
    margin-top: 10px !important;
    min-width: 200px !important;
}

/* Make dropdown yellow line smaller and more subtle */
.rd-navbar-dropdown li > a::before {
    width: 2px !important;
    height: 20px !important;
    background: rgba(255, 219, 115, 0.5) !important;
}

.rd-navbar-dropdown li.focus > a::before,
.rd-navbar-dropdown li.opened > a::before,
.rd-navbar-dropdown li > a:hover::before {
    width: 2px !important;
    height: 20px !important;
    background: rgba(255, 219, 115, 0.7) !important;
}

/* Enhanced dropdown link styling */
.rd-dropdown-link {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    display: block !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.rd-dropdown-link:hover {
    background-color: rgba(255, 219, 115, 0.1) !important;
    color: #333 !important;
}


