/* 
 * Stili principali per Mete Turistiche
 * Design moderno e responsive con TailwindCSS come base
 */

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563EB;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background-color: #E5E7EB;
}

.btn-outline-secondary {
    background-color: transparent;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.btn-outline-secondary:hover {
    background-color: #F3F4F6;
    color: #374151;
}

.btn-danger {
    background-color: #EF4444;
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Main content */
main {
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 6rem 2rem !important;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state .fas {
    font-size: 4rem !important;
    color: #D1D5DB !important;
    margin-bottom: 2rem !important;
}

.empty-state h3 {
    font-size: 1.75rem !important;
    color: #374151 !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.empty-state p {
    color: #6B7280 !important;
    font-size: 1.125rem !important;
    margin-bottom: 2rem !important;
    max-width: 500px;
    line-height: 1.6;
}

/* Search bar */
.search-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3B82F6;
}

/* Filters */
.filters {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
}

.filter-select:focus {
    outline: none;
    border-color: #3B82F6;
}

/* Filters wrapper per centrare i filtri */
.filters-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.filters-section {
    max-width: 1200px;
    width: 100%;
}

.advanced-filters-section {
    max-width: 800px;
    width: 100%;
}

/* Cards grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.destination-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.card-rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-content {
    padding: 1.5rem;
}

/* Rating stars nel content della card */
.card-content .card-rating {
    position: static;
    background: none;
    color: #F59E0B;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-content .card-rating .rating-number {
    color: #6B7280;
    margin-left: 0.25rem;
}

.card-content .card-rating i {
    font-size: 0.75rem;
}

/* Rating badge sopra la foto */
.rating-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    color: #F59E0B;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.rating-badge .rating-number {
    color: white;
    margin-left: 0.25rem;
}

.rating-badge i {
    font-size: 0.75rem;
}

/* Pulsante mappa migliorato */
.map-button {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2) !important;
}

.map-button:hover {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3) !important;
}

.map-button i {
    margin-right: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.card-location {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-description {
    color: #4B5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F3F4F6;
    padding-top: 1rem;
}

.card-price {
    font-weight: 600;
    color: #059669;
}

/* Detail page */
.detail-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-location {
    font-size: 1.125rem;
    opacity: 0.9;
}

.detail-content {
    padding: 2rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.detail-main h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.detail-main p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.detail-sidebar {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 0.75rem;
    height: fit-content;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #3B82F6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #6B7280;
}

.info-value {
    font-weight: 600;
    color: #111827;
}

/* Related destinations */
.related-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid #E5E7EB;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #F3F4F6;
}

.pagination .current {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #6B7280;
}

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error states */
.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Map styles */
.map-container {
    height: 500px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #F9FAFB;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #3B82F6;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #3B82F6;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #E5E7EB;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #3B82F6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #374151;
    color: #D1D5DB;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: #3B82F6;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6B7280;
    font-size: 1rem;
}

/* Header risultati con layout flex */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.results-info {
    flex: 1;
}

.results-info h2 {
    margin-bottom: 1rem;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.active-filters span {
    color: #6B7280;
    font-size: 0.875rem;
}

.filter-badge {
    background: #EF4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-badge a {
    color: white;
    margin-left: 0.25rem;
    text-decoration: none;
    font-weight: 700;
}

.filter-badge a:hover {
    opacity: 0.8;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-toggle {
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle:hover {
    background-color: #F3F4F6;
    border-color: #9CA3AF;
}

.view-toggle.active {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* ==============================================
   STILI AMMINISTRAZIONE
   ============================================== */

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.admin-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-title p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3B82F6;
    color: white;
    font-size: 1.25rem;
}

.stat-icon.success {
    background: #10B981;
}

.stat-icon.warning {
    background: #F59E0B;
}

.stat-icon.info {
    background: #6366F1;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.125rem;
}

.stat-content p {
    color: #6B7280;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Admin Table */
.admin-table-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
}

.table-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.875rem;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #F3F4F6;
}

.admin-table th {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: #F9FAFB;
}

.table-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-published {
    background: #D1FAE5;
    color: #065F46;
}

.status-draft {
    background: #FEF3C7;
    color: #92400E;
}

.status-featured {
    background: #DBEAFE;
    color: #1E40AF;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-icon {
    padding: 0.5rem;
    width: auto;
    height: auto;
    border-radius: 6px;
}

/* Destination info in admin table */
.destination-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.destination-text {
    flex: 1;
    min-width: 0; /* Consente al testo di essere troncato */
}

.no-image {
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 1.25rem;
}

/* Admin Form */
.admin-form-section {
    padding: 2rem 0;
}

.admin-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #1F2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6B7280;
}

.file-input {
    border: 2px dashed #D1D5DB !important;
    padding: 1.5rem !important;
    text-align: center;
    background: #F9FAFB;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input:hover {
    border-color: #3B82F6 !important;
    background: #EFF6FF;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    position: relative;
}

.checkbox-label input:checked + .checkmark {
    background: #3B82F6;
    border-color: #3B82F6;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.form-actions {
    display: flex !important;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
    margin-top: 2rem;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 60px;
    background: #f8f9fa;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

/* Image Preview */
.image-preview,
.images-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

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

.image-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
}

.pagination .current {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-box input {
        min-width: 200px;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        justify-content: center;
    }
    
    /* Detail page responsive */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-main {
        order: 1;
    }
    
    .detail-sidebar {
        order: 2;
        margin-top: 1rem;
    }
    
    .detail-hero .container {
        padding: 0 1rem;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
    
    .detail-content {
        padding: 1.5rem 0;
    }
    
    .detail-content .container {
        padding: 0 1rem;
    }
    
    /* Migliora leggibilità del testo su mobile */
    .detail-main {
        width: 100%;
        max-width: 100%;
    }
    
    .detail-main p {
        margin-bottom: 1.25rem;
        line-height: 1.6;
        font-size: 1rem;
    }
    
    .detail-main h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    /* Tags section responsive */
    .detail-main div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    /* Migliora spazio per le informazioni laterali */
    .detail-sidebar {
        background: #F9FAFB;
        padding: 1.25rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
}
