/**
 * Bastion Ecosystem Shared Components
 * Reusable Header, Navigation, Hero Shell, Booking Banner, Buttons, Switcher, Footer, Toasts
 */

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header:not(.hero) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(11, 17, 32, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo {
    height: 38px;
    width: auto;
}

.header-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent, #f59e0b);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-dropdown-btn {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition-fast, 0.2s);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn {
    color: var(--accent, #f59e0b);
}

/* COMPACT LUXURY DROPDOWN («ЕЩЁ») */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
    font-family: inherit;
}

.nav-dropdown-btn i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-btn i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
    border-radius: 14px;
    padding: 8px 0;
    min-width: 190px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1200;
    list-style: none;
    margin: 0;
}

/* Hover bridge to keep dropdown open when crossing the gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    padding: 0;
    margin: 0;
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light, #f8fafc);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent, #f59e0b);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent, #f59e0b) 0%, var(--accent-hover, #d97706) 100%);
    color: #000 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast, 0.2s);
    box-shadow: 0 4px 15px var(--accent-glow, rgba(245, 158, 11, 0.4));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
    color: #000 !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
    color: var(--text-light, #f8fafc);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast, 0.2s);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent, #f59e0b);
    color: var(--accent, #f59e0b);
    transform: translateY(-2px);
}

.btn-portal-back {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast, 0.2s);
}

.btn-portal-back:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent, #f59e0b);
    color: var(--accent, #f59e0b);
}

.btn-tg {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%) !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
    transition: var(--transition-fast, 0.2s);
}

.btn-tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    color: #ffffff !important;
}

.btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: var(--transition-fast, 0.2s);
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.btn-mail {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #f1f5f9 !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast, 0.2s);
}

.btn-mail:hover {
    border-color: var(--accent, #f59e0b) !important;
    color: var(--accent, #f59e0b) !important;
    background: rgba(245, 158, 11, 0.12) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO COMMON SHELL
   ========================================================================== */
section.hero,
.hero:not(header) {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
}

section.hero::after,
.hero:not(header)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-dark, #0b1120), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent, #f59e0b);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(32px, 5.5vw, 54px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted, #cbd5e1);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   UNIFIED LUXURY BOOKING BANNER
   ========================================================================== */
.booking-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(20, 30, 50, 0.92) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 24px !important;
    padding: 38px 24px !important;
    text-align: center !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.15) !important;
    max-width: 920px !important;
    margin: 40px auto 20px !important;
    position: relative !important;
    z-index: 10 !important;
}

.booking-banner h3 {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    font-size: clamp(22px, 3.5vw, 30px) !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
}

.booking-banner p {
    color: #cbd5e1 !important;
    font-size: 14.5px !important;
    max-width: 680px !important;
    margin: 0 auto 20px !important;
    line-height: 1.6 !important;
}

.contacts-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 20px 0 10px !important;
}

.phone-big {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0b1120 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
    transition: var(--transition-fast, 0.2s) !important;
}

.phone-big:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5) !important;
    color: #000 !important;
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    padding: 2px 4px;
    gap: 2px;
    backdrop-filter: blur(10px);
}

.lang-switcher-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast, 0.2s);
    text-transform: uppercase;
}

.lang-switcher-btn:hover {
    color: var(--text-light, #ffffff);
}

.lang-switcher-btn.active {
    background: var(--accent, #f59e0b);
    color: #0b1120;
    box-shadow: 0 0 10px var(--accent-glow, rgba(245, 158, 11, 0.4));
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.vtour-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent, #f59e0b);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow, rgba(245, 158, 11, 0.4));
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.vtour-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    width: 100%;
    background: #060911;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px 30px;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    max-height: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-info {
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--accent, #f59e0b);
}

.copyright {
    color: #64748b;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & NAVIGATION COLLAPSE
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-links {
        gap: 12px;
    }
    .nav-links a,
    .nav-dropdown-btn {
        font-size: 12px;
    }
    .btn-portal-back {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }
}

/* Hide mobile photo tour swipe hint on desktop (only show on touch devices <= 768px) */
@media (min-width: 769px) {
    [data-i18n="tour_hint"],
    .tour-hint-text {
        display: none !important;
    }
}
