/**
 * TableWithMe Main Styles
 * Airbnb-inspired design
 */

:root {
    --twm-primary: #FF385C;
    --twm-primary-dark: #E31C5F;
    --twm-secondary: #00A699;
    --twm-dark: #222222;
    --twm-gray: #717171;
    --twm-light-gray: #F7F7F7;
    --twm-border: #DDDDDD;
    --twm-success: #00A699;
    --twm-danger: #C13515;
    --twm-warning: #FFB400;
    --twm-radius: 12px;
    --twm-shadow: 0 2px 16px rgba(0,0,0,0.12);
    --twm-shadow-hover: 0 6px 20px rgba(0,0,0,0.2);
}

/* General Styles */
.twm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.twm-btn-primary,
.twm-btn-secondary,
.twm-btn-danger {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.twm-btn-primary {
    background: var(--twm-primary);
    color: white;
}

.twm-btn-primary:hover {
    background: var(--twm-primary-dark);
    transform: scale(1.02);
}

.twm-btn-secondary {
    background: white;
    color: var(--twm-dark);
    border: 1px solid var(--twm-dark);
}

.twm-btn-secondary:hover {
    background: var(--twm-light-gray);
}

.twm-btn-danger {
    background: var(--twm-danger);
    color: white;
}

.twm-btn-danger:hover {
    background: #A02C12;
}

.twm-btn-block {
    width: 100%;
    justify-content: center;
}

/* Search Hero */
.twm-search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    margin-bottom: 48px;
}

.twm-search-container h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
}

.twm-search-container > p {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.95;
}

.twm-search-form {
    background: white;
    border-radius: var(--twm-radius);
    padding: 16px;
    box-shadow: var(--twm-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.twm-search-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 12px;
}

.twm-search-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--twm-dark);
    margin-bottom: 4px;
}

.twm-search-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--twm-border);
    border-radius: 8px;
    font-size: 14px;
}

.twm-search-field button {
    width: 100%;
}

/* Filters Bar */
.twm-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px 0;
    border-bottom: 1px solid var(--twm-border);
}

.twm-filters {
    display: flex;
    gap: 12px;
}

.twm-filter-btn {
    padding: 10px 16px;
    border: 1px solid var(--twm-border);
    border-radius: 24px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.twm-filter-btn:hover {
    border-color: var(--twm-dark);
    background: var(--twm-light-gray);
}

.twm-results-count {
    color: var(--twm-gray);
    font-size: 14px;
}

/* Meals Grid - AMÉLIO RAT ION MAJEURE */
.twm-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px 32px;
    margin-bottom: 48px;
}

.twm-meal-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--twm-radius);
}

.twm-meal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.twm-meal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.twm-meal-image {
    position: relative;
    border-radius: var(--twm-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.twm-meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.twm-meal-card:hover .twm-meal-image img {
    transform: scale(1.08);
}

/* Badge "Nouveau" ou "Populaire" */
.twm-meal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--twm-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Verified Host Badge */
.twm-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #00A699;
    font-weight: 600;
}

.twm-verified-badge i {
    font-size: 14px;
}

.twm-meal-content {
    padding: 0 4px;
}

.twm-meal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.twm-meal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--twm-dark);
    flex: 1;
}

.twm-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.twm-rating .dashicons {
    color: var(--twm-primary);
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.twm-rating-count {
    color: var(--twm-gray);
}

.twm-meal-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--twm-gray);
    font-size: 14px;
}

.twm-meal-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.twm-meal-meta .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.twm-meal-host {
    color: var(--twm-gray);
    font-size: 13px;
    margin-bottom: 8px;
}

.twm-meal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.twm-price {
    font-size: 16px;
}

.twm-price strong {
    font-weight: 700;
    color: var(--twm-dark);
}

/* Single Meal */
.twm-meal-single {
    padding: 24px 0;
}

.twm-meal-header {
    margin-bottom: 24px;
}

.twm-meal-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.twm-meal-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.twm-meal-gallery {
    margin-bottom: 48px;
}

.twm-gallery-grid {
    border-radius: var(--twm-radius);
    overflow: hidden;
}

.twm-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.twm-meal-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 80px !important;
}

.twm-meal-main {
    min-width: 0; /* Important pour le grid */
}

.twm-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--twm-border);
}

.twm-section:first-child {
    padding-top: 0;
}

.twm-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.twm-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twm-quick-facts {
    display: flex;
    gap: 24px;
    font-size: 16px;
}

.twm-quick-facts span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.twm-menu {
    background: var(--twm-light-gray);
    padding: 20px;
    border-radius: var(--twm-radius);
    line-height: 1.6;
}

