/* ==========================================================================
   DRILLEEDO — Find Professionals page  v2.0
   Design system consistent with professional_profile.css
   All classes prefixed "fp-" (find-professionals)
   ========================================================================== */


/* ── Tokens (same palette) ──────────────────────────────────────────────── */
:root {
    --fp-navy: #0C1825;
    --fp-navy-mid: #003660;
    --fp-blue: #00497F;
    --fp-blue-light: #3FA9F5;
    --fp-blue-pale: #e8f4fd;
    --fp-orange: #FF8A3D;
    --fp-orange-pale: #fff3ef;
    --fp-green: #16a34a;
    --fp-green-pale: #e8faf1;
    --fp-gold: #f59e0b;
    --fp-white: #ffffff;
    --fp-bg: #f0f6ff;
    --fp-gray-50: #f8fafc;
    --fp-gray-100: #f1f5f9;
    --fp-gray-200: #e2e8f0;
    --fp-gray-400: #94a3b8;
    --fp-gray-600: #64748b;
    --fp-text: #0d2151;

    --fp-radius: 12px;
    --fp-radius-sm: 8px;
    --fp-radius-lg: 20px;
    --fp-shadow: 0 2px 12px rgba(13, 33, 81, 0.08);
    --fp-shadow-md: 0 4px 24px rgba(13, 33, 81, 0.12);
    --fp-shadow-lg: 0 8px 40px rgba(13, 33, 81, 0.16);

    --fp-font-head: 'Instrument Sans', system-ui, sans-serif;
    --fp-font-body: 'Instrument Sans', system-ui, sans-serif;
}

/* ── Base reset for page ── */
.fp-page,
.fp-page *,
.fp-page *::before,
.fp-page *::after {
    box-sizing: border-box;
}

.fp-page {
    background: var(--fp-bg);
    color: var(--fp-text);
    font-family: var(--fp-font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}


/* ══════════════════════════════════════════════════════════════════════════
   1. HERO BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.fp-hero {
    height: 260px;
    background: linear-gradient(120deg, var(--fp-blue) 0%, var(--fp-blue-light) 100%);
    position: relative;
    overflow: hidden;
}

.fp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.75);
    display: block;
}

.fp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(13, 33, 81, 0.75) 0%,
            rgba(13, 33, 81, 0.3) 60%,
            transparent 100%);
    pointer-events: none;
}

.fp-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-align: center;
    padding: 0 24px;
}

.fp-hero__title {
    font-family: var(--fp-font-head);
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 900;
    color: var(--fp-white);
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.fp-hero__sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 560px;
    line-height: 1.6;
    margin: 0;
}

/* ── Search bar inside hero ── */
.fp-hero__search {
    margin-top: 22px;
    width: 100%;
    max-width: 600px;
}

.fp-search-bar {
    display: flex;
    align-items: center;
    background: var(--fp-white);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 33, 81, 0.28);
    height: 54px;
}

.fp-search-bar__icon {
    padding: 0 16px 0 20px;
    color: var(--fp-gray-400);
    font-size: 18px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fp-search-bar__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--fp-font-body);
    font-size: 15px;
    color: var(--fp-text);
    background: transparent;
    padding: 0 8px;
}

.fp-search-bar__input::placeholder {
    color: var(--fp-gray-400);
}

.fp-search-bar__btn {
    flex-shrink: 0;
    background: var(--fp-orange);
    color: var(--fp-white);
    border: none;
    height: 100%;
    padding: 0 24px;
    font-family: var(--fp-font-head);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0 999px 999px 0;
    transition: background 0.18s;
}

.fp-search-bar__btn:hover {
    background: #e87830;
}

/* ── Stats row in hero ── */
.fp-hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.fp-hero__stat-dot {
    color: rgba(255, 255, 255, 0.4);
}


/* ══════════════════════════════════════════════════════════════════════════
   2. CATEGORY PILLS (horizontal scroll bar)
   ══════════════════════════════════════════════════════════════════════════ */
.fp-cat-bar {
    background: var(--fp-white);
    border-bottom: 1px solid var(--fp-gray-200);
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 8px rgba(13, 33, 81, 0.06);
}

.fp-cat-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    height: 58px;
}

.fp-cat-bar__inner::-webkit-scrollbar {
    display: none;
}

.fp-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--fp-gray-200);
    background: var(--fp-white);
    font-family: var(--fp-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--fp-gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
    flex-shrink: 0;
}

.fp-cat-pill:hover,
.fp-cat-pill.active {
    background: var(--fp-navy);
    border-color: var(--fp-navy);
    color: var(--fp-white);
}

