:root {
    --epeixao-blue-light: #3cc0ed;
    --epeixao-blue-navy: #005f9e;
    --epeixao-orange: #ea4e1b;
    --epeixao-white: #ffffff;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--epeixao-blue-navy);
}

h1 {
    color: var(--epeixao-orange);
}

/* Custom Utilities */
.text-orange {
    color: var(--epeixao-orange) !important;
}

.text-navy {
    color: var(--epeixao-blue-navy) !important;
}

.bg-navy {
    background-color: var(--epeixao-blue-navy) !important;
    color: white;
}

.bg-orange {
    background-color: var(--epeixao-orange) !important;
}

.bg-blue-light {
    background-color: var(--epeixao-blue-light) !important;
    color: white;
}

.btn-orange {
    background-color: var(--epeixao-orange);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-orange:hover {
    background-color: #d14012;
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: var(--epeixao-blue-navy);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--epeixao-blue-light) !important;
}

/* Hero Section */
.hero-section {
    background: url('https://epeixao.com/v2/hero-imagem-home-inicial.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 140px;
    /* Extra padding at bottom for search widget overlap */
    color: white;
}

.hero-section h1,
.hero-section p {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8); /* Garante legibilidade sem o filtro */
}

/* Search Bar Section (for listing pages - WITH floating effect) */
.search-bar-section {
    background: linear-gradient(rgba(0, 95, 158, 0.7), rgba(0, 95, 158, 0.7)), url('https://images.unsplash.com/photo-1596423736236-55b878c6939d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 60px 0 80px;
    /* Compact but still allows floating */
    color: white;
}

/* Search Widget (Boleta) */
.search-widget {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Remove floating effect for search widget in listing pages */
.search-bar-section .search-widget {
    margin-top: 0;
}

.search-widget label {
    font-weight: 600;
    color: var(--epeixao-blue-navy);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--epeixao-blue-light);
    box-shadow: 0 0 0 0.25rem rgba(60, 192, 237, 0.15);
}

/* USP Section */
.usp-icon-box {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.usp-icon-box:hover {
    transform: translateY(-5px);
}

.usp-icon {
    font-size: 2.5rem;
    color: var(--epeixao-blue-light);
    margin-bottom: 15px;
    display: inline-block;
}

/* Offers Section */
.offer-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 250px;
    color: white;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: scale(1.02);
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.offer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--epeixao-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Destinations Section */
.destination-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.destination-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destination-item:hover img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 95, 158, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.destination-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Boat Cards (Grid) */
.boat-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.boat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.boat-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.boat-card:hover img {
    transform: scale(1.1);
}

.boat-card-body {
    padding: 20px;
}

.review-score {
    background-color: var(--epeixao-blue-navy);
    color: white;
    padding: 4px 8px;
    border-radius: 6px 6px 6px 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.boat-price {
    color: var(--epeixao-blue-navy);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Boat Cards (Horizontal - Listing) */
.boat-card-horizontal {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: row;
    min-height: 220px;
}

.boat-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.boat-img-wrapper {
    width: 35%;
    position: relative;
    overflow: hidden;
    /* Ensure zoom stays within bounds */
}

.boat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.boat-card-horizontal:hover .boat-img-wrapper img {
    transform: scale(1.1);
}

.boat-info {
    padding: 20px;
    width: 40%;
    border-right: 1px solid #f0f0f0;
}

.boat-price-action {
    padding: 20px;
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    background-color: #fcfcfc;
}

.review-badge {
    background-color: var(--epeixao-blue-navy);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.price-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--epeixao-blue-navy);
}

/* Responsive adjustments for Horizontal Card */
@media (max-width: 768px) {
    .boat-card-horizontal {
        flex-direction: column;
    }

    .boat-img-wrapper,
    .boat-info,
    .boat-price-action {
        width: 100%;
        border-right: none;
    }

    .boat-img-wrapper {
        height: 200px;
    }

    .boat-price-action {
        align-items: flex-start;
        text-align: left;
        border-top: 1px solid #f0f0f0;
    }
}

/* Reviews Section */
.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--epeixao-blue-navy);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(60, 192, 237, 0.1);
    color: var(--epeixao-blue-navy);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(60, 192, 237, 0.1);
}

/* Ecosystem Section */
.ecosystem-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    border-left: 5px solid var(--epeixao-blue-light);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ecosystem-card:hover {
    background: var(--epeixao-blue-navy);
    color: white;
    transform: translateY(-3px);
}

.ecosystem-card:hover h4 {
    color: white;
}

.ecosystem-card h4 {
    color: var(--epeixao-blue-navy);
}

/* Gallery Mosaic (Boat Detail) */
.gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-item img:hover {
    opacity: 0.9;
}

.gallery-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Large image on left */

/* Content Sections (Boat Detail) */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Sticky Sidebar (Boat Detail) */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    /* Adjust based on navbar height */
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.price-large-detail {
    font-size: 2rem;
    font-weight: 800;
    color: var(--epeixao-blue-navy);
}

/* Amenities Icons (Boat Detail) */
.amenity-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
}

.amenity-item i {
    font-size: 1.2rem;
    color: var(--epeixao-blue-light);
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

/* Filters Sidebar (Listing) */
.filters-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--epeixao-blue-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
footer {
    background-color: var(--epeixao-blue-navy);
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--epeixao-blue-light);
}

