/* Custom fixes for Lina Gold Apartman */

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Language Switcher Styling - Header */
.language-switcher {
    display: flex;
    align-items: center;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.lang-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 8px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Make unselected language labels darker for better contrast */
.language-switcher .lang-link {
    color: #222 !important; /* dark color for unselected header language label */
    opacity: 0.95;
}

.language-switcher .lang-link.active,
.language-switcher .lang-link:hover {
    color: #aa8453 !important; /* keep selected highlighted */
}

.lang-link:hover {
    color: #aa8453;
}

.lang-link.active {
    color: #aa8453;
    font-weight: 600;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

/* Language Switcher in Hamburger Menu */
.rixos-menu-language {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.rixos-menu-language .language-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'Urbanist', sans-serif;
}

.rixos-menu-language .language-buttons {
    display: flex;
    gap: 10px;
}

.rixos-menu-language .lang-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu (hamburger) language buttons - unselected darker */
.rixos-menu-language .lang-btn {
    color: #222 !important;
    background: rgba(255,255,255,0.9);
}

.rixos-menu-language .lang-btn.active {
    background: #aa8453 !important;
    color: #fff !important;
}

.rixos-menu-language .lang-btn:hover {
    background: rgba(170, 132, 83, 0.2);
    border-color: #aa8453;
    color: #aa8453;
}

.rixos-menu-language .lang-btn.active {
    background: #aa8453;
    border-color: #aa8453;
    color: #fff;
    font-weight: 600;
}

/* Responsive adjustments for language switcher */
@media (max-width: 991px) {
    /* Hide header language switcher on mobile/tablet */
    .rixos-header .language-switcher {
        display: none !important;
    }
}

@media (min-width: 992px) {
    /* Hide menu language switcher on desktop */
    .rixos-menu-language {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .booking-system .button a {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Logo - Prevent text wrapping on mobile */
.rixos-logo {
    white-space: nowrap !important;
    font-size: 20px !important;
}

@media (max-width: 768px) {
    .rixos-logo {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .rixos-logo {
        font-size: 16px !important;
    }
}

/* Hero section with slider - Perfect vertical centering */
#home.parallax-header,
#home.header-slider {
    min-height: 100vh !important;
    height: 100vh !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Add darker overlay for better text readability */
#home.parallax-header:before,
#home.header-slider:before {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Ensure Vegas overlay is also darker */
.header-slider .vegas-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

/* Remove default padding/margin that might push content up */
#home.parallax-header .container,
#home.header-slider .container {
    position: relative;
    z-index: 2;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 100vh !important;
}

/* Ensure Vegas slider covers full area */
.header-slider .vegas-wrapper,
.header-slider .vegas-overlay,
.header-slider .vegas-slide {
    height: 100vh !important;
}

/* Center the row vertically */
#home.header-slider .row,
#home.parallax-header .row {
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
}

/* Ensure content column is centered */
#home .row .col-lg-9 {
    margin: auto;
}

/* Ensure valign class doesn't interfere */
.parallax-header.valign {
    display: flex !important;
    align-items: center !important;
}

/* Fallback background if slider doesn't load */
#home.parallax-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/rooms/lina gold (1).jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* List styling for apartment features */
.page-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #aa8453;
}

/* Icon boxes for appliances */
.icon-box {
    padding: 20px;
    transition: transform 0.3s;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.icon-box i {
    color: #aa8453;
}

/* Features section improvements */
#features .item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

#features .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#features .item .icon i {
    color: #aa8453;
}

#features .item .text h5 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Gallery Section - White Headlines on Images */
#gallery .wrap .cont h3 {
    color: #fff !important;
}

@media (max-width: 768px) {
    /* Move gallery caption and details under the image on small screens */
    #gallery .wrap {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    #gallery .wrap .cont {
        position: relative !important;
        background: rgba(0,0,0,0.35) !important; /* subtle dark bg for contrast */
        padding: 12px 12px 18px 12px !important;
        color: #fff !important;
        text-align: left;
        border-radius: 6px;
        margin-top: 8px;
    }

    /* Ensure image fills width and caption shows below */
    #gallery .item .img {
        display: block !important;
    }

    #gallery .item .img img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 6px;
    }

    /* Show title and details below image with white text */
    #gallery .wrap .cont h3,
    #gallery .wrap .cont .details {
        display: block !important;
        color: #fff !important;
    }

    #gallery .wrap .cont h3 {
        margin-top: 8px !important;
        margin-bottom: 6px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    #gallery .wrap .cont .details span {
        display: inline-block;
        margin-right: 10px;
        color: #eee !important;
        font-size: 13px !important;
    }
}

#features .item .text p {
    font-size: 14px;
    line-height: 1.6;
}

/* House Rules Section */
#house-rules {
    background: #fff;
    color: #222;
}

#house-rules .section-title {
    color: #aa8453;
}

#house-rules ul {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    color: #333;
}

#house-rules ul li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Nearby / Tabs styling */
.facilities2 .tab-buttons .tab-btn span {
    font-weight: 600;
    color: #222;
}

.facilities2 .tab .section-title,
.facilities2 h4 {
    color: #aa8453;
    margin-bottom: 12px;
}

.facilities2 .tab ul {
    margin-left: 0;
    padding-left: 0;
}

/* Nearby tabs icons styling */
.facilities2 .tab-buttons .tab-btn span i {
    margin-right: 8px;
    color: #aa8453;
}

/* Nearby lists - two column on larger screens */
.facilities2 .tab ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

@media (max-width: 991px) {
    .facilities2 .tab ul {
        columns: 1;
    }
}

/* Gold bullet styling using pseudo-element */
.facilities2 .tab ul li {
    position: relative;
    padding-left: 22px;
}

