/* ewaffe.min.css - Complete with all styles and fixed chat widget */
/* Updated: Fixed chat widget closing issue with pointer-events fix */

/* Base Styles */
body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    scroll-behavior: smooth;
}

/* Better focus styles for accessibility */
:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* Darker text for legal pages (terms.html, privacy.html) */
.legal-text,
.legal-text p,
.legal-text ul,
.legal-text li {
    color: #000000 !important;
}

.legal-text-medium {
    color: #000000 !important;
    font-size: 1rem;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
}

.brand-logo {
    height: 44px;
    width: auto;
}

.navbar-brand-text {
    color: #f8c146;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(0, 0, 0, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.hero-badge i {
    color: #f8c146;
}

.hero-heading {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 700;
}

.hero-lead {
    font-size: 1.05rem;
    max-width: 600px;
}

/* Section Styling */
.section-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #ad7b0a;
}

.section-heading {
    font-weight: 700;
    font-size: 1.8rem;
}

/* Cards */
.card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    background: #ffffff !important;
    border: none !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 63, 63, 0.15) !important;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    background: #ffffff !important;
}

/* Card titles */
.card-title {
    color: #000000 !important;
}

.card-title.h5 {
    color: #000000 !important;
}

h3.card-title.h5 {
    color: #000000 !important;
}

h3.h5.mb-3 {
    color: #000000 !important;
}

/* Backgrounds */
.gradient-bg {
    background: radial-gradient(circle at top left, #f8c146 0, #f6f4ee 40%, #fff 100%) !important;
}

.bg-soft {
    background: #f8fafc !important;
}

/* Pricing */
.tour-price {
    color: #0f766e !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Improvements */
.form-control:focus,
.form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

/* Form labels */
.form-label.medium {
    color: #000000 !important;
}

/* Pill Badges */
.pill-badge {
    display: inline-block !important;
    background: #f1f3f5 !important;
    color: #495057 !important;
    border-radius: 999px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border: 1px solid #dee2e6 !important;
    margin-top: 0.5rem !important;
    margin-right: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.pill-badge:hover {
    background: #e9ecef !important;
    border-color: #ced4da !important;
}

/* Hero badges */
.hero-badge {
    background: rgba(0, 0, 0, 0.55) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
}

/* Footer */
.footer {
    background: #000000 !important;
    color: #cbd5f5 !important;
    font-size: 0.9rem;
}

.footer a:not(.social-links a) {
    color: #e5e7eb !important;
    text-decoration: none !important;
}

.footer a:not(.social-links a):hover {
    color: #f8c146 !important;
    text-decoration: underline !important;
}

/* Social Media Icons */
.fa,
.fas,
.far,
.fal,
.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

.footer .social-links {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.footer .social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Facebook - Blue */
.footer .social-links a:nth-child(1) {
    background: #1877f2 !important;
}

/* YouTube - Red */
.footer .social-links a:nth-child(2) {
    background: #ff0000 !important;
}

/* Instagram - Purple gradient */
.footer .social-links a:nth-child(3) {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d) !important;
}

/* TikTok - Black */
.footer .social-links a:nth-child(4) {
    background: #dfe2eb !important;
}

/* X/Twitter - Black */
.footer .social-links a:nth-child(5) {
    background: #000000 !important;
}

/* WhatsApp - Green */
.footer .social-links a:nth-child(6) {
    background: #25d366 !important;
}

/* Snapchat - Yellow */
.footer .social-links a:nth-child(7) {
    background: #fffc00 !important;
    color: #000000 !important;
}

/* Hover effects for social links */
.footer .social-links a:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    opacity: 0.9 !important;
}

.footer .social-links i {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Navigation Styles */
.nav-link.active {
    color: #f8c146 !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: #f8c146;
    border-radius: 2px;
}

.nav-link:hover {
    color: #f8c146 !important;
}

/* Countdown section */
.countdown-section {
    background: #eaedf2 !important;
}

.countdown-box {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

.countdown-grid {
    max-width: 720px;
    margin: 0 auto;
}

.countdown-label {
    color: #6b7280;
}

.countdown-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: "Courier New", monospace;
}

/* Specials Hero */
.specials-hero-wrapper {
    position: relative;
    margin-top: 56px;
}

.specials-hero-img {
    display: block;
}

.specials-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1)) !important;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.specials-heading {
    font-size: 2.2rem;
    font-weight: 700;
}

/* =========================================== */
/* ENHANCED CHAT WIDGET - FIXED CLOSING ISSUE */
/* =========================================== */

/* Chat toggle button */
.chat-toggle-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.6);
}

.chat-toggle-btn:active {
    transform: scale(0.95);
}

/* Chat widget container */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 50px);
    height: 550px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    border: 1px solid #e5e7eb;
    pointer-events: auto !important;
}

.chat-widget.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Fix for chat widget elements - prevent click-through */
.chat-widget,
.chat-widget * {
    pointer-events: auto !important;
}

/* Chat header */
.chat-header {
    background: linear-gradient(135deg, #0f172a, #0f766e);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-avatar i {
    color: #fbbf24;
}

.chat-header-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-header-text p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat messages */
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.9rem;
    word-wrap: break-word;
    animation: messageAppear 0.3s ease;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    background: #0f766e;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.chat-message.ai {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.chat-message strong {
    color: #0f766e;
}

.chat-message a {
    color: #0f766e;
    text-decoration: underline;
}

