/* REPLACE THE MODAL SECTION IN YOUR styles-mobile.css WITH THIS */

@media (max-width: 768px) {
    .intro {
        padding: 1rem;
    }
    
    .logo-header {
        font-size: 2.5rem;
        top: 45%;
        white-space: nowrap;
    }
    
    .logo-header2 {
        top: 50%;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .logo-header3 {
        height: 300px;
        width: 350px;
        top: 53%;
    }

    /* Fix background image issues on mobile */
    .parallax-header {
        background-attachment: scroll;
        background-size: cover;
        background-position: left center;
        min-height: 60vh;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }

    /* IMPROVED MOBILE MODAL STYLES */
    .modal {
        padding: 0;
        overflow-y: auto;
    }
    
    .modal-content {
        margin: 2rem auto;
        width: 95%;
        height: auto;
        max-height: 90vh;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* Header stays fixed */
    .modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .close {
        font-size: 1.5rem;
        line-height: 1;
        padding: 0.25rem;
    }
    
    /* Scrollable body content with proper spacing */
    .modal-body {
        flex: 0 1 auto;
        padding: 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-height: 60vh;
    }
    
    /* Mobile image sizing with proper space */
    .modal-image-placeholder {
        height: 220px;
        flex-shrink: 0;
        margin-bottom: 0;
        border-radius: 8px;
        width: 100%;
        background-color: var(--stone-200);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--stone-500);
        font-style: italic;
        border: 2px dashed var(--stone-300);
        overflow: hidden;
    }
    
    .modal-image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    
    /* Mobile content organization with spacing */
    .modal-info {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile price styling with proper highlight */
    .modal-price {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--gold);
        margin: 0;
        padding: 0.75rem;
        text-align: center;
        background-color: var(--amber-50);
        border-radius: 8px;
        border: 2px solid var(--amber-200);
    }
    
    /* Mobile description with space */
    .modal-description {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--stone-700);
        margin: 0;
        text-align: left;
    }
    
    /* Mobile ingredients section with proper styling */
    .modal-ingredients {
        margin: 0;
        padding: 1rem;
        background-color: var(--amber-50);
        border-radius: 8px;
        border-left: 4px solid var(--gold);
    }
    
    .modal-ingredients h4 {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
        color: var(--amber-800);
    }
    
    .modal-ingredients p {
        font-size: 0.9rem;
        color: var(--stone-600);
        margin: 0;
        line-height: 1.4;
    }
    
    /* Mobile footer - fixed at bottom with space */
    .modal-footer {
        padding: 1.25rem;
        background-color: white;
        border-top: 1px solid var(--stone-200);
        flex-shrink: 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
    }

    /* Fix menu section mobile layout */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .menu-item-name {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .menu-item-price {
        font-size: 1.1rem;
        color: var(--gold);
        font-weight: 700;
    }
    
    .menu-item-desc {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .read-more-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 150px;
    }

    /* Fix hours section spacing */
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0;
    }
    
    .card {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .contact-value {
        word-break: break-word;
    }
    
    /* Fix map container */
    .map-container {
        margin: 1rem -0.5rem 0 -0.5rem;
        border-radius: 0;
    }
    
    .map-container iframe {
        height: 200px;
    }

    /* Additional mobile navigation fixes */
    .navbar {
        padding: 0 1rem;
        height: 70px;
    }
    
    .navbar.scrolled {
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .mobile-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar.scrolled + .mobile-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    /* Fix contact modal mobile layout */
    .contact-modal-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-section h3 {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .contact-info {
        font-size: 0.95rem;
        word-break: break-word;
    }
    
    .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Fix dishes grid mobile responsiveness */
    .featured-dishes {
        margin: 0 0.5rem 3rem 0.5rem;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .dish-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .dish-image {
        height: 180px;
    }
    
    .dish-card h4 {
        font-size: 1.1rem;
        padding: 1rem 1rem 0.5rem;
    }
    
    .dish-card p {
        padding: 0 1rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Prevent text overflow in all sections */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .menu-item-name,
    .menu-item-desc {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* RTL mobile fixes */
    html[dir="rtl"] .modal-header {
        text-align: right;
    }

    html[dir="rtl"] .modal-body {
        text-align: right;
    }

    html[dir="rtl"] .menu-item-header {
        align-items: flex-end;
    }
    
    html[dir="rtl"] .contact-item {
        text-align: right;
    }
}

@media (max-width: 480px) {
   .logo-header {
        font-size: 2.5rem;
        top: 45%;
        white-space: nowrap;
    }
    
    .logo-header2 {
        top: 50%;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .logo-header3 {
        height: 300px;
        width: 350px;
        top: 53%;
    }
    
    /* Smaller mobile modal adjustments */
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-image-placeholder {
        height: 180px;
    }
    
    .modal-price {
        font-size: 1.3rem;
        padding: 0.75rem;
    }
    
    .modal-description {
        font-size: 0.95rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
}

/* Very small screens (under 400px) */
@media (max-width: 400px) {
    .logo-header {
        font-size: 1.8rem;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* Responsive adjustments for dishes grid - moved to mobile section */
@media (max-width: 992px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== DESKTOP MEDIA QUERIES (768px and up) ===== */
@media (min-width: 768px) {
    .header-title {
        font-size: 5rem;
    }
    
    .header-subtitle {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: flex;
        gap: 1rem;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .language-switcher {
        display: flex;
    }
    
    .contact-modal-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .map-container iframe {
        height: 300px;
    }
    
}
