/* ============================================= */
/* ATAV — Shared Header / Footer / Mobile Menu  */
/* Loaded on ALL pages (except booking)          */
/* ============================================= */

/* ---- Scoped resets (no bare selectors) ---- */
.hp-header ul, .hp-footer ul, .hp-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.hp-header a, .hp-footer a, .hp-mobile-menu a { text-decoration: none; color: inherit; }
.hp-header img, .hp-footer img, .hp-mobile-menu img { max-width: 100%; height: auto; }

/* ---- Containers ---- */
.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hp-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================= */
/* HEADER                                        */
/* ============================================= */
.hp-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0;
    min-height: 68px;
}

.hp-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hp-nav-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.hp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-nav-links > li > a {
    color: #1e2a40;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.hp-nav-links > li > a:hover {
    background: rgba(26, 26, 46, 0.06);
    color: #D60000;
}

/* Dropdown */
.hp-nav-dropdown {
    position: relative;
}

.hp-nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-nav-dropdown-trigger svg {
    width: 14px;
    height: 14px;
    color: #1e2a40;
    opacity: 0.5;
    transition: transform 0.2s;
}

.hp-nav-dropdown:hover .hp-nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.hp-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(8px);
}

.hp-nav-dropdown:hover .hp-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hp-nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #1e2a40;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s;
}

.hp-nav-dropdown-menu a:hover {
    background: rgba(26, 26, 46, 0.06);
}

.hp-nav-dropdown-menu a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #D60000;
}

/* Right side */
.hp-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Language Switcher */
.hp-lang-switcher {
    position: relative;
}

.hp-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(26, 26, 46, 0.04);
    border: 1px solid rgba(26, 26, 46, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: #1e2a40;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hp-lang-btn:hover {
    background: rgba(26, 26, 46, 0.08);
}

.hp-lang-btn img {
    border-radius: 2px;
}

.hp-lang-btn svg {
    width: 14px;
    height: 14px;
    color: #1e2a40;
    opacity: 0.5;
    transition: transform 0.2s;
}

.hp-lang-switcher.open .hp-lang-btn svg {
    transform: rotate(180deg);
}

.hp-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    min-width: 120px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}

.hp-lang-switcher.open .hp-lang-dropdown {
    opacity: 1;
    visibility: visible;
}

.hp-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #1e2a40;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s;
}

.hp-lang-option:hover {
    background: rgba(26, 26, 46, 0.06);
}

.hp-lang-option.active {
    background: rgba(214, 0, 0, 0.08);
    color: #D60000;
}

.hp-lang-option img {
    border-radius: 2px;
}

/* Book Now CTA */
.hp-nav-cta {
    display: inline-block;
    background: linear-gradient(135deg, #D60000 0%, #8b0000 50%, #5c0000 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.hp-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(214, 0, 0, 0.35);
    color: #fff;
}

/* Hamburger */
.hp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hp-hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #1e2a40;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hp-hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hp-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hp-hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Icons */
.hp-mobile-icons {
    display: none;
    align-items: center;
    gap: 4px;
}

.hp-mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #1e2a40;
    transition: background 0.2s, color 0.2s;
}

.hp-mobile-icon svg {
    width: 20px;
    height: 20px;
}

.hp-mobile-icon:hover {
    background: rgba(0,0,0,0.06);
}

.hp-mobile-icon-wa {
    color: #25D366;
}

.hp-mobile-icon-wa:hover {
    background: rgba(37,211,102,0.1);
}

/* ============================================= */
/* MOBILE MENU OVERLAY                           */
/* ============================================= */
.hp-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e2a40 0%, #2d426c 50%, #3b5998 100%);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.hp-mobile-menu.open {
    transform: translateX(0);
}

.hp-mobile-menu-inner {
    padding: 24px 24px 40px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.hp-mobile-menu-header img {
    height: 43px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hp-mobile-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.hp-mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hp-mobile-close svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke: #fff;
}

.hp-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.hp-mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-mobile-nav a {
    display: block;
    padding: 16px 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.hp-mobile-nav a:hover {
    color: #ffd700;
}

.hp-mobile-link {
    display: block;
    padding: 8px 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.hp-mobile-link:hover {
    color: #fff;
}

.hp-mobile-lang {
    margin-top: 30px;
    margin-bottom: 24px;
}

.hp-mobile-lang p {
    color: #fff;
    opacity: 0.5;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hp-mobile-lang-flags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-mobile-lang-flags a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.hp-mobile-lang-flags a:hover,
.hp-mobile-lang-flags a.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.hp-mobile-lang-flags img {
    border-radius: 2px;
}

.hp-mobile-cta {
    display: block;
    text-align: center;
    margin-top: auto;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.1rem;
}

/* ---- CTA Button (used by mobile menu) ---- */
.hp-btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #D60000 0%, #8b0000 50%, #5c0000 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}

.hp-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 0, 0, 0.35);
    color: #fff;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.hp-footer {
    background: #fff;
    color: #1e2a40;
    padding: 60px 0 0;
    border-top: 1px solid #e5e5e5;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.hp-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-footer-logo {
    margin-bottom: 12px;
}

.hp-footer-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.hp-footer-tagline {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hp-footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hp-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.85;
}

.hp-footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.hp-footer-social img {
    width: 28px;
    height: 28px;
    display: block;
}

.hp-footer-col {
    text-align: left;
}

.hp-footer h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e2a40;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-footer-links li {
    margin-bottom: 10px;
}

.hp-footer-links a {
    font-size: 0.88rem;
    color: #555;
    transition: color 0.2s;
}

.hp-footer-links a:hover {
    color: #D60000;
}

.hp-footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
}

.hp-footer-divider {
    margin: 0 10px;
    opacity: 0.4;
}

/* ---- Compact Language Switcher (mobile header) ---- */
.hp-lang-compact {
    display: none; /* shown via media query */
    position: relative;
}

.hp-lang-compact-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1.5px solid rgba(30,42,64,0.15);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e2a40;
    transition: background 0.2s;
}

.hp-lang-compact-btn:hover {
    background: rgba(0,0,0,0.04);
}

.hp-lang-compact-btn img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.hp-lang-compact-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    min-width: 100px;
    z-index: 1000;
    overflow: hidden;
}

.hp-lang-compact.open .hp-lang-compact-dropdown {
    display: block;
}

.hp-lang-compact-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e2a40;
    transition: background 0.15s;
}

.hp-lang-compact-dropdown a:hover {
    background: #f5f5f5;
}

.hp-lang-compact-dropdown a.active {
    background: rgba(214,0,0,0.06);
    color: #D60000;
}

.hp-lang-compact-dropdown a img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* ============================================= */
/* RESPONSIVE — TABLET (max-width: 992px)        */
/* ============================================= */
@media (max-width: 992px) {
    .hp-nav-links,
    .hp-nav-right {
        display: none;
    }

    .hp-hamburger {
        display: flex;
    }

    .hp-mobile-icons {
        display: flex;
    }

    .hp-lang-compact {
        display: block;
    }

    .hp-nav-logo img {
        height: 32px;
        width: auto;
    }

    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hp-footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .hp-footer-col {
        text-align: center;
    }
}

/* ============================================= */
/* RESPONSIVE — MOBILE (max-width: 768px)        */
/* ============================================= */
@media (max-width: 768px) {
    .hp-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hp-footer-brand {
        align-items: center;
    }

    .hp-footer {
        padding: 40px 0 0;
    }
}
