/* Navigation Styles - cottages.com inspired dark header */
* {
    box-sizing: border-box;
}

/* Navigation Bar */
.modern-navbar {
    position: static;
    background: #79b4ba;
    transition: all 0.3s ease;
}

.modern-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Container - top row with logo + links */
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    max-height: 60px;
    width: auto;
    max-width: 300px;
    filter: brightness(0) invert(1);
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-link-highlight {
    color: #ffffff;
    font-weight: 600;
}

.nav-link-highlight:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Search Bar Strip */
.nav-search-bar {
    background: #f0f0f0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
}

.nav-search-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 56px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.nav-search-field {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    flex: 1;
}

.nav-search-field i {
    font-size: 15px;
    color: #aaa;
    flex-shrink: 0;
}

.nav-search-input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    width: 100%;
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: #aaa;
}

.nav-search-input-sm {
    max-width: 80px;
}

.nav-search-divider {
    width: 1px;
    height: 28px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.nav-search-btn {
    background: #f5790c;
    color: white;
    border: none;
    padding: 0 28px;
    height: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.nav-search-btn:hover {
    background: #f5650c;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #79b4ba;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 99999;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-brand img {
    filter: brightness(0) invert(1);
}

.mobile-close {
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    padding: 12px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: #6ec6d6;
    color: #ffffff;
}

/* No body offset needed - navbar is not fixed */

/* Responsive Design */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        height: 60px;
    }

}

@media (max-width: 600px) {
    .nav-search-guests {
        display: none;
    }

    .nav-search-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }
}

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

/* Focus styles for accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
.mobile-menu-toggle:focus,
.mobile-close:focus {
    outline: 2px solid #6ec6d6;
    outline-offset: 2px;
}
