/* ============================================
   GLOBAL & SHARED STYLES
   ============================================ */

/* Base HTML/Body styles */
body {
    font-family: 'Playfair Display', serif; /* Elegant serif font */
    background-color: #ffffff; /* White background to match page */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
}

html {
    height: 100%; /* Full height for the root elements */
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background-color: #ffffff;
}

html, body {
    display: flex;
    flex-direction: column;
}

.body-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* This makes the body-content fill the viewport height */
    margin: 0;
    padding: 0;
}

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

/* Container styles */
.container {
    flex: 1 0 auto; /* This will make sure the container fills available space */
    padding: 0; /* Remove padding to eliminate gaps */
    margin: 0;
}


/* ============================================
   NAVIGATION BAR
   ============================================ */

/* Palette: sage + warm neutrals (aligned with hero / destinations) */
:root {
    --nav-accent: #6d7058;
    --nav-accent-muted: #84886b;
    --nav-surface: #faf9f7;
    --nav-surface-hover: #f3f2ee;
    --nav-border: rgba(109, 112, 88, 0.18);
    --nav-shadow: 0 12px 40px rgba(45, 42, 38, 0.08);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 0 var(--nav-border), 0 8px 24px rgba(45, 42, 38, 0.04) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Hamburger menu styling */
.navbar-toggler {
    border: none !important;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23A7AB8C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Logo positioning */
.navbar-brand.logo-brand {
    margin-left: 20px;
}

/* Navigation items - right justified */
.navbar-nav.ms-auto {
    margin-right: 15px;
}

.navbar-nav > .nav-item {
    margin-left: 30px;
    margin-right: 0;
}

.navbar-nav > .nav-item > .nav-link {
    padding: 10px 15px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #2a2a2a;
    transition: color 0.2s ease;
}

.navbar-nav > .nav-item > .nav-link:hover {
    color: var(--nav-accent);
}

/* Active page — sage accent, not bright pink */
.navbar-nav > .nav-item > .nav-link.active {
    font-weight: 600;
    color: var(--nav-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navigation flower styling */
.nav-flower {
    height: 20px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Dropdown — clean panels, sage accents */
.dropdown-toggle {
    text-decoration: none;
    color: inherit;
}

.dropdown-menu {
    border: 1px solid var(--nav-border) !important;
    background-color: #ffffff !important;
    box-shadow: var(--nav-shadow) !important;
    margin-top: 6px !important;
    padding: 6px 0 !important;
    min-width: 188px;
    border-radius: 2px !important;
    font-family: 'Playfair Display', serif;
}

.dropdown-menu .dropdown-divider {
    margin: 6px 12px;
    border-top: 1px solid var(--nav-border);
    opacity: 1;
}

.dropdown-item {
    padding: 10px 20px !important;
    color: #3a3a3a !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    font-weight: 400;
}

/* Dropdown flower styling */
.dropdown-flower {
    height: 17px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.92;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--nav-surface-hover) !important;
    color: #2a2a2a !important;
    outline: none !important;
}

.dropdown-item:active {
    background-color: var(--nav-surface) !important;
    color: #2a2a2a !important;
}

/* Active item — subtle bar + muted highlight */
.dropdown-item.active {
    font-weight: 600;
    color: var(--nav-accent) !important;
    background-color: var(--nav-surface) !important;
    border-left: 2px solid var(--nav-accent-muted);
    padding-left: 18px !important;
}

.dropdown-item.active:hover,
.dropdown-item.active:focus {
    background-color: var(--nav-surface-hover) !important;
    color: var(--nav-accent) !important;
}

/* Nested submenu */
.dropdown-submenu {
    position: relative;
    border-bottom: none !important;
}

.dropdown-submenu > .dropdown-item {
    border-bottom: none !important;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-right: 4px;
    border-radius: 2px !important;
    display: none;
    min-width: 196px;
    background-color: #ffffff !important;
    border: 1px solid var(--nav-border) !important;
    box-shadow: var(--nav-shadow) !important;
    padding: 6px 0 !important;
}

.dropdown-submenu > .dropdown-menu.show {
    display: block;
}

.dropdown-submenu > .dropdown-toggle {
    position: relative;
    padding-right: 28px !important;
}

.dropdown-submenu > .dropdown-toggle::after {
    content: "›";
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nav-accent-muted);
    opacity: 0.85;
}

/* MYNDIR chevron — softer than default Bootstrap */
.nav-item.dropdown > .nav-link.dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.12em;
    border-width: 0.28em 0.22em 0;
    opacity: 0.55;
}

/* ============================================
   CONTENT WRAPPER (SHARED)
   ============================================ */

.content-wrapper {
    flex: 1 0 auto;
    min-height: calc(100vh - 250px); /* Adjust based on header/footer height */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    margin-bottom: 0 !important;
    background-color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Marquee: smooth infinite scroll of town names */
.footer-marquee {
    overflow: hidden;
    white-space: nowrap;
    background-color: #f5f3f0;
    padding: 12px 0;
}

.footer-marquee-inner {
    display: inline-flex;
    animation: footer-marquee 40s linear infinite;
}

.footer-marquee-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: #6d7058;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

@keyframes footer-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* Footer bottom: logo, quote, copyright */
.footer-bottom {
    background-color: #FDEBEB;
    padding: 24px 20px 28px;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-logo img {
    display: block;
}

.footer-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #4B3D33;
    margin: 0 0 8px 0;
}

.footer-copyright {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    color: #6d7058;
    margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.profile_link {
    color: black;
    text-decoration: none;
}

.profile_pic {
    height: auto;
    width: auto;
    background-color: #ffffff;
    border-radius: 50%;
}

/* ============================================
   MOBILE RESPONSIVE (SHARED)
   ============================================ */

/* Mobile hamburger menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #faf9f7;
        border-radius: 0 0 2px 2px;
        padding: 8px 0 12px;
        margin-top: 2px;
        border-top: 1px solid var(--nav-border);
    }

    .navbar-nav {
        margin-left: 0 !important;
    }

    .navbar-nav > .nav-item {
        margin-left: 0;
    }

    .navbar-nav > .nav-item > .nav-link {
        padding: 14px 22px;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 1px solid var(--nav-border) !important;
        border-radius: 0 !important;
        margin: 4px 0 8px 20px !important;
        padding: 4px 0 !important;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        margin: 4px 0 8px 16px !important;
        border-radius: 0 !important;
        border-left: 1px solid rgba(109, 112, 88, 0.22) !important;
        padding: 4px 0 !important;
    }

    .dropdown-item {
        padding: 9px 16px !important;
        font-size: 0.85rem;
    }

    .dropdown-item.active {
        border-left-width: 2px !important;
        padding-left: 14px !important;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        content: "›";
        transition: transform 0.2s ease;
    }

    .nav-flower {
        height: 18px;
    }

    .dropdown-flower {
        height: 16px;
    }
}

@media (max-width: 768px) {
    .filter-btn, .search-input, .sort-dropdown {
        width: 100%;
    }
}
