/* --- 1. Clean Up the Core Fields Layout --- */
.article-details ul.fields-container {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Format each field entry block */
.article-details ul.fields-container li.field-entry {
    background: #fdfdfd;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.article-details .field-label {
    font-weight: 700;
    color: #111111;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0345bf; /* Uses your theme blue */
    padding-bottom: 0.25rem;
}

/* --- 2. Transforming the 7 Days into a Clean Opening Hours Card --- */
/* Target the fields group to isolate Monday-Sunday styling */
.field-entry.monday, 
.field-entry.tuesday, 
.field-entry.wednesday, 
.field-entry.thursday, 
.field-entry.friday, 
.field-entry.saturday, 
.field-entry.sunday {
    grid-column: span 1; /* Fits cleanly inside the grid layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem !important; /* Tighter padding for rows */
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 3px solid #eef2f5 !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid #f1f1f1 !important;
}

/* Style the text layout inside daily rows */
.field-entry.monday .field-label, 
.field-entry.tuesday .field-label, 
.field-entry.wednesday .field-label, 
.field-entry.thursday .field-label, 
.field-entry.friday .field-label, 
.field-entry.saturday .field-label, 
.field-entry.sunday .field-label {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    text-transform: capitalize !important;
    font-size: 1rem !important;
    color: #444444;
}

.field-entry.monday .field-value, 
.field-entry.tuesday .field-value, 
.field-entry.wednesday .field-value, 
.field-entry.thursday .field-value, 
.field-entry.friday .field-value, 
.field-entry.saturday .field-value, 
.field-entry.sunday .field-value {
    font-weight: 600;
    color: #222222;
}

/* Highlight "Closed" text in a soft red block */
.field-entry .field-value:contains("Closed"),
.field-entry.monday .field-value:has(text:contains("Closed")) {
    color: #d9534f;
}

/* --- 3. Style Feature Badges (Food & Building Amenities) --- */
.field-entry.food .field-value, 
.field-entry.building .field-value, 
.field-entry.payments .field-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Convert comma text into elegant pills if generated cleanly */
.field-entry.food .field-value, 
.field-entry.building .field-value,
.field-entry.payments .field-value {
    color: #444444;
    font-size: 0.9rem;
}

/* --- 4. Beautiful Contact Info Buttons --- */
.field-entry.phone, .field-entry.email {
    display: inline-flex;
    flex-direction: column;
}

.field-entry.phone a, .field-entry.email a, .field-entry.email joomla-hidden-mail a {
    display: inline-block;
    background: #0345bf;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
    margin-top: 0.25rem;
    text-align: center;
}

.field-entry.phone a:hover, .field-entry.email a:hover {
    background: #044cd0;
}

/* --- 5. Clean Structured Layout for the Menu Section --- */
.article-details h3 {
    font-size: 1.4rem;
    color: #111111;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-details ul {
    padding-left: 0;
    list-style: none;
}

.article-details ul li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #eeeeee;
    display: block;
}

/* Push item pricing right side for a real menu vibe */
.article-details ul li strong {
    color: #0345bf;
}