/**
 * CrickMate Frontend CSS
 * Styles for the turf search results page
 */

/* Search Header Styles */
.search-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 0; /* Remove margin since we already have padding-top on body */
}

.search-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.search-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-info {
    background-color: #3b82f6;
    color: white;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0;
}

.filter-select {
    background-color: white;
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    padding: 8px 30px 8px 12px;
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231e3a8a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 12px;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Search Results Styles */
.search-results {
    padding: 50px 0;
    background-color: #f9fafb;
}

/* Sidebar Filters */
.sidebar-filters {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px; /* Account for fixed header + some space */
}

.sidebar-filters h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.filter-options {
    display: grid;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
}

.btn-apply-filters {
    width: 100%;
    margin-top: 10px;
}

/* Turf Listings */
.turf-listings {
    display: grid;
    gap: 20px;
}

.turf-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.turf-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.turf-image {
    position: relative;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

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

.turf-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.turf-rating i {
    color: var(--accent-color);
}

.reviews-count {
    font-size: 0.8rem;
    color: var(--light-text-color);
    font-weight: normal;
}

.turf-details {
    padding: 20px;
}

.turf-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.turf-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.turf-location i {
    color: var(--primary-color);
    margin-top: 3px;
}

.turf-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.turf-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.turf-info-item i {
    color: var(--secondary-color);
}

.turf-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.turf-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.turf-feature i {
    color: var(--secondary-color);
}

.turf-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.turf-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--light-text-color);
}

.btn-book {
    padding: 8px 20px;
}

.btn-details {
    padding: 8px 15px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results i {
    font-size: 3rem;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.no-results p {
    font-size: 1rem;
    color: var(--light-text-color);
}

/* CTA Section Styles */
.cta-section {
    background-color: #f9fafb;
    padding-top: 0;
}

.cta-container {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: white;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTEyODAgMy40QzEwNTAuNTkgMTggMTAxOS40IDg0Ljg5IDczNC40MiA4NC44OWMtMzIwIDAtMzIwLTg0LjMtNjQwLTg0LjNDNTkuNC41OSAyOC4yIDEuNiAwIDMuNFYxNDBoMTI4MHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCAyNC4zMWM0My40Ni01LjY5IDk0LjU2LTkuMjUgMTU4LjQyLTkuMjUgMzIwIDAgMzIwIDg5LjI0IDY0MCA4OS4yNCAyNTYuMTMgMCAzMDcuMjgtNTcuMTYgNDgxLjU4LTgwVjE0MEgweiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik0xMjgwIDUxLjc2Yy0yMDEgMTIuNDktMjQyLjQzIDUzLjQtNTEzLjU4IDUzLjQtMzIwIDAtMzIwLTU3LTY0MC01Ny00OC44NS4wMS05MC4yMSAxLjM1LTEyNi40MiAzLjZWMTQwaDEyODB6Ii8+PC9nPjwvc3ZnPg==');
    background-size: 100% 100px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-btn {
    background-color: white;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 12px 25px;
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .search-title {
        font-size: 1.8rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .turf-booking {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .turf-price {
        margin-bottom: 15px;
    }
    
    .btn-book, .btn-details {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-header {
        padding: 30px 0;
    }
    
    .search-title {
        font-size: 1.6rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
    }
    
    .turf-image {
        min-height: 180px;
    }
    
    .turf-name {
        font-size: 1.2rem;
    }
    
    .turf-details {
        padding: 15px;
    }
    
    .cta-container {
        padding: 30px;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .search-header {
        padding: 25px 0;
        margin-top: 0;
    }
    
    .search-title {
        font-size: 1.4rem;
    }
    
    .search-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .filter-container {
        padding: 10px;
    }
    
    .filter-select {
        font-size: 0.9rem;
        padding: 6px 25px 6px 10px;
    }
    
    .search-results {
        padding: 30px 0;
    }
    
    .turf-card {
        border-radius: 8px;
    }
    
    .turf-image {
        min-height: 150px;
    }
    
    .turf-rating {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .turf-details {
        padding: 12px;
    }
    
    .turf-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .turf-location {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .turf-info {
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .turf-info-item {
        font-size: 0.8rem;
    }
    
    .turf-features {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .turf-feature {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .turf-price {
        font-size: 1.1rem;
    }
    
    .price-period {
        font-size: 0.8rem;
    }
    
    .btn-book, .btn-details {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .cta-container {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .cta-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Additional styles for mobile webview */
@media (max-width: 480px) {
    .search-header {
        padding: 20px 0;
        margin-top: 0;
    }
    
    .search-title {
        font-size: 1.3rem;
    }
    
    .search-subtitle {
        font-size: 0.85rem;
    }
    
    .turf-image {
        min-height: 130px;
    }
    
    .turf-name {
        font-size: 1rem;
    }
    
    .turf-location {
        font-size: 0.8rem;
    }
    
    .turf-info-item {
        font-size: 0.75rem;
    }
    
    .turf-feature {
        font-size: 0.75rem;
    }
    
    .turf-price {
        font-size: 1rem;
    }
    
    .btn-book, .btn-details {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}