.twm-host-card {
    display: flex;
    gap: 24px;
    background: var(--twm-light-gray);
    padding: 24px;
    border-radius: var(--twm-radius);
}

.twm-host-avatar {
    flex-shrink: 0;
}

.twm-host-avatar img {
    border-radius: 50%;
}

.twm-host-info h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.twm-host-location {
    color: var(--twm-gray);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

/* Booking Card - AMÉLIORATION MAJEURE */
.twm-meal-sidebar {
    position: sticky;
    top: 100px;
    width: 100%;
}

/* ========================================
   BOOKING CARD MODERNE
======================================== */

.twm-booking-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: sticky;
    top: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100% !important;
    display: block !important;
    max-width: none !important;
}

.twm-booking-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

/* Header avec prix */
.twm-booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.twm-booking-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.twm-price-section {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.twm-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.twm-price-amount {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.twm-price-currency {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.twm-price-label {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

.twm-urgency-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.twm-urgency-badge i {
    font-size: 14px;
}

/* Trust indicators */
.twm-trust-indicators {
    background: #f8f9fa;
    padding: 16px 24px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e9ecef;
}

.twm-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.twm-trust-item i {
    color: #28a745;
    font-size: 14px;
}

/* Formulaire */
.twm-booking-form {
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.twm-form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.twm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.twm-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.twm-form-label i {
    color: #667eea;
    font-size: 12px;
}

.twm-form-select,
.twm-form-textarea {
    width: 100% !important;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.twm-form-select:focus,
.twm-form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.twm-form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Social proof */
.twm-social-proof {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border-radius: 12px;
    width: 100% !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.twm-social-proof i {
    color: #667eea;
    font-size: 16px;
}

.twm-social-proof span {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* Total */
.twm-total-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.twm-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.twm-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twm-total-price {
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Bouton */
.twm-booking-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.3);
    position: relative;
    overflow: hidden;
}

.twm-booking-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.5s;
}

.twm-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.4);
}

.twm-booking-btn:hover::before {
    left: 100%;
}

.twm-booking-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.twm-booking-btn i {
    font-size: 16px;
}

/* Info paiement */
.twm-payment-info {
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.twm-payment-info i {
    font-size: 12px;
}

/* Login required */
.twm-login-required {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.twm-login-required i {
    font-size: 32px;
    color: #856404;
    margin-bottom: 12px;
    display: block;
}

.twm-login-required p {
    margin: 0 0 16px 0;
    color: #856404;
    font-weight: 700;
    font-size: 16px;
}

.twm-login-btn {
    display: inline-block;
    background: #FF385C;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.twm-login-btn:hover {
    background: #E31C5F;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.twm-booking-card {
    border: 1px solid var(--twm-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.twm-booking-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

/* Trust indicators */
.twm-trust-indicators {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #F0FFF4;
    border-radius: 8px;
    font-size: 13px;
}

.twm-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #388E3C;
}

.twm-trust-item i {
    font-size: 14px;
}

.twm-booking-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--twm-border);
}

.twm-price-amount {
    font-size: 28px;
    font-weight: 700;
}

.twm-price-label {
    color: var(--twm-gray);
    font-size: 14px;
}

.twm-booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.twm-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--twm-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.twm-input:focus {
    outline: none;
    border-color: var(--twm-dark);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.twm-booking-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--twm-border);
}

.twm-note {
    font-size: 12px;
    color: var(--twm-gray);
    text-align: center;
    margin-top: 12px;
}

/* Dashboard - AMÉLIORATION MAJEURE */
.twm-dashboard {
    padding: 40px 0;
}

.twm-dashboard-header {
    margin-bottom: 40px;
}

.twm-dashboard-header h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

.twm-dashboard-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.twm-tab-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--twm-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.twm-tab-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--twm-dark);
    transform: translateY(-2px);
}

.twm-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.twm-tab-btn i {
    font-size: 16px;
}

/* Tab Badge */
.twm-tab-badge {
    background: #FF385C;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

.twm-tab-content {
    display: none;
}

.twm-tab-content.active {
    display: block;
}

.twm-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Ancienne règle supprimée - conflit avec la nouvelle */

.twm-booking-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #D0D0D0;
}

.twm-booking-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.twm-booking-details h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.twm-booking-details p {
    margin: 6px 0;
    font-size: 14px;
}

.twm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.twm-status-pending {
    background: #FFF4E6;
    color: #B76E00;
}

.twm-status-confirmed {
    background: #E6F7F5;
    color: #00695C;
}

.twm-status-cancelled {
    background: #FFEBE9;
    color: #C13515;
}

.twm-status-completed {
    background: #E8EAF6;
    color: #3F51B5;
}

.twm-booking-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.twm-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.twm-empty-state p {
    font-size: 18px;
    color: var(--twm-gray);
    margin-bottom: 24px;
}

/* Profile */
.twm-profile-header {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--twm-border);
}

.twm-profile-avatar {
    text-align: center;
}

.twm-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 16px;
    object-fit: cover;
}

