.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}


/* Subtle wave divider */
.wave-divider {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px; /* fix subpixel rendering issues */
    pointer-events: none;
}
.wave-divider svg {
    position: absolute;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.05);
}
.seat {
    transition: all 0.3s ease;
}
.seat:hover:not(.booked) {
    transform: scale(1.1);
}
.seat.available {
    fill: #ba1a1a;
    stroke: #ba1a1a;
}
.seat.selected {
    fill: #735c00;
    stroke: #735c00;
    animation: pulse-border 2s infinite;
}
.seat.booked {
    fill: #111c2d;
    stroke: #111c2d;
    opacity: 0.5;
    cursor: not-allowed;
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(115, 92, 0, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(115, 92, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(115, 92, 0, 0); }
}

/* ═══════════════════════════════════════════════════
   GLOBAL MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════ */

/* Prevent horizontal overflow on all pages */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ─── iOS safe area for fixed nav ───────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
    #main-nav {
        top: calc(0.75rem + env(safe-area-inset-top)) !important;
    }
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ─── Prevent iOS input zoom (font-size >= 16px) ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea {
    font-size: 16px;
}

/* ─── Improved focus for accessibility ─────────── */
:focus-visible {
    outline: 2px solid #735c00;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Scrollable tables on mobile ──────────────── */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── Auth pages (login / signup) ──────────────── */
@media (max-width: 480px) {
    .auth-card-inner {
        padding: 1.25rem !important;
    }
}

/* ─── Booking page: make right summary not sticky on mobile/tablet ── */
@media (max-width: 1023px) {
    .booking-summary-sticky {
        position: static !important;
        top: auto !important;
    }
}

/* ─── Training page stats: remove vertical borders on mobile ── */
@media (max-width: 639px) {
    .stats-item-border {
        border-right: none !important;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    .stats-item-border:last-child {
        border-bottom: none;
    }
}

/* ─── Profile header responsive padding ────────── */
@media (max-width: 640px) {
    .profile-header-panel {
        padding: 1.25rem !important;
    }
    .profile-new-booking-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* ─── Admin tables scroll ───────────────────────── */
@media (max-width: 768px) {
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0.75rem;
    }
}

/* ─── Flatpickr mobile fix ──────────────────────── */
@media (max-width: 480px) {
    .flatpickr-calendar {
        max-width: calc(100vw - 2rem) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    }
}

/* ─── Booking page: price summary above form on mobile ─ */
@media (max-width: 1023px) {
    .booking-right-mobile-top {
        order: -1;
    }
}

/* ─── Hero sections: ensure text never overflows ─── */
@media (max-width: 480px) {
    h1 { word-break: break-word; hyphens: auto; }
    .hero-headline { font-size: clamp(1.75rem, 8vw, 2.5rem) !important; line-height: 1.2 !important; }
}

/* ─── Navigation: reduce logo size on tiny screens ─ */
@media (max-width: 380px) {
    .nav-logo-container {
        width: 44px !important;
        height: 44px !important;
    }
    .nav-brand-name {
        font-size: 0.9rem !important;
    }
    .nav-brand-sub {
        display: none;
    }
}

/* ─── Mobile menu smooth transition ─────────────── */
#mobile-menu {
    transition: none;
}

/* ─── Index hero: stacked buttons on very small screens ─ */
@media (max-width: 380px) {
    .hero-cta-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
}

/* ─── Course catalog rows responsive ────────────── */
@media (max-width: 639px) {
    .catalog-row-price-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* ─── Prevent overflow in admin page ─────────────── */
@media (max-width: 768px) {
    .admin-radar-card {
        flex-direction: column !important;
    }
    .admin-tab-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-tab-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* ─── Boat details page image responsive ──────── */
@media (max-width: 640px) {
    .boat-hero-img {
        height: 220px !important;
    }
}

/* ─── Google Translate Luxury Overrides ─────────────────────── */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb-OEVmcb,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
iframe[id=":1.container"],
iframe[id=":2.container"],
.goog-te-spinner-pos {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html {
    top: 0 !important;
    margin-top: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-tooltip, .goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none !important;
}

/* ─── Brand Logo & Element Protection ────────────────────────── */
.notranslate,
[translate="no"] {
    -webkit-font-smoothing: antialiased;
}

/* Force logo branding to maintain LTR order and typography */
a.group[href="/"],
a.group[href="/#"],
a.group[href="/index.html"],
.brand-logo-wrap,
.brand-logo-container {
    direction: ltr !important;
    unicode-bidi: isolate;
}

/* Material Symbols & icons protection */
.material-symbols-outlined,
.material-icons {
    direction: ltr !important;
    unicode-bidi: isolate;
    display: inline-block;
    vertical-align: middle;
    font-feature-settings: 'liga';
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
}

/* Review text protection: preserve original written language */
.review-card .review-author,
.review-card .review-comment,
.review-card .review-title {
    unicode-bidi: plaintext;
}

/* ─── RTL (Arabic) Support ───────────────────────────────────── */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .material-symbols-outlined.rtl-flip {
    transform: scaleX(-1);
}

/* Keep action buttons and icons properly aligned in RTL */
html[dir="rtl"] #lang-menu {
    left: 0 !important;
    right: auto !important;
    text-align: right;
}

html[dir="rtl"] .lang-option {
    text-align: right;
}

html[dir="rtl"] .lang-dropdown-container.fixed {
    left: 1rem !important;
    right: auto !important;
}

/* ─── Scrollbar Utility for Horizontal Carousels ─────────────── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── Mobile Language Fit & Responsiveness ────────────────────── */
@media (max-width: 640px) {
    #lang-menu {
        width: min(190px, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }
    html[dir="rtl"] #lang-menu {
        left: 0 !important;
        right: auto !important;
    }
    .lang-dropdown-container {
        position: relative;
    }
    #lang-btn {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #language-buttons {
        gap: 0.5rem !important;
    }
    #language-buttons .lang-btn {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #language-buttons .lang-btn span,
    #language-buttons .lang-btn div {
        min-width: 0 !important;
    }
}

/* ─── Form Validation Error States & Highlighting ────────────── */
@keyframes shake-gentle {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

.animate-shake-gentle {
    animation: shake-gentle 0.45s ease-in-out;
}

.field-error-highlight {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28) !important;
    transition: all 0.25s ease-in-out !important;
}

.field-error-highlight:focus {
    outline: none !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.38) !important;
}


