/* Custom Header Redesign */

.main-header {
    margin: 0 !important;
    padding: 0 !important;
}

.page-wrapper {
    margin-top: 0 !important;
}

.header-top {
    background-color: #001140; /* Exact teal from image */
    color: #ffffff;
    padding: 2px 0; /* Slightly more padding for breathing room */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
}

.top-socials {
    display: flex;
    gap: 12px;
}

.top-socials a {
    color: white;
    font-size: 11px; /* Smaller icons */
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 22px; /* Smaller circles */
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.top-socials a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.top-tagline {
    font-size: 13px;
    font-weight: 500;
}

.top-btn-wrapper .btn-reservar {
    background-color: #ffffff;
    color: #001140;
    padding: 0px 10px; /* Minimal padding for ultra-thin bar */
    border-radius: 4px;
    font-weight: 800;
    font-size: 9px; /* Tiny text */
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-btn-wrapper .btn-reservar:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.main-header-custom {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.navbar-inner-custom {
    display: flex;
    justify-content: center; /* Center everything */
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-group {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-group.left {
    justify-content: flex-end;
}

.nav-group.right {
    justify-content: flex-start;
}

.nav-item-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #001140;
    transition: 0.3s;
    min-width: 80px;
}

.nav-item-custom i {
    font-size: 38px; /* Larger icons like in image */
    margin-bottom: 8px;
    opacity: 1;
}

.nav-item-custom span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-item-custom:hover {
    color: #002280; /* Slightly lighter navy for hover */
    transform: translateY(-3px);
}

.nav-item-custom:hover i {
    opacity: 1;
}

.logo-center {
    flex: 0 0 auto;
    margin: 0 60px;
    text-align: center;
}

.logo-center img {
    max-height: 80px;
    width: auto;
}

/* Hide original header elements */
.main-header .header-upper {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .main-header-custom {
        display: block !important;
        background: #fff;
        padding: 5px 0;
        position: relative;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }
    
    .navbar-inner-custom {
        display: flex;
        justify-content: space-between; /* Space logo left, toggle right */
        align-items: center;
        padding: 5px 15px;
        min-height: 50px;
    }

    .custom-navbar-toggle {
        position: static; /* Remove absolute positioning */
        background: transparent;
        border: none;
        color: #001140;
        font-size: 24px;
        padding: 5px;
        cursor: pointer;
        order: 2; /* Move to the right */
    }

    .logo-center {
        margin: 0 !important;
        order: 1; /* Move to the left */
    }

    .logo-center img {
        max-height: 45px !important;
    }

    /* Mobile Drawer */
    .navbar-collapse-custom {
        background: #fff;
        border-top: 1px solid #f0f0f0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-grid-mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 icons per row */
        gap: 15px;
        padding: 20px 15px;
    }

    .nav-grid-mobile .nav-item-custom {
        padding: 10px 5px;
        background: #f9f9f9;
        border-radius: 12px;
        min-width: auto;
    }

    .nav-grid-mobile .nav-item-custom i {
        font-size: 26px;
        margin-bottom: 5px;
    }

    .nav-grid-mobile .nav-item-custom span {
        font-size: 8px;
        text-align: center;
    }
}

/* Footer Social Icons */
.footer-section .social-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-section .social-container a {
    width: 36px;
    height: 36px;
    background: #001140;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.3s;
    text-decoration: none !important;
}

.footer-section .social-container a:hover {
    background: #002280;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 17, 64, 0.2);
}

/* New Event Card Design */
.event-card-new {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.event-card-new:hover {
    transform: translateY(-5px);
}

.event-img-top img {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    object-fit: cover;
    display: block;
}

.event-title-box {
    background: #008fa1;
    padding: 15px 10px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 15px 0 15px;
    border-radius: 10px;
}

.event-title-box a {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
}

.event-info-body {
    padding: 15px 15px 20px 15px;
    flex-grow: 1;
    text-align: center;
}

.info-line {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-line i {
    font-size: 16px;
    width: 20px;
    color: #008fa1;
}

.event-itinerary {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.itinerary-item {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
    line-height: 1.3;
}

.btn-more-info {
    display: block;
    background: #1cc2e6;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none;
    transition: background 0.3s;
    margin: 0 15px 15px 15px;
    border-radius: 8px;
}


.btn-more-info:hover {
    background: #17abc1;
    color: #fff;
}

@media (max-width: 575px) {
    .event-title-box {
        min-height: 60px;
    }
    .event-title-box a {
        font-size: 16px;
    }
}

.header-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 480px;
    background-color: transparent; /* Allows GIF behind to show */
}

.header-content .content {
    position: relative;
    z-index: 2;
    padding-top: 0; /* Moves carousel as high as possible */
}

@media (max-width: 767px) {
    .header-content {
        min-height: 250px;
    }
}

.fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 1s ease;
}

.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.header-wave svg {
    display: block;
    width: 100%;
    height: 120px; /* Bigger waves */
}

@media (max-width: 991px) {
    .header-wave {
        display: none !important;
    }
}

/* Promotional Box Styling */
.promo-box-custom {
    background: transparent; /* No background for desktop as it was */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: inline-block;
    width: 100%;
}

.promo-box-custom h2 {
    margin: 0 !important;
    color: #008fa1 !important;
    font-size: 28px !important; /* Original desktop size */
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

@media (max-width: 991px) {
    .promo-box-custom {
        background: rgba(255, 255, 255, 0.7); /* Transparent for mobile */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 20px 15px;
        border-radius: 15px;
        width: calc(100% - 30px);
        margin: 0 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Light shadow for mobile contrast */
    }
    .promo-box-custom h2 {
        font-size: 20px !important; /* Optimized mobile size */
    }
}