.twm-profile-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.twm-form-section {
    margin-bottom: 40px;
}

.twm-form-section h3 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--twm-border);
}

.twm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.twm-help-text {
    font-size: 13px;
    color: var(--twm-gray);
    margin-top: 4px;
}

.twm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.twm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.twm-form-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--twm-border);
}

/* Create Meal Form */
.twm-create-meal {
    padding: 40px 0;
}

.twm-create-meal h1 {
    font-size: 32px;
    margin-bottom: 32px;
}

.twm-create-meal h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Meal Management */
.twm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.twm-meal-manage-card {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--twm-border);
    border-radius: var(--twm-radius);
    margin-bottom: 16px;
}

.twm-meal-manage-card .twm-meal-image {
    aspect-ratio: 1;
}

.twm-meal-manage-card .twm-meal-image img {
    border-radius: 8px;
}

.twm-meal-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.twm-meal-info p {
    font-size: 14px;
    color: var(--twm-gray);
    margin: 4px 0;
}

.twm-meal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pagination */
.twm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.twm-pagination a,
.twm-pagination span {
    padding: 8px 16px;
    border: 1px solid var(--twm-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--twm-dark);
}

.twm-pagination a:hover {
    background: var(--twm-light-gray);
}

.twm-pagination .current {
    background: var(--twm-primary);
    color: white;
    border-color: var(--twm-primary);
}

/* Utilities */
.twm-location-info .twm-note {
    text-align: left;
    margin-top: 12px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Force full width for booking card */
.twm-meal-sidebar {
    width: 100% !important;
    max-width: none !important;
}

.twm-booking-card {
    width: 100% !important;
    max-width: none !important;
}

.twm-booking-form {
    width: 100% !important;
}

/* Force all form elements to full width */
.twm-booking-form * {
    max-width: 100% !important;
}

.twm-form-group {
    width: 100% !important;
    max-width: none !important;
}

.twm-total-section {
    width: 100% !important;
    box-sizing: border-box;
}

.twm-booking-btn {
    width: 100% !important;
    box-sizing: border-box;
}

/* Align meal header elements to left - OVERRIDE ALL EXISTING RULES */
.twm-meal-header {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    display: block !important;
}

.twm-meal-header h1 {
    text-align: left !important;
    margin-bottom: 16px !important;
    width: 100% !important;
}

.twm-meal-meta-bar {
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.twm-tags-list {
    text-align: left !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 16px !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

/* Active filter indicator */
.twm-active-filter {
    background: linear-gradient(135deg, #FF385C 0%, #E00007 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.3);
}

.twm-active-filter-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.twm-active-filter-label {
    font-weight: 600;
    font-size: 14px;
    opacity: 0.9;
}

.twm-active-filter-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.twm-clear-filter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: auto;
}

.twm-clear-filter:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

/* Meal card improvements - better spacing and clickable elements */
.twm-meal-card {
    padding: 16px !important;
    margin-bottom: 24px !important;
}

.twm-meal-content {
    padding: 16px 0 !important;
}

.twm-meal-title-link {
    color: #222 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.twm-meal-title-link:hover {
    color: #FF385C !important;
    text-decoration: underline !important;
}

.twm-meta-location {
    text-decoration: none !important;
    color: #666 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.twm-meta-location:hover {
    color: #FF385C !important;
    background: rgba(255, 56, 92, 0.1) !important;
    transform: translateY(-1px) !important;
}

.twm-host-link {
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.twm-host-link:hover {
    color: #FF385C !important;
    text-decoration: underline !important;
}

.twm-meal-tag {
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.twm-meal-tag:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.twm-meal-image-link {
    display: block !important;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}

.twm-meal-image-link:hover {
    transform: scale(1.02) !important;
}

@media (max-width: 1024px) {
    .twm-meal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .twm-meal-sidebar {
        position: static;
        order: -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .twm-container {
        padding: 0 16px;
    }
    
    .twm-meal-sidebar {
        max-width: 100%;
    }
    
    .twm-booking-card {
        padding: 20px;
    }
}