/* Loading Bar */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--epeixao-orange);
    z-index: 9999;
    transition: width 0.4s ease;
}

/* Custom styles for Nav Tabs in catalogo-cidades.php */
.nav-tabs {
    border-bottom: 2px solid var(--epeixao-blue-light);
}

.nav-tabs .nav-link {
    color: var(--epeixao-blue-navy) !important;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 10px 20px;
}

.nav-tabs .nav-link:hover {
    color: var(--epeixao-orange);
    border-color: var(--epeixao-orange);
}

.nav-tabs .nav-link.active {
    color: var(--epeixao-orange);
    background-color: transparent;
    border-color: var(--epeixao-orange);
    border-bottom: 2px solid var(--epeixao-orange);
}

/* Search Results Dropdown */
#search-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#search-results .dropdown-header {
    font-weight: 700;
    color: var(--epeixao-orange);
    padding: 10px 15px;
    font-size: 0.9rem;
}

#search-results .dropdown-item {
    padding: 10px 15px;
    font-weight: 500;
    transition: background-color 0.2s;
}

#search-results .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Sobre Page Specific Styles */
.sobre-hero-section {
    background: linear-gradient(rgba(0, 95, 158, 0.6), rgba(0, 95, 158, 0.6)), url('https://images.unsplash.com/photo-1604357209793-f5d7b1d4b7b6?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--epeixao-white);
    text-align: center;
    padding: 100px 20px;
}

.sobre-hero-section h1 {
    font-size: 3rem;
    color: var(--epeixao-white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.sobre-hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.mission-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.mission-content,
.mission-image {
    flex: 1;
    min-width: 300px;
}

.mission-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.values-section {
    background-color: #f8f9fa;
    /* Using a light gray */
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.value-item {
    padding: 20px;
}

.value-item svg {
    width: 50px;
    height: 50px;
    color: var(--epeixao-blue-light);
    /* Correct variable */
    margin-bottom: 1rem;
}

.timeline-section {
    position: relative;
    padding: 60px 0;
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--epeixao-blue-light);
    /* Correct variable */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-content {
    padding: 25px;
    background-color: #ffffff;
    /* White background for cards */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--epeixao-white);
    /* Correct variable */
    border: 4px solid var(--epeixao-blue-light);
    /* Correct variable */
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.team-section {
    text-align: center;
    background-color: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.team-card {
    background-color: var(--epeixao-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--epeixao-blue-light);
}

.team-card a {
    color: var(--epeixao-blue-light);
    text-decoration: none;
    font-weight: 600;
}

.cta-section {
    background-color: var(--epeixao-blue-navy);
    /* Correct variable */
    color: var(--epeixao-white);
    /* Correct variable */
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--epeixao-white);
    /* Correct variable */
    font-size: 2.5rem;
}

.cta-button {
    background-color: var(--epeixao-orange);
    /* Use brand orange */
    color: var(--epeixao-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid var(--epeixao-orange);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--epeixao-orange);
    /* Correct variable */
}

/* Page Pesquisa Styles */
.page-pesquisa .search-bar-section {
    padding: 80px 0 100px;
    background: linear-gradient(rgba(0, 95, 158, 0.8), rgba(0, 95, 158, 0.8)), url('https://images.unsplash.com/photo-15442636331-e26879cd4d9b?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.page-pesquisa .destination-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-pesquisa .destination-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.page-pesquisa .destination-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}



@media (max-width: 768px) {
    .sobre-hero-section h1 {
        font-size: 2.5rem;
    }

    .mission-section {
        flex-direction: column;
    }

    .timeline-container::after {
        left: 10px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-right: 10px;
        /* Reset padding for both */
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 1px;
    }
}

/* Lazy Loading Image Placeholder */
.image-placeholder {
    background-color: #eee;
    /* Cor de fundo do placeholder */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Animação de brilho (shimmer) */
.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Estilo da imagem dentro do contêiner */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Começa invisível */
    transition: opacity 0.5s;
    /* Efeito de fade-in */
}

/* Quando a imagem carregar, ela se tornará visível */
.image-placeholder.loaded img {
    opacity: 1;
}

/* Esconde a animação de brilho quando a imagem carrega */
.image-placeholder.loaded::after {
    display: none;
}

/* Fix for FAQ Tabs visibility - Overriding global nav-link styles */
#faqTabs .nav-link {
    color: var(--epeixao-blue-navy) !important;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    font-weight: 600;
}

#faqTabs .nav-link:hover {
    background-color: #e9ecef;
    color: var(--epeixao-orange) !important;
}

#faqTabs .nav-link.active {
    background-color: var(--epeixao-blue-navy) !important;
    color: white !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 15px;
        right: 15px;
    }
}

/* Passaporte Page Specific Styles */
.border-top-orange {
    border-top: 5px solid var(--epeixao-orange) !important;
}

.border-top-navy {
    border-top: 5px solid var(--epeixao-blue-navy) !important;
}

.bg-orange-light {
    background-color: rgba(234, 78, 27, 0.1) !important;
    color: var(--epeixao-orange);
}

.bg-navy-light {
    background-color: rgba(0, 95, 158, 0.1) !important;
    color: var(--epeixao-blue-navy);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.tracking-wider {
    letter-spacing: 0.1em;
}