/* ============================================================
   APW Directory — Frontend Styles
   ============================================================ */

/* Registration Form (inline in registration-logic.php) */
/* Keeping the inline styles there for portability. */

/* Map Wrapper */
.apw-map-wrapper {
    position: relative;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* Counter Cards */
.apw-counters {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.apw-counter {
    text-align: center;
    padding: 20px;
    background: #eee;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
}

.apw-counter .number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
}

.apw-counter-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.apw-counter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Directory Search Hero */
.apw-directory-search-hero {
    transition: box-shadow 0.2s;
}

.apw-directory-search-hero:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* Directory Grid */
.apw-profile-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Profile Single Page */
.apw-single-profile {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .apw-counters {
        flex-direction: column;
    }

    .apw-directory-search-hero {
        flex-direction: column;
        text-align: center;
    }

    .apw-directory-search-hero form {
        flex-direction: column;
    }
}

/* Search bar form elements */
.apw-filter-select {
    background: #fff;
    cursor: pointer;
}

.apw-filter-select:focus {
    border-color: #004a99;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,74,153,0.25);
}

/* Map loading spinner */
@keyframes apw-spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.apw-directory-pagination .page-numbers:hover {
    background: #e9ecef;
}

/* Profile card image fallback */
.apw-profile-card .card-img .no-img {
    font-size: 3rem;
    color: #aaa;
}

/* Print styles */
@media print {
    .apw-map-wrapper { display: none; }
    .apw-directory-search-hero { display: none; }
    .apw-profile-card { break-inside: avoid; }
}
