/* Tours Page - Modern Filter & Grid Layout */

/* Search & Filter Section */
.tours-search-section {
    background: #f2f5fb;
    padding: 2.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 80px;
}

.search-filters-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    gap: 0.5rem;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #00b8d4;
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.1);
}

input[type="date"].filter-input {
    cursor: pointer;
    color: #333;
    min-height: 48px;
}

input[type="date"].filter-input::-webkit-datetime-edit-text,
input[type="date"].filter-input::-webkit-datetime-edit-month-field,
input[type="date"].filter-input::-webkit-datetime-edit-day-field,
input[type="date"].filter-input::-webkit-datetime-edit-year-field {
    color: #333;
}

.filter-select {
    cursor: pointer;
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.btn-clear-filters,
.btn-more-filters {
    padding: 0.9rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-clear-filters {
    color: #f44336;
    border-color: #ffcdd2;
}

.btn-clear-filters:hover {
    background: #ffebee;
    border-color: #f44336;
}

.btn-more-filters {
    color: #00b8d4;
    border-color: #b3e5fc;
}

.btn-more-filters:hover {
    background: #e0f7fa;
    border-color: #00b8d4;
}

/* Tours Content Section */
.tours-content-section {
    padding: 3rem 0;
    background: #fafbfc;
}

/* Tours Controls */
.tours-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tours-tabs {
    display: flex;
    gap: 0.5rem;
}

.tour-tab {
    padding: 0.8rem 1.8rem;
    border: none;
    background: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tour-tab:hover {
    background: #e0f7fa;
    color: #00b8d4;
}

.tour-tab.active {
    background: linear-gradient(135deg, #00b8d4, #0288d1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.3);
}

.tab-count {
    opacity: 0.8;
    font-size: 0.9rem;
}

.tours-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-compare {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-compare:hover {
    border-color: #00b8d4;
    color: #00b8d4;
}

.search-keyword {
    display: flex;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.search-keyword input {
    border: none;
    padding: 0.8rem 1.2rem;
    width: 250px;
    font-size: 0.95rem;
}

.search-keyword input:focus {
    outline: none;
}

.btn-search-keyword {
    padding: 0.8rem 1.5rem;
    background: #00b8d4;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-search-keyword:hover {
    background: #0288d1;
}

/* Results Bar */
.tours-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-info h2 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 400;
}

.results-info strong {
    font-weight: 700;
    color: #00b8d4;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: #00b8d4;
    color: #00b8d4;
}

.view-btn.active {
    background: #00b8d4;
    border-color: #00b8d4;
    color: white;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sort-dropdown label {
    font-weight: 500;
    color: #666;
}

.sort-dropdown select {
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tour-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

/* Tour Card */
.tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tour-card.featured {
    border: 2px solid #ff9800;
}

.tour-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.featured-badge {
    background: #ff9800;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.tour-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #666;
}

.btn-wishlist:hover {
    background: #ff9800;
    color: white;
    transform: scale(1.1);
}

.btn-wishlist.active {
    background: #ff9800;
    color: white;
}

.btn-wishlist.active:hover {
    background: #e67e00;
}

.tour-region-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 2px solid #ff9800;
    letter-spacing: 0.3px;
}

.tour-region-badge i {
    color: #4dd0c8;
    font-size: 0.72rem;
}

.tour-images-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tour-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-price {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #00b8d4;
}

.price-per {
    font-size: 0.9rem;
    color: #999;
}

.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 0.75rem;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #555;
    font-weight: 500;
}

.meta-badge i {
    font-size: 0.72rem;
    color: #ff9800;
}

.meta-badge-duration {
    background: #f0faf8;
    border-color: #d0ece7;
    color: #ff9800;
}

/* Pagination */
.tours-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.page-btn:hover:not(.disabled) {
    border-color: #00b8d4;
    color: #00b8d4;
}

.page-btn.active {
    background: #00b8d4;
    border-color: #00b8d4;
    color: white;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #999;
    padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .tours-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tours-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .tours-results-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .search-keyword input {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .sort-dropdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.tours-initial-state,
.tours-empty-state,
.tours-loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 30px;
    min-height: 40vh;
}

.tours-initial-state i,
.tours-empty-state i,
.tours-loading-state i {
    font-size: 3rem;
    color: #ff9800;
    margin-bottom: 20px;
    opacity: 0.6;
}

.tours-loading-state i {
    opacity: 1;
    color: #ff9800;
}

.tours-initial-state h3,
.tours-empty-state h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.tours-initial-state p,
.tours-empty-state p,
.tours-loading-state p {
    font-size: 0.95rem;
    color: #777;
    max-width: 400px;
}
