/**
 * Homepage Styles - AnchorExchange V2
 * Styles specific to the homepage (inex.php)
 */

/* ==========================================================================
   Homepage Specific Overrides
   ========================================================================== */
/* Remove default padding-top from main on homepage */
body.v2-homepage .v2-main {
    padding-top: 0 !important;
}

/* Ensure header is properly positioned */
body.v2-homepage .v2-header-simple {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ==========================================================================
   Hero Section - Enhanced Design
   ========================================================================== */
.v2-hero-home {
    position: relative;
    padding: 3rem 0 3.5rem 0;
    color: white;
    margin-top: 0;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    min-height: 550px;
    display: flex;
    align-items: center;
}

/* Enhanced overlay with better image visibility */
.v2-hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.85) 0%, rgba(60, 99, 130, 0.75) 50%, rgba(10, 61, 98, 0.85) 100%);
    z-index: 1;
}

/* Vignette effect for depth */
.v2-hero-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Subtle animated wave pattern overlay */
.v2-hero-home .text-center::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: heroWave 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroWave {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5%, 5%);
    }
    50% {
        transform: translate(-10%, 0);
    }
    75% {
        transform: translate(-5%, -5%);
    }
}

/* Hero without image - enhanced gradient */
.v2-hero-home.hero-gradient-only {
    background: linear-gradient(135deg, #0A3D62 0%, #1e5a7f 50%, #0A3D62 100%);
}

.v2-hero-home.hero-gradient-only::before {
    display: none;
}

/* All content above overlays */
.v2-hero-home .container-fluid {
    position: relative;
    z-index: 3;
}

.v2-hero-home .text-center {
    position: relative;
}

.v2-hero-home h1 {
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    backdrop-filter: none;
    font-weight: 700;
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.v2-hero-home .lead {
    opacity: 1;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    backdrop-filter: none;
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}



/* Hero CTA Button - Enhanced */
.hero-cta-btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(245, 166, 35, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn i {
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* ==========================================================================
   Hero Search Container - Enhanced Design
   ========================================================================== */
.hero-search-container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
}

.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Enhanced Category Icon Selector */
.category-icon-selector-enhanced {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.category-icon-btn-enhanced {
    background: white;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 75px;
    position: relative;
    overflow: hidden;
}

.category-icon-btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #0077be;
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.category-icon-btn-enhanced:hover::before {
    width: 100px;
    height: 100px;
}

.category-icon-btn-enhanced i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-icon-btn-enhanced span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-transform: capitalize;
}

.category-icon-btn-enhanced:hover {
    border-color: #0077be;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 119, 190, 0.25);
}

.category-icon-btn-enhanced:hover i {
    color: #0077be;
    transform: scale(1.15);
}

.category-icon-btn-enhanced.active {
    background: linear-gradient(135deg, #0077be 0%, #0099d4 100%);
    border-color: #0077be;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
}

.category-icon-btn-enhanced.active::before {
    display: none;
}

.category-icon-btn-enhanced.active i,
.category-icon-btn-enhanced.active span {
    color: white;
}

/* Enhanced Search Input Wrapper */
.hero-search-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.search-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.25rem;
    color: #6c757d;
    z-index: 2;
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
    background: white;
    font-weight: 400;
}

.hero-search-input:focus {
    outline: none;
    border-color: #0077be;
    box-shadow: 0 0 0 4px rgba(0, 119, 190, 0.15);
}

.hero-search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.search-clear-btn:hover {
    color: #0077be;
    transform: scale(1.1);
}

.hero-search-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0077be 0%, #0099d4 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
    white-space: nowrap;
}

.hero-search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

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

.hero-search-submit-btn i {
    font-size: 1.125rem;
}

.btn-text {
    display: inline-block;
}

/* Enhanced Popular Searches */
.popular-searches-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.popular-label-enhanced {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.popular-label-enhanced i {
    color: #0077be;
    font-size: 1rem;
}

.popular-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popular-search-tag-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.popular-search-tag-enhanced:hover {
    background: linear-gradient(135deg, #0077be 0%, #0099d4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 190, 0.3);
    border-color: #0077be;
}

/* Search Autocomplete Dropdown */
.hero-search-autocomplete {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.autocomplete-loading {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9375rem;
}

.autocomplete-loading .spin {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.autocomplete-results {
    padding: 0.5rem;
}

.autocomplete-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.1) 0%, rgba(0, 119, 190, 0.05) 100%);
    color: #0077be;
}

.autocomplete-item i {
    font-size: 1.125rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.autocomplete-item-content {
    flex: 1;
}

.autocomplete-item-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.autocomplete-item-meta {
    font-size: 0.8125rem;
    color: #6c757d;
}

/* Hero Content Animations */
.v2-hero-home h1 {
    animation: fadeInUp 0.8s ease-out;
}

.v2-hero-home .lead {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta-btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.v2-hero-home .card {
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.v2-hero-home .stats-card {
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

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

/* Subtle floating animation for search card */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.v2-hero-home .card:hover {
    animation: float 3s ease-in-out infinite;
}

/* Legacy Popular Searches (keeping for backwards compatibility) */
.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popular-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.popular-search-tag {
    background: #f0f0f0;
    color: var(--color-text);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.popular-search-tag:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-1px);
}

/* Background Pattern Section */
.bg-pattern-section {
    position: relative;
    background: #f8f9fa;
    z-index: 1;
}

.bg-pattern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg transform='translate(21, 20)'%3E%3Cpath fill='%230A3D62' d='M9.243,3.5c0.422,0,0.766-0.344,0.766-0.766c0-0.423-0.344-0.766-0.766-0.766c-0.424,0-0.767,0.343-0.767,0.766C8.477,3.157,8.819,3.5,9.243,3.5L9.243,3.5z M15.566,10.772l2.109-1.708l0.424,2.681l0.424,2.682l-1.324-0.508c-1.076,3.355-4.222,5.785-7.937,5.785c-3.715,0-6.861-2.43-7.939-5.785L0,14.427l0.425-2.682l0.424-2.681l2.11,1.708l2.108,1.709l-1.582,0.607c0.631,2.123,2.402,3.756,4.604,4.191V7.852H4.383V5.736l3.706,0V5.214c-0.934-0.436-1.58-1.382-1.58-2.479C6.509,1.224,7.733,0,9.243,0s2.734,1.224,2.734,2.734c0,1.098-0.646,2.044-1.58,2.479v0.522l3.513,0v2.116h-3.513v9.436c2.218-0.421,4.007-2.062,4.642-4.199l-1.582-0.607L15.566,10.772L15.566,10.772z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-repeat: repeat;
    background-position: 0 0;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Stats Cards (Hero Section)
   ========================================================================== */
.stats-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: var(--transition-base);
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.stats-icon {
    font-size: 1.75rem;
    color: var(--color-highlight);
    margin-bottom: 0.25rem;
}

.stats-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0.25rem 0;
}

.stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================================
   Category Cards V2
   ========================================================================== */
.category-card-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-decoration: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-card-v2 .category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: white;
}

.category-icon.boats {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.category-icon.parts {
    background: linear-gradient(135deg, var(--color-success) 0%, #27ae60 100%);
}

.category-icon.services {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.category-icon.properties {
    background: linear-gradient(135deg, var(--color-highlight) 0%, #f39c12 100%);
}

.category-icon.jobs {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-error) 100%);
}

.category-icon.directory {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.category-card-v2 .category-info {
    flex: 1;
}

.category-card-v2 h3 {
    font-size: 1.125rem;
    color: var(--color-headings);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.category-card-v2 .category-count {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.category-card-v2 .category-list {
    display: none;
}

.category-card-v2 .category-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.category-card-v2:hover .category-arrow {
    background: var(--color-accent);
    transform: translateX(3px);
}

/* ==========================================================================
   Feature Cards V2 (Why Choose Us Section)
   ========================================================================== */
.feature-card-v2 {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.feature-card-v2:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-card-v2 h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card-v2 p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    line-height: 1.6;
}

.feature-icon-v2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
}

.feature-card-v2:hover .feature-icon-v2 {
    background: var(--color-highlight);
    color: var(--color-headings);
    transform: scale(1.1);
}

/* ==========================================================================
   Why Choose Section - Improved Contrast
   ========================================================================== */
.why-choose-section {
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.95) 0%, rgba(60, 99, 130, 0.95) 100%);
    position: relative;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0L100 50L50 100L0 50z" fill="%23ffffff" opacity="0.03"/></svg>') repeat;
    z-index: 0;
}

.why-choose-section .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    .v2-hero-home {
        padding: 2.5rem 0;
        min-height: 480px;
    }

    .v2-hero-home h1 {
        font-size: 2rem;
        padding: 0;
    }

    .v2-hero-home .lead {
        font-size: 1rem;
        padding: 0;
    }

    .hero-cta-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    /* Mobile Search Container */
    .hero-search-container {
        padding: 1.25rem;
        border-radius: 16px;
        margin: 0 1rem;
    }

    .category-icon-selector-enhanced {
        gap: 0.5rem;
        padding-bottom: 0.875rem;
    }

    .category-icon-btn-enhanced {
        padding: 0.625rem 0.875rem;
        min-width: 65px;
    }

    .category-icon-btn-enhanced i {
        font-size: 1.25rem;
    }

    .category-icon-btn-enhanced span {
        font-size: 0.75rem;
    }

    .hero-search-input-wrapper {
        flex-direction: column;
        gap: 0.625rem;
    }

    .hero-search-input {
        padding: 0.875rem 1rem 0.875rem 3rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 1rem;
        font-size: 1.125rem;
    }

    .hero-search-submit-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        justify-content: center;
    }

    .popular-searches-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 0.875rem;
    }

    .popular-label-enhanced {
        font-size: 0.8125rem;
    }

    .popular-tags-wrapper {
        width: 100%;
        gap: 0.4rem;
    }

    .popular-search-tag-enhanced {
        padding: 0.35rem 0.875rem;
        font-size: 0.8125rem;
    }

    .stats-icon {
        font-size: 1.5rem;
    }

    .stats-number {
        font-size: 1.5rem;
    }

    .stats-label {
        font-size: 0.8rem;
    }

    .category-card-v2 {
        padding: 1rem 1.25rem;
    }

    .category-card-v2 h3 {
        font-size: 1rem;
    }

    .category-card-v2 .category-count {
        font-size: 0.8rem;
    }

    .category-card-v2 .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .category-card-v2 .category-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .feature-card-v2 h4 {
        font-size: 1.1rem;
    }

    .feature-icon-v2 {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Bottom Navigation Overrides for Homepage
   ========================================================================== */
nav.bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: auto !important;
    background: var(--color-primary) !important;
    padding: 0.5rem 0 !important;
}

/* Ensure body has padding for bottom nav */
body.v2-homepage {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Force bottom nav items to be visible */
.bottom-nav-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
/* Background page color */
.bg-page {
    background: var(--color-background);
}

/* ==========================================================================
   ENHANCED WHY CHOOSE SECTION
   ========================================================================== */

/* Section background with marine pattern */
.why-choose-section {
    background: linear-gradient(135deg, #0A3D62 0%, #1e5a7f 50%, #0A3D62 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg transform='translate(21, 20)'%3E%3Cpath fill='%23ffffff' opacity='0.03' d='M9.243,3.5c0.422,0,0.766-0.344,0.766-0.766c0-0.423-0.344-0.766-0.766-0.766c-0.424,0-0.767,0.343-0.767,0.766C8.477,3.157,8.819,3.5,9.243,3.5L9.243,3.5z M15.566,10.772l2.109-1.708l0.424,2.681l0.424,2.682l-1.324-0.508c-1.076,3.355-4.222,5.785-7.937,5.785c-3.715,0-6.861-2.43-7.939-5.785L0,14.427l0.425-2.682l0.424-2.681l2.11,1.708l2.108,1.709l-1.582,0.607c0.631,2.123,2.402,3.756,4.604,4.191V7.852H4.383V5.736l3.706,0V5.214c-0.934-0.436-1.58-1.382-1.58-2.479C6.509,1.224,7.733,0,9.243,0s2.734,1.224,2.734,2.734c0,1.098-0.646,2.044-1.58,2.479v0.522l3.513,0v2.116h-3.513v9.436c2.218-0.421,4.007-2.062,4.642-4.199l-1.582-0.607L15.566,10.772L15.566,10.772z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.4;
    pointer-events: none;
}

/* Title Wave Divider */
.title-divider {
    margin: 1rem auto;
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Feature Cards */
.feature-card-enhanced {
    padding: 2.5rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-enhanced:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Color-coded Feature Icons */
.feature-icon-v2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.feature-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.feature-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.feature-card-enhanced:hover .feature-icon-v2 {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.3);
}

.feature-icon-v2::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.feature-card-enhanced:hover .feature-icon-v2::before {
    opacity: 0.6;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* Feature Text Styling */
.feature-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
    font-style: italic;
}

.feature-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Trust Badges Row */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
}

.trust-badge-item i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-badge-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

/* ==========================================================================
   ENHANCED CTA SECTION
   ========================================================================== */

/* Dynamic Gradient Background */
.cta-gradient-enhanced {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    border-radius: 1.5rem !important;
    position: relative;
    overflow: hidden;
}

.cta-gradient-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Card Effect */
.cta-card-float {
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animated Title with Underline */
.cta-title-animated {
    position: relative;
    display: inline-block;
}

.cta-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: wave-underline 3s ease-in-out infinite;
}

@keyframes wave-underline {
    0%, 100% {
        transform: translateX(-20px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(20px);
        opacity: 1;
    }
}

/* Enhanced CTA Buttons */
.cta-btn-enhanced {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn-enhanced i {
    transition: transform 0.3s ease;
}

.cta-btn-enhanced:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Social Proof Text */
.cta-social-proof {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.cta-social-proof i {
    font-size: 1.125rem;
}

/* Old CTA gradient (keeping for compatibility) */
.cta-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-error) 100%);
}

/* Listing card image class for consistency */
.listing-card-image {
    height: 200px;
    object-fit: cover;
}

/* Ensure all cards in grid have equal height */
.row.g-3 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.row.g-3 > [class*="col-"] > .ax-listing-card,
.row.g-3 > [class*="col-"] > .ax-ad-card {
    flex: 1;
}

/* ==========================================================================
   RESPONSIVE MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 768px) {
    .feature-card-enhanced {
        padding: 2rem 1.25rem !important;
    }

    .feature-icon-v2 {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .trust-badges {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .trust-badge-divider {
        display: none;
    }

    .cta-gradient-enhanced {
        border-radius: 1.25rem !important;
    }

    .cta-btn-enhanced {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .cta-social-proof {
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .feature-subtext {
        font-size: 0.8125rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    .trust-badge-item {
        font-size: 0.8125rem;
    }

    .trust-badge-item i {
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    body.v2-homepage .bottom-nav-browse-menu,
    body.v2-homepage .bottom-nav-account-menu,
    body.v2-homepage .bottom-nav-general-menu {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        transform: translateX(0) translateY(10px) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.v2-homepage .bottom-nav-browse-menu.active,
    body.v2-homepage .bottom-nav-account-menu.active,
    body.v2-homepage .bottom-nav-general-menu.active {
        transform: translateX(0) translateY(0) !important;
    }

    body.v2-homepage .bottom-nav-browse-menu::before,
    body.v2-homepage .bottom-nav-account-menu::before,
    body.v2-homepage .bottom-nav-general-menu::before {
        display: none !important;
    }
}

