/* ==========================================================
   K9 Paw – UK Coverage Map widget
   ========================================================== */
.k9cv {
	--k9-gold: #DCA54A;
	--k9-map-w: 400px;
	--k9-pin: 34px;
	position: relative;
	overflow: hidden;
	padding: 70px 50px;
	background: linear-gradient(120deg, #faf7f1 0%, #f5efe4 60%, #f8f4ec 100%);
	font-family: var(--k9-font, 'Roboto', sans-serif);
	color: #555;
}
.k9cv *, .k9cv *::before, .k9cv *::after { box-sizing: border-box; }

/* Decorations */
.k9cv__shape { position: absolute; z-index: 0; pointer-events: none; }
.k9cv__shape--tl {
	left: 0; top: 0; width: 90px; height: 200px; background: #151515;
	clip-path: polygon(0 0, 80% 0, 0 100%);
}
.k9cv__shape--tl::after {
	content: ""; position: absolute; inset: 0;
	background: var(--k9-gold); clip-path: polygon(80% 0, 100% 0, 15% 100%, 0 100%, 0 92%);
}
.k9cv__shape--br {
	right: 0; bottom: 0; width: 90px; height: 200px; background: #151515;
	clip-path: polygon(100% 0, 100% 100%, 20% 100%);
}
.k9cv__shape--br::after {
	content: ""; position: absolute; inset: 0;
	background: var(--k9-gold); clip-path: polygon(100% 0, 100% 8%, 30% 100%, 10% 100%, 85% 0);
}
.k9cv__deco {
	position: absolute; left: 0; bottom: 0; z-index: 0; width: 62%; height: 60%;
	background-size: contain; background-position: left bottom; background-repeat: no-repeat;
	opacity: .35; pointer-events: none;
	-webkit-mask-image: linear-gradient(0deg, #000 40%, transparent);
	mask-image: linear-gradient(0deg, #000 40%, transparent);
}

.k9cv__inner {
	position: relative; z-index: 2;
	max-width: 1800px; margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(300px, 420px);
	align-items: center; gap: 40px;
}

/* ---------- Content ---------- */
.k9cv__content { max-width: 860px; }
.k9cv__sub { font-size: 17px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--k9-gold); margin-bottom: 12px; }
.k9cv__title {
	font-family: var(--k9-font, 'Roboto', sans-serif);
	font-size: 56px; font-weight: 800; line-height: 1.1; color: #111; margin: 0 0 18px;
}
.k9cv__title em { font-style: normal; color: var(--k9-gold); }
.k9cv__desc { font-size: 19px; line-height: 1.55; color: #555; margin-bottom: 30px; max-width: 720px; }
.k9cv__desc p { margin: 0 0 8px; color: inherit; font: inherit; }
.k9cv__desc p:last-child { margin: 0; }

.k9cv__feats { display: flex; flex-wrap: wrap; margin-bottom: 40px; }
.k9cv__feat { flex: 1 1 0; min-width: 160px; padding: 0 28px; }
.k9cv__feat:first-child { padding-left: 0; }
.k9cv__feat + .k9cv__feat { border-left: 1px solid rgba(0,0,0,.1); }
.k9cv__fic {
	display: inline-flex; align-items: center; justify-content: center;
	width: 84px; height: 84px; margin-bottom: 14px; border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #fde6b5, #f6d58f);
	color: #1a1a1a; font-size: 30px;
	transition: transform .4s ease, background .4s ease, color .4s ease;
}
.k9cv__fic svg { width: 30px; height: 30px; fill: currentColor; }
.k9cv__feat:hover .k9cv__fic { transform: translateY(-4px) rotate(-8deg); background: #171717; color: var(--k9-gold); }
.k9cv__ftitle { font-family: var(--k9-font, 'Roboto', sans-serif); font-size: 21px; font-weight: 700; color: #111; margin: 0 0 6px; }
.k9cv__ftext { font-size: 17px; line-height: 1.5; color: #666; margin: 0; }

/* ---------- Map ---------- */
.k9cv__mapwrap { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.k9cv__orbit {
	position: absolute; left: 50%; top: 50%; border: 1.5px dashed rgba(220,165,74,.45); border-radius: 50%;
	pointer-events: none; transform: translate(-50%, -50%);
}
.k9cv__orbit--1 { width: calc(var(--k9-map-w) * 1.25); height: calc(var(--k9-map-w) * 1.25); animation: k9cvSpin 80s linear infinite; }
.k9cv__orbit--2 { width: calc(var(--k9-map-w) * .9);  height: calc(var(--k9-map-w) * .9); top: 62%; border-color: rgba(220,165,74,.3); animation: k9cvSpin 120s linear infinite reverse; }
@keyframes k9cvSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.k9cv__map {
	position: relative;
	width: var(--k9-map-w);
	aspect-ratio: 30 / 56;            /* same ratio as SVG viewBox → pins stay in place */
	filter: drop-shadow(0 18px 30px rgba(0,0,0,.25));
}
.k9cv__svg, .k9cv__map-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.k9cv__map-img { object-fit: fill; }
.k9cv__land { stroke: rgba(220,165,74,.55); stroke-width: .08; transition: fill .4s ease; }

/* Pins */
.k9cv__pin {
	position: absolute; z-index: 3;
	width: var(--k9-pin); height: var(--k9-pin);
	transform: translate(-50%, -100%);
}
.k9cv__pin.is-open, .k9cv__pin:hover, .k9cv__pin:focus-within { z-index: 6; }
.k9cv__pin-btn {
	position: relative; display: block; width: 100%; height: 100%;
	padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
	appearance: none; -webkit-tap-highlight-color: transparent;
}
.k9cv__pin-btn:focus-visible { outline: 2px solid var(--k9-gold); outline-offset: 2px; border-radius: 50%; }
.k9cv__pin-ic {
	position: relative; z-index: 2;
	display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%;
	font-size: var(--k9-pin); line-height: 1;
	color: var(--k9-gold);
	filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)) drop-shadow(0 0 8px rgba(220,165,74,.55));
	transition: transform .3s ease, color .3s ease;
	transform-origin: bottom center;
}
.k9cv__pin-ic svg { width: auto; height: 100%; fill: currentColor; }
.k9cv__pin.is-hq .k9cv__pin-ic { color: #ffd27a; transform: scale(1.18); }
.k9cv__pin:hover .k9cv__pin-ic,
.k9cv__pin.is-open .k9cv__pin-ic,
.k9cv__pin.is-active .k9cv__pin-ic { transform: scale(1.3) translateY(-3px); color: #ffd27a; }
.k9cv.has-active .k9cv__pin:not(.is-active) { opacity: .35; }
.k9cv__pin { transition: opacity .3s ease; }

/* Pulse ring (at the pin tip) */
.k9cv__pulse {
	position: absolute; left: 50%; bottom: -4px; z-index: 1;
	width: calc(var(--k9-pin) * .9); height: calc(var(--k9-pin) * .35);
	border-radius: 50%; transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(220,165,74,.65), rgba(220,165,74,0) 70%);
}
.k9cv--pulse .k9cv__pulse::before, .k9cv--pulse .k9cv__pulse::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	border: 1.5px solid rgba(220,165,74,.8);
	animation: k9cvPulse 2.4s ease-out infinite; animation-delay: var(--d, 0s);
}
.k9cv--pulse .k9cv__pulse::after { animation-delay: calc(var(--d, 0s) + 1.2s); }
@keyframes k9cvPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* Tooltip */
.k9cv__tip {
	position: absolute; left: 50%; bottom: calc(100% + 12px);
	min-width: 190px; max-width: 240px; padding: 12px 14px;
	background: #171717; color: #fff; border: 1px solid rgba(220,165,74,.6); border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0,0,0,.35);
	font-size: 13px; line-height: 1.45; text-align: left;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translate(-50%, 6px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.k9cv__tip::after {
	content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
	border: 7px solid transparent; border-top-color: #171717;
}
.k9cv__tip strong { display: block; font-size: 15px; font-weight: 700; color: var(--k9-gold); margin-bottom: 3px; }
.k9cv__tip span { display: block; color: rgba(255,255,255,.85); }
.k9cv__tip a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--k9-gold) !important; text-decoration: none !important; }
.k9cv__tip a i { font-size: 11px; transition: transform .25s ease; }
.k9cv__tip a:hover i { transform: translateX(3px); }
.k9cv__pin.tip-left .k9cv__tip { left: auto; right: -10px; transform: translate(0, 6px); }
.k9cv__pin.tip-left .k9cv__tip::after { left: auto; right: 18px; transform: none; }
@media (hover: hover) {
	.k9cv__pin:hover .k9cv__tip { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
	.k9cv__pin.tip-left:hover .k9cv__tip { transform: none; }
}
.k9cv__pin.is-open .k9cv__tip,
.k9cv__pin:focus-within .k9cv__tip { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.k9cv__pin.tip-left.is-open .k9cv__tip,
.k9cv__pin.tip-left:focus-within .k9cv__tip { transform: none; }

/* ---------- Areas card ---------- */
.k9cv__card {
	align-self: center;
	padding: 40px 36px 40px 44px;
	background: rgba(255,255,255,.72);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border-left: 6px solid var(--k9-gold);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(60,40,0,.08);
}
.k9cv__card-title {
	display: flex; align-items: center; gap: 22px;
	font-family: var(--k9-font, 'Roboto', sans-serif);
	font-size: 26px; font-weight: 700; color: #111; margin: 0 0 26px;
}
.k9cv__card-ic { color: var(--k9-gold); font-size: 30px; display: inline-flex; }
.k9cv__card-ic svg { width: 30px; height: 30px; fill: currentColor; }
.k9cv__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.k9cv__li { display: flex; align-items: center; gap: 22px; margin: 0; cursor: default; outline: none; border-radius: 6px; }
.k9cv__li[data-pins]:not([data-pins=""]) { cursor: pointer; }
.k9cv__li:focus-visible { box-shadow: 0 0 0 2px var(--k9-gold); }
.k9cv__chk {
	flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 35% 30%, #f0cd85, var(--k9-gold) 75%);
	color: #fff; font-size: 14px;
	transition: transform .3s ease, background .3s ease;
}
.k9cv__chk svg { width: 14px; height: 14px; fill: currentColor; }
.k9cv__li-text { font-size: 20px; color: #222; transition: color .3s ease, transform .3s ease; }
.k9cv__li:hover .k9cv__chk, .k9cv__li:focus .k9cv__chk { transform: scale(1.1); background: #171717; color: var(--k9-gold); }
.k9cv__li:hover .k9cv__li-text, .k9cv__li:focus .k9cv__li-text { color: #a87929; transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.k9cv__orbit, .k9cv--pulse .k9cv__pulse::before, .k9cv--pulse .k9cv__pulse::after { animation: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1500px) {
	.k9cv { --k9-map-w: 340px; }
	.k9cv__title { font-size: 46px; }
	.k9cv__desc { font-size: 17px; }
	.k9cv__fic { width: 70px; height: 70px; font-size: 26px; }
	.k9cv__ftitle { font-size: 19px; }
	.k9cv__ftext { font-size: 15px; }
	.k9cv__feat { padding: 0 20px; }
	.k9cv__card { padding: 30px 26px 30px 32px; }
	.k9cv__card-title { font-size: 22px; gap: 14px; }
	.k9cv__li-text { font-size: 17px; }
	.k9cv__li { gap: 14px; }
	.k9cv__list { gap: 16px; }
}

@media (max-width: 1200px) {
	.k9cv__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "content content" "map card"; gap: 40px 30px; }
	.k9cv__content { grid-area: content; max-width: none; }
	.k9cv__mapwrap { grid-area: map; }
	.k9cv__card { grid-area: card; }
}

@media (max-width: 1024px) {
	.k9cv { padding: 60px 30px; --k9-map-w: 300px; }
	.k9cv__title { font-size: 40px; }
	.k9cv__deco { width: 100%; height: 40%; opacity: .2; }
}

@media (max-width: 767px) {
	.k9cv { padding: 50px 16px 60px; --k9-map-w: min(280px, 72vw); --k9-pin: 28px; }
	.k9cv__inner { grid-template-columns: 1fr; grid-template-areas: "content" "map" "card"; gap: 30px; }
	.k9cv__sub { font-size: 13px; }
	.k9cv__title { font-size: 31px; }
	.k9cv__desc { font-size: 15px; margin-bottom: 24px; }
	/* features: compact horizontal rows */
	.k9cv__feats { flex-direction: column; gap: 16px; margin-bottom: 28px; }
	.k9cv__feat, .k9cv__feat:first-child {
		display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center;
		padding: 0; border-left: 0 !important;
	}
	.k9cv__fic { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 22px; }
	.k9cv__fic svg { width: 22px; height: 22px; }
	.k9cv__ftitle { font-size: 17px; margin: 0; align-self: end; }
	.k9cv__ftext { font-size: 14px; align-self: start; }
	.k9cv__btn { width: 100%; }
	.k9cv__mapwrap { padding: 10px 0; }
	.k9cv__orbit--1 { width: calc(var(--k9-map-w) * 1.15); height: calc(var(--k9-map-w) * 1.15); }
	.k9cv__tip { min-width: 160px; max-width: 200px; font-size: 12px; }
	.k9cv__card { padding: 24px 20px 24px 24px; border-left-width: 5px; border-radius: 14px; }
	.k9cv__card-title { font-size: 20px; margin-bottom: 18px; }
	.k9cv__li-text { font-size: 16px; }
	.k9cv__chk { flex-basis: 30px; width: 30px; height: 30px; font-size: 12px; }
	.k9cv__shape { transform: scale(.6); transform-origin: top left; }
	.k9cv__shape--br { transform-origin: bottom right; }
}
