/* Mobile Responsive Navigation System */
/* Comprehensive mobile-friendly navigation with proper sizing and responsive design */

/* Base Navigation Styles */
.navbar {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 1rem;
    min-width: 0;
}

/* Logo Section - Responsive Sizing */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 0;
}

.navbar-logo img,
.navbar-logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    font-family: serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

/* Desktop Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.navbar-link:hover {
    color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.1);
}

.navbar-link.active {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
}

/* Action Buttons */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-primary {
    background-color: #B8860B;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid #B8860B;
}

.btn-primary:hover {
    background-color: #DAA520;
    border-color: #DAA520;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.3);
}

.btn-whatsapp {
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #D4AF37;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-link {
    display: block;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: #D4AF37;
    padding-left: 1rem;
}

.mobile-menu-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-actions .btn-primary,
.mobile-menu-actions .btn-whatsapp {
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Responsive Breakpoints */

/* Large Desktop Styles (1200px+) */
@media (min-width: 1200px) {
    .navbar-logo-text {
        font-size: 1.6rem;
    }
    
    .navbar-menu {
        gap: 2.5rem;
    }
}

/* Medium Desktop Styles (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .navbar-logo-text {
        font-size: 1.4rem;
    }
    
    .navbar-menu {
        gap: 1.8rem;
    }
}

/* Tablet Styles (768px - 1023px) */
@media (max-width: 1023px) {
    .navbar-container {
        padding: 0 1.5rem;
        height: 75px;
        gap: 0.8rem;
    }
    
    .navbar-logo img,
    .navbar-logo-img,
    img[alt*="Second Home Murree Logo"],
    img[alt*="Hotel Logo"] {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .navbar-logo-text {
        font-size: 1.2rem;
    }
    
    .navbar-menu {
        gap: 1.2rem;
    }
    
    .navbar-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
    
    .btn-primary,
    .btn-whatsapp {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Small Tablet Styles (900px - 1023px) */
@media (max-width: 900px) and (min-width: 768px) {
    .navbar-logo-text {
        font-size: 1.1rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .navbar-link {
        padding: 0.4rem 0.5rem;
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
    .navbar-container {
        height: 70px;
        padding: 0 1rem;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .navbar-actions .btn-primary,
    .navbar-actions .btn-whatsapp {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-logo img,
    .navbar-logo-img,
    img[alt*="Second Home Murree Logo"],
    img[alt*="Hotel Logo"],
    .navbar img,
    nav img[src*="Logo.png"],
    .h-12.navbar-logo img,
    img.h-12[src*="Logo.png"] {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }
    
    .navbar-logo-text {
        font-size: 1.1rem;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .navbar-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        top: 70px;
    }
}

/* Small Mobile Styles (max-width: 479px) */
@media (max-width: 479px) {
    .navbar-container {
        height: 65px;
        padding: 0 0.75rem;
    }
    
    .navbar-logo img,
    .navbar-logo-img,
    img[alt*="Second Home Murree Logo"],
    img[alt*="Hotel Logo"],
    .navbar img,
    nav img[src*="Logo.png"],
    .h-12.navbar-logo img,
    img.h-12[src*="Logo.png"] {
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }
    
    .navbar-logo-text {
        font-size: 1rem;
    }
    
    .navbar-logo {
        gap: 8px;
    }
    
    .mobile-menu {
        top: 65px;
    }
    
    .mobile-menu-content {
        padding: 0.75rem;
    }
    
    .mobile-menu-link {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
}

/* Extra Small Mobile (max-width: 359px) */
@media (max-width: 359px) {
    .navbar-container {
        height: 60px;
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .navbar-logo img,
    .navbar-logo-img,
    img[alt*="Second Home Murree Logo"],
    img[alt*="Hotel Logo"],
    .navbar img,
    nav img[src*="Logo.png"],
    .h-12.navbar-logo img,
    img.h-12[src*="Logo.png"] {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
    
    .navbar-logo-text {
        font-size: 0.85rem;
        letter-spacing: -0.5px;
    }
    
    .navbar-logo {
        gap: 6px;
    }
    
    .mobile-menu {
        top: 60px;
    }
}

/* Ultra-wide screens (1400px+) */
@media (min-width: 1400px) {
    .navbar-container {
        max-width: 1400px;
        padding: 0 2rem;
    }
    
    .navbar-logo-text {
        font-size: 1.75rem;
    }
    
    .navbar-menu {
        gap: 3rem;
    }
    
    .navbar-actions {
        gap: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
.navbar-link:focus,
.mobile-menu-link:focus,
.btn-primary:focus,
.btn-whatsapp:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid #000;
    }
    
    .navbar-link,
    .mobile-menu-link {
        color: #000;
    }
    
    .navbar-link:hover,
    .mobile-menu-link:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu {
        display: none;
    }
}

/* Additional Text Handling for "SECOND HOME MURREE" */
.navbar-logo-text {
    /* Ensure text never wraps */
    display: inline-block;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Force logo sizes - Override any conflicting CSS including Tailwind */
.navbar-logo img,
.navbar-logo-img,
img[alt*="Second Home Murree Logo"],
img[alt*="Hotel Logo"],
.navbar img,
nav img[src*="Logo.png"] {
    height: 55px !important;
    width: auto !important;
    min-height: 55px !important;
    max-height: 55px !important;
}

/* Override Tailwind height classes specifically */
.h-12.navbar-logo img,
.h-10.navbar-logo img,
.h-8.navbar-logo img,
img.h-12[src*="Logo.png"],
img.h-10[src*="Logo.png"],
img.h-8[src*="Logo.png"] {
    height: 55px !important;
}

/* Specific handling for very narrow screens */
@media (max-width: 320px) {
    .navbar-logo-text {
        font-size: 0.75rem;
        letter-spacing: -0.8px;
        font-weight: 600;
    }
    
    .navbar-logo img,
    .navbar-logo-img,
    img[alt*="Second Home Murree Logo"],
    img[alt*="Hotel Logo"],
    .navbar img,
    nav img[src*="Logo.png"],
    .h-12.navbar-logo img,
    img.h-12[src*="Logo.png"] {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .navbar-logo {
        gap: 4px;
    }
}

/* Ensure proper spacing on all screen sizes */
@media (min-width: 768px) {
    .navbar-container {
        justify-content: space-between;
    }
    
    .navbar-logo {
        flex: 0 0 auto;
        max-width: 40%;
    }
    
    .navbar-menu {
        flex: 1 1 auto;
        justify-content: center;
        max-width: 50%;
    }
    
    .navbar-actions {
        flex: 0 0 auto;
        max-width: 30%;
        justify-content: flex-end;
    }
}