.tf-container { max-width: 1000px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.tf-map-wrap { position: relative; background: #f8f8f8; border-radius: 12px; padding: 20px; margin-bottom: 30px; }
.tf-map-svg { width: 100%; height: auto; display: block; }
.tf-map-svg .county-path { cursor: pointer; stroke: rgba(255,255,255,0.35); stroke-width: 0.4; transition: opacity 0.15s, filter 0.15s; }
.tf-map-svg .county-path:hover { opacity: 0.82; filter: brightness(1.12); stroke: rgba(255,255,255,0.7); stroke-width: 0.8; }
.tf-map-svg .state-border { fill: none; stroke: #fff; stroke-width: 1.6; pointer-events: none; }
.tf-map-svg .state-label { font-size: 18px; font-weight: 700; fill: #fff; pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(0,0,0,0.2); stroke-width: 2px; }
.tf-tooltip { position: absolute; background: rgba(30,30,30,0.92); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; pointer-events: none; white-space: nowrap; z-index: 10; transform: translate(-50%, -100%); margin-top: -10px; opacity: 0; transition: opacity 0.15s; line-height: 1.4; }
.tf-tooltip.visible { opacity: 1; }
.tf-tooltip .tf-tooltip-county { font-size: 11px; color: rgba(255,255,255,0.65); }

.tf-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 15px; }
.tf-legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #333; }
.tf-legend-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

.tf-search { background: #316299; border-radius: 12px; padding: 30px; text-align: center; margin-bottom: 30px; }
.tf-search h3 { color: #fff; margin: 0 0 5px; font-size: 20px; }
.tf-search p { color: rgba(255,255,255,0.8); margin: 0 0 15px; font-size: 14px; }
.tf-search-form { display: flex; gap: 10px; justify-content: center; max-width: 400px; margin: 0 auto; }
.tf-search-input { padding: 12px 16px; font-size: 16px; border: none; border-radius: 80px !important; flex: 1; outline: none; text-align: center; letter-spacing: 2px; }
.tf-search-btn { padding: 12px 24px !important; font-size: 16px !important; font-weight: 600; border: none; border-radius: 8px; background: #fff !important; color: #316299 !important; cursor: pointer; transition: background 0.2s; }
.tf-search-btn:hover { background: #e0e0e0; }

.tf-popup-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 99999; justify-content: center; align-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tf-popup-overlay.active { display: flex; }
.tf-popup { background: #fff; border-radius: 20px; max-width: 360px; width: 90%; position: relative; box-shadow: 0 25px 80px rgba(0,0,0,0.3); text-align: center; overflow: hidden; animation: tfPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes tfPopIn { from { opacity: 0; transform: scale(0.88) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.tf-popup-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; font-size: 16px; cursor: pointer; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.25); border: none; border-radius: 50%; line-height: 28px; text-align: center; z-index: 2; transition: background 0.2s; padding: 0 !important; }
.tf-popup-close:hover { background: rgba(0,0,0,0.45); }
.tf-popup-banner { height: 90px; border-radius: 20px 20px 0 0; }
.tf-popup-photo-wrap { margin-top: -50px; position: relative; z-index: 1; }
.tf-popup-photo-wrap img { width: 100px; height: 100px; border-radius: 50% !important; object-fit: cover; object-position: top; display: block; margin: 0 auto; border: 4px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.tf-popup-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; font-weight: 700; border: 4px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.tf-popup-body { padding: 8px 24px 24px; }
.tf-popup-body h4 { margin: 10px 0 2px; font-size: 22px; color: #1d2327; font-weight: 700; line-height: 1.3; }
.tf-popup-body .tf-popup-title { color: #999; font-size: 12px; margin: 0 0 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.tf-popup-actions { display: flex; flex-direction: column; gap: 8px; }
.tf-popup-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: all 0.2s; border: none; cursor: pointer; }
.tf-popup-btn svg { flex-shrink: 0; }
.tf-popup-btn-phone { background: #e8f5e9; color: #2e7d32; }
.tf-popup-btn-phone:hover { background: #c8e6c9; text-decoration: none !important; color: #2e7d32; }
.tf-popup-btn-email { background: #e3f2fd; color: #1565c0; }
.tf-popup-btn-email:hover { background: #bbdefb; text-decoration: none !important; color: #1565c0; }
.tf-popup-btn-web { background: #f3e5f5; color: #7b1fa2; }
.tf-popup-btn-web:hover { background: #e1bee7; text-decoration: none !important; color: #7b1fa2; }
.tf-popup-btn-pending { background: #f5f5f5; color: #999; cursor: default; font-weight: 500; }

.tf-error { background: #fff3f3; color: #c00; padding: 12px 20px; border-radius: 8px; margin-top: 15px; font-size: 14px; display: none; max-width: 400px; margin-left: auto; margin-right: auto; }
.tf-error.active { display: block; }

@media (max-width: 600px) {
    .tf-search-form { flex-direction: column; }
    .tf-legend { gap: 8px; }
    .tf-map-svg .state-label { font-size: 14px; }
    .tf-tooltip { display: none; }
}
