@charset "UTF-8";
/***!  /templates/jl_simpli_lite/css/mod_articles/restaurants.css?d0b218  !***/

/**
 * Restaurants Module - Compact Layout Styles
 * For use with mod_articles/restaurants.php layout
 * Joomla 6 - Articles Module (Dynamic Mode)
 * @version 1.0 - Compact version for Restaurants
 */

/* ==========================================================================
   Restaurants Wrapper
   ========================================================================== */

.restaurants-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.1rem 0.75rem;
}

/* ==========================================================================
   Filter Section - Compact
   ========================================================================== */

.restaurants-filters-container {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); /* Orange gradient */
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.25);
}

.filters-header h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.filters-subtitle {
    margin: 0 0 0.75rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Hide filter controls and results count */
.filter-controls,
.results-count,
.search-filter {
    display: none !important;
}

/* ==========================================================================
   Popular Tags Section
   ========================================================================== */

.popular-tags-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-tags-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: white;
}

.popular-tags-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.tag-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tag-button.active {
    background: white;
    color: #dd6b20; /* Orange color */
    border-color: white;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.tag-button .tag-count {
    opacity: 0.8;
    font-size: 0.75em;
}

.tag-button.active .tag-count {
    opacity: 1;
    font-weight: 600;
}

.tag-button:active {
    transform: translateY(0);
}

/* ==========================================================================
   Restaurants Grid - Compact Cards
   ========================================================================== */

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.restaurant-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.restaurant-card.hidden {
    display: none;
}

.restaurant-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.restaurant-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Restaurant Image - 16:9 LANDSCAPE (No Tags)
   ========================================================================== */

.restaurant-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    aspect-ratio: 16 / 9;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.restaurant-card:hover .restaurant-image img {
    transform: scale(1.08);
}

/* Remove rating badge */
.restaurant-rating-badge {
    display: none;
}

/* ==========================================================================
   Restaurant Content - Compact with Tags Below Title
   ========================================================================== */

.restaurant-content {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc; /* Very light blue-gray background */
    border-radius: 0 0 10px 10px; /* Match card rounding on bottom */
}

.restaurant-title {
    margin: 0 0 0.5rem 0; /* Add bottom margin for spacing */
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    flex-grow: 0; /* Change from 1 to 0 so tags appear below */
}

/* ==========================================================================
   Restaurant Tags - Now in Content Area Below Title
   ========================================================================== */

.restaurant-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.restaurant-tag {
    background: #3182ce; /* Blue background */
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1;
    border: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.restaurant-tag:hover {
    background: #2c5282; /* Darker blue on hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.restaurant-tag-more {
    background: #dd6b20; /* Orange color for "more" tag */
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
}

.restaurant-tag-more:hover {
    background: #c05621; /* Darker orange on hover */
}

/* ==========================================================================
   Restaurant Footer - REMOVED
   ========================================================================== */

.restaurant-footer,
.view-details {
    display: none !important;
}

/* ==========================================================================
   No Results Message
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #718096;
    grid-column: 1 / -1;
}

.no-results svg {
    margin: 0 auto 0.75rem;
    opacity: 0.3;
    display: block;
    width: 48px;
    height: 48px;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    color: #4a5568;
}

.no-results p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {
    .restaurants-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .restaurants-wrapper {
        padding: 1.25rem 0.5rem;
    }
    
    .restaurants-filters-container {
        padding: 1rem;
        margin-bottom: 1.25rem;
        border-radius: 10px;
    }
    
    .filters-header h2 {
        font-size: 1.3rem;
    }
    
    .filters-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .restaurants-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .restaurants-filters-container {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .filters-header h2 {
        font-size: 1.2rem;
    }
    
    .popular-tags-buttons {
        gap: 0.3rem;
    }
    
    .tag-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .restaurant-content {
        padding: 0.625rem;
    }
    
    .restaurant-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .restaurant-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .restaurant-tags-container {
        gap: 0.2rem;
    }
}

@media (max-width: 576px) {
    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .restaurants-wrapper {
        padding: 0.75rem 0.375rem;
    }
    
    .restaurants-filters-container {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .filters-header h2 {
        font-size: 1.1rem;
    }
    
    .popular-tags-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .popular-tags-buttons {
        gap: 0.25rem;
    }
    
    .tag-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 18px;
    }
    
    .restaurant-content {
        padding: 0.5rem;
    }
    
    .restaurant-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .restaurant-tag {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .restaurants-filters-container {
        display: none;
    }
    
    .restaurant-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        height: auto;
    }
    
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .restaurant-image {
        aspect-ratio: 16 / 9;
    }
    
    .restaurant-content {
        background: #fff;
    }
    
    .restaurant-tags-container {
        position: static;
        margin-top: 0.25rem;
    }
    
    .restaurant-tag {
        background: #e5e5e5;
        color: #333;
        border: 1px solid #ccc;
    }
    
    .restaurant-tag-more {
        background: #f0f0f0;
        color: #333;
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

.restaurant-card-link:focus {
    outline: 2px solid #ed8936;
    outline-offset: 1px;
    border-radius: 10px;
}

.tag-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .restaurant-card,
    .restaurant-image img,
    .tag-button,
    .restaurant-tag {
        transition: none;
    }
    
    .restaurant-card:hover {
        transform: none;
    }
    
    .restaurant-card:hover .restaurant-image img {
        transform: none;
    }
    
    .tag-button:hover {
        transform: none;
    }
    
    .restaurant-tag:hover {
        transform: none;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .restaurant-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .restaurant-content {
        background: #2d3748; /* Same as card background */
    }
    
    .restaurant-title {
        color: #f7fafc;
    }
    
    /* Update tag colors for dark mode */
    .restaurant-tag {
        background: #4299e1; /* Lighter blue for dark mode */
        color: white;
    }
    
    .restaurant-tag:hover {
        background: #3182ce;
    }
    
    .restaurant-tag-more {
        background: #ed8936; /* Lighter orange for dark mode */
    }
    
    .restaurant-tag-more:hover {
        background: #dd6b20;
    }
    
    .no-results h3 {
        color: #e2e8f0;
    }
    
    .no-results p {
        color: #cbd5e0;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Ensure consistent card heights */
.restaurant-card {
    min-height: auto;
}

/* Improve image loading */
.restaurant-image img {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Better focus states for keyboard navigation */
.restaurant-card-link:focus-visible {
    outline: 2px solid #ed8936;
    outline-offset: 1px;
    border-radius: 10px;
}

/* Loading state for cards */
.restaurant-card.loading .restaurant-image {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

/* Ensure grid items don't overflow */
.restaurant-card > * {
    min-width: 0;
}

/* Tag visibility enhancements - REMOVED since tags are now in content area */
/*
.restaurant-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

.restaurant-tags {
    z-index: 2;
}
*/
