/* Flæske Restaurant Database - Frontend Styles */
/* Mobile-first responsive design */

.flaeske-restaurant-database {
    width: 100%;
    padding: 15px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
    display: block;
    position: relative;
    max-width: 100%; /* Use percentage instead of viewport unit */
    overflow: hidden; /* Hide any potential overflow */
    contain: layout style; /* Improve rendering performance */
    /* Ensure strict containment */
    isolation: isolate;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .flaeske-restaurant-database {
        padding: 10px;
    }
}

@media (min-width: 768px) {
    .flaeske-restaurant-database {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .flaeske-restaurant-database {
        padding: 30px;
    }
}

/* Filters Section */
.flaeske-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .flaeske-filters {
        padding: 25px;
        margin-bottom: 35px;
    }
}

.flaeske-filters h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .flaeske-filters h3 {
        margin-bottom: 20px;
        font-size: 1.3rem;
        text-align: left;
    }
}

/* Filters Header with Add Restaurant Button */
.filters-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.postal-results {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    color: #8a6d00;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15);
}

.postal-results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.postal-results-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.postal-results-count {
    font-weight: 600;
    color: rgba(138, 109, 0, 0.85);
}

.postal-results-suggestions {
    margin-top: 12px;
}

.postal-suggestions-label {
    font-weight: 600;
    margin-right: 6px;
}

.postal-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.postal-suggestions-list li {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.postal-suggestions-list a {
    color: #8a6d00;
    text-decoration: none;
}

.postal-suggestions-list a:hover {
    text-decoration: underline;
}

.postal-results-no-suggestions {
    margin: 12px 0 0 0;
    font-weight: 500;
}

@media (max-width: 600px) {
    .postal-results {
        padding: 16px;
    }
    
    .postal-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.location-postal {
    margin-top: 6px;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .filters-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .filters-header h3 {
        margin: 0;
        flex: 1;
    }
}

/* Add Restaurant Button */
.add-restaurant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 768px) {
    .add-restaurant-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        border-radius: 30px;
    }
}

.add-restaurant-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1da089 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.add-restaurant-btn:active {
    transform: translateY(0);
}

.add-restaurant-btn .btn-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.add-restaurant-btn .btn-text {
    flex-shrink: 0;
}

/* Responsive text handling */
@media (max-width: 320px) {
    .add-restaurant-btn .btn-text {
        display: none;
    }
    
    .add-restaurant-btn {
        padding: 10px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    
    .add-restaurant-btn .btn-icon {
        font-size: 1.2em;
    }
}

/* Add subtle animation */
.add-restaurant-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.add-restaurant-btn:hover::before {
    left: 100%;
}

.add-restaurant-btn .btn-icon,
.add-restaurant-btn .btn-text {
    position: relative;
    z-index: 2;
}

.filter-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 900px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.filter-item input,
.filter-item select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    appearance: none;
}

.filter-item input::placeholder {
    color: #9aa5b1;
    font-weight: 500;
    opacity: 1;
}

@media (min-width: 768px) {
    .filter-item input,
    .filter-item select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .filter-item label {
        white-space: nowrap;
    }
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.filter-item select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Filter Buttons Section */
.filter-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-direction: column;
}

@media (min-width: 480px) {
    .filter-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .filter-buttons {
        justify-content: flex-start;
        margin-top: 25px;
    }
}

/* Inline filter buttons (within grid) */
.filter-buttons-item {
    display: flex !important;
    align-items: flex-end;
}

.filter-buttons-inline {
    display: flex;
    gap: 8px;
    width: 100%;
}

@media (max-width: 767px) {
    .filter-buttons-inline {
        flex-direction: column;
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .filter-buttons-inline {
        flex-direction: row;
        gap: 10px;
    }
}

.filter-buttons-inline .filter-button {
    flex: 1;
    min-width: auto;
}

@media (min-width: 768px) {
    .filter-buttons-inline .filter-button {
        min-width: 60px;
        padding: 10px 14px;
        font-size: 13px;
    }
}

.filter-button {
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    background: #5865f2;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.25);
    flex: 0 1 auto;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-button:hover,
.filter-button:focus {
    background: #4756f1;
    box-shadow: 0 6px 18px rgba(71, 86, 241, 0.25);
    transform: translateY(-1px);
    outline: none;
}

.filter-button.secondary {
    background: #8f9ba4;
    box-shadow: 0 4px 10px rgba(143, 155, 164, 0.25);
}

.filter-button.secondary:hover,
.filter-button.secondary:focus {
    background: #7b878f;
    box-shadow: 0 6px 16px rgba(123, 135, 143, 0.3);
}

/* Results Section */
.flaeske-results {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Prevent layout shifts during loading */
.flaeske-results.loading .restaurant-grid {
    min-height: 200px; /* Prevent collapse during load */
}

/* Ensure proper layout after dynamic content loads */
.restaurant-grid[data-loaded="true"] {
    display: grid !important; /* Force grid layout after load */
}

.restaurant-grid > * {
    grid-column: auto; /* Ensure auto placement */
    grid-row: auto;
}

.restaurant-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    width: 100%;
    box-sizing: border-box;
    align-items: start; /* Prevent vertical stretching issues */
    /* Ensure strict grid containment */
    overflow: hidden;
    contain: layout style;
    max-width: 100%;
}

@media (min-width: 540px) {
    .restaurant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .restaurant-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .restaurant-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1400px) {
    .restaurant-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
        /* Ensure grid doesn't exceed container */
        max-width: 100%;
        overflow: hidden;
    }
}

@media (min-width: 1600px) {
    .restaurant-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
        max-width: 100%;
        overflow: hidden;
    }
}

/* Force proper grid behavior - prevent collapse */
.restaurant-grid > .restaurant-card {
    width: 100%;
    max-width: 100%;
    grid-column: span 1;
    min-width: 0; /* Allow flexible shrinking */
    box-sizing: border-box;
    /* Ensure cards stay within their grid cells */
    contain: layout style;
    overflow: hidden;
}

/* Mobile-specific grid improvements */
@media (max-width: 480px) {
    .restaurant-grid {
        grid-template-columns: 1fr !important; /* Force single column on small screens */
        gap: 12px;
        padding: 0 8px;
    }
    
    .restaurant-grid > .restaurant-card {
        width: 100%;
        min-width: 0; /* Allow full shrinking on mobile */
        max-width: 100%;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .restaurant-grid > .restaurant-card {
        min-width: 0; /* Allow flexible sizing on tablets */
        max-width: 100%;
    }
}

/* Desktop specific adjustments */
@media (min-width: 1024px) {
    .restaurant-grid > .restaurant-card {
        min-width: 0; /* Allow flexible sizing on desktop */
        max-width: 100%; /* Ensure cards don't exceed container */
    }
}

/* Fix for grid layout issues after dynamic content loading */
@media (min-width: 768px) {
    .restaurant-grid {
        grid-auto-flow: row; /* Ensure proper row flow */
        grid-auto-rows: max-content; /* Maintain max-content for rows */
    }
    
    .restaurant-grid > .restaurant-card {
        grid-column: span 1; /* Force single column span */
        place-self: stretch start; /* Stretch horizontally, start vertically */
    }
}

/* Specific fix for desktop card spacing */
@media (min-width: 1024px) {
    .restaurant-grid {
        justify-items: stretch; /* Ensure cards stretch to fill space */
        align-items: start; /* Align cards to start of grid cells */
    }
}

/* Force layout recalculation class - can be triggered by JavaScript */
.restaurant-grid.force-reflow {
    display: grid !important;
    grid-template-columns: inherit !important;
    grid-gap: inherit !important;
}

.restaurant-grid.force-reflow > .restaurant-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Restaurant Cards */
.restaurant-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto; /* Allow natural height */
    width: 100%;
    box-sizing: border-box; /* Include borders in width calculation */
    justify-self: stretch; /* Stretch to fill grid cell */
    align-self: start; /* Start at top of grid cell */
    /* Ensure strict containment */
    min-width: 0; /* Allow shrinking */
    max-width: 100%; /* Never exceed container */
    contain: layout style; /* Contain layout and styling */
    word-wrap: break-word; /* Handle long words */
    overflow-wrap: break-word; /* Handle text overflow */
}

/* Restaurant Image Section */
.restaurant-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.restaurant-card:hover .restaurant-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
    pointer-events: none; /* Don't block clicks */
}

.overlay-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .restaurant-image {
        height: 180px;
    }
    
    .overlay-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}

/* Adjust card with images */
.restaurant-card:has(.restaurant-image) {
    min-height: 480px;
}

@media (min-width: 768px) {
    .restaurant-card:has(.restaurant-image) {
        min-height: 450px;
    }
}

/* Image loading states */
.restaurant-image img {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.restaurant-image img:not([src]) {
    opacity: 0;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .restaurant-card[data-status="reviewed"] .restaurant-info::before {
        content: '⭐ ANMELDT RESTAURANT';
        position: absolute;
        top: -8px;
        left: 16px;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        z-index: 5;
    }
    
    .restaurant-card[data-status="reviewed"] .restaurant-info {
        padding-top: 24px;
    }
}

/* Special styling for reviewed restaurants */
.restaurant-card[data-status="reviewed"] {
    background: linear-gradient(135deg, #fff 0%, #f8fffe 100%);
    border: 2px solid #28a745;
    box-shadow: 0 6px 30px rgba(40, 167, 69, 0.15), 0 0 0 1px rgba(40, 167, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.restaurant-card[data-status="reviewed"]::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #28a745 transparent transparent;
    z-index: 10;
    pointer-events: none; /* Don't block clicks */
}

.restaurant-card[data-status="reviewed"]::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 11;
    pointer-events: none; /* Don't block clicks */
}

@media (max-width: 480px) {
    .restaurant-card[data-status="reviewed"]::before {
        border-width: 0 30px 30px 0; /* Smaller corner on mobile */
    }
    
    .restaurant-card[data-status="reviewed"]::after {
        top: 6px;
        right: 6px;
        font-size: 14px;
    }
}

/* Premium shimmer effect for reviewed restaurants */
.restaurant-card[data-status="reviewed"] {
    animation: premiumGlow 3s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 6px 30px rgba(40, 167, 69, 0.15), 0 0 0 1px rgba(40, 167, 69, 0.1);
    }
    50% {
        box-shadow: 0 8px 35px rgba(40, 167, 69, 0.25), 0 0 0 2px rgba(40, 167, 69, 0.15);
    }
}

/* Reviewed restaurant gets priority in grid ordering */
.restaurant-card[data-status="reviewed"] {
    order: -1;
}

/* Featured badge for reviewed restaurants (only show if no image) */
.restaurant-card[data-status="reviewed"]:not(:has(.restaurant-image)) .restaurant-info::before {
    content: '⭐ ANMELDT RESTAURANT';
    position: absolute;
    top: -8px;
    left: 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 5;
}

@media (min-width: 768px) {
    .restaurant-card[data-status="reviewed"]:not(:has(.restaurant-image)) .restaurant-info::before {
        left: 20px;
        font-size: 0.75rem;
        padding: 5px 14px;
    }
}

/* Add top padding to reviewed restaurant info to make room for badge (only if no image) */
.restaurant-card[data-status="reviewed"]:not(:has(.restaurant-image)) .restaurant-info {
    padding-top: 24px;
}

@media (min-width: 768px) {
    .restaurant-card[data-status="reviewed"]:not(:has(.restaurant-image)) .restaurant-info {
        padding-top: 28px;
    }
}

.restaurant-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.restaurant-card[data-status="reviewed"]:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 50px rgba(40, 167, 69, 0.25), 0 0 0 2px rgba(40, 167, 69, 0.2);
}