.fp-cat-pill.active {
    box-shadow: 0 2px 10px rgba(13, 33, 81, 0.22);
}

.fp-cat-pill__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.fp-cat-pill.active .fp-cat-pill__icon {
    filter: brightness(0) invert(1);
}

.fp-cat-pill__count {
    font-size: 11px;
    font-weight: 700;
    background: var(--fp-gray-100);
    color: var(--fp-gray-400);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 2px;
    transition: all 0.18s;
}

.fp-cat-pill.active .fp-cat-pill__count,
.fp-cat-pill:hover .fp-cat-pill__count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}


/* ══════════════════════════════════════════════════════════════════════════
   3. MAIN LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
.fp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.fp-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 28px 0 60px;
    align-items: start;
}


/* ══════════════════════════════════════════════════════════════════════════
   4. SIDEBAR (location + sort filters)
   ══════════════════════════════════════════════════════════════════════════ */
.fp-sidebar {
    position: sticky;
    top: 74px;
}

.fp-sidebar-card {
    background: var(--fp-white);
    border: 1px solid var(--fp-gray-200);
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: var(--fp-shadow);
    margin-bottom: 16px;
}

.fp-sidebar-card__header {
    background: linear-gradient(135deg, var(--fp-blue) 0%, var(--fp-blue-light) 100%);
    padding: 14px 18px;
    font-family: var(--fp-font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--fp-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-sidebar-card__body {
    padding: 14px 18px;
}

/* City list */
.fp-city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fp-city-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--fp-radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.fp-city-row:hover {
    background: var(--fp-gray-100);
}

.fp-city-row.active {
    background: var(--fp-blue-pale);
}

.fp-city-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-text);
    cursor: pointer;
    flex: 1;
}

.fp-city-row input[type="checkbox"] {
    accent-color: var(--fp-blue);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.fp-city-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--fp-gray-400);
    background: var(--fp-gray-100);
    border-radius: 999px;
    padding: 1px 8px;
}

/* Apply/Clear buttons */
.fp-btn-apply {
    display: block;
    width: 100%;
    background: var(--fp-navy);
    color: var(--fp-white);
    font-family: var(--fp-font-head);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--fp-radius-sm);
    padding: 11px;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s, transform 0.15s;
    margin-bottom: 8px;
}

.fp-btn-apply:hover {
    background: var(--fp-blue);
    transform: translateY(-1px);
}

.fp-btn-clear {
    display: block;
    width: 100%;
    background: none;
    color: var(--fp-blue);
    border: 1.5px solid var(--fp-blue-pale);
    border-radius: var(--fp-radius-sm);
    padding: 9px;
    font-family: var(--fp-font-head);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}

.fp-btn-clear:hover {
    background: var(--fp-blue-pale);
    color: var(--fp-blue);
}


/* ══════════════════════════════════════════════════════════════════════════
   5. MAIN CONTENT AREA
   ══════════════════════════════════════════════════════════════════════════ */
.fp-content {}

/* Meta row (count + sort) */
.fp-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 2px;
}

.fp-meta-count {
    font-family: var(--fp-font-head);
    font-size: 17px;
    font-weight: 800;
    color: var(--fp-navy);
}

.fp-meta-count span {
    color: var(--fp-blue);
}

.fp-sort-select {
    font-family: var(--fp-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-text);
    background: var(--fp-white);
    border: 1.5px solid var(--fp-gray-200);
    border-radius: var(--fp-radius-sm);
    padding: 8px 32px 8px 12px;
    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 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s;
}

.fp-sort-select:focus {
    outline: none;
    border-color: var(--fp-blue);
}

/* Professional cards grid */
.fp-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ── Professional card ── */
.fp-pro-card {
    background: var(--fp-white);
    border: 1px solid var(--fp-gray-200);
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: var(--fp-shadow);
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fp-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fp-shadow-md);
}

/* Top Rated badge */
.fp-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: var(--fp-gold);
    color: #92400e;
    font-family: var(--fp-font-head);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Card image */
.fp-card-img-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: var(--fp-gray-100);
}

.fp-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.fp-pro-card:hover .fp-card-img-wrap img {
    transform: scale(1.06);
}

/* Avatar overlay */
.fp-card-avatar {
    position: absolute;
    bottom: -22px;
    left: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--fp-white);
    background: linear-gradient(135deg, var(--fp-navy-mid), var(--fp-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fp-font-head);
    font-size: 16px;
    font-weight: 900;
    color: var(--fp-white);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 33, 81, 0.2);
}

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

