/*
 * Kombi With Us — colour & layout overrides
 * Loaded AFTER travlo/css/style.css
 * Only changes what differs from the original Travlo template
 */

/* ── BRAND COLOUR: blue → green ──────────────────────────────── */
.common_btn,
.main_menu .right_menu li .common_btn,
.filter_button .nav-link.active,
.nav-pills .nav-link.active {
    background: #2E7D32 !important;
    border-color: #2E7D32 !important;
}
.common_btn::after { background: #1b5e20 !important; }
.common_btn:hover  { background: #1b5e20 !important; }

a:hover,
.read_btn:hover,
.title:hover { color: #2E7D32 !important; }

.section_heading h2::after,
.section_heading h2 span::after { display:none; }

.section_heading h2 span,
.banner_text h1 span b,
.footer_copyright_text p span { color: #2E7D32 !important; }

/* ── NAVBAR: Book Now button ─────────────────────────────────── */
.kwu_booknow_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2E7D32;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .2s;
    margin-left: 8px;
}
.kwu_booknow_btn:hover { background: #1b5e20; color: #fff !important; }

/* ── NAVBAR + LOGO SIZING (header = footer) ──────────────────── */
/* Taller navbar so a larger, legible logo fits with a small gap top & bottom
   (breadcrumb pages already clear it — .breadcrumb_overlay has 180px top padding). */
/* Shorter bar + the logo straddling it: its centre sits on the bar's bottom edge,
   so half is inside the header and half overlaps the content below. `top` is
   always HALF the bar height (that's what puts the logo centre on the edge).
   Keeps the divider/border at bar height while the logo overflows freely. */
.main_menu { height: 76px; }
.main_menu .navbar-brand {
    height: 76px;
    display: flex;
    align-items: center;
}
.kwu_logo_header {
    height: 120px;          /* same size as the footer logo */
    width: auto;
    display: block;
    position: relative;
    top: 38px;              /* = 76 / 2 */
    z-index: 2;
}
.kwu_logo_footer { height: 120px; width: auto; }

@media (max-width: 991px) {
    /* Shorter bar (less white at the top), smaller logo, no divider next to it */
    .main_menu { height: 54px; }
    .main_menu .navbar-brand {
        height: 54px;
        border-right: 0;
        padding-right: 0;
        width: auto;
        align-items: flex-start;   /* âncora do logo no topo da barra (previsível) */
    }
    /* Pin the burger inside the white bar (the flex line is taller than the bar,
       which was pushing it below) and keep it off the right edge. */
    .main_menu .navbar-toggler {
        position: absolute;
        top: 27px;          /* = 54 / 2 → vertical centre of the bar */
        right: 16px;
        transform: translateY(-50%);
        margin: 0;
    }
    .kwu_logo_header {
        height: 88px;
        /* Negative pulls the logo up above the bar's top edge. Lower = higher. */
        top: -12px;
        margin-left: 6px;
    }
    .kwu_logo_footer { height: 104px; }
}

/* ── FOOTER TAGLINE — make it stand out a bit more ───────────── */
.kwu_footer_phrase {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
}

/* ── Remove the template's globe icon + its slot on the first right-menu item ── */
.main_menu .right_menu > li:first-child::after { content: none !important; display: none !important; }
.main_menu .right_menu > li:first-child { padding-left: 0 !important; }

/* ── LANGUAGE BUTTONS (EN | PT) ──────────────────────────────── */
.kwu_lang_btn {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    color: inherit;
    opacity: .55;
    transition: opacity .2s, color .2s;
    line-height: 1;
}
.kwu_lang_btn:hover,
.kwu_lang_btn.active { opacity: 1; color: #2E7D32 !important; }
.kwu_lang_sep { opacity: .4; font-size: 13px; }

/* ── HEADER SOCIAL ICONS ─────────────────────────────────────── */
.kwu_header_social { gap: 6px; }
.kwu_header_social_icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}
.kwu_header_social_icon:hover {
    background: #2E7D32;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── FLOATING BOOK NOW ───────────────────────────────────────── */
.kwu_floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    background: #2E7D32;
    color: #fff !important;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(46,125,50,.5);
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kwu_floating:hover {
    background: #1b5e20;
    transform: translateY(-3px);
    color: #fff !important;
    box-shadow: 0 12px 36px rgba(46,125,50,.55);
}

/* ── HERO VIDEO ──────────────────────────────────────────────── */
.kwu_video_hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    overflow: hidden;
}
.kwu_video_hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Stay hidden — the poster photo in .kwu_video_fallback shows — until the video
       actually starts PLAYING (has a painted frame). Prevents the "1920x830"
       dimension placeholder from ever flashing. If it never plays, the photo stays. */
    opacity: 0;
    transition: opacity .5s ease;
}
.kwu_video_hero video.is-ready { opacity: 1; }
.kwu_video_fallback {
    position: absolute;
    inset: 0;
    background: url('../../travlo/images/video_bg.jpg') center/cover no-repeat;
}
.kwu_video_hero .banner_overlay {
    position: absolute;
    inset: 0;
    /* Slightly lighter so the video reads brighter/sharper while keeping text legible */
    background: rgba(0,0,0,.42);
    display: flex;
    align-items: center;
}

/* ── SUPPORT LOGOS STRIP ─────────────────────────────────────── */
.kwu_support_strip {
    background: #f5f8f5;
    padding: 16px 0;
    border-bottom: 1px solid #ddeedd;
}
.kwu_support_strip .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.kwu_support_strip p {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    white-space: nowrap;
}
.kwu_support_badge {
    background: #fff;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #2E7D32;
}

/* ── GALLERY GRID ────────────────────────────────────────────── */
.kwu_gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 44px;
}
.kwu_gallery_item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 230px;
    cursor: pointer;
}
.kwu_gallery_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .4s;
    display: block;
}
.kwu_gallery_item:hover img { transform: scale(1.07); }
.kwu_gallery_overlay {
    position: absolute;
    inset: 0;
    background: rgba(46,125,50,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.kwu_gallery_item:hover .kwu_gallery_overlay { background: rgba(46,125,50,.35); }
.kwu_gallery_overlay i {
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transform: scale(.7);
    transition: all .3s;
}
.kwu_gallery_item:hover .kwu_gallery_overlay i { opacity: 1; transform: scale(1); }

/* ── FOOTER SOCIAL ───────────────────────────────────────────── */
.kwu_footer_social_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.kwu_footer_social_row p {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.7) !important;
    margin: 0 !important;
}
.kwu_social_icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.kwu_social_icon:hover { background: #2E7D32; color: #fff; transform: translateY(-2px); }

/* ── FOOTER SEALS (Madeira Islands + Turismo de Portugal) ────── */
.kwu_footer_seals {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 18px;
}
.kwu_footer_seals img { height: 38px; width: auto; display: block; }

/* ── CO-FINANCING BAR (Madeira 2030, white version) ──────────── */
.kwu_cofin_bar {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
}

/* ── FOOTER SPACING — reduce black area above the logo ───────── */
footer.pt_100 { padding-top: 52px; }

/* ── EVENT TYPE CHECKBOXES ───────────────────────────────────── */
.kwu_event_types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.kwu_event_tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #040618;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    user-select: none;
}
.kwu_event_tag input[type="checkbox"] { display: none; }
.kwu_event_tag.checked,
.kwu_event_tag:has(input:checked) {
    border-color: #2E7D32;
    background: #e8f5e9;
    color: #2E7D32;
}

/* ── CONSENT CHECKBOXES ──────────────────────────────────────── */
.kwu_consent_box {
    background: #f5f8f5;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.kwu_consent_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.kwu_consent_item:last-child { margin-bottom: 0; }
.kwu_consent_item input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    margin-top: 3px;
    accent-color: #2E7D32;
    flex-shrink: 0;
    cursor: pointer;
}
.kwu_consent_item label {
    font-size: 13px;
    color: #747D87;
    line-height: 1.65;
    cursor: pointer;
}
.kwu_consent_item label a { color: #2E7D32; }

/* ── SUBMIT BUTTON DISABLED STATE ────────────────────────────── */
.kwu_submit_disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ── WHATSAPP BUTTON ─────────────────────────────────────────── */
.kwu_whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.kwu_whatsapp:hover { background: #1da851; color: #fff; }

/* ── ALERT MESSAGES (success flash) ─────────────────────────── */
.alert.m-0 { border-radius: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .kwu_gallery_grid { grid-template-columns: repeat(2, 1fr); }
    .kwu_floating { bottom: 16px; right: 16px; padding: 11px 20px; font-size: 12px; }
}
@media (max-width: 575px) {
    .kwu_gallery_grid { grid-template-columns: 1fr; }
    .kwu_support_strip .container { gap: 10px; }
}
