*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root
{
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --border-glow: rgba(37, 99, 235, 0.3);
    --tech-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

body
{
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Animation */
#loading
{
    background-color: var(--darker);
    z-index: 1000;
    height: 100%;
    width: 100%;
    position: fixed;
    display: flex;
    opacity: 0.95;
    backdrop-filter: blur(8px);
}

#loading svg
{
    width: max(8vw, 40px);
    margin: auto;
    filter: drop-shadow(0 0 10px var(--accent));
}

/* Tech Grid Background */
body::before
{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(30, 41, 59, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.7) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container
{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header
{
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: var(--light);
    padding: 15px 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo
{
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo i
{
    margin-right: 12px;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--primary));
}

/* Search Section */
.search-section
{
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.search-section::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.search-section h1
{
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.search-section p
{
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Main Content */
.main-content
{
    display: flex;
    gap: 30px;
    padding: 30px 0 60px;
}

/* Filter Toggle */
.filter-toggle
{
    display: none;
    background: var(--tech-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.filter-toggle:hover
{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Filter Menu */
.filter-menu
{
    width: 320px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    height: fit-content;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

.filter-header h2
{
    font-size: 20px;
    color: var(--light);
    font-weight: 700;
}

.close-filter
{
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
}

.close-filter:hover
{
    color: var(--accent);
}

/* Filter Groups */
.filter-group
{
    margin-bottom: 30px;
    position: relative;
}

.filter-group h3
{
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Select Styling */
select
{
    appearance: none;
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    color: var(--light);
    background: rgba(30, 41, 59, 0.8);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' 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-size: 20px;
    padding: 14px 45px 14px 20px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
    background-position: right 16px center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

select:hover
{
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--border-glow);
}

select:focus
{
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Custom Checkbox Styling */
details
{
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

details:hover
{
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--border-glow);
}

details summary
{
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::after
{
    content: '▶';
    transition: transform 0.3s;
    color: var(--accent);
}

details[open] summary::after
{
    transform: rotate(90deg);
}

details label
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--light);
    cursor: pointer;
    transition: color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

details label:last-child
{
    border-bottom: none;
}

details label:hover
{
    color: var(--accent);
}

details input[type="checkbox"]
{
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(37, 99, 235, 0.5);
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

details input[type="checkbox"]:checked
{
    background: var(--primary);
    border-color: var(--primary);
}

details input[type="checkbox"]:checked::after
{
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Apply Filters Button */
.apply-filters
{
    background: var(--tech-gradient);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.apply-filters:hover
{
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

/* Results Section */
.results-section
{
    flex: 1;
    position: relative;
}

.results-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Component Cards Grid */
.centre-cards
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Component Card */
.centre-card
{
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.centre-card::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tech-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.centre-card:hover
{
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px var(--border-glow);
}

.centre-card:hover::before
{
    opacity: 1;
}

/* Image Container */
.image-container
{
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(45deg, var(--dark), var(--darker));
}

.centre-image
{
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.centre-card:hover .centre-image
{
    transform: scale(1.05);
}

/* Card Content */
.centre-info
{
    padding: 25px;
}

.centre-name
{
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.centre-name::before
{
    content: '⚡';
    color: var(--accent);
    font-size: 18px;
}

/* Features Tags */
.centre-features
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.feature-tag
{
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
}

.feature-tag:hover
{
    background: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Price Section */
.centre-price
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price
{
    font-size: 28px;
    font-weight: 800;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.book-button
{
    background: var(--tech-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.book-button:hover
{
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Pagination */
#page_num
{
    height: 60px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

#page_num input[type="button"]
{
    height: 40px;
    width: 40px;
    border-radius: 10px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    background: rgba(15, 23, 42, 0.9);
    color: var(--light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#page_num input[type="button"]:hover
{
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--border-glow);
}

#page_num input[type="button"]:active
{
    transform: scale(0.95);
}

#page_num input[type="button"].active_btn
{
    background: var(--tech-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Glow Effects */
.glow-text
{
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* Tech Badge */
.tech-badge
{
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tech-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px)
{
    .filter-menu
    {
        width: 280px;
    }

    .centre-cards
    {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px)
{
    .header-content
    {
        justify-content: center;
    }

    .search-section h1
    {
        font-size: 2.5rem;
    }

    .filter-toggle
    {
        display: flex;
    }

    .filter-menu
    {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        transform: translateX(-100%);
        overflow-y: auto;
        padding: 80px 20px 40px;
    }

    .filter-menu.active
    {
        transform: translateX(0);
    }

    .close-filter
    {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    .main-content
    {
        flex-direction: column;
    }

    .centre-cards
    {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .centre-price
    {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .book-button
    {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px)
{
    .search-section h1
    {
        font-size: 2rem;
    }

    .search-section p
    {
        font-size: 1rem;
    }

    .filter-group h3
    {
        font-size: 14px;
    }

    select
    {
        font-size: 14px;
        padding: 12px 40px 12px 15px;
    }

    .centre-name
    {
        font-size: 20px;
    }

    .price
    {
        font-size: 24px;
    }
}