/* ==========================================================================
   Saltwater Pros - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --ocean-deep: #0a1628;
    --ocean-mid: #0f2847;
    --cyan-electric: #00e5ff;
    --cyan-glow: #00b8d4;
    --sand-warm: #f5e6d3;
    --coral-accent: #ff6b6b;
}

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
body {
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: var(--ocean-deep);
}

.font-mono {
    font-family: 'Space Mono', monospace;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header-blur {
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-electric);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mega Menu */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Mobile Menu
   -------------------------------------------------------------------------- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.open {
    max-height: 500px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(10, 22, 40, 0.6) 40%,
        rgba(10, 22, 40, 0.7) 70%,
        rgba(10, 22, 40, 0.95) 100%
    );
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300e5ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 2;
}

.glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-electric), transparent);
    opacity: 0.6;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */
.cta-btn {
    background: linear-gradient(135deg, var(--cyan-electric), var(--cyan-glow));
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Booking Card & Form Elements
   -------------------------------------------------------------------------- */
.booking-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trip-type-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trip-type-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.trip-type-btn.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 184, 212, 0.1));
    border-color: var(--cyan-electric);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.trip-type-btn.active .trip-icon {
    color: var(--cyan-electric);
}

.input-field {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.input-field:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-field:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyan-electric);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.search-btn {
    background: linear-gradient(135deg, var(--cyan-electric), var(--cyan-glow));
    box-shadow:
        0 4px 15px rgba(0, 229, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 229, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Dropdown Menu
   -------------------------------------------------------------------------- */
.dropdown-menu {
    background: rgba(15, 40, 71, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.counter-btn:hover:not(:disabled) {
    background: var(--cyan-electric);
    border-color: var(--cyan-electric);
    color: var(--ocean-deep);
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Search Input & Dropdown (Homepage)
   -------------------------------------------------------------------------- */
.search-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyan-electric);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.search-input.dropdown-open {
    border-radius: 16px 16px 0 0;
    border-bottom-color: transparent;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 40, 71, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.search-dropdown-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.search-dropdown-item:hover {
    background: rgba(0, 229, 255, 0.1);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-dropdown-item.disabled:hover {
    background: transparent;
}

/* --------------------------------------------------------------------------
   City Cards (Destinations Grid)
   -------------------------------------------------------------------------- */
.city-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan-electric);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
}

.city-card:hover .city-image {
    transform: scale(1.05);
}

.city-card:hover .city-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.city-card-coming {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.city-card-coming:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   State Tabs (Destination Filtering)
   -------------------------------------------------------------------------- */
.state-tab {
    transition: all 0.3s ease;
}

.state-tab.active {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan-electric);
    border-color: var(--cyan-electric);
}

.state-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Region Card
   -------------------------------------------------------------------------- */
.region-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.region-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan-electric);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Feature Card
   -------------------------------------------------------------------------- */
.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Species Scroller
   -------------------------------------------------------------------------- */
.species-card {
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Calendar Slider
   -------------------------------------------------------------------------- */
.calendar-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.calendar-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
}

.calendar-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00e5ff, #00b8d4);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transition: transform 0.2s ease;
}

.calendar-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calendar-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
}

.calendar-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00e5ff, #00b8d4);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Date Input
   -------------------------------------------------------------------------- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.stat-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Scrollbar Hiding
   -------------------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   Glass Morphism (Auth pages)
   -------------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Flash Messages
   -------------------------------------------------------------------------- */
.flash-message {
    transition: all 0.4s ease;
}

.flash-message.hiding {
    opacity: 0;
    transform: translateY(-10px);
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.open {
    max-height: 1000px;
}

.faq-trigger .fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-trigger.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Dashboard Sidebar
   -------------------------------------------------------------------------- */
.sidebar-link {
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    background: rgba(0, 229, 255, 0.1);
    border-right: 3px solid var(--cyan-electric);
    color: var(--cyan-electric);
}

/* --------------------------------------------------------------------------
   Florida Carousel
   -------------------------------------------------------------------------- */
.carousel-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}
.carousel-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    transition: all 0.3s ease;
}
.carousel-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan-electric);
}
.carousel-arrow {
    transition: all 0.3s ease;
}
.carousel-arrow:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--cyan-electric);
}
