/* TeacherFinderPro — Cards, Listing, Modal */

html { overflow-x: hidden; }

/* ── GRID WRAPPER ───────────────────────────────────── */
.tfp-listing-wrap { width: 100%; }
.tfp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    transition: opacity 0.2s;
}
.tfp-grid.tfp-loading { opacity: 0.4; pointer-events: none; }

/* ── TUTOR CARD ─────────────────────────────────────── */
.tc {
    background: #fff;
    border: 1.5px solid #E6DFD2;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(26,31,46,.06);
}
.tc:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,31,46,.10);
}

/* Photo */
.tc-img {
    position: relative;
    width: 100%;
    padding-top: 72%;
    flex-shrink: 0;
    background: #E9E1D2;
    overflow: hidden;
}
.tc-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.tc-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E9E1D2;
    color: #767D8E;
    font-family: 'Fraunces', serif;
    font-size: 52px;
    font-weight: 600;
    text-transform: uppercase;
}
.tc-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,31,46,.72) 0%, rgba(26,31,46,.08) 55%, transparent 100%);
    pointer-events: none;
}
.tc-overlay {
    position: absolute;
    bottom: 12px;
    left: 14px;
    color: #FAF7F2;
    pointer-events: none;
}
.tc-name {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.tc-city {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    opacity: .85;
    margin-top: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.tc-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #B0B5C0;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
    z-index: 2;
}
.tc-heart:hover { color: #B91C1C; }

/* Card body */
.tc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}
.tc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    flex-shrink: 0;
}
.tc-rating .s { color: #E0A028; font-size: 14px; line-height: 1; }
.tc-rating .v { font-weight: 700; color: #1A1F2E; }
.tc-rating .c { color: #767D8E; }
.tc-vfd {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #133942;
    background: #E0EDF0;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.tc-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #4A5061;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}
.tc-foot { margin-top: auto; }
.tc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.tc-price {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1F2E;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
}
.tc-free {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #0F8A5F;
    background: #D6F0E2;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.tc-btn {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: #1A1F2E;
    color: #FAF7F2;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}
.tc-btn:hover { background: #2A2F3D; }

/* ── LISTING PAGE HEADER ────────────────────────────── */
.lp-head {
    padding: 40px 0 32px;
    border-bottom: 1.5px solid #E6DFD2;
    margin-bottom: 0;
}
.lp-breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #767D8E;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lp-breadcrumb a { color: #767D8E !important; text-decoration: none !important; }
.lp-breadcrumb a:hover { color: #C8553D !important; }
.lp-breadcrumb span { color: #B0B5C0; }

/* H1 rendered by WordPress as .entry-title on listing/hub pages */
body:not(.home) .entry-title {
    font-family: 'Fraunces', 'Times New Roman', Georgia, serif !important;
    font-weight: 500 !important;
    font-size: clamp(36px, 5vw, 60px) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.02 !important;
    color: #1A1F2E !important;
    margin: 0 0 22px !important;
}

.lp-intro {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #4A5061;
    max-width: 760px;
    margin: 0 0 24px;
}
.lp-intro strong { color: #1A1F2E; font-weight: 700; }
.lp-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.lp-mchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4A5061;
    background: #F2EDE4;
    border: 1.5px solid #E6DFD2;
    padding: 7px 14px;
    border-radius: 999px;
}
.lp-mchip em { font-style: normal; color: #1A1F2E; font-weight: 800; }

/* ── LISTING TEACHERS SECTION ───────────────────────── */
.lp-teachers { padding: 56px 0 64px; }
.lp-teachers h2 {
    font-family: 'Fraunces', 'Times New Roman', Georgia, serif !important;
    font-weight: 500 !important;
    font-size: clamp(26px, 3.2vw, 38px) !important;
    color: #1A1F2E !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
    margin: 0 0 12px !important;
}
.lp-presentation {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #4A5061;
    margin: 0 0 32px;
    max-width: 700px;
}
.lp-presentation strong { color: #1A1F2E; font-weight: 700; }

/* ── FILTER BAR ─────────────────────────────────────── */
.lp-filters {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0 0 16px;
    margin-bottom: 32px;
    border-bottom: 1.5px solid #E6DFD2;
    flex-wrap: wrap;
    row-gap: 8px;
}
.lp-ftab {
    appearance: none;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #767D8E;
    cursor: pointer;
    padding: 6px 16px 6px 0;
    position: relative;
    transition: color 0.12s;
    white-space: nowrap;
}
.lp-ftab:hover { color: #1A1F2E; }
.lp-ftab.active {
    color: #1A1F2E;
    font-weight: 700;
}
.lp-ftab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 16px;
    bottom: -19px;
    height: 2px;
    background: #C8553D;
    border-radius: 2px;
}
.lp-fselect {
    appearance: none;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #767D8E;
    cursor: pointer;
    padding: 6px 24px 6px 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23767D8E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    outline: none;
    transition: color 0.12s;
}
.lp-fselect:hover { color: #1A1F2E; }
.lp-fsep {
    width: 1px;
    height: 16px;
    background: #E6DFD2;
    margin: 0 8px;
    flex-shrink: 0;
}
.lp-sort {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #767D8E;
}
.lp-sort select {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #1A1F2E;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #D6D9DF;
    border-radius: 0;
    padding: 4px 20px 4px 0;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1F2E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    transition: border-color 0.12s;
}
.lp-sort select:hover { border-bottom-color: #C8553D; }

/* ── PAGINATION ─────────────────────────────────────── */
.tfp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.tfp-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid #E6DFD2;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4A5061;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.tfp-page-btn.active {
    background: #1A1F2E;
    color: #FAF7F2;
    border-color: #1A1F2E;
}
.tfp-page-btn:hover:not(.active) {
    border-color: #1A1F2E;
    color: #1A1F2E;
}
.tfp-page-dots {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #767D8E;
    padding: 0 4px;
}

/* ── CTA ALL TEACHERS ───────────────────────────────── */
.tfp-cta-wrap { text-align: center; margin: 8px 0 32px; }
.tfp-cta-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #1A1F2E;
    border: 1.5px solid #1A1F2E;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.tfp-cta-all:hover {
    background: #1A1F2E;
    color: #FAF7F2 !important;
}

/* ── FAQ SECTION ────────────────────────────────────── */
.lp-faq {
    background: #F2EDE4;
    padding: 72px 0;
    border-top: 1.5px solid #E6DFD2;
    border-bottom: 1.5px solid #E6DFD2;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    box-sizing: border-box;
}
.lp-faq-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
.lp-faq h2 {
    font-family: 'Fraunces', 'Times New Roman', Georgia, serif !important;
    font-weight: 500 !important;
    font-size: clamp(28px, 3.5vw, 42px) !important;
    color: #1A1F2E !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
    margin: 0 0 36px !important;
}
.lp-faq-list {
    border-top: 1.5px solid #D6D9DF;
}
.lp-faq-item {
    padding: 28px 0;
    border-bottom: 1.5px solid #D6D9DF;
}
.lp-faq-item h3 {
    font-family: 'Fraunces', 'Times New Roman', Georgia, serif !important;
    font-weight: 500 !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    color: #1A1F2E !important;
    letter-spacing: -0.015em !important;
    line-height: 1.25 !important;
    margin: 0 0 12px !important;
}
.lp-faq-item p {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #4A5061 !important;
    margin: 0 !important;
    max-width: 820px;
}

/* ── RELATED LINKS ──────────────────────────────────── */
.lp-related {
    padding: 72px 0 88px;
}
.lp-related h2 {
    font-family: 'Fraunces', 'Times New Roman', Georgia, serif !important;
    font-weight: 500 !important;
    font-size: clamp(28px, 3.5vw, 42px) !important;
    color: #1A1F2E !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
    margin: 0 0 40px !important;
}
.lp-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
.lp-related-col h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #C8553D !important;
    margin: 0 0 8px !important;
    padding-bottom: 14px !important;
    border-bottom: 1.5px solid #E6DFD2 !important;
    background: none !important;
    border-left: none !important;
}
.lp-related-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lp-related-col li {
    border-bottom: 1px solid #E6DFD2;
}
.lp-related-col li a {
    display: grid;
    grid-template-columns: 28px 1fr 20px;
    align-items: center;
    gap: 14px;
    padding: 15px 4px;
    text-decoration: none !important;
    color: #1A1F2E;
    transition: color 0.12s, padding-left 0.12s;
}
.lp-related-col li a:hover {
    color: #C8553D;
    padding-left: 8px;
}
.lp-related-col li a img {
    width: 22px;
    height: 22px;
    opacity: .8;
}
.lp-related-col li a:hover img { opacity: 1; }
.lp-rel-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: inherit;
}
.lp-rel-pin {
    color: #C8553D;
    font-size: 11px;
    text-align: center;
    flex-shrink: 0;
}
.lp-rel-arrow {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #B0B5C0;
    transition: transform 0.12s, color 0.12s;
    text-align: right;
}
.lp-related-col li a:hover .lp-rel-arrow {
    transform: translateX(4px);
    color: #C8553D;
}

/* ── CITY HUB GRID ──────────────────────────────────── */
.tfp-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1.5px solid #E6DFD2;
    margin-bottom: 40px;
}
.tfp-hub-card {
    display: grid;
    grid-template-columns: 40px 1fr auto 20px;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    text-decoration: none !important;
    color: #1A1F2E;
    border-bottom: 1.5px solid #E6DFD2;
    font-family: 'Inter', sans-serif;
    transition: background 0.12s, padding-left 0.12s;
}
.tfp-hub-card:nth-child(odd) { border-right: 1.5px solid #E6DFD2; }
.tfp-hub-card:hover { background: #F2EDE4; padding-left: 18px; }
.tfp-hub-icon {
    width: 36px; height: 36px;
    background: #FAF7F2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.tfp-hub-icon img { width: 22px; height: 22px; opacity: .8; }
.tfp-hub-label {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 500;
    color: #1A1F2E;
    letter-spacing: -0.01em;
}
.tfp-hub-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #767D8E;
    white-space: nowrap;
}
.tfp-hub-arrow {
    font-size: 14px;
    color: #B0B5C0;
    transition: transform 0.12s, color 0.12s;
}
.tfp-hub-card:hover .tfp-hub-arrow { transform: translateX(3px); color: #C8553D; }

/* ── MODAL ──────────────────────────────────────────── */
.tfp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,31,46,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tfp-overlay.open { display: flex; }
.tfp-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 56px rgba(26,31,46,.18);
    animation: tfp-slide-up .22s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tfp-modal::-webkit-scrollbar { display: none; }
@keyframes tfp-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.tfp-modal-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 52%;
    flex-shrink: 0;
    background: #E9E1D2;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}
.tfp-modal-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px 24px 0 0;
}
.tfp-modal-photo-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E9E1D2;
    color: #767D8E;
    font-family: 'Fraunces', serif;
    font-size: 72px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 24px 24px 0 0;
}
.tfp-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,31,46,.7) 0%, transparent 60%);
    pointer-events: none;
}
.tfp-modal-overlay-info {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: #FAF7F2;
    pointer-events: none;
}
.tfp-modal-name {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0,0,0,.35);
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.tfp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(26,31,46,.5);
    border: none;
    color: #FAF7F2;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.tfp-modal-body { padding: 22px 26px 28px; }
.tfp-modal-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tfp-modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.tfp-modal-price {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    color: #1A1F2E;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.tfp-modal-subject {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    background: #F2EDE4;
    color: #4A5061;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.tfp-modal-headline {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1A1F2E;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 8px;
}
.tfp-modal-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: #4A5061;
    line-height: 1.7;
    margin-bottom: 20px;
}
.tfp-modal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: #C8553D;
    color: #FAF7F2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}
.tfp-modal-cta:hover,
.tfp-modal-cta:visited { background: #A8412E; color: #FAF7F2 !important; }
.tfp-modal-note {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #B0B5C0;
    margin-top: 8px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
    .tfp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tfp-hub-grid { grid-template-columns: 1fr; }
    .tfp-hub-card:nth-child(odd) { border-right: none; }
    .tfp-modal { max-height: 95vh; border-radius: 18px 18px 0 0; }
    .tfp-modal-name { font-size: 20px; }
    .lp-related-grid { grid-template-columns: 1fr; gap: 32px; }
    .lp-faq { margin-left: 0; margin-right: 0; width: 100%; }
    .lp-filters { gap: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 14px; }
    .lp-ftab { font-size: 13px; }
}
@media (max-width: 400px) {
    .tfp-grid { grid-template-columns: 1fr; }
}
