/* Main Styles for Rovinj Tours */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* anchor targets clear the fixed navbar */
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2a3340;
    padding-top: 80px; /* Space for fixed navbar */
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Liquid glass effect */
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

/* Bootstrap .container handles max-width, margin auto and horizontal padding */
.navbar-container {
    /* layout delegated to Bootstrap container + d-flex utilities */
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-links {
    /* layout delegated to Bootstrap d-flex gap-4 utilities */
}

.navbar-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #007bff;
}

/* Banner Styles */
@keyframes bannerReveal {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroTextFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -44%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.banner {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
    animation: bannerReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 700px;
    animation: heroTextFadeUp 1s ease-out 0.6s both;
}

.banner-text h1 {
    color: #fff;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.75);
    margin: 0 0 14px 0;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.65);
    margin: 0;
    line-height: 1.6;
}

/* ── Excursions Section ── */
.excursions-section {
    padding: 70px 20px 80px;
    background-color: #f8f9fa;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 50px;
    letter-spacing: 0.03em;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
    margin: 14px auto 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Tour Card ── */
.tour-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tour-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tour-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tour-card:hover .tour-card-img-wrap img {
    transform: scale(1.05);
}

.tour-card-body {
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.tour-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    text-align: center;
}

.tour-card-desc {
    font-size: 0.88rem;
    color: #555;
    text-align: center;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.tour-card-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.tour-card-meta span {
    background: #f0f4ff;
    color: #334;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.tour-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
}

.tour-card-price span {
    font-size: 0.82rem;
    font-weight: 400;
    color: #888;
}

.btn-tour {
    display: inline-block;
    padding: 10px 28px;
    background-color: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.25s ease, transform 0.2s ease;
    margin-top: auto;
}

.btn-tour:hover {
    background-color: #0b5ed7;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive: 2 columns on tablets */
@media (max-width: 991px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 575px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Private Tours Section ── */
.private-section {
    padding: 70px 20px 80px;
    background-color: #fff;
    text-align: center;
}

.private-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.private-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.private-card-img-wrap {
    overflow: hidden;
    min-height: 340px;
}

.private-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.private-card:hover .private-card-img-wrap img {
    transform: scale(1.05);
}

.private-card-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.private-card-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.private-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.private-highlights li {
    color: #444;
    font-size: 1.02rem;
    line-height: 1.5;
    padding-left: 4px;
}

@media (max-width: 767px) {
    .private-card {
        grid-template-columns: 1fr;
    }
    .private-card-img-wrap {
        min-height: 240px;
    }
    .private-card-body {
        padding: 28px 24px;
    }
}

/* ── Rent a Boat Section ── */
.rent-section {
    padding: 70px 20px 80px;
    background-color: #f8f9fa;
    text-align: center;
}

.rent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.rent-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.rent-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.rent-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rent-card:hover .rent-card-img-wrap img {
    transform: scale(1.05);
}

.rent-card-body {
    padding: 24px 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
}

.rent-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    text-align: left;
}

.rent-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.rent-specs li {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.rent-specs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-weight: 700;
    color: #1a1a2e;
    margin-right: 6px;
}

.rent-card-body .btn-tour {
    margin-top: auto;
    align-self: center;
}

@media (max-width: 767px) {
    .rent-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Contact Section ── */
.contact-section {
    padding: 70px 20px 80px;
    background-color: #1a1a2e;
    text-align: center;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-title::after {
    background-color: #0d6efd;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: background 0.25s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.11);
}

.contact-icon {
    font-size: 1.8rem;
    line-height: 1;
    color: #0d6efd;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0d6efd;
}

.contact-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Language Switcher ── */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    line-height: 1;
}

.lang-btn:hover,
.lang-btn.open {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.06);
    color: #0d6efd;
}

.lang-chevron {
    font-size: 11px;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.lang-btn.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    overflow: hidden;
    z-index: 1100;
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
    background-color: rgba(13, 110, 253, 0.07);
    color: #0d6efd;
}

.lang-option.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 600;
}

/* CSS-only language dropdown — works under SSR with no JavaScript. */
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    display: block;
}

.lang-switcher:hover .lang-btn,
.lang-switcher:focus-within .lang-btn {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.06);
    color: #0d6efd;
}

.lang-switcher:hover .lang-chevron,
.lang-switcher:focus-within .lang-chevron {
    transform: rotate(180deg);
}

/* Footer */
.site-footer {
    background: #0b2a3a;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 24px 16px;
    font-size: 14px;
    margin-top: 40px;
}

.site-footer a {
    color: #fff;
}

/* ── Contact links & map ── */
.contact-value a {
    color: inherit;
    text-decoration: none;
}

.contact-value a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.contact-map {
    margin-top: 40px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 35, 60, 0.1);
}

/* ── Language switcher (FA icons + codes) ── */
.lang-code {
    display: inline-block;
    min-width: 1.9em;
    font-weight: 700;
    font-size: 0.82em;
    opacity: 0.65;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 24, 0.92);
}

.lightbox.open {
    display: flex;
}

.lightbox-stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: min(1100px, 92vw);
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-counter {
    color: #c6d2e0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    z-index: 2001;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 575px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .contact-map iframe {
        height: 280px;
    }
}

/* ── Mobile navigation ── */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    width: 42px;
    height: 38px;
    font-size: 1.05rem;
    color: #333;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    border-color: #0d6efd;
    color: #0d6efd;
}

@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
    }

    .navbar-links {
        display: none !important;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0 !important;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px) saturate(1.8);
        -webkit-backdrop-filter: blur(16px) saturate(1.8);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
        padding: 8px 0;
    }

    .navbar-links.open {
        display: flex !important;
    }

    .navbar-links > a {
        padding: 13px 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-links > a:last-of-type {
        border-bottom: none;
    }

    .navbar-links .lang-switcher {
        padding: 12px 24px 8px;
    }

    .lang-dropdown {
        position: static;
        margin-top: 8px;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}
