/**
 * Destination Lunch - Frontend Styles
 */

.dest-lunch-container {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.dest-lunch-container * {
    box-sizing: border-box;
}

/* Controls & Filter Bar */
.dest-lunch-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Day Pills Navigation */
.dest-lunch-days-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
    scrollbar-width: thin;
}

.dest-lunch-day-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dest-lunch-day-pill:hover {
    background: #f1f5f9;
    color: #0a2540;
    border-color: #cbd5e1;
}

.dest-lunch-day-pill.active {
    background: #0a2540;
    color: #ffffff;
    border-color: #0a2540;
    box-shadow: 0 3px 10px rgba(10, 37, 64, 0.2);
}

.dest-lunch-today-dot {
    background: #b89a5b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.dest-lunch-day-pill.active .dest-lunch-today-dot {
    background: #ffffff;
    color: #0a2540;
}

/* Secondary Filters (Search, Town, Open Now) */
.dest-lunch-filters-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.dest-lunch-search-wrap {
    flex: 2;
    min-width: 220px;
}

.dest-lunch-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}

.dest-lunch-search-input:focus {
    border-color: #b89a5b;
    box-shadow: 0 0 0 3px rgba(184, 154, 91, 0.15);
}

.dest-lunch-select-wrap {
    flex: 1;
    min-width: 180px;
}

.dest-lunch-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #ffffff;
    cursor: pointer;
}

/* Toggle Switch: Öppet för lunch nu */
.dest-lunch-open-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.dest-lunch-open-toggle input {
    display: none;
}

.dest-lunch-toggle-track {
    width: 42px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 9999px;
    position: relative;
    transition: background 0.2s ease;
}

.dest-lunch-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dest-lunch-open-toggle input:checked + .dest-lunch-toggle-track {
    background: #10b981;
}

.dest-lunch-open-toggle input:checked + .dest-lunch-toggle-track::after {
    transform: translateX(18px);
}

.dest-lunch-toggle-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

/* Grid Layout for Cards */
.dest-lunch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Restaurant Card */
.dest-lunch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dest-lunch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dest-lunch-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Header */
.dest-lunch-card-header {
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.dest-lunch-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.dest-lunch-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.dest-lunch-card-title a {
    color: #0a2540;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dest-lunch-card-title a:hover {
    color: #b89a5b;
}

.dest-lunch-price-badge {
    background: #fdfbf7;
    border: 1px solid #ebd9b4;
    color: #8c6e28;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.dest-lunch-sub-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.dest-lunch-hours-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.dest-lunch-hours-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dest-lunch-hours-status.status-open {
    color: #059669;
}

.dest-lunch-hours-status.status-open .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dest-lunch-hours-status.status-closed {
    color: #64748b;
}

.dest-lunch-hours-status.status-closed .status-dot {
    background-color: #94a3b8;
}

/* Dishes Area */
.dest-lunch-dishes-area {
    padding: 16px 20px;
    flex: 1;
}

.dest-lunch-day-dishes {
    display: none;
}

.dest-lunch-day-dishes.active {
    display: block;
    animation: destFadeIn 0.25s ease-in-out;
}

@keyframes destFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dest-lunch-dish-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dest-lunch-dish-item {
    border-left: 3px solid #cbd5e1;
    padding-left: 10px;
}

.dest-lunch-dish-item.dest-type-meat {
    border-left-color: #ef4444;
}

.dest-lunch-dish-item.dest-type-fish {
    border-left-color: #0284c7;
}

.dest-lunch-dish-item.dest-type-veg {
    border-left-color: #10b981;
}

.dest-dish-name strong {
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.dest-dish-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.35;
}

/* Level 2 Fallback Box */
.dest-lunch-fallback-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.dest-fallback-text {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.dest-lunch-btn-ext {
    display: inline-block;
    background: #0a2540;
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.dest-lunch-btn-ext:hover {
    background: #b89a5b;
}

/* Footer / Inclusions */
.dest-lunch-card-footer {
    padding: 12px 20px;
    background: #fafaf9;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
}

.dest-lunch-inclusions-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
}

.dest-lunch-details-link {
    color: #b89a5b;
    text-decoration: none;
    font-weight: 700;
}

.dest-lunch-details-link:hover {
    text-decoration: underline;
}

/* Standalone Lunch Badge */
.dest-lunch-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-lunch-open {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-lunch-hours {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .dest-lunch-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dest-lunch-grid {
        grid-template-columns: 1fr;
    }
}
