/*============================================================================================*/
/* Chincamea Custom Styles */
/*============================================================================================*/

/* Dropdown flicker fix + remove the triangle/arrow above submenu */
@media only screen and (min-width: 992px) {
    .submenu_version .main-menu ul ul {
        top: 100% !important;
        padding-top: 15px !important;
        background-clip: padding-box;
        border-top: none !important;
    }
    .submenu_version .main-menu ul ul::before {
        display: none !important;
    }
}

/* Language switcher IT | EN (inline, no flex to preserve navbar layout) */
nav#mainNav ul li.lang-switcher a {
    opacity: 0.85;
    font-weight: 400;
    padding: 0 3px;
    display: inline;
    transition: opacity .2s;
}
nav#mainNav ul li.lang-switcher a.active {
    opacity: 1;
    font-weight: 700;
    pointer-events: none;
}
nav#mainNav ul li.lang-switcher a:hover {
    opacity: 1;
}
nav#mainNav ul li.lang-switcher .lang-sep {
    opacity: 0.7;
    font-weight: 300;
    padding: 0 2px;
    display: inline;
}
/* When header is sticky (white bg), use gold accent for active language.
   Darker tone (#7a6a48) to meet WCAG AA 4.5:1 contrast on white (#978667 fails). */
header.sticky nav#mainNav ul li.lang-switcher a.active {
    color: #7a6a48 !important;
}
/* Darken non-active lang links on sticky header for WCAG AA contrast */
header.sticky nav#mainNav ul li.lang-switcher a,
header.sticky nav#mainNav ul li.lang-switcher .lang-sep {
    color: #333 !important;
    opacity: 1;
}
/* Main-menu items on sticky header: ensure AA contrast */
header.sticky .main-menu #mainNav ul li a {
    color: #222 !important;
}
/* Transparent hero overlay: bump lang-switcher opacity to full white for contrast */
nav#mainNav ul li.lang-switcher a,
nav#mainNav ul li.lang-switcher .lang-sep {
    opacity: 1;
}

/* ============ Room description typography ============ */
.room-description {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
}
.room-description p {
    margin: 0 0 1.1rem 0;
}
.room-description p:last-child {
    margin-bottom: 0;
}
.room-description strong {
    color: #2a2a2a;
    font-weight: 600;
}
.room-description em {
    color: #978667;
    font-style: italic;
}
.room-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    border-top: 1px solid #ebebeb;
    padding-top: 1.2rem;
}
.room-description ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: .6rem;
    font-size: 15px;
    color: #666;
}
.room-description ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #978667;
    font-weight: 700;
    font-size: 16px;
}
.room-description ul li strong {
    color: #222;
}

/* Price line below description */
.room-price-line {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #ebebeb;
    font-size: 18px;
    color: #978667;
    letter-spacing: .5px;
}
.room-price-line strong {
    color: #2a2a2a;
    font-size: 22px;
    font-weight: 700;
}

/* Legal pages (Privacy / Cookie Policy) */
.legal-content {
    font-size: 16px;
    line-height: 1.7;
    color: #2a2a2a;
}
.legal-content .lead {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}
.legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 14px;
    color: #1a1a1a;
}
.legal-content ul {
    padding-left: 20px;
    margin-bottom: 18px;
}
.legal-content ul li {
    margin-bottom: 8px;
}
.legal-content a {
    color: #c89770;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content a:hover {
    color: #a67a55;
}
.legal-content small {
    color: #888;
}

.legal-header {
    padding: 140px 0 40px;
    background: #f7f4ef;
    border-bottom: 1px solid #ece7df;
    margin-bottom: 10px;
}
.legal-header small {
    display: block;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    color: #c89770;
    margin-bottom: 10px;
}
.legal-header h1 {
    font-size: 42px;
    font-weight: 500;
    margin: 0;
    color: #1a1a1a;
}
@media (max-width: 767px) {
    .legal-header { padding: 110px 0 30px; }
    .legal-header h1 { font-size: 30px; }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    color: #2a2a2a;
    border: 1px solid #ece7df;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 18px 20px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease;
    font-size: 14px;
    line-height: 1.55;
}
.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cookie-banner__inner {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.cookie-banner__text {
    margin: 0;
    flex: 1 1 260px;
    color: #333;
}
.cookie-banner__text a {
    color: #c89770;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner__text a:hover { color: #a67a55; }
.cookie-banner__btn {
    flex-shrink: 0;
    background: #2a2a2a;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.cookie-banner__btn:hover { background: #c89770; }
@media (max-width: 520px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
    .cookie-banner__btn { width: 100%; }
}