@media (max-width: 767px) {
    .restaurant-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .restaurant-card[data-status="reviewed"]:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 35px rgba(40, 167, 69, 0.2);
    }
}

.restaurant-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
}

.restaurant-header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.restaurant-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.restaurant-title-row .restaurant-name {
    margin-bottom: 0;
}

.restaurant-title-row .restaurant-title-stamp .ad-libitum-stamp {
    transform: translateY(2px);
}

.restaurant-name-wrapper .restaurant-title-stamp .ad-libitum-stamp {
    transform: translateY(6px);
}

/* Special header styling for reviewed restaurants */
.restaurant-card[data-status="reviewed"] .restaurant-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    position: relative;
}

.restaurant-card[data-status="reviewed"] .restaurant-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20l20-20v40z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

@media (min-width: 768px) {
    .restaurant-header {
        padding: 20px;
    }
}

.restaurant-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v-40c11.046 0 20 8.954 20 20zM0 20v20h40V0H20c0 11.046-8.954 20-20 20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.restaurant-name {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .restaurant-name {
        margin: 0 0 10px 0;
        font-size: 1.3rem;
    }
}

.restaurant-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .restaurant-status {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.status-reviewed {
    background: rgba(255, 255, 255, 0.9);
    color: #155724;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.restaurant-card[data-status="reviewed"] .status-reviewed::before {
    content: '⭐ ';
    margin-right: 4px;
}

.status-not_reviewed {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.restaurant-info {
    padding: 16px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; /* Prevents flex item from shrinking below content size */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

@media (min-width: 768px) {
    .restaurant-info {
        padding: 20px;
        gap: 14px;
    }
}

.restaurant-location {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-main {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.location-address {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.restaurant-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .restaurant-contact {
        flex-direction: column;
        gap: 6px;
    }
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .contact-link {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-overflow: clip;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

.contact-link:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.website-link:hover {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.phone-link:hover {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}



.restaurant-pricing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

@media (max-width: 480px) {
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 12px;
    }
}

.price-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #28a745;
}

.restaurant-serving {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 480px) {
    .restaurant-serving {
        padding: 10px 12px;
    }
}

.serving-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
}

.serving-days {
    font-size: 0.9rem;
    color: #533f03;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.restaurant-services {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .restaurant-services {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 8px;
    }
}

.services-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.services-list {
    color: #007cba;
    font-size: 0.85rem;
    font-weight: 500;
    word-wrap: break-word;
    line-height: 1.4;
}

.restaurant-notes {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #ff9800;
}

.restaurant-notes .notes-label {
    font-weight: 700;
    color: #e65100;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.restaurant-notes .notes-content {
    color: #5d4e37;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 480px) {
    .restaurant-notes {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .restaurant-notes .notes-label {
        font-size: 0.8rem;
    }
    
    .restaurant-notes .notes-content {
        font-size: 0.85rem;
    }
}

/* Flæske Metadata Section */
.restaurant-flaeske-meta {
    background: linear-gradient(135deg, #f5f0e8 0%, #faf6f0 100%);
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.flaeske-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.flaeske-meta-item .meta-label {
    font-weight: 600;
    color: #8b7355;
    white-space: nowrap;
}

.flaeske-meta-item .meta-value {
    color: #5d4e37;
    font-weight: 500;
}

.meat-quality-stars {
    color: #d4a726;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .restaurant-flaeske-meta {
        padding: 8px;
        margin-bottom: 10px;
        flex-direction: column;
        gap: 6px;
    }
    
    .flaeske-meta-item {
        font-size: 0.82rem;
    }
}

/* Review section styling */
.restaurant-review {
    border-top: 1px solid #e8ecef;
    padding-top: 15px;
    margin-top: 15px;
}

/* Enhanced review section for reviewed restaurants */
.restaurant-card[data-status="reviewed"] .restaurant-review {
    border-top: 2px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
    padding: 20px;
    margin: 15px -16px -16px -16px;
    position: relative;
}

@media (min-width: 768px) {
    .restaurant-card[data-status="reviewed"] .restaurant-review {
        margin: 15px -20px -20px -20px;
    }
}

.restaurant-card[data-status="reviewed"] .restaurant-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* ACF Rating styling for restaurant cards */
.review-rating .acf-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.review-rating .rating-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f39c12;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.review-rating .rating-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.review-rating .star {
    font-size: 0.9rem;
    color: #f39c12;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-rating .star-full {
    color: #f39c12;
}

.review-rating .star-half {
    color: #f39c12;
}

.review-rating .star-empty {
    color: #ddd;
}

.review-link-button {
    display: block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 480px) {
    .review-link-button {
        padding: 12px 16px;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
}

.review-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.review-link-button:hover::before {
    left: 100%;
}

.review-link-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Enhanced button for reviewed restaurants */
.restaurant-card[data-status="reviewed"] .review-link-button {
    background: linear-gradient(135deg, #155724 0%, #0f4c1a 100%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(21, 87, 36, 0.3);
}

.restaurant-card[data-status="reviewed"] .review-link-button:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 8px 25px rgba(21, 87, 36, 0.5);
}

/* Restaurant card wrapper for positioning wishlist button */
.restaurant-card-wrapper {
    position: relative;
    width: 100%;
}

/* Wishlist button positioned absolutely outside card */
/* Wishlist Button Styles - Compact heart icon */
.restaurant-wishlist-button-absolute {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
}

.restaurant-wishlist-button-absolute button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    overflow: hidden;
    text-indent: -9999px;
}

/* Show only the emoji via pseudo-element */
.restaurant-wishlist-button-absolute .add-to-wishlist-button::after {
    content: '🤍';
    text-indent: 0;
    display: block;
    font-size: 0.9rem;
}

.restaurant-wishlist-button-absolute .remove-from-wishlist-button::after {
    content: '❤️';
    text-indent: 0;
    display: block;
    font-size: 0.9rem;
}

.restaurant-wishlist-button-absolute button:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.restaurant-wishlist-button-absolute button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login required state - slightly muted appearance */
.restaurant-wishlist-button-absolute .wishlist-login-required {
    opacity: 0.7;
}

.restaurant-wishlist-button-absolute .wishlist-login-required:hover {
    opacity: 1;
}

/* Legacy support - hide old wishlist action if it exists */
.restaurant-wishlist-action {
    display: none;
}

/* Wishlist button positioning inside various containers */
.flaeske-review-header,
.flaeske-review-box,
.flaeske-restaurant-page,
.restaurant-card,
.single-restaurant-card {
    position: relative;
}

.flaeske-review-header > .restaurant-wishlist-button-absolute,
.flaeske-restaurant-page > .restaurant-wishlist-button-absolute {
    top: 16px;
    right: 16px;
    z-index: 50;
}

/* Hide absolute buttons in review box - using toolbar instead */
.flaeske-review-box > .restaurant-wishlist-button-absolute,
.flaeske-review-box > .restaurant-comparison-button-wrapper {
    display: none;
}

/* Restaurant cards - position in top right */
.restaurant-card > .restaurant-wishlist-button-absolute,
.single-restaurant-card > .restaurant-wishlist-button-absolute {
    top: 12px;
    right: 12px;
    z-index: 20;
}

.review-post-title {
    margin: 8px 0 0 0;
    font-style: italic;
}

.review-post-title small {
    color: #666;
    font-size: 0.85rem;
}

.restaurant-count {
    text-align: center;
    margin-top: 25px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .restaurant-count {
        margin-top: 30px;
        padding: 20px;
    }
}

.restaurant-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.restaurant-count p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .restaurant-count p {
        font-size: 1.1rem;
    }
}

/* Loading State */
.flaeske-loading {
    text-align: center;
    padding: 30px;
    color: #667eea;
    position: relative;
}

@media (min-width: 768px) {
    .flaeske-loading {
        padding: 40px;
    }
}

.flaeske-loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .no-results {
        padding: 40px;
        font-size: 1.2rem;
    }
}

/* Submission Form Styles */
.flaeske-submission-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .flaeske-submission-form {
        padding: 30px;
    }
}

.flaeske-submission-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.flaeske-submission-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .flaeske-submission-form h3 {
        margin: 0 0 30px 0;
        font-size: 1.6rem;
    }
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .form-grid {
        gap: 24px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 45px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group small {
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 12px;
}

@media (min-width: 480px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal !important;
    margin-bottom: 0 !important;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-bottom: 0;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .submit-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Success/Error Messages */
.flaeske-success,
.flaeske-error {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .flaeske-success,
    .flaeske-error {
        padding: 18px 24px;
        font-size: 16px;
    }
}

.flaeske-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.flaeske-success::before {
    content: '✅';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.flaeske-success p {
    margin-left: 30px;
    margin-bottom: 0;
}

.flaeske-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.flaeske-error::before {
    content: '⚠️';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.flaeske-error p {
    margin-left: 30px;
    margin-bottom: 0;
}

/* Duplicate warnings */
.duplicate-results {
    margin-top: 15px;
}

.duplicate-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(255, 234, 167, 0.3);
}

.duplicate-warning h4 {
    margin: 0 0 12px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.duplicate-warning > p {
    margin: 8px 0 12px 0;
    color: #856404;
    font-size: 14px;
}

.duplicate-warning ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.duplicate-warning li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
}

.duplicate-warning li strong {
    color: #856404;
    font-weight: 600;
}

.duplicate-warning small {
    font-style: italic;
    color: #856404;
    font-size: 13px;
}

.duplicate-warning a {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.duplicate-warning a:hover {
    text-decoration: underline;
    color: #005a87;
}

@media (max-width: 768px) {
    .duplicate-warning {
        padding: 15px;
        margin-top: 8px;
    }
    
    .duplicate-warning h4 {
        font-size: 14px;
    }
    
    .duplicate-warning > p,
    .duplicate-warning small {
        font-size: 12px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-card {
    animation: fadeIn 0.5s ease-out;
}

/* Touch and Accessibility Improvements */
@media (max-width: 767px) {
    /* Increase touch targets */
    .filter-button,
    .submit-button,
    .checkbox-label {
        min-height: 44px;
    }
    
    /* Better spacing for mobile */
    .filter-item label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    /* Optimized text sizes */
    .restaurant-name {
        font-size: 1.1rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .location-main {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .location-address {
        font-size: 13px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .price-label,
    .price-value {
        font-size: 13px;
    }
    
    .serving-label,
    .serving-days {
        font-size: 13px;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 480px) {
    .restaurant-header {
        padding: 12px;
    }
    
    .restaurant-info {
        padding: 12px;
        gap: 10px;
    }
    
    .restaurant-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .restaurant-status {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .location-main {
        font-size: 13px;
    }
    
    .location-address {
        font-size: 12px;
    }
    
    .price-label,
    .price-value {
        font-size: 12px;
    }
    
    .serving-label {
        font-size: 11px;
    }
    
    .serving-days {
        font-size: 12px;
    }
}

/* Focus styles for accessibility */
.filter-button:focus,
.submit-button:focus,
button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.filter-item input:focus,
.filter-item select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; /* Custom focus already applied */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Single Restaurant Shortcode Styles */
.flaeske-single-restaurant {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.single-restaurant-title {
    text-align: center;
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.single-restaurant-container {
    width: 100%;
}

.single-restaurant-card {
    max-width: 100%;
    margin: 0 auto;
}

/* Error messages for single restaurant */
.flaeske-single-restaurant-error {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.flaeske-single-restaurant-error p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive adjustments for single restaurant */
@media (min-width: 768px) {
    .flaeske-single-restaurant {
        max-width: 450px;
        padding: 20px;
    }
    
    .single-restaurant-title {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .flaeske-single-restaurant {
        padding: 10px;
        max-width: 100%;
    }
    
    .single-restaurant-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .restaurant-card {
        border: 2px solid #000;
    }
    
    .filter-button,
    .submit-button {
        border: 2px solid #000;
    }
}

/* Touch feedback */
.touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

.restaurant-card.touch-active {
    transform: translateY(-1px) scale(0.98);
}

/* Mobile loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Review Header - Clean Modern Design */
.flaeske-review-header {
    position: relative;
    width: 100%;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Background Image */
.review-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.review-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

/* Content - Clean Layout */
.review-header-content {
    position: relative;
    z-index: 3;
    padding: 20px 25px;
    color: #1f2937;
    text-align: center;
}

/* With background image - white text */
.flaeske-review-header:has(.review-header-background) .review-header-content {
    color: #ffffff;
}

/* Restaurant Name Section */
.restaurant-name-section {
    margin-bottom: 15px;
}

.restaurant-name-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
}

.restaurant-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
    word-wrap: break-word;
    color: inherit;
}

/* SPECIFIK restaurant navn til review header ONLY */
.flaeske-review-header .restaurant-name {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    line-height: 0.8;
    word-wrap: break-word;
    color: #ffffff;
    text-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.04em;
    text-align: center;
    display: block;
    width: 100%;
    text-transform: uppercase;
}

.restaurant-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px 0;
    color: #6b7280;
}

.restaurant-service-info .restaurant-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.restaurant-service-info .location-label {
    font-weight: 700;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.restaurant-service-info .location-text {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.flaeske-review-header:has(.review-header-background) .restaurant-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Review Summary - Simple Grid */
.review-summary {
    background: rgba(249, 250, 251, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.flaeske-review-header:has(.review-header-background) .review-summary {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
    justify-content: center;
}

/* Total Rating - Centered */
.summary-item.total-rating {
    flex: 1 1 100%;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px 15px;
    margin-bottom: 15px;
}

/* Individual Items - Inline */
.summary-item:not(.total-rating) {
    flex: 1 1 calc(25% - 15px);
    min-width: 140px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 18px 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6b7280;
    margin-bottom: 10px;
}

.total-rating .summary-label {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #374151;
}

.summary-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Rating Numbers - Clean Typography */
.rating-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #1f2937;
    margin-bottom: 5px;
}

.total-rating .rating-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #059669;
}

/* Price Values - Prominent Design */
.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid #a7f3d0;
}

.no-rating {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Star Styling - High Contrast */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.rating-stars-small {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.star {
    font-size: 2.5rem;
    line-height: 1;
}

.star-small {
    font-size: 1.6rem;
    line-height: 1;
}

.star-full {
    color: #f59e0b;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.star-half {
    color: #f59e0b;
    opacity: 0.6;
}

.star-empty {
    color: #d1d5db;
}

/* Style Variants */
.flaeske-review-header.style-compact {
    margin-bottom: 20px;
    border-radius: 8px;
}

.flaeske-review-header.style-compact .review-header-content {
    padding: 25px 20px;
}

.flaeske-review-header.style-compact .restaurant-name {
    font-size: 2rem;
    margin-bottom: 6px;
}

.flaeske-review-header.style-compact .review-summary {
    padding: 20px;
}

.flaeske-review-header.style-minimal {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
}

.flaeske-review-header.style-minimal .review-header-content {
    padding: 20px;
}

.flaeske-review-header.style-minimal .restaurant-name {
    font-size: 1.8rem;
}

.flaeske-review-header.style-minimal .review-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

/* Error messages */
.flaeske-review-header-error {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.flaeske-review-header-error p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flaeske-review-header {
        margin-bottom: 25px;
        border-radius: 8px;
    }
    
    .review-header-content {
        padding: 15px 15px;
    }
    
    .restaurant-name {
        font-size: 2rem;
    }
    
    /* SPECIFIK review header responsive */
    .flaeske-review-header .restaurant-name {
        font-size: 7rem;
    }
    
    .restaurant-subtitle {
        font-size: 1rem;
    }
    
    .review-summary {
        padding: 15px;
    }
    
    .summary-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .summary-item:not(.total-rating) {
        flex: none;
        min-width: auto;
        padding: 15px 10px;
    }
    
    .total-rating .rating-number {
        font-size: 3rem;
    }
    
    .rating-number {
        font-size: 1.6rem;
    }
    
    .star {
        font-size: 2rem;
    }
    
    .star-small {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .review-header-content {
        padding: 15px 12px;
    }
    
    .restaurant-name {
        font-size: 1.6rem;
    }
    
    /* SPECIFIK review header mobile responsive */
    .flaeske-review-header .restaurant-name {
        font-size: 5rem;
    }
    
    .restaurant-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.8px;
    }
    
    .review-summary {
        padding: 12px;
    }
    
    .summary-grid {
        gap: 10px;
    }
    
    .summary-item:not(.total-rating) {
        padding: 12px 8px;
    }
    
    .summary-label {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .total-rating .rating-number {
        font-size: 2.5rem;
    }
    
    .rating-number {
        font-size: 1.4rem;
    }
    
    .star {
        font-size: 1.8rem;
    }
    
    .star-small {
        font-size: 1.2rem;
    }
    
    .price-value {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
}

/* Review Header Closed Banner - samme stil som restaurant kort */
.flaeske-review-header.closed {
    position: relative !important;
    overflow: hidden !important;
}

.review-header-closed-banner {
    position: absolute !important;
    top: 50% !important;
    left: -15% !important;
    right: -15% !important;
    width: 130% !important;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%) !important;
    color: white !important;
    padding: 12px 0 !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    transform: translateY(-50%) rotate(-6deg) !important;
    z-index: 15 !important;
    box-shadow: 
        0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(220, 38, 38, 0.8) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8) !important;
    animation: reviewHeaderDangerPulse 2s ease-in-out infinite alternate !important;
}

@keyframes reviewHeaderDangerPulse {
    0% { 
        box-shadow: 
            0 4px 20px rgba(220, 38, 38, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 
            0 6px 30px rgba(220, 38, 38, 0.6),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Responsive closed banner adjustments */
@media (max-width: 480px) {
    .review-header-closed-banner {
        font-size: 0.8rem !important;
        padding: 10px 0 !important;
        letter-spacing: 1px !important;
    }
}

@media (min-width: 768px) {
    .review-header-closed-banner {
        font-size: 1.1rem !important;
        padding: 14px 0 !important;
        letter-spacing: 3px !important;
    }
}

@media (min-width: 1024px) {
    .review-header-closed-banner {
        font-size: 1.2rem !important;
        padding: 16px 0 !important;
    }
}

/* Service Info styling */
.restaurant-service-info {
    background: rgba(249, 250, 251, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.flaeske-review-header:has(.review-header-background) .restaurant-service-info {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.flaeske-review-header.closed .restaurant-service-info {
    background: rgba(254, 242, 242, 0.95);
    border-color: #fecaca;
}

.service-types {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.service-label {
    font-weight: 700;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-list {
    color: #059669;
    font-weight: 600;
    font-size: 0.95rem;
}

.restaurant-service-info .restaurant-notes {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.restaurant-service-info .notes-label {
    font-weight: 700;
    color: #dc2626;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.restaurant-service-info .notes-content {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

/* Responsive service info */
@media (max-width: 768px) {
    .restaurant-service-info {
        padding: 12px 15px;
        margin-bottom: 12px;
    }
    
    .service-types,
    .restaurant-service-info .restaurant-notes,
    .restaurant-service-info .restaurant-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .service-label,
    .restaurant-service-info .notes-label,
    .restaurant-service-info .location-label {
        font-size: 0.85rem;
    }
    
    .service-list,
    .restaurant-service-info .notes-content,
    .restaurant-service-info .location-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .restaurant-service-info {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .service-label,
    .restaurant-service-info .notes-label,
    .restaurant-service-info .location-label {
        font-size: 0.8rem;
    }
    
    .service-list,
    .restaurant-service-info .notes-content,
    .restaurant-service-info .location-text {
        font-size: 0.85rem;
    }
}

/* Accessibility: Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .review-header-closed-banner {
        animation: none !important;
        box-shadow: 
            0 6px 30px rgba(220, 38, 38, 0.5),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    }
}

/* Review Data Shortcode - Individual Data Points */
.flaeske-review-data {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 20px 0;
    color: #1f2937;
}

/* Card Style - Default */
.flaeske-review-data.style-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.flaeske-review-data.style-card .review-data-header {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.flaeske-review-data.style-card .review-data-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #374151;
}

.flaeske-review-data.style-card .review-data-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flaeske-review-data.style-card .review-data-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
}

/* Inline Style - Compact for text integration */
.flaeske-review-data.style-inline {
    display: inline-block;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 4px;
    vertical-align: middle;
}

.flaeske-review-data.style-inline .review-data-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flaeske-review-data.style-inline .review-data-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flaeske-review-data.style-inline .data-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #374151;
}

.flaeske-review-data.style-inline .data-values {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Compact Style - Small cards */
.flaeske-review-data.style-compact {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    max-width: 300px;
}

.flaeske-review-data.style-compact .review-data-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Minimal Style - Clean, borderless */
.flaeske-review-data.style-minimal {
    padding: 10px 0;
}

.flaeske-review-data.style-minimal .review-data-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flaeske-review-data.style-minimal .review-data-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.flaeske-review-data.style-minimal .review-data-item:last-child {
    border-bottom: none;
}

/* Data Item Headers */
.review-data-item .data-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.review-data-item .data-icon {
    font-size: 1.4rem;
}

.review-data-item .data-label {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

/* Data Content */
.review-data-item .data-content {
    color: #1f2937;
}

/* Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.rating-display .rating-number {
    font-size: 2rem;
    font-weight: 800;
    color: #059669;
    margin: 0;
}

.rating-display .rating-stars {
    display: flex;
    gap: 3px;
}

/* Main rating gets bigger stars */
.main-rating .rating-display .rating-number {
    font-size: 2.5rem;
    font-weight: 900;
}

.main-rating .rating-display .rating-stars .star {
    font-size: 1.8rem;
}

.category-rating .rating-display .rating-stars .star-small {
    font-size: 1.4rem;
}

/* Price Display */
.price-data .data-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.price-type {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 600;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #059669;
}

/* Inline price styling */
.flaeske-review-data.style-inline .price-value {
    background: #ecfdf5;
    color: #059669;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
}

.flaeske-review-data.style-inline .price-separator {
    color: #6b7280;
    margin: 0 4px;
    font-size: 1rem;
}

/* Inline rating styling */
.flaeske-review-data.style-inline .rating-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #059669;
}

.flaeske-review-data.style-inline .rating-stars {
    display: inline-flex;
    gap: 2px;
}

.flaeske-review-data.style-inline .rating-stars .star-small {
    font-size: 1rem;
}

/* Star colors */
.star-full {
    color: #f59e0b;
}

.star-half {
    color: #f59e0b;
    opacity: 0.6;
}

.star-empty {
    color: #d1d5db;
}

/* Error messages */
.flaeske-review-data-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    color: #991b1b;
    font-size: 0.9rem;
    margin: 15px 0;
}

.flaeske-review-data-error p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flaeske-review-data.style-card {
        padding: 6px;
    }
    
    .rating-display .rating-number {
        font-size: 1.8rem;
    }
    
    .main-rating .rating-display .rating-number {
        font-size: 2.2rem;
    }
    
    .price-item {
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .price-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .flaeske-review-data.style-card {
        padding: 6px;
        margin: 10px 0;
    }
    
    .flaeske-review-data.style-inline {
        display: block;
        margin: 8px 0;
    }
    
    .rating-display {
        gap: 8px;
    }
    
    .rating-display .rating-number {
        font-size: 1.6rem;
    }
    
    .main-rating .rating-display .rating-number {
        font-size: 2rem;
    }
    
    .main-rating .rating-display .rating-stars .star {
        font-size: 1.5rem;
    }
    
    .category-rating .rating-display .rating-stars .star-small {
        font-size: 1.2rem;
    }
}

/* iOS specific improvements */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS Safari viewport issues */
    .flaeske-restaurant-database {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better form styling on iOS */
    .filter-item input,
    .filter-item select,
    .form-group input,
    .form-group select,
    .form-group textarea {
        -webkit-appearance: none;
        -webkit-border-radius: 0;
    }
}

/* Pagination Styles */
.flaeske-pagination {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .pagination-wrapper {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 768px) {
    .pagination-info {
        text-align: left;
    }
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    color: #4A7C59;
    text-decoration: none;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background: #4A7C59;
    color: white;
    border-color: #4A7C59;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
    text-decoration: none;
}

.page-link.current {
    background: #4A7C59;
    color: white;
    border-color: #4A7C59;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.4);
    cursor: default;
}

.page-link.current:hover {
    transform: none;
    background: #4A7C59;
    color: white;
    border-color: #4A7C59;
}

.page-link:visited {
    color: #4A7C59;
}

.page-link:visited:hover {
    background: #4A7C59;
    color: white;
    border-color: #4A7C59;
}

.page-link:active {
    background: #3a6346;
    color: white;
    border-color: #3a6346;
}

.page-link.first-page,
.page-link.last-page {
    font-weight: 700;
    min-width: 44px;
}

.page-link.prev-page,
.page-link.next-page {
    padding: 8px 16px;
    min-width: auto;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
    font-weight: 600;
    pointer-events: none;
}

@media (max-width: 480px) {
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .page-link.prev-page,
    .page-link.next-page {
        padding: 6px 12px;
    }
}

/* Archive and template specific fixes - More gentle approach */
.archive .flaeske-restaurant-database,
.tax .flaeske-restaurant-database {
    clear: both;
    contain: layout;
}

/* Only apply strong rules when we're clearly in a problematic layout */
.elementor-section .flaeske-restaurant-database {
    max-width: none;
    width: 100%;
}

/* Prevent sidebar interference only when needed */
.flaeske-restaurant-database + .sidebar {
    clear: left;
}

/* Additional containment rules to prevent card overflow */
.flaeske-restaurant-database *,
.flaeske-restaurant-database *::before,
.flaeske-restaurant-database *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Ensure all content within cards is contained */
.restaurant-card * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prevent any images from breaking out */
.restaurant-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ensure text content doesn't cause overflow */
.restaurant-card .restaurant-name,
.restaurant-card .location-main,
.restaurant-card .location-address {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Final fallback containment */
.flaeske-restaurant-database {
    min-width: 0;
    max-width: 100%;
}

.restaurant-grid {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Ensure grid items never exceed their bounds */
.restaurant-grid > * {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Closed Restaurant Banner - DRAMATIC WARNING STYLE */
.restaurant-card.closed {
    position: relative !important;
    opacity: 0.88 !important;
    border: 2px solid #dc2626 !important;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%) !important;
    overflow: hidden !important;
}

.restaurant-card.closed::before {
    content: "🔒 LUKKET" !important;
    position: absolute !important;
    top: 50% !important;
    left: -15% !important;
    right: -15% !important;
    width: 130% !important;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%) !important;
    color: white !important;
    padding: 12px 0 !important;
    font-weight: 900 !important;
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    transform: translateY(-50%) rotate(-8deg) !important;
    z-index: 25 !important;
    box-shadow: 
        0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(220, 38, 38, 0.8) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8) !important;
    animation: dangerPulse 2s ease-in-out infinite alternate !important;
}

@keyframes dangerPulse {
    0% { 
        box-shadow: 
            0 4px 20px rgba(220, 38, 38, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 
            0 6px 30px rgba(220, 38, 38, 0.6),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

.restaurant-card.closed .restaurant-image {
    position: relative !important;
    overflow: hidden !important;
}

.restaurant-card.closed .restaurant-image::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%) !important;
    z-index: 5 !important;
}

.restaurant-card.closed .restaurant-image img {
    filter: saturate(0.4) brightness(0.85) grayscale(0.3) !important;
}

/* Muted styling for closed restaurant content */
.restaurant-card.closed .restaurant-name {
    color: #6b7280 !important;
}

/* Remove any extra indicators since the banner is so prominent */

/* Closed banner responsive adjustments */
@media (max-width: 480px) {
    .restaurant-card.closed::before {
        font-size: 0.7rem !important;
        padding: 8px 0 !important;
        letter-spacing: 1px !important;
        content: "🔒 LUKKET" !important;
    }
}

@media (min-width: 768px) {
    .restaurant-card.closed::before {
        font-size: 1rem !important;
        padding: 14px 0 !important;
        letter-spacing: 3px !important;
    }
}

@media (min-width: 1024px) {
    .restaurant-card.closed::before {
        font-size: 1.1rem !important;
        padding: 16px 0 !important;
    }
}

/* Ensure closed banner stays on top */
.restaurant-card.closed {
    z-index: 1 !important;
}

.restaurant-card.closed:hover {
    z-index: 2 !important;
    border-color: #f87171 !important;
}

/* Add subtle styling to closed card content */
.restaurant-card.closed .restaurant-info {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
}

/* Muted all content slightly for closed restaurants */
.restaurant-card.closed .location-main,
.restaurant-card.closed .location-address,
.restaurant-card.closed .restaurant-pricing,
.restaurant-card.closed .restaurant-serving {
    opacity: 0.7 !important;
}

/* Accessibility: Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .restaurant-card.closed::before {
        animation: none !important;
        box-shadow: 
            0 6px 30px rgba(220, 38, 38, 0.5),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    }
}

/* ========================================
   Review Box Styles
   ======================================== */

.flaeske-review-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .flaeske-review-box {
        padding: 30px;
        margin: 40px 0;
    }
}

/* Review Box Header */
.review-box-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

/* Review Box Hero Image - Full width, no overlays */
.review-box-hero-image {
    width: calc(100% + 40px);
    margin: -20px -20px 24px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

.review-box-hero-image img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

/* Legacy support */
.review-box-featured-image {
    width: calc(100% + 40px);
    margin: -20px -20px 24px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.review-box-featured-image img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

/* Review Box Header with Toolbar */
.review-box-header {
    position: relative;
}

.review-box-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.review-box-toolbar .hero-toolbar-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.review-box-toolbar .hero-toolbar-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.review-box-toolbar .hero-toolbar-btn .toolbar-icon {
    font-size: 16px;
    line-height: 1;
}

.review-box-title-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 100px; /* Space for toolbar */
}

.review-restaurant-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    letter-spacing: -0.02em;
}

.review-restaurant-name h1,
.review-restaurant-name h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.review-box-date {
    font-size: 0.95rem;
    color: #343a40;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-box-date-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #adb5bd;
}

.review-box-date time {
    color: inherit;
}

@media (min-width: 768px) {
    .review-box-header {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
    
    .review-box-hero-image {
        width: calc(100% + 60px);
        margin: -30px -30px 30px;
    }
    
    .review-box-hero-image img {
        height: 320px;
    }
    
    .review-box-featured-image {
        width: calc(100% + 60px);
        margin: -30px -30px 30px;
    }
    
    .review-box-featured-image img {
        height: 320px;
    }
    
    .review-restaurant-name {
        font-size: 2.5rem;
    }
    
    .review-restaurant-name h1 {
        font-size: 2.8rem;
    }
    
    .review-restaurant-name h2 {
        font-size: 2.3rem;
    }
    
    .review-box-date {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .review-restaurant-name {
        font-size: 3rem;
    }
    
    .review-restaurant-name h1 {
        font-size: 3.5rem;
    }
    
    .review-restaurant-name h2 {
        font-size: 2.8rem;
    }
    
    .review-box-hero-image img {
        height: 380px;
    }
    
    .review-box-featured-image img {
        height: 380px;
    }
}

/* Review Box Map */
.review-box-map {
    margin: 30px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.review-map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.map-icon {
    font-size: 1.2rem;
}

.map-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    flex: 1;
}

.map-link-all {
    font-size: 0.85rem;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.map-link-all:hover {
    color: #005a87;
    text-decoration: underline;
}

.review-box-map-container {
    width: 100%;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.review-box-map-container .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .review-box-map {
        padding: 20px;
    }
    
    .review-box-map-container {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .review-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .map-link-all {
        width: 100%;
        text-align: right;
    }
}

.review-restaurant-name .ad-libitum-stamp {
    margin-left: 5px;
}

/* Meta Info - Natural inline flow */
.review-box-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-item .meta-label {
    font-weight: 500;
    color: #6c757d;
}

.meta-item .meta-value {
    color: #2c3e50;
    font-weight: 500;
}

.meta-item .meta-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.meta-item .meta-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.review-box-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.review-box-header-actions .review-box-meta-info {
    flex: 1 1 60%;
    min-width: 260px;
}

.review-box-header-actions .review-cta-button {
    flex: 0 0 auto;
    padding: 12px 28px;
    white-space: nowrap;
    align-self: flex-start;
}

.meta-item.serving-days .meta-link:not(:last-child)::after {
    content: ', ';
    color: #495057;
    text-decoration: none;
    font-weight: normal;
    margin-right: 2px;
}

/* Flaeske metadata styles in review box */
.meta-item.meat-quality .meat-quality-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Correction link in meta info */
.meta-item--action {
    margin-left: auto;
}

.meta-correction-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.meta-correction-link:hover {
    color: #0f766e;
}

.meta-item.portion-size,
.meta-item.cooking-methods,
.meta-item.pork-types {
    background: rgba(34, 197, 94, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.meta-item.meat-quality {
    background: rgba(245, 158, 11, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .review-box-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .meta-item {
        width: 100%;
    }
    
    .review-box-header-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .review-box-header-actions .review-box-meta-info {
        min-width: 0;
        width: 100%;
    }
    
    .review-box-header-actions .review-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Overall Rating */
.review-box-overall-rating {
    text-align: center;
    padding: 25px 0;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.overall-rating-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.overall-rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

@media (min-width: 768px) {
    .overall-rating-number {
        font-size: 4rem;
    }
}

.overall-rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.overall-rating-stars .star {
    font-size: 2rem;
    color: #ffc107;
}

@media (min-width: 768px) {
    .overall-rating-stars .star {
        font-size: 2.5rem;
    }
}

/* Category Ratings */
.review-box-category-ratings {
    margin-bottom: 30px;
}

.category-ratings-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .category-ratings-title {
        font-size: 1.4rem;
        text-align: left;
    }
}

.category-ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-auto-flow: row dense;
}

@media (min-width: 768px) {
    .category-ratings-grid {
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .category-ratings-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

.category-rating-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-rating-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

.category-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-rating-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.category-rating-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.category-rating-stars .star-small {
    font-size: 1rem;
    color: #ffc107;
}

/* Description */
.review-box-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.description-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.description-content {
    color: #495057;
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Pros and Cons */
.review-box-pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .review-box-pros-cons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pros-section,
.cons-section {
    padding: 20px;
    border-radius: 12px;
}

.pros-section {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

.cons-section {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
}

.pros-title,
.cons-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-title {
    color: #155724;
}

.cons-title {
    color: #721c24;
}

.pros-icon,
.cons-icon {
    font-size: 1.3rem;
}

.pros-content,
.cons-content {
    color: #495057;
    line-height: 1.7;
}

.pros-content ul,
.cons-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.pros-content li,
.cons-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.pros-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.cons-content li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.pros-content li:last-child,
.cons-content li:last-child {
    margin-bottom: 0;
}

/* CTA Button */
.review-box-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.review-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
}

.review-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.review-cta-button:active {
    transform: translateY(0);
}

.review-cta-button--secondary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    margin-left: 10px;
}

.review-cta-button--secondary:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Error Message */
.flaeske-review-box-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
}

.flaeske-review-box-error p {
    margin: 0;
}

/* Compact Style */
.flaeske-review-box.style-compact {
    padding: 15px;
}

.flaeske-review-box.style-compact .overall-rating-number {
    font-size: 2.5rem;
}

.flaeske-review-box.style-compact .category-ratings-grid {
    grid-template-columns: 1fr;
}

/* Minimal Style */
.flaeske-review-box.style-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.flaeske-review-box.style-minimal .review-box-overall-rating,
.flaeske-review-box.style-minimal .review-box-category-ratings,
.flaeske-review-box.style-minimal .review-box-description,
.flaeske-review-box.style-minimal .review-box-pros-cons {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .flaeske-review-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .overall-rating-number {
        font-size: 2.5rem;
    }
    
    .overall-rating-stars .star {
        font-size: 1.5rem;
    }
    
    .category-ratings-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .review-box-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .review-cta-button {
        width: 100%;
        padding: 12px 25px;
    }
    
    .review-box-meta-info {
        font-size: 0.85rem;
    }
}

/* User Reviews Section */
.review-box-user-reviews {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.flaeske-user-reviews-list {
    margin-bottom: 0;
}

.reviews-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* Compact User Review Items */
.user-review-item.compact {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f766e;
    transition: all 0.2s ease;
}

.user-review-item.compact:last-child {
    margin-bottom: 0;
}

.user-review-item.compact:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
    transform: translateY(-1px);
}

.review-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.reviewer-info-compact {
    flex: 1;
    min-width: 150px;
}

.reviewer-name {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-right: 8px;
}

/* Clickable reviewer name links to profile */
.reviewer-profile-link {
    color: #0f766e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reviewer-profile-link:hover {
    color: #0d9488;
    text-decoration: underline;
}

.reviewer-name .reviewer-profile-link {
    font-weight: inherit;
}

/* Achievement badge next to reviewer name */
.flaeske-primary-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 4px;
    border-radius: 4px;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flaeske-primary-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.review-date {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.review-rating-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.review-rating-compact .rating-number {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.review-rating-compact .rating-stars {
    display: flex;
    gap: 2px;
}

.review-rating-compact .rating-stars .star-small {
    font-size: 0.85rem;
    color: #f59e0b;
}

.review-category-ratings-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.category-rating-mini-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
}

.category-rating-mini-compact .category-rating-value {
    font-weight: 600;
    color: #0f172a;
}

.review-comment-compact {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-pros-cons-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    margin-top: 8px;
}

.review-pros-mini {
    color: #059669;
    font-weight: 600;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 4px;
}

.review-cons-mini {
    color: #dc2626;
    font-weight: 600;
    background: #fee2e2;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Review Form */
.review-box-review-form {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.user-review-aggregate-card {
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.12);
}

.user-review-aggregate-card .aggregate-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.aggregate-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.aggregate-rating-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1;
}

.aggregate-stars {
    display: flex;
    gap: 6px;
}

.aggregate-stars .star {
    font-size: 1.6rem;
    color: #f59e0b;
}

.aggregate-reviews-count {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
}

.aggregate-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    flex: 1;
}

.aggregate-category-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aggregate-category-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.aggregate-category-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aggregate-category-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f766e;
}

.aggregate-category-stars .star {
    font-size: 1rem;
    color: #f59e0b;
}

@media (max-width: 767px) {
    .user-review-aggregate-card .aggregate-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aggregate-rating {
        align-items: center;
        text-align: center;
    }
    
    .aggregate-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.flaeske-user-review-form-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    max-width: 100%;
    overflow: visible;
}

.review-form-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 100%;
}

.review-form-info {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
}

.review-prompt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.review-prompt-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.review-prompt-text {
    margin: 8px 0 12px 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.review-count-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.review-count-info.first-review {
    background: #fff6e5;
    border-color: #f4c15c;
}

.review-count-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f766e;
}

.first-review-badge {
    font-size: 1.2rem;
}

.review-count-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-count-info.first-review .review-count-text {
    color: #856404;
    font-weight: 600;
}

.toggle-review-form-button {
    background: linear-gradient(120deg, #0f836f, #0a5f55);
    color: #ffffff !important;
    border: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.25);
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.toggle-review-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(15, 118, 110, 0.3);
}

.toggle-review-form-button:active {
    transform: translateY(0);
}

.toggle-review-form-button .button-text {
    color: #ffffff !important;
    font-weight: 700;
}

.toggle-review-form-button .button-icon {
    font-size: 1.2rem;
    line-height: 1;
    filter: brightness(0) invert(1);
}

.flaeske-user-review-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.review-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
}

/* Logged-in user info in review form */
.logged-in-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.logged-in-user-info .user-avatar {
    flex-shrink: 0;
}

.logged-in-user-info .user-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.logged-in-user-info .user-name {
    font-size: 0.95rem;
    color: #475569;
}

.logged-in-user-info .user-name strong {
    color: #0f172a;
    font-weight: 600;
}

.flaeske-review-form .form-group {
    margin-bottom: 20px;
}

.flaeske-review-form label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.flaeske-review-form .required {
    color: #dc3545;
}

.flaeske-review-form .optional {
    color: #64748b;
    font-size: 0.85em;
    font-weight: normal;
}

.flaeske-review-form .field-hint {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
    font-style: italic;
}

.flaeske-review-form input[type="text"],
.flaeske-review-form input[type="email"],
.flaeske-review-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #ffffff;
    color: #0f172a;
}

.flaeske-review-form input[type="text"]:focus,
.flaeske-review-form input[type="email"]:focus,
.flaeske-review-form textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.flaeske-review-form input:focus,
.flaeske-review-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.rating-input,
.rating-input-small {
    margin: 10px 0;
}

.rating-stars-input {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.star-input {
    font-size: 1.5rem;
    color: #ffc107;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.rating-input-small .star-input {
    font-size: 1.2rem;
}

.star-input:hover,
.star-input.hover {
    transform: scale(1.2);
}

.star-input.filled {
    color: #ffc107;
}

.rating-value-display {
    font-weight: 600;
    color: #2c3e50;
    margin-left: 10px;
}

.category-rating-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.category-rating-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #f8fbfb;
    border-radius: 14px;
    border: 1px solid #e4ecea;
}

.category-rating-item label {
    min-width: 100px;
    margin: 0;
    font-weight: 500;
}

/* Review Image Upload Styles */
.review-images-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.review-images-section > label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* Image upload terms notice */
.image-upload-terms {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.image-upload-terms .terms-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #856404;
    margin: 0 0 10px 0;
}

.image-upload-terms .terms-icon {
    font-size: 1.1rem;
}

.image-upload-terms .terms-list {
    margin: 0;
    padding-left: 24px;
    color: #664d03;
    line-height: 1.6;
}

.image-upload-terms .terms-list li {
    margin-bottom: 4px;
}

.image-upload-terms .terms-list li:last-child {
    margin-bottom: 0;
}

.review-image-uploads {
    margin-top: 15px;
}

.image-upload-group {
    margin-bottom: 20px;
}

.image-upload-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.image-upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: #0f836f;
    background: #f0fdf9;
}

.image-upload-area .review-image-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.upload-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.category-image-uploads {
    margin-top: 20px;
}

.category-images-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.category-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 576px) {
    .category-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-image-item {
    text-align: center;
}

.category-image-item > label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.image-upload-small {
    min-height: 70px;
    padding: 10px;
}

.image-upload-small .upload-placeholder {
    flex-direction: row;
    gap: 0;
}

.image-upload-small .upload-icon {
    font-size: 1.5rem;
}

.image-upload-small .upload-text {
    display: none;
}

.image-upload-small .image-previews {
    margin-top: 8px;
    justify-content: center;
}

.image-upload-small .image-preview-item {
    width: 60px;
    height: 60px;
}

/* Review Images Display Styles */
.review-images-display {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.review-images-general {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.review-image-link {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-image-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.review-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-images-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-category-image {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.review-category-image .category-icon {
    font-size: 1rem;
}

.review-category-image .review-image-link {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

/* Lightbox Basic Styles */
.review-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.review-image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.review-image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.review-image-lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-image-lightbox .close-lightbox:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Restaurant User Gallery Styles */
.restaurant-gallery-section {
    margin-top: 16px;
}

.restaurant-user-gallery {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.restaurant-user-gallery .gallery-header {
    margin-bottom: 20px;
}

.restaurant-user-gallery .gallery-header h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.restaurant-user-gallery .gallery-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 30px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-reviewer {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

.gallery-reviewer .reviewer-profile-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.gallery-reviewer .reviewer-profile-link:hover {
    color: #4da6ff;
    text-decoration: underline;
}

/* Enhanced lightbox for gallery */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox .lightbox-info {
    color: white;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
}

.gallery-lightbox .lightbox-info .reviewer-name {
    font-weight: 600;
}

.gallery-lightbox .lightbox-info .image-type {
    opacity: 0.7;
    margin-left: 8px;
}

.gallery-lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lightbox .close-lightbox:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lightbox .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox .lightbox-prev {
    left: 20px;
}

.gallery-lightbox .lightbox-next {
    right: 20px;
}

.form-actions {
    margin-top: 25px;
}

.submit-review-button {
    background: linear-gradient(120deg, #0f836f, #0b5b51);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
}

.submit-review-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.3);
}

.submit-review-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@media (max-width: 767px) {
    .review-form-toggle {
        flex-direction: column;
        align-items: stretch;
    }
    
    .review-form-info {
        min-width: 0;
        width: 100%;
    }
    
    .review-prompt-title {
        font-size: 1.1rem;
    }
    
    .review-prompt-text {
        font-size: 0.9rem;
    }
    
    .review-count-info {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 10px 12px;
        gap: 6px;
    }
    
    .review-count-info .review-count-text {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .toggle-review-form-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
    }
    
    .category-rating-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-rating-item label {
        min-width: auto;
    }
    
    .flaeske-user-review-form-wrapper {
        padding: 15px;
        border-radius: 16px;
    }
    
    .user-review-item.compact {
        padding: 10px 12px;
    }
    
    .review-header-compact {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .flaeske-user-review-form-wrapper {
        padding: 12px;
        border-radius: 12px;
    }
    
    .review-form-toggle {
        gap: 12px;
    }
    
    .review-prompt-header {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .review-icon {
        font-size: 1.2rem;
    }
    
    .review-prompt-title {
        font-size: 1rem;
    }
    
    .review-prompt-text {
        font-size: 0.85rem;
        margin: 6px 0 10px 0;
    }
    
    .review-count-info {
        padding: 8px 10px;
        border-radius: 10px;
    }
    
    .first-review-badge {
        font-size: 1rem;
    }
    
    .review-count-text {
        font-size: 0.8rem;
    }
    
    .toggle-review-form-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 30px;
    }
    
    .toggle-review-form-button .button-icon {
        font-size: 1rem;
    }
} 

/* ==============================================
   BRAND-COMPLIANT USER REVIEW FORM STYLES
   ============================================== */

.flaeske-user-review-form-wrapper-brand {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-form-toggle-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-form-info-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .review-form-info-brand {
        text-align: left;
    }
}

.review-prompt-header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .review-prompt-header-brand {
        justify-content: flex-start;
    }
}

.review-icon-brand {
    font-size: 1.5rem;
}

.review-prompt-title-brand {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.review-prompt-text-brand {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.review-count-info-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
}

.review-count-number-brand {
    font-weight: 700;
    color: #4A7C59;
}

.review-count-text-brand {
    color: #6b7280;
}

.first-review-brand {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.first-review-badge-brand {
    font-size: 1.25rem;
}

.toggle-review-form-button-brand {
    width: 100%;
    padding: 12px 24px;
    background: #4A7C59;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-review-form-button-brand:hover {
    background: #3a6346;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.flaeske-user-review-form-brand {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.review-form-title-brand {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 24px 0;
}

.flaeske-review-form-brand-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.form-label-brand .required {
    color: #dc3545;
}

.form-label-brand .optional {
    color: #9ca3af;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.form-input-brand,
.form-textarea-brand {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    color: #2C2C2C;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-input-brand:focus,
.form-textarea-brand:focus {
    outline: none;
    border-color: #4A7C59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-textarea-brand {
    resize: vertical;
    min-height: 100px;
}

.field-hint-brand {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 4px;
}

.logged-in-user-info-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9F7F2;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.user-name-brand {
    font-size: 0.95rem;
    color: #2C2C2C;
}

.user-name-brand strong {
    color: #4A7C59;
    font-weight: 700;
}

.rating-input-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-stars-input-brand {
    display: flex;
    gap: 4px;
}

.star-input-brand {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-input-brand:hover,
.star-input-brand.active {
    color: #D4A017;
    transform: scale(1.1);
}

.rating-value-display-brand {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
}

.category-ratings-brand {
    margin-top: 8px;
}

.category-rating-inputs-brand {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.category-rating-item-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-label-brand {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C2C2C;
}

.rating-input-small-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-input-small-brand .rating-stars-input-brand {
    gap: 2px;
}

.rating-input-small-brand .star-input-brand {
    font-size: 1.25rem;
}

.form-actions-brand {
    margin-top: 8px;
}

.submit-review-button-brand {
    width: 100%;
    padding: 14px 24px;
    background: #4A7C59;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.2);
}

.submit-review-button-brand:hover {
    background: #3a6346;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.submit-review-button-brand:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .category-rating-inputs-brand {
        grid-template-columns: 1fr;
    }
    
    .flaeske-user-review-form-wrapper-brand {
        padding: 16px;
    }
}

/* ==============================================
   BRAND-COMPLIANT USER REVIEWS LIST STYLES
   ============================================== */

.flaeske-user-reviews-list-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reviews-list-title-brand {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 24px 0;
}

.user-review-aggregate-card-brand {
    background: #F9F7F2;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.aggregate-content-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aggregate-rating-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

@media (min-width: 768px) {
    .aggregate-rating-brand {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}

.aggregate-rating-number-brand {
    font-size: 2rem;
    font-weight: 900;
    color: #4A7C59;
    font-family: 'Merriweather', Georgia, serif;
}

.aggregate-stars-brand {
    color: #D4A017;
}

.aggregate-reviews-count-brand {
    font-size: 0.875rem;
    color: #6b7280;
}

.aggregate-categories-brand {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.aggregate-category-item-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aggregate-category-label-brand {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C2C2C;
}

.aggregate-category-rating-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aggregate-category-value-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #4A7C59;
}

.aggregate-category-stars-brand {
    color: #D4A017;
}

.user-review-item-brand {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.user-review-item-brand:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-header-compact-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
    .review-header-compact-brand {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.reviewer-info-compact-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reviewer-name-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #2C2C2C;
}

.reviewer-profile-link-brand {
    color: #4A7C59;
    text-decoration: none;
}

.reviewer-profile-link-brand:hover {
    text-decoration: underline;
}

.review-date-brand {
    font-size: 0.8rem;
    color: #9ca3af;
}

.review-rating-compact-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4A7C59;
}

.rating-stars-brand {
    color: #D4A017;
}

.review-category-ratings-compact-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.category-rating-mini-compact-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #F9F7F2;
    border-radius: 6px;
    font-size: 0.875rem;
}

.category-rating-value-brand {
    font-weight: 600;
    color: #4A7C59;
}

.review-comment-compact-brand {
    font-size: 0.95rem;
    color: #2C2C2C;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-pros-cons-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.review-pros-mini {
    color: #4A7C59;
    font-size: 0.875rem;
}

.review-cons-mini {
    color: #dc3545;
    font-size: 0.875rem;
}

/* === Restaurant Page Layout === */
.flaeske-restaurant-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flaeske-restaurant-page--not-found .not-found-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 118, 110, 0.08);
    text-align: center;
}

/* ==============================================
   RESTAURANT HEADER SECTION - EXACT IMAGE MATCH
   ============================================== */
.restaurant-header-section {
    background: #1e3a5f;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.header-left {
    flex: 1;
}

/* Location - small white uppercase */
.header-location {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* Restaurant Name - large bold white */
.header-restaurant-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Status - smaller white text */
.header-status {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-weight: 400;
}

/* Action Buttons Row */
.header-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    background: transparent;
    color: inherit;
}

/* Orange buttons for primary actions */
.header-btn--orange {
    background: #ff6b35;
    color: #ffffff;
}

.header-btn--orange:hover {
    background: #e55a2b;
    color: #ffffff;
}

/* White buttons with pink border for secondary actions */
.header-btn--white {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #ec4899 !important;
    font-weight: 600;
}

.header-btn--white:hover {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
    border-color: #f472b6 !important;
}

/* Active states */
.header-btn--white.in-wishlist,
.header-btn--white.remove-from-wishlist-button {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-color: #ec4899 !important;
}

.header-btn--white.in-comparison {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-color: #ec4899 !important;
}

/* Address Block - White box top right */
.header-address-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    min-width: 240px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.address-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.address-street {
    font-size: 0.95rem;
    color: #2c3e50;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.address-city {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 12px 0;
}

.address-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #0f766e;
    text-decoration: none;
    font-weight: 500;
}

.address-map-link:hover {
    text-decoration: underline;
    color: #0d5c54;
}

/* ==============================================
   CONTENT BLOCKS SECTION - LIGHTER BLUE
   ============================================== */
.restaurant-content-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.content-block {
    background: #e8f0f8;
    border-radius: 12px;
    padding: 20px;
}

.block-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.block-value {
    font-size: 0.95rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 500;
    line-height: 1.5;
}

.block-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin: 8px 0 0 0;
}

.block-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block-services-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.block-services-list .service-icon {
    font-size: 1rem;
}

/* Legacy support - keep old classes working */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
}

.status-pill.status-not_reviewed {
    background: #f1f5f9;
    color: #64748b;
}

.status-pill.status-reviewed {
    background: #fef9c3;
    color: #854d0e;
}

.status-pill.status-closed {
    background: #fee2e2;
    color: #b91c1c;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
}

.status-badge--not_reviewed {
    background: #f1f5f9;
    color: #64748b;
}

.status-badge--reviewed {
    background: #fef9c3;
    color: #854d0e;
}

.status-badge--closed {
    background: #fee2e2;
    color: #b91c1c;
}

/* Hide old toolbar styles */
.hero-toolbar {
    display: none;
}

/* Legacy button styles for other pages */
.hero-toolbar-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.hero-toolbar-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hero-toolbar-btn .toolbar-icon {
    font-size: 16px;
    line-height: 1;
}

.hero-toolbar-btn--active,
.hero-toolbar-btn.in-comparison {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.meta-card {
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.meta-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 6px 0;
    color: #0f172a;
}

.meta-sub {
    color: #6b7280;
    margin: 4px 0 0;
}

.meta-links a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-links a:hover {
    text-decoration: underline;
}

.meta-geo-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.meta-geo-link:hover {
    text-decoration: underline;
}

.meta-empty {
    margin: 10px 0 0;
    color: #6b7280;
}

.price-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.price-list li:last-child {
    border-bottom: none;
}

/* Service list compact for hero section */
.service-list-compact {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.service-list-compact li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #334155;
}

.service-list-compact .service-icon {
    font-size: 1rem;
}

.serving-day-link {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 118, 110, 0.35);
    padding-bottom: 2px;
}

.serving-day-link:hover {
    opacity: 0.85;
}

.restaurant-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.info-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.info-list li {
    margin-bottom: 12px;
}

.info-list span {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
}

.info-list a {
    font-weight: 600;
    color: #0f766e;
}

.type-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.service-list li {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.service-icon {
    font-size: 1.2rem;
}

.info-cta {
    display: inline-flex;
    margin-top: 16px;
    font-weight: 600;
    color: #0f766e;
    align-items: center;
    gap: 6px;
}

.restaurant-map-section .map-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.map-card-content h3 {
    margin: 0 0 8px;
}

/* Restaurant Location Map */
.restaurant-location-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .restaurant-location-map {
        height: 300px;
    }
}

.restaurant-location-map .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.restaurant-location-map .leaflet-popup-content {
    margin: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    color: #0f766e;
}

/* Recommendations Section */
.restaurant-recommendations-section {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.recommendations-header {
    margin-bottom: 24px;
}

.recommendations-header h2 {
    margin: 0 0 8px;
    color: #1a472a;
    font-size: 1.5rem;
    font-weight: 700;
}

.recommendations-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.recommendations-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.recommendations-grid::-webkit-scrollbar {
    height: 6px;
}

.recommendations-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.recommendations-grid::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, 0.3);
    border-radius: 3px;
}

.recommendations-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 118, 110, 0.5);
}

.recommendations-grid > .restaurant-card {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
}

@media (max-width: 480px) {
    .recommendations-grid > .restaurant-card {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
}

.recommendation-card {
    position: relative;
}

/* Rating styling - ONLY for recommendations section */
.restaurant-recommendations-section .restaurant-rating {
    margin: 12px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.restaurant-recommendations-section .rating-label {
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
}

.restaurant-recommendations-section .rating-value {
    font-size: 1rem;
    color: #92400e;
    font-weight: 700;
}

.restaurant-recommendations-section .rating-count {
    font-size: 0.8rem;
    color: #a16207;
}

/* ==============================================
   BRAND-COMPLIANT RESTAURANT PAGE STYLES
   ALL CLASSES USE flaeske-brand- PREFIX FOR UNIQUENESS
   ============================================== */

/* Hero Section - Brand Green with Gold Accents - NO BUTTONS */
.flaeske-brand-hero-section {
    background: #4A7C59;
    border-radius: 24px;
    padding: 32px 24px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(74, 124, 89, 0.15);
}

@media (min-width: 768px) {
    .flaeske-brand-hero-section {
        padding: 48px 64px;
    }
}

.flaeske-brand-hero-decorative-circle {
    position: absolute;
    top: -128px;
    right: -128px;
    width: 300px;
    height: 300px;
    background: #D4A017;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    transition: opacity 0.7s ease;
    pointer-events: none; /* Keep visual effect from blocking clicks */
}

@media (min-width: 768px) {
    .flaeske-brand-hero-decorative-circle {
        top: -200px;
        right: -200px;
        width: 600px;
        height: 600px;
    }
}

.flaeske-brand-hero-section:hover .flaeske-brand-hero-decorative-circle {
    opacity: 0.2;
}

.flaeske-brand-hero-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.flaeske-brand-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .flaeske-brand-hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 48px;
    }
}

.flaeske-brand-hero-left {
    flex: 1;
    max-width: 640px;
}

.flaeske-brand-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4A017;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.flaeske-brand-hero-badge-event-only {
    background: rgba(180, 83, 9, 0.85);
    border-color: rgba(251, 191, 36, 0.4);
}

.flaeske-brand-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4A017;
    animation: flaeske-brand-pulse 2s ease-in-out infinite;
}

@keyframes flaeske-brand-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.flaeske-brand-hero-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.flaeske-brand-hero-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.flaeske-brand-hero-location-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.flaeske-brand-hero-location-link:hover {
    color: #D4A017;
    border-bottom-color: rgba(212, 160, 23, 0.5);
}

.flaeske-brand-hero-location-separator {
    color: #D4A017;
    margin: 0 8px;
}

.flaeske-brand-hero-address-block {
    background: #F9F7F2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    position: relative;
    z-index: 2; /* Ensure the address card stays above any decorative layers */
}

@media (max-width: 1023px) {
    .flaeske-brand-hero-address-block {
        width: 100%;
    }
}

.flaeske-brand-address-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2C2C2C;
    margin: 0 0 12px 0;
}

.flaeske-brand-address-street {
    font-size: 0.95rem;
    color: #2C2C2C;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.flaeske-brand-address-city {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.flaeske-brand-address-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4A7C59;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.flaeske-brand-address-map-link:hover {
    color: #3a6346;
}

.flaeske-brand-map-icon {
    width: 18px;
    height: 18px;
    color: #4A7C59;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.flaeske-brand-address-map-link:hover .flaeske-brand-map-icon {
    color: #3a6346;
}

/* Action Buttons Section - BELOW Hero with Brand Bar */
.flaeske-brand-actions-section {
    margin-bottom: 32px;
}

.flaeske-brand-actions-bar {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.flaeske-brand-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* ALL Secondary Buttons - Brand Compliant from ui-kit.html */
.flaeske-brand-action-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #4A7C59;
    background: transparent;
    color: #4A7C59;
    white-space: nowrap;
    text-decoration: none;
}

.flaeske-brand-action-button-secondary:hover {
    background: #4A7C59;
    color: #ffffff;
    border-color: #4A7C59;
}

.flaeske-brand-action-icon {
    width: 18px;
    height: 18px;
    color: #4A7C59;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.flaeske-brand-action-button-secondary:hover .flaeske-brand-action-icon {
    color: #ffffff;
}

@media (max-width: 640px) {
    .flaeske-brand-actions-bar {
        padding: 12px 16px;
    }
    
    .flaeske-brand-actions-wrapper {
        gap: 12px;
    }
    
    .flaeske-brand-action-button-secondary {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }
    
    .flaeske-brand-action-icon {
        width: 16px;
        height: 16px;
    }
}

/* Content Blocks - Brand Compliant WHITE CARDS */
.flaeske-brand-content-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.flaeske-brand-content-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.flaeske-brand-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.flaeske-brand-card-value {
    font-size: 0.95rem;
    color: #2C2C2C;
    margin: 0 0 8px 0;
    font-weight: 500;
    line-height: 1.5;
}

.flaeske-brand-card-value a {
    color: #4A7C59;
    font-weight: 600;
    text-decoration: none;
}

.flaeske-brand-card-value a:hover {
    text-decoration: underline;
}

.flaeske-brand-card-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 8px 0 0 0;
}

.flaeske-brand-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flaeske-brand-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.flaeske-brand-service-icon {
    font-size: 1rem;
}

/* Info Grid - Brand Compliant */
.flaeske-brand-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.flaeske-brand-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.flaeske-brand-info-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 16px 0;
}

.flaeske-brand-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flaeske-brand-info-item {
    margin-bottom: 16px;
}

.flaeske-brand-info-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.flaeske-brand-info-link {
    font-weight: 600;
    color: #4A7C59;
    text-decoration: none;
}

.flaeske-brand-info-link:hover {
    color: #3a6346;
    text-decoration: underline;
}

.flaeske-brand-info-text {
    font-size: 0.95rem;
    color: #2C2C2C;
    margin: 0;
    line-height: 1.6;
}

.flaeske-brand-info-value {
    font-weight: 600;
    color: #2C2C2C;
}

.flaeske-brand-geo-link {
    color: #4A7C59;
    font-weight: 600;
    text-decoration: none;
}

.flaeske-brand-geo-link:hover {
    text-decoration: underline;
}

.flaeske-brand-serving-type-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(74, 124, 89, 0.1);
    color: #4A7C59;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid rgba(74, 124, 89, 0.2);
    transition: all 0.2s ease;
}

.flaeske-brand-serving-type-button:hover {
    background: rgba(74, 124, 89, 0.15);
    border-color: #4A7C59;
}

.flaeske-brand-meat-quality-stars {
    color: #D4A017;
}

.flaeske-brand-review-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #4A7C59;
    color: #4A7C59;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.flaeske-brand-review-cta-button:hover {
    background: #4A7C59;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Map Section - Brand Compliant */
.flaeske-brand-map-section {
    margin: 16px 0;
}

.flaeske-brand-map-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.flaeske-brand-map-content {
    width: 100%;
}

.flaeske-brand-map-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 8px 0;
}

.flaeske-brand-map-address {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.flaeske-brand-map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Brand-compliant map marker from web-elements.html */
.flaeske-brand-marker-icon {
    background: transparent;
    border: none;
}

.flaeske-brand-marker-circle {
    width: 40px;
    height: 40px;
    background: #4A7C59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
    animation: flaeske-brand-bounce 1s ease-in-out infinite;
}

@keyframes flaeske-brand-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.flaeske-brand-marker-svg {
    width: 20px;
    height: 20px;
}

.flaeske-brand-marker-shadow {
    width: 40px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(4px);
    position: absolute;
    bottom: -6px;
    left: 0;
    animation: flaeske-brand-pulse-shadow 1s ease-in-out infinite;
}

@keyframes flaeske-brand-pulse-shadow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.flaeske-brand-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 600;
    color: #4A7C59;
    text-decoration: none;
    font-size: 0.95rem;
}

.flaeske-brand-map-link:hover {
    color: #3a6346;
    text-decoration: underline;
}

/* Reviews Section - Brand Compliant */
.flaeske-brand-reviews-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .flaeske-brand-reviews-section {
        padding: 48px;
    }
}

.flaeske-brand-reviews-header {
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .flaeske-brand-reviews-header {
        text-align: left;
    }
}

.flaeske-brand-reviews-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.flaeske-brand-reviews-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.flaeske-brand-reviews-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.flaeske-brand-reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flaeske-brand-review-list-card,
.flaeske-brand-review-form-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* Review Form Toggle - Brand Compliant */
.flaeske-brand-review-form-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 24px;
}

.flaeske-brand-review-toggle {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flaeske-brand-review-info {
    flex: 1;
}

.flaeske-brand-review-prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.flaeske-brand-review-icon {
    width: 24px;
    height: 24px;
    color: #2C2C2C;
    flex-shrink: 0;
}

.flaeske-brand-review-prompt-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.flaeske-brand-review-prompt-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.flaeske-brand-review-count-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    margin-top: 12px;
}

.flaeske-brand-review-count-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4A7C59;
}

.flaeske-brand-review-count-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.flaeske-brand-first-review {
    justify-content: center;
    text-align: center;
}

.flaeske-brand-first-review-badge {
    width: 20px;
    height: 20px;
    color: #D4A017;
    flex-shrink: 0;
}

.flaeske-brand-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4A7C59;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flaeske-brand-toggle-button:hover {
    background: #3a6346;
    color: #ffffff;
}

.flaeske-brand-button-text {
    font-weight: 700;
}

.flaeske-brand-button-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.flaeske-brand-toggle-button:hover .flaeske-brand-button-icon {
    color: #ffffff;
}

/* Review Form - Brand Compliant Forms.html */
.flaeske-brand-review-form-inner {
    margin-top: 24px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.flaeske-brand-review-form-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 24px 0;
}

.flaeske-brand-review-form-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flaeske-brand-logged-in-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 8px;
}

.flaeske-brand-user-avatar img {
    border-radius: 50%;
}

.flaeske-brand-user-name {
    font-size: 0.95rem;
    color: #2C2C2C;
    font-weight: 500;
}

.flaeske-brand-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flaeske-brand-form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2C2C2C;
}

.flaeske-brand-required {
    color: #2C2C2C;
}

.flaeske-brand-optional {
    color: #6b7280;
    font-weight: 400;
}

.flaeske-brand-form-input,
.flaeske-brand-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.95rem;
    color: #2C2C2C;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.flaeske-brand-form-input:focus,
.flaeske-brand-form-textarea:focus {
    outline: none;
    border-color: #4A7C59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.flaeske-brand-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.flaeske-brand-field-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Rating Inputs - Brand Compliant */
.flaeske-brand-rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flaeske-brand-rating-stars {
    display: flex;
    gap: 4px;
}

.flaeske-brand-star {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.flaeske-brand-star:hover,
.flaeske-brand-star.active {
    color: #D4A017;
}

.flaeske-brand-rating-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2C2C2C;
}

.flaeske-brand-category-ratings {
    margin-top: 8px;
}

.flaeske-brand-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.flaeske-brand-category-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flaeske-brand-category-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C2C2C;
}

.flaeske-brand-rating-small {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flaeske-brand-rating-stars-small {
    display: flex;
    gap: 2px;
}

.flaeske-brand-star-small {
    font-size: 1.25rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.flaeske-brand-star-small:hover,
.flaeske-brand-star-small.active {
    color: #D4A017;
}

/* File Upload - Brand Compliant Forms.html */
.flaeske-brand-image-upload-section {
    margin-top: 8px;
}

.flaeske-brand-image-upload-terms {
    margin: 16px 0;
    padding: 16px;
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.flaeske-brand-terms-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 12px 0;
}

.flaeske-brand-terms-icon {
    width: 20px;
    height: 20px;
    color: #2C2C2C;
    flex-shrink: 0;
}

.flaeske-brand-terms-list {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.flaeske-brand-review-image-uploads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flaeske-brand-image-upload-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flaeske-brand-image-upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C2C2C;
}

.flaeske-brand-file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 128px;
    background: transparent;
    border: 2px dashed rgba(74, 124, 89, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.flaeske-brand-file-upload-area:hover {
    background: transparent;
    border-color: #4A7C59;
}

.flaeske-brand-file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.flaeske-brand-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.flaeske-brand-upload-icon {
    width: 32px;
    height: 32px;
    color: rgba(74, 124, 89, 0.6);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.flaeske-brand-file-upload-area:hover .flaeske-brand-upload-icon {
    color: #4A7C59;
}

.flaeske-brand-upload-text {
    font-size: 0.875rem;
    color: rgba(44, 44, 44, 0.8);
    margin: 0;
}

.flaeske-brand-upload-bold {
    font-weight: 700;
    color: #4A7C59;
}

.flaeske-brand-upload-hint {
    font-size: 0.75rem;
    color: rgba(44, 44, 44, 0.5);
    margin-top: 4px;
}

.flaeske-brand-file-upload-small {
    min-height: 80px;
}

.flaeske-brand-upload-icon-small {
    width: 24px;
    height: 24px;
    color: rgba(74, 124, 89, 0.6);
    transition: color 0.2s ease;
}

.flaeske-brand-file-upload-area:hover .flaeske-brand-upload-icon-small {
    color: #4A7C59;
}

.flaeske-brand-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.flaeske-brand-category-image-uploads {
    margin-top: 16px;
}

.flaeske-brand-category-images-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.flaeske-brand-category-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.flaeske-brand-category-image-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flaeske-brand-category-image-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C2C2C;
    text-align: center;
}

/* Form Actions - Brand Compliant */
.flaeske-brand-form-actions {
    margin-top: 8px;
}

.flaeske-brand-submit-button {
    width: 100%;
    padding: 16px 32px;
    background: #4A7C59;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flaeske-brand-submit-button:hover {
    background: #3a6346;
}

.flaeske-brand-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

.flaeske-brand-form-message.success {
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.2);
    color: #4A7C59;
}

.flaeske-brand-form-message.error {
    background: rgba(44, 44, 44, 0.05);
    border: 1px solid rgba(44, 44, 44, 0.2);
    color: #2C2C2C;
}

.restaurant-reviews-section {
    background: transparent;
    color: #1e293b;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.reviews-header h2 {
    color: #0f172a;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.2;
}

.reviews-header p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.reviews-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: #0f766e;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 28px;
}

.review-form-card,
.review-list-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    transition: none;
}

.review-form-card:hover,
.review-list-card:hover {
    box-shadow: none;
}

.muted {
    color: #64748b;
    font-style: italic;
}

/* Mobile responsive for reviews section */
@media (max-width: 767px) {
    .restaurant-reviews-section {
        padding: 20px;
        border-radius: 24px;
    }
    
    .reviews-stack {
        gap: 20px;
        margin-top: 24px;
    }
    
    .review-form-card,
    .review-list-card {
        padding: 18px;
        border-radius: 16px;
    }
    
    .user-review-item.compact {
        padding: 14px 16px;
        margin-bottom: 12px;
    }
    
    .review-header-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-rating-compact {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .restaurant-reviews-section {
        padding: 16px;
        border-radius: 20px;
    }
    
    .reviews-header h2 {
        font-size: 1.5rem;
        margin: 0.4rem 0 0.8rem 0;
    }
    
    .reviews-kicker {
        font-size: 0.7rem;
    }
    
    .reviews-header p {
        font-size: 0.9rem;
    }
    
    .review-form-card,
    .review-list-card {
        padding: 16px;
    }
    
    .reviews-list-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
}

/* Mobile responsive styles for restaurant header */
@media (max-width: 767px) {
    .restaurant-header-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .header-main-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .header-left {
        width: 100%;
    }
    
    .header-action-buttons {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .header-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .header-address-block {
        width: 100%;
        min-width: auto;
        margin-top: 0;
    }
    
    .header-restaurant-name {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .restaurant-header-section {
        padding: 16px;
    }
    
    .header-action-buttons {
        gap: 6px;
    }
    
    .header-btn {
        min-width: calc(50% - 3px);
        padding: 9px 10px;
        font-size: 0.7rem;
    }
    
    .header-restaurant-name {
        font-size: 1.5rem;
    }
    
    .header-address-block {
        padding: 16px;
    }
}

@media (min-width: 768px) {
    .restaurant-header-section {
        padding: 40px;
    }
    
    .header-action-buttons {
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .header-btn {
        padding: 11px 20px;
        font-size: 0.875rem;
        min-width: auto;
    }
    
    .restaurant-content-blocks {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .header-main-content {
        gap: 48px;
    }
    
    .header-address-block {
        min-width: 280px;
    }
}

/* Legacy support - keep old classes working for other pages */
.restaurant-hero-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin: 0;
}

.hero-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    white-space: nowrap;
}

/* ===========================================
   Restaurant Corrections Modal
   =========================================== */

/* Correction trigger button */
.flaeske-correction-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(45, 80, 22, 0.3);
    border-radius: 6px;
    color: #2d5016;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flaeske-correction-trigger:hover {
    background: rgba(45, 80, 22, 0.1);
    border-color: #2d5016;
}

/* Correction trigger in different contexts */
.correction-trigger--card {
    margin-top: 12px;
    font-size: 0.75rem;
    padding: 5px 10px;
}

.correction-trigger--review {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.correction-trigger--review:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Correction trigger as hero-link (in restaurant page) */
.hero-secondary-actions .flaeske-correction-trigger {
    /* Inherits hero-link styles */
}

.restaurant-card-correction {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
    margin-top: 12px;
}

.review-box-correction-action {
    margin-top: 12px;
}

/* Modal Base */
.flaeske-correction-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.flaeske-correction-modal.is-visible {
    display: flex;
    opacity: 1;
}

.correction-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.correction-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.correction-modal-container--compact {
    max-width: 500px;
}

/* Modal Header */
.correction-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    color: #fff;
    position: relative;
}

.correction-modal-header h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
}

.correction-modal-subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.correction-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.correction-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tabs */
.correction-form-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.correction-tab {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.correction-tab:hover {
    background: rgba(45, 80, 22, 0.1);
    color: #2d5016;
}

.correction-tab.active {
    background: #2d5016;
    color: #fff;
}

/* Form Content */
.correction-form-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.correction-tab-content {
    display: none;
    padding: 20px;
}

.correction-tab-content.active {
    display: block;
}

.correction-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .correction-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.correction-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.correction-field--half {
    grid-column: span 1;
}

.correction-field--full {
    grid-column: 1 / -1;
}

.correction-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.correction-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.correction-input:focus {
    outline: none;
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15);
}

.correction-current-value {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

/* Checkboxes */
.correction-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.correction-checkbox-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.correction-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
}

.correction-checkbox-item:hover {
    background: #e9ecef;
}

.correction-checkbox-item input {
    accent-color: #2d5016;
}

.correction-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Star Rating */
.correction-star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.correction-star {
    cursor: pointer;
}

.correction-star input {
    display: none;
}

.correction-star .star-icon {
    font-size: 24px;
    color: #d1d5db;
    transition: color 0.15s;
}

.correction-star.hover .star-icon,
.correction-star.selected .star-icon {
    color: #f59e0b;
}

.correction-star-clear {
    margin-left: 8px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #6b7280;
    cursor: pointer;
}

.correction-star-clear:hover {
    background: #f3f4f6;
}

/* Footer Fields */
.correction-form-footer-fields {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .correction-form-footer-fields {
        grid-template-columns: 1fr 1fr;
    }
}

/* Image Upload */
.correction-image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: #fafafa;
}

.correction-image-upload input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.correction-image-preview {
    margin-top: 12px;
}

.correction-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.correction-image-help {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Modal Footer */
.correction-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.correction-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.correction-btn--primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    color: #fff;
}

.correction-btn--primary:hover {
    background: linear-gradient(135deg, #234012 0%, #3d6a1c 100%);
}

.correction-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.correction-btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.correction-btn--secondary:hover {
    background: #e5e7eb;
}

/* Success State */
.correction-modal-success {
    display: none;
    padding: 48px 24px;
    text-align: center;
}

.correction-modal-success.is-visible {
    display: block;
}

.correction-modal-form.is-hidden {
    display: none;
}

.correction-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.correction-modal-success h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #2d5016;
}

.correction-modal-success p {
    margin: 0 0 24px;
    color: #6b7280;
}

/* Data Confirmation Modal */
.flaeske-data-confirmation-modal .correction-modal-header {
    text-align: center;
    padding-top: 32px;
}

.data-confirmation-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.data-confirmation-intro {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.data-confirmation-intro p {
    margin: 0;
    color: #6b7280;
}

.data-confirm-section {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.data-confirm-section:last-child {
    border-bottom: none;
}

.data-confirm-section h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #2d5016;
}

/* Body scroll lock */
body.correction-modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .flaeske-correction-modal {
        padding: 10px;
    }
    
    .correction-modal-container {
        max-height: 95vh;
    }
    
    .correction-modal-header {
        padding: 16px 20px;
    }
    
    .correction-form-tabs {
        padding: 8px 12px;
    }
    
    .correction-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .correction-tab-content {
        padding: 16px;
    }
    
    .correction-form-footer-fields {
        padding: 16px;
    }
    
    .correction-modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .correction-btn {
        flex: 1;
        min-width: 120px;
    }
}