/* Tours Table Styles */
.tours-table-wrapper {
    width: 100%;
    margin: 30px 0;
}

/* Info risultati */
.tours-info {
    background: linear-gradient(135deg, #ab0034 0%, #8a0029 100%);
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(171, 0, 52, 0.2);
}

.tours-info p {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Filtri */
.tours-filters {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) auto auto;
    gap: 15px;
    align-items: center;
}

.search-box input,
.filter-quando select,
.filter-destinazioni select,
.filter-tipologia select,
.filter-mese select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.search-box input:focus,
.filter-quando select:focus,
.filter-destinazioni select:focus,
.filter-tipologia select:focus,
.filter-mese select:focus {
    border-color: #ab0034;
    background: #fff;
    outline: none;
}

.btn-search,
.btn-reset {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search {
    background: #ab0034;
    color: #fff;
}

.btn-search:hover {
    background: #8a0029;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 0, 52, 0.3);
}

.btn-reset {
    background: #6c757d;
    color: #fff;
}

.btn-reset:hover {
    background: #5a6268;
}

/* Tabella */
.tours-table-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tours-table {
    width: 100%;
    border-collapse: collapse;
}

.tours-table thead {
    background: #2c3e50;
    color: #fff;
}

.tours-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tours-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 35px;
}

.tours-table thead th.sortable:hover {
    background: #34495e;
}

.tours-table thead th.sortable:after {
    content: '⇅';
    position: absolute;
    right: 15px;
    opacity: 0.5;
}

.tours-table thead th.sortable.asc:after {
    content: '↑';
    opacity: 1;
}

.tours-table thead th.sortable.desc:after {
    content: '↓';
    opacity: 1;
}

/* Dimensioni colonne */
.col-image { width: 180px; }
.col-title { width: auto; }
.col-date { width: 180px; }
.col-price { width: 160px; }
.col-actions { width: 150px; }

.tours-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.tours-table tbody tr:hover {
    background: #f8f9fa;
}

.tours-table tbody tr.tour-evidenza {
    background: #fffbea;
    border-left: 4px solid #ffc107;
}

.tours-table tbody tr.tour-evidenza:hover {
    background: #fff8dc;
}

.tours-table tbody td {
    padding: 20px;
    vertical-align: top;
}

/* Immagine */
.tour-image {
    position: relative;
}

.tour-image a {
    display: block;
    position: relative;
}

.tour-thumb {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.tour-image a:hover .tour-thumb {
    transform: scale(1.05);
}

.evidenza-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.no-image {
    width: 140px;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 32px;
    color: #bbb;
}

/* Info Tour */
.tour-info {
    padding-right: 15px;
}

.tour-title-wrapper {
    margin-bottom: 10px;
}

.tour-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.tour-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.tour-title a:hover {
    color: #ab0034;
}

.tour-label {
    display: inline-block;
    padding: 4px 10px;
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}

.tour-location,
.tour-duration {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.tour-location i,
.tour-duration i {
    margin-right: 6px;
    color: #ab0034;
}

/* Tags */
.tour-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag-quando {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-destinazioni {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag-tipologia {
    background: #e8f5e9;
    color: #388e3c;
}

/* Data */
.tour-date {}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-from,
.date-to {
    display: flex;
    flex-direction: column;
}

.date-from .label,
.date-to .label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.date-from .date,
.date-to .date {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.no-date {
    color: #999;
    font-style: italic;
}

/* Prezzo */
.tour-price {}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-bottom: 4px;
}

.final-price {
    color: #ab0034;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.price-label {
    font-size: 11px;
    color: #666;
}

.price-on-request {
    color: #ab0034;
    font-weight: 600;
    font-size: 14px;
}

/* Azioni */
.tour-actions {
    text-align: center;
}

.btn-view-tour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ab0034 0%, #8a0029 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-view-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(171, 0, 52, 0.3);
    color: #fff;
}

.btn-view-tour i {
    transition: transform 0.3s;
}

.btn-view-tour:hover i {
    transform: translateX(4px);
}

/* Nessun risultato */
.no-tours-found {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.no-tours-found i {
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Paginazione */
.tours-pagination {
    margin-top: 40px;
    text-align: center;
}

.tours-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 8px;
}

.tours-pagination .page-numbers li {
    display: inline-block;
}

.tours-pagination .page-numbers a,
.tours-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.tours-pagination .page-numbers a:hover {
    background: #ab0034;
    color: #fff;
    border-color: #ab0034;
    transform: translateY(-2px);
}

.tours-pagination .page-numbers .current {
    background: #ab0034;
    color: #fff;
    border-color: #ab0034;
}

/* Responsive */
@media (max-width: 1400px) {
    .filter-row {
        grid-template-columns: 2fr repeat(2, 1fr) auto auto;
    }

    .filter-tipologia,
    .filter-mese {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .tours-table-container {
        overflow-x: auto;
    }

    .tours-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .btn-search,
    .btn-reset {
        width: 100%;
    }

    /* Layout card su mobile */
    .tours-table thead {
        display: none;
    }

    .tours-table,
    .tours-table tbody,
    .tours-table tr,
    .tours-table td {
        display: block;
        width: 100%;
    }

    .tours-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .tours-table td {
        padding: 10px 0;
        border: none;
    }

    .tour-image {
        margin-bottom: 15px;
    }

    .tour-thumb {
        width: 100%;
        height: 200px;
    }

    .tour-actions {
        margin-top: 15px;
    }

    .btn-view-tour {
        width: 100%;
        justify-content: center;
    }
}