/* ==========================================================================
   Local landing pages (/web-development-lincoln…) — app/Views/locations/
   Loaded after service.css, which supplies almost everything (hero grid,
   facts, cards, panel, steps, FAQ, CTA, the "Areas" row). Here: the draft
   banner, the breadcrumb, the hero map with its dropping pin, and the
   heading-beside-text block. The pin stops for reduced motion.
   ========================================================================== */

/* ---------- Draft preview banner (editors only) ---------- */
.loc-draft {
    margin: 16px var(--gutter) 0; padding: 12px 18px; border-radius: var(--r-field);
    background: var(--c-yellow-tint); border: 3px dashed var(--c-ink); font-weight: 700;
}
.loc-draft a { text-decoration: underline; margin-left: 6px; }

/* ---------- Hero ---------- */
/* Place names can be long single words ("Nottinghamshire."), which at the
   service h1's size would run out of the panel on a phone. show.php adds
   .loc-h1--long when the heading has a word of 13+ characters; sized so the
   highlighted word fits the copy column, one- or two-column. */
.loc-hero .svc-h1 { overflow-wrap: break-word; }
.loc-hero .loc-h1--long { font-size: clamp(28px, 7.4vw, 64px); }
@media (min-width: 960px) {
    .loc-hero .loc-h1--long { font-size: clamp(40px, 4.2vw, 64px); }
}

.loc-hero__blob { right: -70px; top: -90px; width: 220px; height: 220px; }

.loc-crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.loc-crumbs a { text-decoration: underline; }

/* The map: a cream card, slightly tilted, with a river, two roads and a few
   dots for the nearby towns. The pin drops in, then bobs. */
.loc-art { justify-self: center; width: min(100%, 420px); padding: 12px 0 8px; }
.loc-map {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c-cream);
    border: 3px solid var(--c-ink); border-radius: 32px 32px 32px 8px;
    box-shadow: var(--sh-ink);
    transform: rotate(-2deg);
    overflow: hidden;
}
.loc-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loc-map__river { fill: none; stroke: var(--c-teal); stroke-width: 18; stroke-linecap: round; }
.loc-map__road  { fill: none; stroke: var(--c-ink); stroke-width: 3; stroke-dasharray: 10 9; stroke-linecap: round; opacity: .35; }

.loc-map__dot {
    position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 3px solid var(--c-ink); background: var(--c-yellow);
}
.loc-map__dot--1 { left: 14%; top: 22%; }
.loc-map__dot--2 { left: 76%; top: 16%; background: var(--c-lilac); }
.loc-map__dot--3 { left: 82%; top: 62%; }
.loc-map__dot--4 { left: 22%; top: 70%; background: var(--c-lilac); }
.loc-map__dot--5 { left: 58%; top: 80%; background: var(--c-orange); }

.loc-pin {
    position: absolute; left: 50%; top: 50%;
    display: flex; flex-direction: column; align-items: center;
    transform: translate(-50%, -78%);
}
.loc-pin__label {
    background: var(--c-white);
    border: 3px solid var(--c-ink); box-shadow: var(--sh-ink-xs);
    border-radius: 18px 18px 18px 4px;
    padding: 6px 14px; margin-bottom: 8px;
    font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.1;
    white-space: nowrap;
    animation: locBob 5s ease-in-out infinite;
}
.loc-pin__icon { display: block; overflow: visible; animation: locDrop 1s cubic-bezier(.34, 1.6, .5, 1) both, locFloat 4s ease-in-out 1s infinite; }
.loc-pin__shadow {
    width: 34px; height: 9px; margin-top: 2px; border-radius: 50%;
    background: var(--c-ink); opacity: .25;
    animation: locShadow 4s ease-in-out 1s infinite;
}

@keyframes locDrop { from { transform: translateY(-60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes locFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes locShadow { 0%, 100% { transform: scale(1); } 50% { transform: scale(.75); } }
@keyframes locBob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-1deg) translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
    .loc-art, .loc-art * { animation: none !important; }
}

/* ---------- Heading beside text ---------- */
.loc-split {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 48px; align-items: start;
}
.loc-split__body { display: flex; flex-direction: column; gap: 18px; font-size: 19px; line-height: 1.6; max-width: 720px; }
.loc-split__body p { text-wrap: pretty; }
