/* Search Form Styles */
.tuscanhound-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-filters {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.search-button {
    background: #8B4513;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: #6B3410;
}

/* Tickets Container */
.tickets-container {
    display: grid;
    gap: 20px;
}

/* Ticket Card Styles */
.ticket-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.ticket-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ticket-header {
    background: #3F1414;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-route h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.route-info {
    font-size: 14px;
    opacity: 0.9;
}

.ticket-date {
    font-size: 14px;
    font-weight: 500;
}

.ticket-content {
    padding: 20px;
}

.flight-details {
    margin-bottom: 15px;
}

.flight-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flight-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.flight-details li:last-child {
    border-bottom: none;
}

.ticket-price {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #8B4513;
    margin: 0 5px;
}

.price-note {
    font-size: 12px;
    color: #666;
}

.ticket-actions {
    text-align: center;
}

.book-ticket-btn {
    background: #8B4513;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s;
}

.book-ticket-btn:hover {
    background: #6B3410;
    color: white;
    text-decoration: none;
}

/* No tickets message */
.no-tickets {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .ticket-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Homepage Search Filter Styles */
.tuscanhound-homepage-search {
    background: #3F1414 !important;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tuscanhound-tickets-search {
    background: #3F1414 !important;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Desktop 4-Column Layout */
.search-filters-homepage,
.search-filters-tickets {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Filter Widths for Desktop */
.filter-select:nth-child(1) {
    flex: 0 0 30%; /* Departure - 30% */
}

.filter-select:nth-child(2) {
    flex: 0 0 30%; /* Destination - 30% */
}

.filter-select:nth-child(3) {
    flex: 0 0 20%; /* Month - 20% */
}

.filter-select:nth-child(4) {
    flex: 0 0 20%; /* Button - 20% */
}

.filter-select {
    background: white !important;
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 14px;
    color: #000 !important;
    cursor: pointer;
    outline: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: none;
    min-width: auto;
}

/* Remove all hover effects */
.filter-select:focus {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: none;
}

.filter-select:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Search button styling - RED */
.filter-select:nth-child(4),
.find-tickets-btn,
.search-filters-homepage .find-tickets-btn,
.search-filters-tickets .find-tickets-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove hover effects from search button */
.filter-select:nth-child(4):hover,
.find-tickets-btn:hover,
.search-filters-homepage .find-tickets-btn:hover,
.search-filters-tickets .find-tickets-btn:hover {
    background: #dc3545 !important;
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.filter-select:nth-child(4):active,
.find-tickets-btn:active {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Tablets and Mobile */
@media (max-width: 1024px) {
    .search-filters-homepage,
    .search-filters-tickets {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-select:nth-child(1),
    .filter-select:nth-child(2) {
        flex: 0 0 48%;
    }
    
    .filter-select:nth-child(3) {
        flex: 0 0 48%;
    }
    
    .filter-select:nth-child(4) {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    .tuscanhound-homepage-search,
    .tuscanhound-tickets-search {
        padding: 20px 15px;
        margin: 15px 10px;
        border-radius: 12px;
    }
    
    .search-filters-homepage,
    .search-filters-tickets {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-select:nth-child(1),
    .filter-select:nth-child(2),
    .filter-select:nth-child(3),
    .filter-select:nth-child(4) {
        flex: 1 1 100%;
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tuscanhound-homepage-search,
    .tuscanhound-tickets-search {
        padding: 15px 10px;
        margin: 10px 5px;
    }
    
    .filter-select,
    .filter-select:nth-child(4) {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Ensure dropdown options have proper styling */
.filter-select option {
    padding: 10px;
    color: #000 !important;
    background: white !important;
}

.filter-select::-webkit-input-placeholder {
    color: #999;
}

.filter-select::-moz-placeholder {
    color: #999;
}

.filter-select:-ms-input-placeholder {
    color: #999;
}

.filter-select::placeholder {
    color: #999;
}

/* Tickets Page Search Filter */
.tuscanhound-tickets-search {
    background: linear-gradient(135deg, #6B3410 0%, #4A2308 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.search-filters-tickets {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.find-tickets-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.find-tickets-btn:hover {
    background: #c82333;
}

/* Ticket Cards Grid */
/* Fixed Tickets Grid - Always 3 Column Layout */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    align-items: start; /* Prevent stretching */
}

/* Updated Ticket Card Design - Fixed Width */
.ticket-card-new {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #d1d1d1;
    width: 100%; /* Ensure it takes only its grid column width */
    max-width: 100%; /* Prevent expansion */
    box-sizing: border-box;
}

.ticket-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.ticket-month-header {
    background: #3F1414;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.ticket-body {
    padding: 20px;
}

.route-title h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.route-code {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 10px;
}

.flight-date {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.flight-details-new {
    margin-bottom: 20px;
}

.flight-details-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flight-details-new li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.flight-details-new li:last-child {
    border-bottom: none;
}

.pricing-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pricing-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.price-column,
.seats-column {
    flex: 1;
    text-align: center;
}

.price-label,
.seats-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #3F1414;
}

.seats-status {
    margin-top: 5px;
}

.seats-available {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.sold-out {
    font-size: 14px;
    color: #dc3545;
    font-weight: 700;
}

/* Ensure Equal Card Heights */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    align-items: stretch; /* This ensures equal heights */
}

.ticket-card-new {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #d1d1d1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures full height usage */
}

.ticket-body {
    padding: 20px;
    flex: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
}

.book-section {
    margin-top: auto; /* Pushes button to bottom */
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tickets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-columns {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-column,
    .seats-column {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}

/* No filtered results styling */
.no-filtered-results {
    margin: 30px 0;
}

.no-tickets-found {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Ticket Display Sections */
.tickets-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #8B4513, transparent);
    margin: 30px 0;
}

/* Responsive Design - Maintain grid structure */
@media (max-width: 1200px) {
    .tickets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ticket-card-new {
        margin-bottom: 15px;
    }
    
    .section-heading {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ticket-body {
        padding: 15px;
    }
    
    .route-title h3 {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 20px;
    }
}
.tuscanhound-tickets-search {
    background-color: #3F1414 !important;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Desktop 4-Column Layout - Keep all in same row */
.search-filters-tickets {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Filter Widths for Desktop - 4 columns in same row */
.search-filters-tickets .filter-select:nth-child(1) {
    flex: 0 0 30%; /* Departure - 30% */
}

.search-filters-tickets .filter-select:nth-child(2) {
    flex: 0 0 30%; /* Destination - 30% */
}

.search-filters-tickets .filter-select:nth-child(3) {
    flex: 0 0 20%; /* Month - 20% */
}

.search-filters-tickets .apply-filters-btn,
.search-filters-tickets .find-tickets-btn {
    flex: 0 0 20%; /* Find Tickets Button - 20% */
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-filters-tickets .apply-filters-btn:hover,
.search-filters-tickets .find-tickets-btn:hover {
    background: #c82333;
}

/* Ensure no wrapping on desktop */
@media (min-width: 769px) {
    .search-filters-tickets {
        flex-wrap: nowrap;
    }
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
    .search-filters-tickets {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-filters-tickets .filter-select,
    .search-filters-tickets .apply-filters-btn,
    .search-filters-tickets .find-tickets-btn {
        flex: none;
        width: 100%;
    }
}

.find-tickets-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.find-tickets-btn:hover {
    background: #c82333;
}

/* Ticket Cards Grid */
/* Fixed Tickets Grid - Always 3 Column Layout */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    align-items: start; /* Prevent stretching */
}

/* Updated Ticket Card Design - Fixed Width */
.ticket-card-new {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #d1d1d1;
    width: 100%; /* Ensure it takes only its grid column width */
    max-width: 100%; /* Prevent expansion */
    box-sizing: border-box;
}

.ticket-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.ticket-month-header {
    background: #3F1414;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.ticket-body {
    padding: 20px;
}

.route-title h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.route-code {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 10px;
}

.flight-date {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.flight-details-new {
    margin-bottom: 20px;
}

.flight-details-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flight-details-new li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.flight-details-new li:last-child {
    border-bottom: none;
}

.pricing-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pricing-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.price-column,
.seats-column {
    flex: 1;
    text-align: center;
}

.price-label,
.seats-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #3F1414;
}

.seats-status {
    margin-top: 5px;
}

.seats-available {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.sold-out {
    font-size: 14px;
    color: #dc3545;
    font-weight: 700;
}

/* Ensure Equal Card Heights */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    align-items: stretch; /* This ensures equal heights */
}

.ticket-card-new {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #d1d1d1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures full height usage */
}

.ticket-body {
    padding: 20px;
    flex: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
}

.book-section {
    margin-top: auto; /* Pushes button to bottom */
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tickets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-columns {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-column,
    .seats-column {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}

/* No filtered results styling */
.no-filtered-results {
    margin: 30px 0;
}

.no-tickets-found {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Ticket Display Sections */
.tickets-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #8B4513, transparent);
    margin: 30px 0;
}

/* Responsive Design - Maintain grid structure */
@media (max-width: 1200px) {
    .tickets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ticket-card-new {
        margin-bottom: 15px;
    }
    
    .section-heading {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ticket-body {
        padding: 15px;
    }
    
    .route-title h3 {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 20px;
    }
}