/* Find a Dentist, from the "InnerView Practice Map" canvas (Desktop / Phone boards).
   Loads after home.css (shared resets, .ivh-wrap). Prefix: ivf-. */

/* ---------- Hero (inside the header frame) ---------- */

body .ivf-hero { position: relative; }
body .ivf-hero, body .ivf-hero * { box-sizing: border-box; }
body .ivf-hero :is(h1, p) { margin: 0; font-family: var(--iv-font); letter-spacing: normal; }
body .ivf-hero-in { max-width: 1240px; margin: 0 auto; padding: 184px 40px 120px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
body .ivf-hero-copy { flex: 1 1 520px; max-width: 680px; }
body .ivf-hero .ivf-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #1958A2; }
body .ivf-hero h1 { margin-top: 14px; font-size: 52px; line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; color: var(--iv-navy); }
body .ivf-hero .ivf-lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #3E5468; }
body .ivf-stats { display: flex; gap: 12px; margin-left: auto; }
body .ivf-stat { display: flex; flex-direction: column; gap: 4px; min-width: 132px; padding: 18px 22px; border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55)); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -36px rgba(0, 64, 110, .45), inset 0 1px 0 rgba(255, 255, 255, .95); }
body .ivf-stat b { font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--iv-navy); font-variant-numeric: tabular-nums; }
body .ivf-stat span { font-size: 13px; color: #3E5468; }

/* ---------- Page body ---------- */

body .ivf { position: relative; background:
	radial-gradient(42% 18% at 4% 30%, rgba(79, 179, 255, .26), transparent 70%),
	radial-gradient(38% 18% at 98% 22%, rgba(25, 88, 162, .14), transparent 70%),
	radial-gradient(50% 22% at 80% 62%, rgba(120, 200, 255, .24), transparent 70%),
	radial-gradient(45% 22% at 4% 86%, rgba(25, 88, 162, .12), transparent 70%),
	linear-gradient(180deg, #FFFFFF 0, #FFFFFF 120px, #EEF6FC 30%, #E3F0FB 62%, #FFFFFF 100%); }
body .ivf-body { display: flex; flex-direction: column; gap: 24px; margin-top: -72px; padding-bottom: 112px; position: relative; }
body .ivf-card { border-radius: 28px; padding: 24px 28px; background: linear-gradient(145deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .52)); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 30px 60px -36px rgba(0, 64, 110, .45), inset 0 1px 0 rgba(255, 255, 255, .95); }
body .ivf :is(h2, h3) { color: var(--iv-navy); }

/* Buttons and chips */
body .ivf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
body .ivf-seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(206, 230, 248, .55); border: 1px solid rgba(255, 255, 255, .8); }
body .ivf .ivf-seg button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #3E5468; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
body .ivf .ivf-seg button[aria-pressed="true"] { background: var(--iv-white); color: var(--iv-navy); box-shadow: 0 2px 8px rgba(0, 64, 110, .15); }
body .ivf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body .ivf .ivf-chip { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--iv-navy); background: rgba(255, 255, 255, .6); border: 1px solid rgba(181, 211, 240, .9); transition: background .2s ease, color .2s ease; }
body .ivf .ivf-chip--sm { height: 32px; }
body .ivf .ivf-chip:hover { background: var(--iv-white); }
body .ivf .ivf-chip[aria-pressed="true"] { background: linear-gradient(135deg, #1958A2, var(--iv-navy)); color: var(--iv-white); border-color: var(--iv-navy); box-shadow: 0 8px 18px -10px rgba(0, 64, 110, .7); }

/* ---------- Map ---------- */

body .ivf-mapcard { display: flex; flex-direction: column; gap: 18px; }
body .ivf-mapwrap { position: relative; }
body .ivf-mapscroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
body .ivf-mapscroll::-webkit-scrollbar { display: none; }
body .ivf-map { position: relative; width: 100%; max-width: 1180px; aspect-ratio: 975 / 610; margin: 0 auto; container-type: inline-size; border-radius: 24px;
	background: radial-gradient(ellipse 55% 50% at 45% 55%, rgba(79, 179, 255, .22), transparent 72%), radial-gradient(rgba(25, 88, 162, .13) 1px, transparent 1.4px) 0 0 / 22px 22px; }

/* States (assets/js/find-a-dentist.js draws the SVG) */
body .ivf-svg { display: block; width: 100%; height: 100%; overflow: visible; font-family: var(--iv-font); }
body .ivf-st { cursor: pointer; outline: none; }
body .ivf-st path { stroke: #FFFFFF; stroke-width: 1.2; stroke-linejoin: round; transition: fill .3s ease, opacity .25s ease, filter .2s ease; }
body .ivf-st:hover path, body .ivf-st:focus-visible path { filter: brightness(1.06) saturate(1.1); stroke: #4FB3FF; stroke-width: 2; }
body .ivf-st.is-dim path { opacity: .22; }
body .ivf-gloss { pointer-events: none; }
body .ivf-labels { pointer-events: none; }
body .ivf-lbl-code { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-anchor: middle; opacity: .85; }
body .ivf-lbl-n { font-size: 17px; font-weight: 700; text-anchor: middle; }
body .ivf-lbl-code.is-sm { font-size: 9px; }
body .ivf-lbl-n.is-sm { font-size: 13px; }
body .ivf-dot { fill: #E8A23A; stroke: #FFFFFF; stroke-width: 1.8; }
/* Small states: labels inside get a white halo so they stay readable over borders. */
body .ivf-lbl-code.is-sm, body .ivf-lbl-n.is-sm { paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 2px; stroke-linejoin: round; }
body .ivf-lbl-inline { font-size: 10.5px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 2px; stroke-linejoin: round; }
body .ivf-lbl-inline-code { font-weight: 600; letter-spacing: .04em; }
/* RI, DE and DC: one line beside the state */
body .ivf-out { cursor: pointer; }
body .ivf-out-t { font-size: 11px; paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; stroke-linejoin: round; fill: var(--iv-navy); }
body .ivf-out-code { font-weight: 600; letter-spacing: .04em; fill: #3E5468; }
body .ivf-out-n { font-weight: 700; }
body .ivf-out-hit { fill: transparent; }
body .ivf-out-pin { fill: var(--iv-navy); stroke: #FFFFFF; stroke-width: 1.2; }
body .ivf-out:hover .ivf-out-t, body .ivf-out.is-sel .ivf-out-t { fill: #1958A2; }
body .ivf-out.is-sel .ivf-out-code { fill: #1958A2; }
body .ivf-out.is-dim { opacity: .3; }
body .ivf-selayer { pointer-events: none; }
body .ivf-sel-path { fill: none; stroke: #4FB3FF; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(79, 179, 255, .8)); }
body .ivf-sel-pulse { fill: none; stroke: #4FB3FF; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ivf-pulse 1.8s ease-out infinite; }
@keyframes ivf-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* Hover card (tap card on touch screens) */
body .ivf-tip { position: absolute; z-index: 200; width: 300px; max-width: calc(100% - 8px); box-sizing: border-box; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; pointer-events: none;
	border-radius: 14px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 40px -18px rgba(0, 64, 110, .5); animation: ivf-pop .18s ease-out; }
body .ivf-tip[hidden] { display: none; }
body .ivf-tip.is-pinned { pointer-events: auto; }
body .ivf-tip-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body .ivf-tip b { font-size: 15px; font-weight: 700; color: var(--iv-navy); }
body .ivf-tip-n { font-size: 13px; color: #2B3F52; }
body .ivf-tip-c { font-size: 13px; color: #8A5A00; }
body .ivf-tip-hint { font-size: 12px; color: #4F6478; }
body .ivf-tip-img { flex: none; width: 64px; height: 84px; display: flex; align-items: flex-end; justify-content: center; border-radius: 12px; background: radial-gradient(ellipse 70% 60% at 50% 70%, rgba(79, 179, 255, .30), transparent 75%); }
body .ivf .ivf-tip-img img { height: 84px; width: auto; max-width: none; filter: drop-shadow(0 8px 10px rgba(0, 64, 110, .22)); }
body .ivf .ivf-tip-x { display: none; position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: #4F6478; }
body .ivf-tip.is-pinned .ivf-tip-x { display: block; }
@keyframes ivf-pop { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Pan arrows: only when the map scrolls sideways (narrow screens) */
body .ivf .ivf-pan { display: none; position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; z-index: 210;
	color: var(--iv-navy); background: rgba(255, 255, 255, .94); border: 1px solid var(--iv-line); box-shadow: 0 8px 18px -10px rgba(0, 64, 110, .6); transition: opacity .2s ease; }
body .ivf-pan--w { left: 4px; }
body .ivf-pan--e { right: 4px; }
body .ivf.ivf-at-w .ivf-pan--w, body .ivf.ivf-at-e .ivf-pan--e { opacity: 0; pointer-events: none; }

body .ivf-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(206, 230, 248, .8); font-size: 13px; color: #4F6478; }
body .ivf-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
body .ivf-legend[hidden] { display: none; }
body .ivf-legend-scale { display: flex; align-items: center; gap: 6px; }
body .ivf-swatches { display: flex; gap: 3px; }
body .ivf-swatches i { width: 18px; height: 10px; border-radius: 3px; }
body .ivf-legend-dot { display: flex; align-items: center; gap: 8px; }
body .ivf-legend-dot i { width: 10px; height: 10px; border-radius: 50%; background: #E8A23A; box-shadow: 0 0 0 2px #FFFFFF; }
body .ivf-ranks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body .ivf-ranks b { font-weight: 600; color: var(--iv-navy); }
body .ivf-ranks > span { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Finder ---------- */

body .ivf-finder { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px 28px; align-items: stretch; }
body .ivf-search { display: flex; flex-direction: column; gap: 10px; }
body .ivf-search label { font-size: 20px; font-weight: 600; color: var(--iv-navy); }
body .ivf-search-row { display: flex; gap: 8px; }
body .ivf .ivf-search input#ivf-zip { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 18px; border-radius: 999px; border: 1px solid #B5D3F0; background: rgba(255, 255, 255, .92); box-shadow: none; font: 400 16px var(--iv-font); color: var(--iv-slate); -webkit-appearance: none; appearance: none; }
body .ivf .ivf-search input#ivf-zip:focus { outline: 3px solid rgba(37, 173, 227, .35); border-color: var(--iv-accent); }
body .ivf .ivf-search button { height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--iv-white); background: linear-gradient(135deg, #1958A2, var(--iv-navy)); box-shadow: 0 10px 22px -12px rgba(0, 64, 110, .8); }
body .ivf-msg { font-size: 13px; color: #4F6478; }
body .ivf-msg.is-err { color: #B3261E; }
body .ivf .ivf-clear { margin-top: 12px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #B5D3F0; background: var(--iv-white); font-size: 14px; font-weight: 600; color: var(--iv-navy); }

body .ivf-statecard { display: flex; align-items: stretch; gap: 12px; overflow: hidden; min-height: 150px; border-radius: 18px; background: linear-gradient(120deg, #EEF6FC 55%, #DDEDFB); }
body .ivf-statecard.is-pop { animation: ivf-pop .25s ease-out; }
body .ivf-statecard-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; }
body .ivf-statecard-name { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1958A2; }
body .ivf-statecard-n { font-size: 24px; font-weight: 700; color: var(--iv-navy); }
body .ivf-statecard-c { font-size: 14px; color: #3E5468; }
body .ivf-statecard-note { padding-top: 4px; font-size: 13px; color: #4F6478; }
body .ivf .ivf-statecard img { flex: none; height: 150px; width: auto; max-width: none; margin: 14px 28px 14px 8px; align-self: center; filter: drop-shadow(0 18px 22px rgba(0, 64, 110, .18)); }

body .ivf-list { grid-column: 1 / -1; }
body .ivf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
body .ivf-practice { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid #DCEAF7; animation: ivf-pop .3s ease-out both; }
body .ivf-practice.is-hit { border-color: #4FB3FF; box-shadow: 0 0 0 3px rgba(79, 179, 255, .35), 0 18px 36px -22px rgba(0, 64, 110, .55); }
body .ivf-practice-head { display: flex; align-items: center; gap: 14px; }
body .ivf-practice-logo { flex: none; width: 104px; height: 52px; box-sizing: border-box; padding: 8px; border-radius: 12px; background: #F6FAFE; border: 1px solid #E3EEF8; display: flex; align-items: center; justify-content: center; }
body .ivf .ivf-practice-logo img { max-width: 100%; max-height: 36px; object-fit: contain; }
body .ivf-practice-logo span { font-size: 11px; color: #4F6478; text-align: center; }
body .ivf-practice-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body .ivf-practice-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body .ivf .ivf-practice h3 { font-size: 16px; line-height: 1.3; font-weight: 600; }
body .ivf-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--iv-tint); font-size: 12px; font-weight: 600; color: #1958A2; white-space: nowrap; }
body .ivf-practice-city { font-size: 13px; color: #4F6478; }
body .ivf-practice-docs { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #2B3F52; }
body .ivf .ivf-practice a, body .ivf .ivf-empty a, body .ivf .ivf-join { font-size: 14px; font-weight: 600; color: #1958A2; }
body .ivf .ivf-practice a:hover, body .ivf .ivf-empty a:hover, body .ivf .ivf-join:hover { color: var(--iv-navy); }
body .ivf-empty { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px dashed #B5D3F0; }
body .ivf-empty p { font-size: 15px; line-height: 1.55; color: #2B3F52; }
body .ivf .ivf-more { display: none; margin-top: 12px; width: 100%; height: 44px; border-radius: 999px; border: 1px solid #B5D3F0; background: var(--iv-white); font-size: 14px; font-weight: 600; color: var(--iv-navy); }

/* ---------- Logo strip ---------- */

body .ivf-logos { display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
body .ivf .ivf-logos h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
body .ivf-marq { display: grid; gap: 12px; margin: 0 -28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
body .ivf-marq-row { overflow: hidden; padding: 4px 0; }
body .ivf-marq-track { display: flex; width: max-content; animation: ivf-slide 64s linear infinite; }
body .ivf-marq-row--rev .ivf-marq-track { animation-direction: reverse; }
body .ivf-marq:hover .ivf-marq-track, body .ivf-marq:focus-within .ivf-marq-track, body .ivf-marq:active .ivf-marq-track { animation-play-state: paused; }
@keyframes ivf-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body .ivf .ivf-logo { flex: none; width: 200px; height: 104px; margin-right: 12px; box-sizing: border-box; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)); border: 1px solid #E3EEF8; transition: transform .2s ease, box-shadow .2s ease; }
body .ivf .ivf-logo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0, 64, 110, .6); }
body .ivf-logo-mark { height: 44px; width: 100%; display: flex; align-items: center; justify-content: center; }
body .ivf .ivf-logo-mark img { max-width: 100%; max-height: 44px; object-fit: contain; }
body .ivf-logo-name { font-size: 12px; font-weight: 600; line-height: 1.3; color: #33475B; text-align: center; }
body .ivf-logo-city { font-size: 11px; color: #4F6478; }
body .ivf .ivf-join { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
	body .ivf-marq-track { animation: none; }
	body .ivf-marq-row { overflow-x: auto; }
	body .ivf-sel-pulse { animation: none !important; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
	body .ivf-hero-in { padding: 160px 24px 104px; }
	body .ivf-hero h1 { font-size: 40px; }
	body .ivf-finder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	body .ivf-hero-in { flex-direction: column; align-items: stretch; padding: 140px 20px 96px; }
	body .ivf-hero-copy { flex: none; max-width: none; }
	body .ivf-hero h1 { font-size: 32px; }
	body .ivf-hero .ivf-lead { font-size: 16px; }
	body .ivf-stats { margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	body .ivf-stat { min-width: 0; padding: 14px 12px; border-radius: 16px; }
	body .ivf-stat b { font-size: 24px; }
	body .ivf-stat span { font-size: 12px; line-height: 1.3; }
	body .ivf-body { gap: 16px; margin-top: -56px; padding-bottom: 72px; }
	body .ivf-card { border-radius: 22px; padding: 16px; }
	body .ivf-bar { gap: 10px; }
	body .ivf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
	body .ivf .ivf-chip { flex: none; }
	/* The map keeps its shape and scrolls sideways; arrows and swipe move it. */
	body .ivf-mapcard { padding-left: 0; padding-right: 0; }
	body .ivf-bar, body .ivf-foot { margin: 0 16px; }
	body .ivf-mapscroll { margin: 0 16px; border-radius: 18px; }
	body .ivf-map { width: 820px; max-width: none; }
	/* Labels a touch larger on phones so the small states stay readable. */
	body .ivf-lbl-code { font-size: 12.5px; }
	body .ivf-lbl-n { font-size: 19px; }
	body .ivf-lbl-code.is-sm { font-size: 10.5px; }
	body .ivf-lbl-n.is-sm { font-size: 15px; }
	body .ivf-lbl-inline, body .ivf-out-t { font-size: 12.5px; }
	body .ivf .ivf-pan { display: inline-flex; }
	body .ivf-tip { width: 264px; }
	body .ivf-statecard { min-height: 128px; }
	body .ivf .ivf-statecard img { height: 112px; margin: 10px 10px 10px 4px; }
	body .ivf-statecard-n { font-size: 20px; }
	body .ivf-grid:not(.is-all) .ivf-practice:nth-child(n + 4) { display: none; }
	body .ivf .ivf-more { display: block; }
	body .ivf-marq { margin: 0 -16px; }
	body .ivf .ivf-logo { width: 150px; height: 96px; margin-right: 10px; padding: 10px; }
	body .ivf-marq-track { animation-duration: 48s; }
}
