/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #2d5a27;
    --primary-light: #81C784;
    --secondary-color: #8BC34A;
    --background: #f5f5f5;
    --surface: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --error: #f44336;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Screens */
.screen {
    display: none;
    height: 100%;
    width: 100%;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Loading Screen */
#loading-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 20px;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 320px;
}

.logo {
    margin-bottom: 20px;
}

.leaf-icon {
    width: 100px;
    height: 100px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loading-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

#loading-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#status-text {
    font-size: 1rem;
    opacity: 0.9;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-icon {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Main Screen */
#main-screen {
    position: relative;
}

.app-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.app-header h1 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.app-header .btn-icon {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* City Select */
.city-select {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    max-width: 160px;
}

.city-select:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.city-select:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* User Menu */
.user-menu {
    position: relative;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-user:hover {
    background: var(--primary-dark);
}

.btn-user svg {
    width: 20px;
    height: 20px;
}

#user-name-short {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.hidden {
    display: none;
}

.user-info {
    padding: 16px;
    background: var(--background);
}

.user-info span {
    display: block;
}

#user-name-full {
    font-weight: 600;
    color: var(--text-primary);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--background);
}

.dropdown-item svg {
    color: var(--text-secondary);
}

.dropdown-item.logout {
    color: var(--error);
}

.dropdown-item.logout svg {
    color: var(--error);
}

.admin-only.hidden {
    display: none;
}

/* Favorite Button */
.btn-favorite {
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite.active .heart-outline {
    display: none;
}

.btn-favorite.active .heart-filled {
    display: block;
}

.btn-favorite .heart-filled {
    display: none;
}

.btn-favorite .heart-filled.hidden {
    display: none;
}

/* Favorite icon on cards */
.favorite-btn-card {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.favorite-btn-card:hover {
    transform: scale(1.1);
}

.favorite-btn-card svg {
    width: 18px;
    height: 18px;
}

.favorite-btn-card.active svg {
    fill: #e91e63;
}

/* Form styles for modals */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--surface);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.form-error.hidden {
    display: none;
}

.form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.form-success.hidden {
    display: none;
}

/* Map */
#map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom Leaflet Markers */
.custom-marker {
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.user-marker {
    background: #2196F3;
    width: 16px;
    height: 16px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(33, 150, 243, 0.3);
    animation: userPulse 2s ease-in-out infinite;
}

@keyframes userPulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(33, 150, 243, 0.3); }
    50% { box-shadow: 0 0 0 16px rgba(33, 150, 243, 0.1); }
}

.restaurant-marker {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

/* Restaurants Panel */
.panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.panel-header {
    padding: 12px 20px 8px;
    text-align: center;
    flex-shrink: 0;
}

.panel-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 12px;
}

.panel-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Filtro de categoria */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: var(--background);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.filter-btn:hover:not(.active) {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

/* Badge de categoria */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.vegano {
    background: #4CAF50;
    color: white;
}

.category-badge.vegetariano {
    background: #8BC34A;
    color: white;
}

.restaurants-list {
    overflow-y: auto;
    padding: 0 16px 20px;
    flex: 1;
}

/* Restaurant Card */
.restaurant-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.restaurant-card.selected {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
}

.restaurant-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.restaurant-details {
    flex: 1;
    min-width: 0;
}

.restaurant-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.restaurant-neighborhood {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.restaurant-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
}

.restaurant-distance {
    text-align: right;
    flex-shrink: 0;
}

.distance-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}

.distance-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.modal.hidden {
    display: none;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.modal-header h2 {
    flex: 1;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Restaurant Info */
.restaurant-info {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.info-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-row span {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Categoria no modal */
.modal-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-neighborhood {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Descrição do restaurante */
.modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 0 4px;
    font-style: italic;
}

/* Fonte e Evidência */
.source-card {
    margin-top: 16px;
}

.source-title {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.source-text {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.evidence-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: justify;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-navigate {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-navigate:hover {
    background: var(--primary-dark);
}

/* Route Map */
.route-map-container {
    flex: 1;
    padding: 16px;
}

#route-map {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Iframe Container */
.iframe-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background);
    z-index: 1;
}

.iframe-loading .spinner {
    border-color: rgba(76, 175, 80, 0.3);
    border-top-color: var(--primary-color);
}

.iframe-loading p {
    margin-top: 16px;
    color: var(--text-secondary);
}

#restaurant-iframe {
    width: 100%;
    flex: 1;
    border: none;
    background: white;
}

/* Tabs */
.tabs {
    display: flex;
    border-top: 1px solid #eee;
    background: var(--surface);
    flex-shrink: 0;
}

.tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Leaflet Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: inherit;
}

.popup-content {
    text-align: center;
}

.popup-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.popup-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.popup-content .btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Route Line Style */
.route-line {
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-opacity: 0.8;
}

/* ============================================
   Community Feed Styles
   ============================================ */

/* Camera button in header */
.btn-camera {
    color: var(--primary-color);
}

.btn-camera:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* Community Section */
.community-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 45vh;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateY(calc(100% - 60px));
    transition: transform 0.3s ease;
}

.community-section.expanded {
    transform: translateY(0);
}

.community-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.community-header h2 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-header h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.community-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Community Feed */
.community-feed {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Post Card */
.post-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.post-author {
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.post-author:hover {
    text-decoration: underline;
}

.post-distance {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
}

.post-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-footer {
    padding: 12px 16px;
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.btn-like {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px;
    transition: transform 0.2s;
}

.btn-like:hover {
    transform: scale(1.1);
}

.btn-like.liked {
    color: #e91e63;
}

.btn-like svg {
    width: 24px;
    height: 24px;
}

.likes-count {
    font-weight: 600;
}

.post-caption {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-restaurant {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 8px;
}

.post-restaurant:hover {
    text-decoration: underline;
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Feed States */
.feed-loading,
.feed-empty,
.feed-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.feed-loading .spinner {
    margin: 0 auto 16px;
    border-color: rgba(76, 175, 80, 0.3);
    border-top-color: var(--primary-color);
}

.feed-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.feed-empty-hint {
    font-size: 0.85rem;
    margin-top: 8px;
}

.feed-error button {
    margin-top: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* Create Post Modal */
#create-post-modal {
    display: none;
}

#create-post-modal.active {
    display: flex;
}

.create-post-content {
    max-width: 500px;
    width: 100%;
    margin: auto;
    max-height: 90vh;
}

.create-post-content .modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
}

.image-upload-area p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Image Preview */
.image-preview-container {
    position: relative;
    margin-bottom: 20px;
}

#image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #f0f0f0;
}

.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.btn-remove-image:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Caption Character Count */
.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Publish Button */
.btn-publish {
    width: 100%;
    margin-top: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    z-index: 3000;
    transition: bottom 0.3s ease;
}

.toast.show {
    bottom: 100px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .panel {
        max-width: 400px;
        left: 20px;
        right: auto;
        bottom: 20px;
        border-radius: var(--radius-lg);
        max-height: calc(100vh - 100px);
    }

    .modal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        height: 80vh;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    @keyframes slideUp {
        from {
            transform: translate(-50%, -40%);
            opacity: 0;
        }
        to {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #121212;
        --surface: #1e1e1e;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
    }

    .info-row {
        border-color: #333;
    }

    .modal-header {
        border-color: #333;
    }

    .tabs {
        border-color: #333;
    }

    .restaurant-card {
        background: #2a2a2a;
    }

    .info-card {
        background: #2a2a2a;
    }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .app-header {
        padding-top: calc(12px + env(safe-area-inset-top));
    }

    .panel {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .tabs {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
