/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-900);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    min-height: 48px;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 85%, black); }

.btn-accent {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-success {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-outline:hover { background: var(--color-secondary); color: white; }

.btn-full { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e0de;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    color: var(--color-neutral-900);
    transition: border-color 0.2s;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.form-input-code {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231A1A1A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e0de;
    border-radius: 8px;
    transition: all 0.2s;
}

.checkbox-label:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--color-primary);
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e0de;
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    min-height: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%231A1A1A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.75rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: color-mix(in srgb, var(--color-danger) 10%, white);
    color: var(--color-danger);
    border: 1px solid color-mix(in srgb, var(--color-danger) 30%, transparent);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: color-mix(in srgb, var(--color-primary) 12%, white);
    color: var(--color-primary);
}

.badge-outline {
    background: transparent;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
}

.badge-sm { font-size: 0.7rem; padding: 0.15rem 0.5rem; }

.badge-active { background: color-mix(in srgb, var(--color-success) 12%, white); color: var(--color-success); }
.badge-pending { background: color-mix(in srgb, var(--color-warning) 12%, white); color: var(--color-warning); }
.badge-confirmed { background: color-mix(in srgb, var(--color-accent) 12%, white); color: var(--color-accent); }
.badge-completed { background: color-mix(in srgb, var(--color-success) 12%, white); color: var(--color-success); }
.badge-cancelled, .badge-expired { background: #f0f0f0; color: #888; }
.badge-matched { background: color-mix(in srgb, var(--color-primary) 12%, white); color: var(--color-primary); }

/* Cards */
.form-card, .detail-card, .profile-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Hero */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-desc {
    font-size: 1rem;
    color: #666;
    max-width: 400px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 600px;
    width: 100%;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.auth-title {
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.auth-form { margin-bottom: 1.5rem; }

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Page Layouts */
.page-feed, .page-dashboard, .page-form, .page-detail, .page-chat {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

.page-header p {
    color: #666;
    font-size: 0.95rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Feed */
.feed-header {
    margin-bottom: 1.25rem;
}

.feed-filters {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

/* Swap Cards */
.swap-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.swap-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.swap-restaurant {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-logo-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.restaurant-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.swap-distance {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.swap-meal {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.swap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.swap-time, .swap-posted-by {
    font-size: 0.8rem;
    color: #888;
}

.swap-card-actions {
    margin-top: 0.75rem;
}

/* Detail Pages */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.detail-restaurant {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-info {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.detail-info p { margin-bottom: 0.25rem; }

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.swap-request-form {
    border-top: 2px solid var(--color-neutral-50);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.swap-request-form h2 {
    margin-bottom: 1rem;
}

/* Match */
.match-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
}

.match-side {
    text-align: center;
}

.match-side h3 {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
}

.match-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.status-text {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Dashboard */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.dashboard-section {
    margin-top: 1.5rem;
}

.dashboard-section h2 {
    margin-bottom: 0.75rem;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mini-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.mini-card-body strong {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swap-arrow { color: var(--color-primary); font-weight: bold; }

.mini-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mini-card-link {
    font-size: 0.85rem;
    font-weight: 600;
}

.empty-text {
    color: #888;
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.empty-state p { margin-bottom: 1rem; }

/* Chat */
.page-chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    padding-bottom: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #eee;
}

.chat-header h1 {
    font-size: 1.1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
}

.chat-bubble-mine {
    align-self: flex-end;
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble-theirs {
    align-self: flex-start;
    background: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chat-sender {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.chat-body { margin: 0; }

.chat-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input .form-input {
    min-height: 44px;
    border-radius: 22px;
}

.chat-input .btn {
    border-radius: 22px;
    padding: 0 1.25rem;
}

/* Invite Code */
.invite-section {
    margin: 1.5rem 0;
    text-align: center;
}

.invite-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: var(--color-neutral-50);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    color: var(--color-secondary);
    margin: 0.75rem 0;
}

.help-text {
    font-size: 0.85rem;
    color: #888;
}

/* Staff List */
.staff-section { margin-top: 1.5rem; }

.staff-list {
    list-style: none;
}

.staff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.staff-name { font-weight: 500; }

/* Profile */
.profile-info {
    text-align: center;
    padding: 1rem 0;
}

.profile-info h2 { margin-bottom: 0.25rem; }

.profile-email {
    color: #888;
    font-size: 0.9rem;
}

.profile-restaurant {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 0.375rem;
}

.profile-stats {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.375rem 1rem;
    color: #888;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    min-width: 60px;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3s forwards;
    pointer-events: auto;
}

.toast-error {
    background: var(--color-danger);
    color: white;
}

.toast-success {
    background: var(--color-success);
    color: white;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.htmx-request .spinner,
.htmx-request.spinner {
    display: inline-block;
}

.loading-sentinel {
    text-align: center;
    padding: 2rem;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Meal Images */
.swap-meal-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.detail-meal-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
    width: calc(100% + 3rem);
    max-width: calc(100% + 3rem);
}

/* File Upload */
.image-upload {
    position: relative;
}

.form-input-file {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px dashed #e2e0de;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 48px;
    color: var(--color-neutral-900);
}

.form-input-file:hover {
    border-color: var(--color-primary);
}

.form-input-file::file-selector-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.75rem;
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Autocomplete */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: var(--color-neutral-50);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-detail {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.autocomplete-empty {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* Chip-based selection */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.chip input[type="checkbox"] {
    display: none;
}

.chip span {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid #e2e0de;
    background: white;
    transition: all 0.2s;
    color: var(--color-neutral-900);
}

.chip input:checked + span {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, white);
    color: var(--color-primary);
}

.chip:hover span {
    border-color: var(--color-primary);
}

/* Form hint text */
.form-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
}

/* Location Map (small, inline) */
.location-map-sm {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e0de;
}

/* Feed Map (full view) */
.feed-map {
    width: 100%;
    height: calc(100vh - 220px);
    border-radius: 12px;
    overflow: hidden;
}

/* Map popup styling */
.map-popup {
    text-align: center;
    min-width: 180px;
}

.map-popup strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.map-popup span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.map-popup .btn {
    margin-top: 0.5rem;
}

/* View Toggle (list/map) */
.feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    gap: 0.75rem;
}

.view-toggle {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e0de;
    flex-shrink: 0;
}

.view-btn {
    padding: 0.5rem 0.625rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

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

.view-btn:hover:not(.active) {
    background: var(--color-neutral-50);
}

/* Profile location */
.profile-location {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Match by */
.match-by {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Dietary-specific badge colors */
.badge-outline[class*="vegetarian"],
.swap-tag:nth-child(1) { border-color: #16A34A; color: #16A34A; }
.swap-card-body .swap-tag[class*="vegan"] { border-color: #15803D; color: #15803D; }
.swap-card-body .swap-tag[class*="halal"] { border-color: #2563EB; color: #2563EB; }
.swap-card-body .swap-tag[class*="gluten"] { border-color: #9333EA; color: #9333EA; }

/* Image overlay gradient for swap cards */
.swap-card-body .swap-meal-image {
    position: relative;
}

.swap-card-body {
    position: relative;
}

/* Smooth card hover lift */
.swap-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.swap-card:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 480px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    h1 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }

    .page-feed, .page-dashboard, .page-form, .page-detail {
        padding: 2rem;
    }

    .location-map-sm {
        height: 250px;
    }

    .feed-map {
        height: calc(100vh - 260px);
    }
}