.facilities2 .tab ul li:before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: #aa8453;
    font-size: 20px;
    line-height: 1;
}

/* Increase spacing for readability */
.facilities2 .tab ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

/* Icon-only tabs on desktop: hide .tab-label and keep icons visible */
.facilities2 .tab-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.facilities2 .tab-buttons .tab-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
    white-space: nowrap;
}

.facilities2 .tab-buttons .tab-btn span i {
    font-size: 20px;
    margin-right: 0; /* remove default gap */
}

.facilities2 .tab-buttons .tab-btn .tab-label {
    display: none; /* hide labels on desktop */
    margin-left: 8px;
}

.facilities2 .tab-buttons .tab-btn.active-btn,
.facilities2 .tab-buttons .tab-btn:focus,
.facilities2 .tab-buttons .tab-btn:hover {
    background: rgba(170,132,83,0.08);
    transform: translateY(-2px);
}

/* Ensure the tab list fits on one row on large screens, allow horizontal scroll on smaller desktops */
@media (min-width: 1100px) {
    .facilities2 .tab-buttons {
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* On tablets and phones: show icon-only tiles arranged 3-per-row */
@media (max-width: 991px) {
    .facilities2 .tab-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
        justify-items: center !important;
        padding: 12px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .facilities2 .tab-buttons .tab-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        max-width: none !important;
        height: 84px !important;
        padding: 0 !important;
        background: #f6f1ec !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        justify-self: stretch !important;
    }

    .facilities2 .tab-buttons .tab-btn span i {
        font-size: 20px;
        color: #aa8453;
    }

    /* Visually hide labels but keep them in the DOM for screen readers */
    .facilities2 .tab-buttons .tab-btn .tab-label {
        position: absolute !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(1px, 1px, 1px, 1px) !important;
        white-space: nowrap !important;
    }

    .facilities2 .tab-buttons .tab-btn.active-btn {
        background: #efe9e3;
        box-shadow: 0 6px 0 rgba(170,132,83,0.14) inset;
        transform: translateY(-4px);
    }

    /* Extra high-specificity overrides to prevent external rules from forcing full-width items */
    .facilities2 .tab-buttons > li {
        display: block !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .facilities2 .tab-buttons > li .tab-btn {
        width: 100% !important; /* fill the grid cell */
        max-width: 100% !important;
    }
}

/* Make tab-buttons horizontally scrollable on narrow viewports while keeping single-row appearance */
@media (max-width: 1199px) and (min-width: 992px) {
    .facilities2 .tab-buttons {
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .facilities2 .tab-buttons .tab-btn {
        margin-right: 6px;
    }
}

/* Focus outline for keyboard users */
.facilities2 .tab-buttons .tab-btn:focus {
    outline: 3px solid rgba(170,132,83,0.18);
    outline-offset: 2px;
}

/* Nearby section heading (matching other section headers) */
.facilities2 .section-subtitle {
    color: rgba(0,0,0,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}

.facilities2 .section-title {
    color: #aa8453;
    font-size: 44px;
    margin-bottom: 12px;
    font-family: 'Gilda Display', serif;
}

.facilities2 p.mb-20 {
    color: #556;
    max-width: 800px;
    margin: 0 auto 18px auto;
}

/* Force tab-buttons into one row on desktop: tighten gaps and prevent wrapping */
@media (min-width: 1200px) {
    .facilities2 .tab-buttons {
        gap: 8px;
        justify-content: center;
        flex-wrap: nowrap;
        padding: 6px 10px;
    }

    .facilities2 .tab-buttons .tab-btn {
        padding: 8px 10px;
    }
}

/* Strong desktop single-row enforcement: distribute tabs evenly across the row */
@media (min-width: 1280px) {
    .facilities2 .tab-buttons {
        flex-wrap: nowrap !important;
        overflow-x: hidden;
    }

    /* If there are 9 tabs, give each an equal share; use calc to subtract small gap */
    .facilities2 .tab-buttons .tab-btn {
        flex: 0 0 calc((100% / 9) - 10px) !important;
        max-width: calc((100% / 9) - 10px) !important;
        padding: 18px 6px !important;
        background: transparent;
        border-radius: 8px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Make icons slightly larger and centered */
    .facilities2 .tab-buttons .tab-btn span i {
        font-size: 22px;
    }

    /* Hide labels on desktop (keeps markup for screen readers) */
    .facilities2 .tab-buttons .tab-btn .tab-label { display: none !important; }
}

/* Instead: layout Nearby tabs as a 3-column grid on desktop with icon-only buttons */
@media (min-width: 1200px) {
    .facilities2 .tab-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px 5px;
        align-items: stretch;
        justify-items: center;
        max-width: 1280px;
        margin: 0 auto;
        padding: 10px 0;
    }

    .facilities2 .tab-buttons .tab-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 88px;
        background: #f6f1ec;
        border-radius: 10px;
        padding: 0 !important;
        box-shadow: 0 6px 0 rgba(170,132,83,0.08) inset;
    }

    .facilities2 .tab-buttons .tab-btn span i {
        font-size: 22px;
        color: #aa8453;
    }

    /* Hide labels on desktop */
    .facilities2 .tab-buttons .tab-btn .tab-label { display: none !important; }

    /* Active state larger background like the mock */
    .facilities2 .tab-buttons .tab-btn.active-btn {
        background: #efe9e3;
        box-shadow: 0 8px 0 rgba(170,132,83,0.14) inset;
        transform: translateY(-4px);
    }
}

/* Ensure embedded Google Maps iframe displays in color (override template grayscale) */
.contact-map .map iframe,
.contact-map .map iframe * {
    -webkit-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}