/* Suggestion buttons */
.chat-suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    flex-shrink: 0;
}

.chat-suggestion-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-suggestion-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Quick action buttons */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.chat-action-btn {
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.2);
    color: #0f766e;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: rgba(15, 118, 110, 0.2);
    transform: translateY(-1px);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    align-self: flex-start;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDot {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Chat footer */
.chat-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

#chatSendBtn {
    background: #0f766e;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#chatSendBtn:hover:not(:disabled) {
    background: #0c615a;
}

#chatSendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================== */
/* END CHAT WIDGET STYLES */
/* =========================================== */

/* Text colors */
.text-muted {
    color: #000000 !important;
}

.medium.text-muted {
    color: #000000 !important;
}

.card-text.medium.text-muted {
    color: #000000 !important;
}

address.medium.text-muted.mb-3 {
    color: #000000 !important;
}

/* Section headings */
.section-heading {
    color: #000000 !important;
}

h2.section-heading {
    color: #000000 !important;
}

h2.h4.mb-3 {
    color: #000000 !important;
}

/* Contact form cards */
.p-4.bg-soft.rounded-4.border {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
}

/* FAQ accordion */
.accordion-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

.accordion-button:not(.collapsed) {
    background: #f8fafc !important;
    color: #000000 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(248, 193, 70, 0.25) !important;
    border-color: #f8c146 !important;
}

/* CTA section */
.bg-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%) !important;
}

/* Form validation */
.form-control:invalid,
.form-select:invalid {
    border-color: #dc3545;
}

.form-control:invalid:focus,
.form-select:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control:valid,
.form-select:valid {
    border-color: #198754;
}

.form-control:valid:focus,
.form-select:valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 575.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .navbar-brand-text {
        display: none;
    }

    .specials-hero-overlay {
        align-items: center;
        padding-bottom: 2rem;
    }

    .specials-heading {
        font-size: 1.7rem;
    }
}

/* Better mobile touch targets */
@media (max-width: 768px) {
    .btn,
    .chat-suggestion-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    .chat-suggestion-row {
        gap: 0.5rem;
    }

    .chat-suggestion-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Mobile chat widget */
    .chat-widget {
        width: 350px;
        right: 15px;
        bottom: 90px;
    }

    .chat-toggle-btn {
        width: 60px;
        height: 60px;
        right: 15px;
        bottom: 20px;
    }
}

/* Mobile small screens */
@media (max-width: 480px) {
    .chat-widget {
        width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
        height: 500px;
    }

    .chat-body {
        padding: 15px;
    }

    .chat-message {
        max-width: 90%;
    }
}

/* Large screen adjustments */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-heading {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

/* Print styles */
@media print {
    .chat-toggle-btn,
    .chat-widget,
    .navbar,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero-section,
    .specials-hero-wrapper {
        min-height: auto;
        height: auto;
    }

    .hero-overlay,
    .specials-hero-overlay {
        position: relative;
        background: none;
    }

    .hero-content,
    .specials-hero-overlay .container {
        position: relative;
        color: #000;
    }

    .section-title {
        color: #000;
    }

    .tour-price {
        color: #000;
    }

    .footer {
        background: #fff !important;
        color: #000;
        border-top: 1px solid #000;
    }

    .footer a {
        color: #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .chat-widget {
        transition: none;
    }

    .card {
        transition: none;
    }

    .typing-indicator::before {
        animation: none;
        content: "•••";
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-soft {
        background: #1a202c;
    }

    .card {
        background: #2d3748;
        color: #e2e8f0;
    }

    .card .text-muted {
        color: #a0aec0 !important;
    }

    .border {
        border-color: #4a5568 !important;
    }

    .chat-widget {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .chat-header {
        background: linear-gradient(135deg, #0f172a, #0f766e);
    }

    .chat-body {
        background: #1a202c;
    }

    .chat-message.ai {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .chat-message.user {
        background: #0f766e;
        color: white;
    }

    .chat-suggestion-btn {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .chat-suggestion-btn:hover {
        background: #374151;
    }

    .chat-action-btn {
        background: rgba(15, 118, 110, 0.2);
        border-color: rgba(15, 118, 110, 0.3);
        color: #5eead4;
    }

    .chat-footer {
        background: #2d3748;
        border-top-color: #4a5568;
    }

    #chatInput {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .chat-footer {
        background: #4a5568;
        border-top-color: #718096;
    }

    .chat-footer input[type="text"] {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }

    .chat-suggestion-btn {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }

    .chat-suggestion-btn:hover {
        background: #718096;
    }

    /* Dark mode for legal text */
    .legal-text,
    .legal-text p,
    .legal-text ul,
    .legal-text li,
    .legal-text-medium {
        color: #000000 !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :focus-visible {
        outline: 3px solid #000;
        outline-offset: 3px;
    }

    .btn-warning {
        background-color: #ff8c00 !important;
        color: #000 !important;
    }

    .btn-success {
        background-color: #006400 !important;
        color: #fff !important;
    }

    .tour-price {
        color: #006400;
    }

    .legal-text,
    .legal-text p,
    .legal-text ul,
    .legal-text li,
    .legal-text-medium {
        color: #000000 !important;
    }
}

/* Performance optimizations */
@media (prefers-reduced-transparency: reduce) {
    .navbar {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    }

    .chat-suggestion-btn:active {
        background: #e5e7eb;
    }

    .btn:active {
        transform: scale(0.98);
    }
}
