/* Search Page Styles */
.search-container {
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, #2e4573 0%, #3d5a8f 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.search-hint {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-clear {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.search-clear a {
    color: rgba(255,255,255,0.95);
    text-decoration: underline;
}

.search-clear a:hover {
    color: #fff;
}

/* Pagination */
.search-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.search-pagination-summary {
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.search-pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-pagination-list li a,
.search-pagination-list li span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2e4573;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.95rem;
}

.search-pagination-list li a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.search-pagination-current {
    font-weight: 600;
    background: #2e4573 !important;
    color: #fff !important;
    border-color: #2e4573 !important;
}

.search-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.results-meta {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

.results-section .results-meta {
    color: #666;
    margin-bottom: 0;
}

/* Tour search results grid */
.tours-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tour-search-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tour-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tour-search-card-image {
    aspect-ratio: 16/10;
    background: #e8ecf4;
    overflow: hidden;
}

.tour-search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-search-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.tour-search-card-content {
    padding: 1.25rem;
}

.tour-search-card-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #1a1a1a;
}

.tour-search-card-distillery {
    font-size: 0.9rem;
    color: #718096;
    margin: 0 0 0.5rem;
}

.tour-search-card-meta {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 0 0 0.5rem;
}

.tour-search-card-meta span + span::before {
    content: ' · ';
}

.tour-search-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e4573;
}

@media (max-width: 900px) {
    .search-inputs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .search-inputs {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: left;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: #333;
}

.input-group 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 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-group select:focus {
    outline: 2px solid #3d5a8f;
    outline-offset: 2px;
}

.btn-primary {
    padding: 12px 32px;
    background: white;
    color: #2e4573;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.results-section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 2rem;
    color: #333;
}

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

.distillery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #e8ecf4;
}

.hero-section-small {
    padding: 48px 0;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: #2e4573;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #243a5c;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results a {
    color: #2e4573;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-inputs {
        grid-template-columns: 1fr;
    }
    
    .distilleries-grid {
        grid-template-columns: 1fr;
    }
}