/* Card body */
.fp-card-body {
    padding: 30px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fp-card-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fp-green);
    background: var(--fp-green-pale);
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 3px 9px;
    margin-bottom: 8px;
}

.fp-card-name {
    font-family: var(--fp-font-head);
    font-size: 16px;
    font-weight: 900;
    color: var(--fp-navy);
    margin: 0 0 4px;
    line-height: 1.25;
}

.fp-card-name a {
    color: inherit;
    text-decoration: none;
}

.fp-card-name a:hover {
    color: var(--fp-blue);
}

.fp-card-meta {
    font-size: 13px;
    color: var(--fp-gray-600);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 12px;
}

.fp-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-card-meta i {
    font-size: 12px;
    color: var(--fp-blue);
}

/* Rating row */
.fp-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.fp-stars {
    display: flex;
    gap: 1px;
}

.fp-stars svg {
    width: 13px;
    height: 13px;
    fill: var(--fp-gold);
}

.fp-card-rating__num {
    font-family: var(--fp-font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--fp-navy);
}

.fp-card-rating__cnt {
    font-size: 12px;
    color: var(--fp-gray-400);
}

/* Actions */
.fp-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.fp-btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1.5px solid var(--fp-gray-200);
    border-radius: var(--fp-radius-sm);
    font-family: var(--fp-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--fp-navy);
    text-decoration: none;
    cursor: pointer;
    background: var(--fp-white);
    transition: all 0.15s;
}

.fp-btn-outline:hover {
    border-color: var(--fp-navy);
    background: var(--fp-navy);
    color: var(--fp-white);
}

.fp-btn-solid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    background: var(--fp-orange);
    border: none;
    border-radius: var(--fp-radius-sm);
    font-family: var(--fp-font-head);
    font-size: 13px;
    font-weight: 800;
    color: var(--fp-white);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(232, 80, 26, 0.25);
}

.fp-btn-solid:hover {
    background: #e87830;
    color: var(--fp-white);
    transform: translateY(-1px);
}

/* Empty state */
.fp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
}

.fp-empty__icon {
    width: 72px;
    height: 72px;
    background: var(--fp-blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.fp-empty h4 {
    font-family: var(--fp-font-head);
    font-weight: 800;
    color: var(--fp-navy);
    font-size: 20px;
    margin-bottom: 10px;
}

.fp-empty p {
    font-size: 15px;
    color: var(--fp-gray-600);
    margin-bottom: 22px;
}

.fp-btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fp-navy);
    color: var(--fp-white);
    font-family: var(--fp-font-head);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--fp-radius-sm);
    text-decoration: none;
    transition: background 0.15s;
}

.fp-btn-browse:hover {
    background: var(--fp-blue);
    color: var(--fp-white);
}


/* ══════════════════════════════════════════════════════════════════════════
   6. PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.fp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.fp-pagination a,
.fp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--fp-radius-sm);
    border: 1.5px solid var(--fp-gray-200);
    background: var(--fp-white);
    font-family: var(--fp-font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--fp-navy);
    text-decoration: none;
    transition: all 0.15s;
}

.fp-pagination a:hover {
    border-color: var(--fp-navy);
    background: var(--fp-navy);
    color: var(--fp-white);
}

.fp-pagination .active {
    background: var(--fp-navy);
    border-color: var(--fp-navy);
    color: var(--fp-white);
}


/* ══════════════════════════════════════════════════════════════════════════
   7. ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes fp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-pro-card {
    animation: fp-fadeUp 0.4s ease both;
}

.fp-pro-card:nth-child(1) {
    animation-delay: 0.04s;
}

.fp-pro-card:nth-child(2) {
    animation-delay: 0.08s;
}

.fp-pro-card:nth-child(3) {
    animation-delay: 0.12s;
}

.fp-pro-card:nth-child(4) {
    animation-delay: 0.16s;
}

.fp-pro-card:nth-child(5) {
    animation-delay: 0.20s;
}

.fp-pro-card:nth-child(6) {
    animation-delay: 0.24s;
}

/* ══════════════════════════════════════════════════════════════════════════
   8. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .fp-pro-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .fp-layout {
        grid-template-columns: 1fr;
    }

    .fp-sidebar {
        position: static;
    }

    .fp-hero {
        height: 220px;
    }

    .fp-hero__title {
        font-size: 24px;
    }

    .fp-wrap {
        padding: 0 16px;
    }

    .fp-cat-bar__inner {
        padding: 0 16px;
    }
}

@media (max-width: 580px) {
    .fp-pro-grid {
        grid-template-columns: 1fr;
    }
}