/* ============================================
   Nolo Belvedere - Custom Styles
   ============================================ */

:root {
    --primary: #125294;
    --primary-dark: #0d3d6f;
    --accent: #d4a843;
    --accent-light: #e8c96a;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
}

/* --- General --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 2rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--white);
}

/* --- Navbar --- */
.navbar {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    transition: height 0.3s;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.8rem 1rem !important;
    color: var(--dark) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar .lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar .lang-switch a {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--gray);
}

.navbar .lang-switch a.active {
    background: var(--primary);
    color: var(--white);
}

/* --- Hero --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 82, 148, 0.6) 0%, rgba(26, 26, 46, 0.7) 100%);
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

#hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

#hero .btn-hero {
    font-size: 1.1rem;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Booking Bar (inside hero, full width at bottom) --- */
#booking-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(18, 82, 148, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 0;
    margin-top: auto;
}

#booking-bar .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

#booking-bar .form-control {
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 1rem;
}

#booking-bar .btn-book {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    transition: background 0.3s;
    white-space: nowrap;
}

#booking-bar .btn-book:hover {
    background: var(--accent-light);
}

/* --- About --- */
#about {
    background: var(--white);
}

#about .about-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#about .about-img img {
    transition: transform 0.5s;
}

#about .about-img:hover img {
    transform: scale(1.05);
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-box h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* --- Fleet --- */
#fleet {
    background: var(--light);
}

.fleet-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.fleet-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.fleet-card .card-body {
    padding: 1.5rem;
}

.fleet-card .card-title {
    color: var(--primary);
    font-weight: 700;
}

/* --- Prices --- */
#prices {
    background: var(--white);
}

.price-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.price-table .table {
    margin-bottom: 0;
}

.price-table .table thead th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
}

.price-table .table tbody td {
    padding: 15px 20px;
    border-color: #eee;
    vertical-align: middle;
}

.price-table .table tbody tr:hover {
    background: rgba(18, 82, 148, 0.03);
}

.price-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.price-highlight .price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-highlight .price-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Gallery --- */
#gallery {
    background: var(--light);
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 82, 148, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* --- Contact --- */
#contact {
    background: var(--white);
}

.contact-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-info-box i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 30px;
    text-align: center;
    margin-top: 3px;
}

.contact-info-box h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid #ddd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(18, 82, 148, 0.15);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* --- Footer --- */
#footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

#footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

#footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

#footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

#footer a:hover {
    color: var(--accent);
}

#footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

#footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 8px;
    transition: background 0.3s;
}

#footer .social-links a:hover {
    background: var(--primary);
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.97);
    color: var(--white);
    z-index: 9999;
    padding: 20px 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

#cookie-banner p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

#cookie-banner .btn {
    margin: 3px;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 6px;
}

.cookie-settings-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.cookie-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
}

/* --- Lightbox Modal --- */
#lightboxModal .modal-dialog {
    max-width: 90%;
}

#lightboxModal .modal-content {
    background: transparent;
    border: none;
}

#lightboxModal .modal-body {
    padding: 0;
    text-align: center;
}

#lightboxModal .modal-body img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
}

#lightboxModal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    filter: invert(1);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.2rem;
    }

    #booking-bar {
        margin-top: 0;
        border-radius: 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .gallery-item img {
        height: 200px;
    }

    #booking-bar .btn-book {
        width: 100%;
        margin-top: 10px;
    }
}

/* --- Form Alert --- */
.form-alert {
    display: none;
    margin-top: 1rem;
}

.form-alert.show {
    display: block;
}

/* --- Sanification Badge --- */
.sanification-badge {
    max-width: 150px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.sanification-badge:hover {
    opacity: 1;
}

/* --- Mobile Booking Bar (fixed bottom) --- */
#booking-bar-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--primary);
    padding: 10px 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#booking-bar-mobile .form-control {
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
}

#booking-bar-mobile .btn-book {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

#booking-bar-mobile .btn-book:hover {
    background: var(--accent-light);
}

/* WhatsApp floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Mobile adjustments for fixed bottom bar */
@media (max-width: 767px) {
    body {
        padding-bottom: 62px;
    }

    /* Cookie banner sits ABOVE the booking bar */
    #cookie-banner {
        bottom: 62px;
    }

    .whatsapp-float {
        bottom: 80px;
        left: 20px;
    }

    .back-to-top {
        bottom: 75px;
    }
}
