@media only screen and (min-width: 0rem) {
    #camps-page {
        padding: 3rem 2rem;
        max-width: 72rem;
        margin: 0 auto;
        background-color: #fff;
    }

    .page-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 3rem;
    }

    #camps-page h1 {
        text-align: center;
        font-size: 2.2rem;
        font-weight: 800;
        color: #1a1a2e;
        margin-bottom: 1.5rem;
    }

    #camps-page .search-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        max-width: 50rem;
        flex-wrap: wrap;
        background: #f8f5ff;
        border: 1px solid #e8e0f5;
        border-radius: 12px;
        padding: 1.5rem;
    }

    #camps-page .search-box {
        border: 1px solid #ddd;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
        width: calc(33.33% - 0.5rem);
        border-radius: 8px;
        font-size: 0.95rem;
        transition: border-color 0.2s ease;
    }

    #camps-page .search-box:focus {
        border-color: var(--secondary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(69, 43, 131, 0.1);
    }

    #camps-page .search-button {
        background-color: var(--secondary);
        color: #fff;
        padding: 0.75rem 2rem;
        cursor: pointer;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        transition: background-color 0.2s ease, transform 0.15s ease;
    }

    #camps-page .search-button:hover {
        background-color: #5a3ca0;
        transform: translateY(-1px);
    }

    /* ─── Camp Grid ─── */
    .camps-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .camp-card {
        background-color: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 12px;
        overflow: hidden;
        transition: box-shadow 0.25s ease, transform 0.2s ease;
        display: flex;
        flex-direction: column;
    }

    .camp-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .camp-card img {
        width: 100%;
        height: 190px;
        object-fit: cover;
    }

    .camp-content {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .camp-card h2 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--secondary);
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
    }

    .camp-location {
        font-size: 0.9rem;
        color: #888;
        margin: 0 0 0.75rem 0;
    }

    .camp-description {
        font-size: 1.1rem;
        color: #555;
        line-height: 1.6;
        margin: 0 0 0.75rem 0;
    }

    .camp-ages,
    .camp-gender {
        font-size: 1rem;
        color: #666;
        margin: 0 0 0.25rem 0;
    }

    .camp-link {
        display: inline-block;
        margin-top: auto;
        padding: 0.7rem 1.5rem;
        background-color: var(--secondary);
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        align-self: center;
        transition: background-color 0.2s ease, transform 0.15s ease;
    }

    .camp-link:hover {
        background-color: #5a3ca0;
        transform: translateY(-1px);
        text-decoration: none;
    }
}

@media only screen and (max-width: 63.9375rem) {
    #camps-page {
        padding: 2rem 1.25rem;
    }

    .camps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #camps-page .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    #camps-page .search-box {
        width: 100%;
    }

    #camps-page .search-button {
        width: 100%;
        padding: 0.85rem;
    }
}