/* =========================
   Base / Reset
========================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9f8;
    color: #2e2e2e;
}

img {
    max-width: 100%;
    height: auto;
}

/* Shared content images inside sections */
.content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 24px;
}

@media (min-width: 769px) {
    .content-image {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================
   Header (Shared)
========================= */

header {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 12px auto 0;
}

/* =========================
   Header Variants
========================= */

.header-home { background-image: url('/img/bgsugamuxi.jpg'); }
.header-tours { background-image: url('/img/bgtours.jpg'); }
.header-goingout { background-image: url('/img/bggoingout.jpg'); }

/* =========================
   Page Header Overlays (Tours / Going Out)
========================= */

.tours-page header,
.goingout-page header {
    justify-content: flex-start;
    align-items: center;
}

.tours-page header .overlay,
.goingout-page header .overlay {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 8px;

    margin: 18vh auto 0;
    padding: 40px 30px 52px;

    max-width: 720px;
    width: calc(100% - 40px);
}

.tours-page header .overlay > *:last-child,
.goingout-page header .overlay > *:last-child {
    margin-bottom: 0;
}

/* =========================
   Header – Mobile
========================= */

@media (max-width: 768px) {
    header {
        align-items: center;
        justify-content: center;
        background-position: left center;
    }

    .header-home { background-position: left center; }
    .header-tours,
    .header-goingout { background-position: center top; }

    .tours-page header,
    .goingout-page header {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .tours-page header .overlay,
    .goingout-page header .overlay {
        margin-top: min(50vh, 320px);
        padding: 32px 22px 40px;
    }

    header h1 {
        font-size: 2.2rem;
        max-width: 100%;
    }

    header p {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

/* =========================
   Language Switcher
========================= */

.language-switcher {
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 9999;

    display: flex;
    gap: 8px;

    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 5px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.language-switcher .flag {
    width: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.language-switcher .flag:hover {
    transform: scale(1.1);
}

/* =========================
   Navigation (Desktop)
========================= */

nav.desktop-nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #0f5c4c;
    padding: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    text-align: center;
}

nav.desktop-nav a {
    color: white;
    text-decoration: none;
    margin: 0 14px;
    font-weight: bold;
}

nav.desktop-nav a:hover,
nav.desktop-nav a:focus {
    opacity: 0.9;
}

/* =========================
   Desktop Dropdown (Discover)
========================= */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropbtn {
    font: inherit;
    font-weight: bold;
    color: white;
    background: none;
    border: none;
    cursor: pointer;

    padding: 0;
    margin: 0 14px;
}

.nav-dropbtn:focus {
    outline: 2px solid rgba(255,255,255,0.65);
    outline-offset: 4px;
    border-radius: 6px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;

    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    min-width: 220px;
    background: #0f5c4c;
    border-radius: 10px;
    padding: 10px 0;

    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    z-index: 2000;
}

.nav-dropdown-menu a {
    display: block;
    margin: 0;
    padding: 10px 16px;
    white-space: nowrap;

    color: white;
    text-decoration: none;
    font-weight: 600;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: rgba(255,255,255,0.12);
    outline: none;
}

/* Desktop: hover opens dropdown */
@media (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    nav.desktop-nav {
        display: none;
    }
}

/* =========================
   Mobile Navigation
========================= */

.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10001;

    font-size: 20px;
    background: #0f5c4c;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 10000;

    width: 260px;
    height: 100%;
    padding: 60px 20px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    background: #0f5c4c;
    transition: left 0.3s ease;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav a {
    color: white;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    text-decoration: underline;
}

.close-menu {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile: show burger */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* =========================
   Mobile Discover Dropdown
========================= */

.mobile-discover-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.mobile-discover-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-left: 14px;
}

.mobile-discover-menu.open {
    display: flex;
}

.mobile-sub-link {
    display: block;
    padding-left: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.95;
}

/* =========================
   Sections & Content
========================= */

section {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    section {
        padding: 32px 16px;
    }
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #0f5c4c;
}

ul {
    line-height: 1.8;
}

/* =========================
   Cards
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 15px;
}

.card p {
    margin: 0 15px 20px;
    color: #555;
}

/* =========================
   Tour Button
========================= */

.tour-button-wrapper {
    margin: 24px 0;
    text-align: left;
}

.tour-link {
    display: inline-block;
    padding: 14px 24px;

    background-color: #2f6f5e;
    color: white;
    text-decoration: none;
    font-weight: 600;

    border-radius: 6px;
    box-sizing: border-box;

    transition: background-color 0.3s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.tour-link:hover {
    background-color: #245648;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.tour-link:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .tour-button-wrapper {
        text-align: center;
        padding: 0 16px;
    }

    .tour-link {
        display: block;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 16px;
        font-size: 1.1em;
        text-align: center;
    }
}

/* =========================
   Footer
========================= */

footer {
    background: #0f5c4c;
    color: white;
    text-align: center;
    padding: 32px 16px;
}

.footer-logo {
    height: 120px;
    margin-bottom: 12px;
}

.footer-tagline {
    margin: 6px 0 12px;
    font-weight: 500;
}

.footer-contact {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-contact a {
    color: #e6f2ef;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
}
