/**
 * Tours Results CSS
 * Extracted from tours_results.html for CSP compliance
 */

.results-header {
     display: flex;
     flex-wrap: wrap;
     align-items: flex-start;
     justify-content: space-between;
     gap: 16px;
     margin-bottom: 15px;
     padding-bottom: 15px;
     border-bottom: 1px solid #b4b4b4;
}

.results-header-left {
     flex: 1;
     min-width: 0;
}

.results-header h2.results-count {
     margin-bottom: 5px;
     color: var(--deep-green);
     font-weight: bold;
     font-size: 1.25rem;
}

/* Sort dropdown in results header */
.results-header-sort {
     display: flex;
     align-items: center;
     gap: 10px;
     flex-shrink: 0;
}

.results-header-sort .sort-label {
     font-size: 14px;
     color: #333;
     font-weight: 600;
     margin: 0;
     white-space: nowrap;
     flex-shrink: 0;
}

.results-header-sort .sort-select {
     padding: 8px 36px 8px 14px;
     background-color: #fff;
     border: 2px solid #ddd;
     border-radius: 8px;
     font-size: 14px;
     font-weight: 500;
     color: #333;
     cursor: pointer;
     -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232a5db0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 10px center;
     background-size: 14px;
     min-width: 180px;
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.results-header-sort .sort-select:hover {
     border-color: #2a5db0;
}

.results-header-sort .sort-select:focus {
     outline: none;
     border-color: #2a5db0;
     box-shadow: 0 0 0 3px rgba(42, 93, 176, 0.15);
}

/* Mobile: stack sort below results count */
@media (max-width: 576px) {
     .results-header {
          flex-direction: column;
          align-items: stretch;
          gap: 12px;
     }

     .results-header-sort {
          width: 100%;
          justify-content: flex-start;
          flex-wrap: wrap;
     }

     .results-header-sort .sort-label {
          width: 100%;
     }

     .results-header-sort .sort-select {
          flex: 1;
          min-width: 0;
          width: 100%;
          min-height: 44px;
          font-size: 16px;
          padding: 12px 40px 12px 14px;
     }
}

.filter-summary {
     margin: 0;
     font-size: 14px;
     color: #666;
}

.filter-badge {
     display: inline-flex;
     align-items: center;
     background-color: #e9ecef;
     color: #495057;
     padding: 2px 8px;
     border-radius: 12px;
     font-size: 12px;
     margin: 2px;
     gap: 4px;
}

.filter-badge.removable {
     cursor: pointer;
     transition: background-color 0.2s ease;
}

.filter-badge.removable:hover {
     background-color: #dee2e6;
}

.filter-remove-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     background: none;
     border: none;
     color: #6c757d;
     font-size: 14px;
     font-weight: bold;
     width: 16px;
     height: 16px;
     padding: 0;
     margin-left: 2px;
     cursor: pointer;
     border-radius: 50%;
     line-height: 1;
     transition: all 0.15s ease;
}

.filter-remove-btn:hover {
     background-color: var(--primary-color, #c45a52);
     color: white;
}

.reset-filters-btn {
     display: inline-block;
     background-color: var(--primary-color, #c45a52);
     color: white;
     padding: 3px 10px;
     border-radius: 12px;
     font-size: 12px;
     margin-left: 8px;
     text-decoration: none;
     transition: background-color 0.2s ease, transform 0.1s ease;
}

.reset-filters-btn:hover {
     background-color: #a84840;
     color: white;
     text-decoration: none;
     transform: translateY(-1px);
}

.reset-filters-btn i {
     font-size: 10px;
     margin-right: 2px;
}

.tours-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 1.5rem;
     min-height: 200px;
}

.tour-item {
     margin-bottom: 20px;
}

.no-results {
     display: flex;
     align-items: center;
     justify-content: center;
     min-height: 300px;
     text-align: center;
}

.no-results-content {
     max-width: 400px;
}

.no-results h3 {
     color: #666;
     margin-bottom: 15px;
}

.no-results p {
     color: #999;
     margin-bottom: 20px;
}

.pagination-container {
     margin-top: 30px;
     text-align: center;
}