:root {
        --ink: #10232f;
        --muted: #5d7482;
        --paper: #f7fbfc;
        --surface: #ffffff;
        --sky: #cfeefe;
        --sky-strong: #83c9ee;
        --sea: #0b7f96;
        --sea-deep: #07566f;
        --spruce: #18605c;
        --sand: #f1dca7;
        --sun: #efb84f;
        --coral: #d7674e;
        --mist: #e6f1f4;
        --line: rgba(16, 35, 47, 0.14);
        --shadow: 0 18px 45px rgba(7, 86, 111, 0.12);
        --radius: 8px;
        --content: 1180px;
        --detail-title-size: 1.5vw;
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        min-height: 100vh;
        margin: 0;
        display: flex;
        flex-direction: column;
        color: var(--ink);
        background:
          radial-gradient(circle at 8% 0%, rgba(131, 201, 238, 0.35), transparent 28rem),
          linear-gradient(180deg, #f3fbfe 0%, #f7fbfc 42%, #f4f1e8 100%);
        font-family:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          sans-serif;
        line-height: 1.5;
      }

      body > main {
        flex: 1;
      }

      img {
        display: block;
        max-width: 100%;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      button,
      input,
      select {
        font: inherit;
      }

      .skip-link {
        position: absolute;
        left: 1rem;
        top: -4rem;
        z-index: 20;
        padding: 0.65rem 0.85rem;
        border-radius: var(--radius);
        background: var(--ink);
        color: #fff;
        transition: top 160ms ease;
      }

      .skip-link:focus {
        top: 1rem;
      }

      .site-header {
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 1px solid rgba(255, 255, 255, 0.68);
        background: rgba(247, 251, 252, 0.86);
        backdrop-filter: blur(18px);
      }

      .nav {
        width: min(var(--content), calc(100% - 2rem));
        min-height: 72px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
      }

      .brand {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        min-width: max-content;
        font-weight: 800;
        letter-spacing: 0;
      }

      .brand-text {
        display: grid;
        gap: 0.05rem;
        line-height: 1.1;
      }

      .brand-title {
        font-weight: 850;
      }

      .brand-tagline {
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 650;
      }

      .brand-mark {
        width: 38px;
        height: 38px;
        border: 2px solid rgba(7, 86, 111, 0.22);
        border-radius: 50%;
        display: grid;
        place-items: center;
        background:
          linear-gradient(180deg, var(--sky) 0 47%, var(--sea) 47% 100%);
        box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.72);
      }

      .brand-mark::before {
        content: "";
        width: 5px;
        height: 23px;
        border-radius: 3px 3px 1px 1px;
        background: #fff;
        box-shadow:
          0 -7px 0 2px var(--coral),
          0 8px 0 1px rgba(16, 35, 47, 0.14);
      }

      .nav-toggle {
        display: none;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0;
        color: var(--sea-deep);
        background:
          linear-gradient(currentColor 0 0) center calc(50% - 7px) / 20px 2px no-repeat,
          linear-gradient(currentColor 0 0) center center / 20px 2px no-repeat,
          linear-gradient(currentColor 0 0) center calc(50% + 7px) / 20px 2px no-repeat,
          rgba(255, 255, 255, 0.72);
        cursor: pointer;
        appearance: none;
      }

      .nav-toggle span {
        display: none;
      }

      .nav-toggle:hover,
      .nav-toggle:focus-visible {
        background:
          linear-gradient(currentColor 0 0) center calc(50% - 7px) / 20px 2px no-repeat,
          linear-gradient(currentColor 0 0) center center / 20px 2px no-repeat,
          linear-gradient(currentColor 0 0) center calc(50% + 7px) / 20px 2px no-repeat,
          rgba(11, 127, 150, 0.1);
        outline: none;
      }

      .nav-links {
        display: flex;
        align-items: center;
        gap: 0.15rem;
        color: var(--muted);
      }

      .nav-links a {
        padding: 0.55rem 0.75rem;
        border-radius: var(--radius);
        font-size: 0.95rem;
        font-weight: 650;
      }

      .nav-links a:hover,
      .nav-links a:focus-visible {
        color: var(--sea-deep);
        background: rgba(11, 127, 150, 0.1);
        outline: none;
      }

      .container {
        width: min(var(--content), calc(100% - 2rem));
        margin: 0 auto;
      }

      .hero {
        min-height: calc(100svh - 72px);
        display: grid;
        align-items: center;
        padding: clamp(1.75rem, 3vw, 3rem) 0;
      }

      .hero-layout {
        display: grid;
        grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
        gap: clamp(1.2rem, 3vw, 2.4rem);
        align-items: stretch;
      }

      .home-hero {
        min-height: 0;
      }

      .home-hero-layout {
        display: grid;
        gap: 2rem;
        align-items: center;
      }

      .hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1.35rem;
        padding: clamp(0.2rem, 1vw, 0.75rem) 0;
      }

      .home-hero .hero-copy {
        max-width: 100%;
      }

      .eyebrow {
        width: fit-content;
        border: 1px solid rgba(11, 127, 150, 0.2);
        border-radius: 999px;
        padding: 0.38rem 0.7rem;
        color: var(--spruce);
        background: rgba(255, 255, 255, 0.74);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      h1,
      h2,
      h3,
      p {
        margin: 0;
      }

      h1 {
        max-width: 12ch;
        font-size: clamp(3.2rem, 8vw, 6.8rem);
        line-height: 0.88;
        letter-spacing: 0;
      }

      .home-hero h1 {
        max-width: none;
        font-size: 4rem;
        line-height: 0.98;
      }

      .lead {
        max-width: 54ch;
        color: #385666;
        font-size: clamp(1.05rem, 1vw, 1.26rem);
      }

      .home-stats-block {
        display: grid;
        gap: 0.75rem;
      }

      .home-stats-title {
        color: var(--ink);
        font-size: 1.0em;
        line-height: 1.2;
        font-weight: 850;
      }

      .search-panel {
        border: 1px solid rgba(16, 35, 47, 0.1);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.86);
        box-shadow: var(--shadow);
        overflow: hidden;
      }

      .search-row {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: 60px;
      }

      .search-row input {
        width: 100%;
        min-width: 0;
        border: 0;
        padding: 1rem 1rem 1rem 1.15rem;
        background: transparent;
        color: var(--ink);
        outline: none;
      }

      .search-row input::placeholder {
        color: #73909f;
      }

      .primary-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 120px;
        min-height: 44px;
        border: 0;
        border-radius: 0;
        padding: 0.8rem 1.05rem;
        color: #fff;
        background: var(--sea-deep);
        font-weight: 800;
        cursor: pointer;
      }

      .primary-button:hover {
        background: #053f55;
      }

      .quick-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--line);
      }

      .quick-stats div {
        min-width: 0;
        padding: 0.85rem 1rem;
      }

      .quick-stats div + div {
        border-left: 1px solid var(--line);
      }

      .quick-stats strong {
        display: block;
        color: var(--sea-deep);
        font-size: 1.35rem;
        line-height: 1.1;
      }

      .quick-stats span {
        color: var(--muted);
        font-size: 0.83rem;
      }

      .home-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: 100%;
      }

      .home-stats div {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1rem;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 10px 28px rgba(16, 35, 47, 0.06);
      }

      .home-stats strong {
        display: block;
        color: var(--sea-deep);
        font-size: 2rem;
        line-height: 1.05;
      }

      .home-stats span {
        display: block;
        margin-top: 0.25rem;
        color: var(--muted);
        font-size: 0.9rem;
        font-weight: 750;
      }

      .home-info-section {
        padding-top: clamp(2rem, 5vw, 4rem);
      }

      .lighthouse-type-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
      }

      .lighthouse-type-card {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.1rem;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 10px 28px rgba(16, 35, 47, 0.06);
      }

      .lighthouse-type-card h3 {
        margin-bottom: 0.55rem;
        color: var(--sea-deep);
        font-size: 1.15rem;
      }

      .lighthouse-type-card p {
        color: #425f6d;
        font-size: 0.96rem;
      }

      .adsense-slot {
        display: grid;
        gap: 0.35rem;
        width: 100%;
      }

      .home-types-ad {
        min-height: 120px;
        margin-top: clamp(1.5rem, 4vw, 2.5rem);
      }

      .adsense-slot .adsbygoogle {
        display: block;
        min-height: 90px;
      }

      .home-history-section {
        padding-top: clamp(1rem, 3vw, 2rem);
      }

      .home-history-layout {
        display: grid;
        gap: 0.9rem;
      }

      .home-history-layout .section-head {
        display: block;
        margin-bottom: 0;
      }

      .home-type-intro {
        margin-bottom: 1.6rem;
      }

      .home-history-text {
        display: grid;
        gap: 1rem;
        max-width: 76ch;
        color: #425f6d;
        font-size: 1rem;
      }

      .hero-visual {
        position: relative;
        min-height: min(68svh, 650px);
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid rgba(16, 35, 47, 0.12);
        background: var(--mist);
        box-shadow: var(--shadow);
      }

      .hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .hero-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
          linear-gradient(180deg, rgba(16, 35, 47, 0.02) 0%, rgba(16, 35, 47, 0.58) 100%),
          linear-gradient(90deg, rgba(7, 86, 111, 0.22), transparent 42%);
      }

      .image-caption {
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        z-index: 1;
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 1rem;
        color: #fff;
      }

      .image-caption h2 {
        font-size: clamp(1.7rem, 3.8vw, 3.4rem);
        line-height: 0.96;
        letter-spacing: 0;
      }

      .image-caption p {
        color: rgba(255, 255, 255, 0.82);
      }

      .weather-pill {
        min-width: 128px;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: var(--radius);
        padding: 0.65rem 0.75rem;
        background: rgba(16, 35, 47, 0.34);
        backdrop-filter: blur(12px);
        text-align: right;
      }

      .section {
        padding: clamp(2.7rem, 6vw, 5rem) 0;
      }

      .section-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1rem;
        align-items: end;
        margin-bottom: 1.2rem;
      }

      .section-head h2 {
        font-size: clamp(2rem, 4vw, 3.5rem);
        line-height: 1;
        letter-spacing: 0;
      }

      .section-head p {
        max-width: 48ch;
        color: var(--muted);
      }

      .toolbar {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(170px, 220px));
        gap: 0.75rem;
        align-items: end;
        margin: 1rem 0 1.2rem;
      }

      .field {
        display: grid;
        gap: 0.35rem;
      }

      .field label {
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 800;
      }

      .field input,
      .field select {
        width: 100%;
        height: 46px;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0 0.75rem;
        color: var(--ink);
        background: rgba(255, 255, 255, 0.86);
        outline: none;
      }

      .field input:focus,
      .field select:focus {
        border-color: rgba(11, 127, 150, 0.65);
        box-shadow: 0 0 0 3px rgba(11, 127, 150, 0.14);
      }

      .tag-filter-panel {
        display: grid;
        gap: 0.55rem;
        margin: -0.15rem 0 1.1rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0.9rem;
        background: rgba(255, 255, 255, 0.82);
      }

      .tag-filter-title {
        margin: 0;
        color: var(--muted);
        font-size: 0.92rem;
        font-weight: 650;
      }

      .tag-filter-help {
        width: fit-content;
        max-width: 100%;
        color: #425f6d;
        font-size: 0.78rem;
      }

      .tag-filter-help summary {
        width: fit-content;
        color: var(--muted);
        font-weight: 650;
        cursor: pointer;
      }

      .tag-filter-help summary:hover,
      .tag-filter-help summary:focus-visible {
        text-decoration: underline;
        text-underline-offset: 0.22em;
        outline: none;
      }

      .tag-filter-help-content {
        display: grid;
        gap: 0.35rem;
        max-width: 76ch;
        margin-top: 0.55rem;
        border-left: 3px solid rgba(11, 127, 150, 0.24);
        padding-left: 0.75rem;
        font-size: 0.82rem;
      }

      .tag-filter-help-content p {
        margin: 0;
      }

      .tag-filter-help-content strong {
        color: var(--ink);
      }

      .tag-filter-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }

      .tag-filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        flex: 1 1 auto;
      }

      .results-bar {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 1rem;
        margin: 0.2rem 0 1rem;
      }

      .results-bar .results-meta {
        margin: 0 0 0.45rem;
      }

      .sort-controls {
        display: grid;
        grid-template-columns: minmax(170px, 220px) 46px;
        gap: 0.5rem;
        align-items: end;
      }

      .sort-direction-button {
        width: 46px;
        height: 46px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--sea-deep);
        background: rgba(255, 255, 255, 0.86);
        font-size: 1.2rem;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
      }

      .sort-direction-button:hover,
      .sort-direction-button:focus-visible {
        border-color: rgba(11, 127, 150, 0.65);
        box-shadow: 0 0 0 3px rgba(11, 127, 150, 0.14);
        outline: none;
      }

      .tag-checkbox {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        cursor: pointer;
      }

      .tag-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }

      .tag-checkbox span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        border: 1px solid rgba(24, 96, 92, 0.16);
        border-radius: 4px;
        padding: 0.22rem 0.45rem;
        color: var(--spruce);
        background: #edf7f1;
        font-size: 0.78rem;
        font-weight: 800;
      }

      .tag-checkbox input:checked + span {
        border-color: var(--sea-deep);
        color: #fff;
        background: var(--sea-deep);
      }

      .tag-checkbox input:focus-visible + span {
        box-shadow: 0 0 0 3px rgba(11, 127, 150, 0.18);
      }

      .tag-clear-button {
        flex: 0 0 auto;
        border: 0;
        border-radius: 4px;
        padding: 0.32rem 0.55rem;
        color: var(--sea-deep);
        background: rgba(11, 127, 150, 0.1);
        font-size: 0.78rem;
        font-weight: 850;
        cursor: pointer;
      }

      .tag-clear-button:hover,
      .tag-clear-button:focus-visible {
        background: rgba(11, 127, 150, 0.18);
        outline: none;
      }

      .view-tabs {
        display: inline-grid;
        grid-template-columns: repeat(2, 1fr);
        min-width: 220px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: rgba(255, 255, 255, 0.78);
      }

      .view-tabs button {
        min-height: 42px;
        border: 0;
        background: transparent;
        color: var(--muted);
        font-weight: 800;
        cursor: pointer;
      }

      .view-tabs button[aria-pressed="true"] {
        color: #fff;
        background: var(--sea);
      }

      .results-meta {
        margin-bottom: 1rem;
        color: var(--muted);
        font-size: 0.95rem;
      }

      .lighthouse-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
      }

      .lighthouse-card {
        display: grid;
        grid-template-rows: 190px 1fr;
        min-height: 100%;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--surface);
        box-shadow: 0 10px 28px rgba(16, 35, 47, 0.07);
      }

      .card-image-wrap {
        position: relative;
        height: 100%;
        min-height: 0;
        overflow: hidden;
      }

      .card-image-link {
        display: block;
        height: 100%;
      }

      .lighthouse-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: var(--mist);
      }

      .special-badge {
        position: absolute;
        left: 0.75rem;
        top: 0.75rem;
        z-index: 3;
        max-width: calc(100% - 1.5rem);
        border: 1px solid rgba(255, 255, 255, 0.62);
        border-radius: 4px;
        padding: 0.4rem 0.55rem;
        color: #ffffff;
        background: rgba(215, 103, 78, 0.94);
        box-shadow: 0 10px 24px rgba(16, 35, 47, 0.22);
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1.15;
        text-transform: uppercase;
      }

      .card-body {
        display: grid;
        gap: 0.75rem;
        padding: 1rem;
      }

      .card-title-row {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 0.75rem;
      }

      .card-title-row h3 {
        font-size: 1.25rem;
        line-height: 1.15;
      }

      .tag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 26px;
        border-radius: 999px;
        padding: 0.2rem 0.55rem;
        color: #124350;
        background: #d8eef2;
        font-size: 0.76rem;
        font-weight: 800;
        white-space: nowrap;
      }

      .tag.open {
        color: #27420f;
        background: #dff0c9;
      }

      .tag.guided {
        color: #5f3905;
        background: #ffe2a8;
      }

      .tag.limited {
        color: #6e3a14;
        background: #f8e0c4;
      }

      .tag.closed {
        color: #603331;
        background: #f5d8d2;
      }

      .lighthouse-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
      }

      .feature-tag {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        border: 1px solid rgba(24, 96, 92, 0.16);
        border-radius: 4px;
        padding: 0.22rem 0.45rem;
        color: var(--spruce);
        background: #edf7f1;
        font-size: 0.74rem;
        font-weight: 800;
      }

      .facts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
      }

      .facts span {
        min-width: 0;
        border-radius: var(--radius);
        padding: 0.55rem;
        background: #f3f8f9;
        color: var(--muted);
        font-size: 0.78rem;
      }

      .facts strong {
        display: block;
        color: var(--ink);
        font-size: 0.95rem;
      }

      .text-link {
        width: fit-content;
        color: var(--sea-deep);
        font-weight: 850;
        text-decoration: underline;
        text-decoration-thickness: 0.12em;
        text-underline-offset: 0.25em;
      }

      .detail-back-link {
        margin-bottom: 0.25rem;
      }

      .map-shell {
        display: none;
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
        gap: 1rem;
        align-items: stretch;
        height: min(720px, calc(100svh - 140px));
        min-height: 560px;
      }

      .map-shell.is-visible {
        display: grid;
      }

      .map-main {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0.65rem;
        height: 100%;
        min-height: 0;
      }

      .map-canvas {
        position: relative;
        height: 100%;
        min-height: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background:
          radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.54), transparent 10rem),
          linear-gradient(160deg, #d5f3ff 0%, #a5dcef 35%, #4aa7bd 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
      }

      .google-map-canvas {
        background: #d5f3ff;
      }

      .google-map {
        position: absolute;
        inset: 0;
      }

      .map-placeholder {
        position: absolute;
        inset: 1rem;
        display: grid;
        place-items: center;
        margin: 0;
        border: 1px dashed rgba(7, 86, 111, 0.34);
        border-radius: var(--radius);
        color: var(--muted);
        font-weight: 800;
        text-align: center;
        background: rgba(255, 255, 255, 0.72);
      }

      .google-map.is-hidden,
      .map-placeholder.is-hidden {
        display: none;
      }

      .map-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem 1rem;
        align-items: center;
        min-height: 30px;
        color: var(--muted);
        font-size: 0.84rem;
        font-weight: 800;
      }

      .map-legend-item {
        display: inline-flex;
        gap: 0.4rem;
        align-items: center;
      }

      .map-legend-dot {
        width: 0.72rem;
        height: 0.72rem;
        border: 2px solid #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(16, 35, 47, 0.2);
        flex: 0 0 auto;
      }

      .map-legend-dot.type-sea {
        background: #07566f;
      }

      .map-legend-dot.type-church {
        background: #c94732;
      }

      .map-legend-dot.type-leading {
        background: #2f8f46;
      }

      .map-legend-dot.type-caisson {
        background: #d99a16;
      }

      .map-popup {
        position: relative;
        display: grid;
        gap: 0.18rem;
        min-width: 190px;
        padding-top: 1.55rem;
        color: var(--ink);
        font-family: inherit;
      }

      .map-popup-status {
        position: absolute;
        right: 0;
        top: 0;
        min-height: 20px;
        padding: 0.1rem 0.38rem;
        font-size: 0.68rem;
      }

      .map-popup strong {
        font-size: 0.98rem;
      }

      .map-popup span {
        color: var(--muted);
        font-size: 0.82rem;
      }

      .map-popup .map-popup-tags {
        margin-top: 0.2rem;
        color: var(--spruce);
        font-weight: 800;
      }

      .map-popup a {
        margin-top: 0.35rem;
        color: var(--sea-deep);
        font-weight: 850;
        text-decoration: underline;
        text-underline-offset: 0.22em;
      }

      .map-land {
        position: absolute;
        background: #e8edd6;
        border: 1px solid rgba(24, 96, 92, 0.18);
        box-shadow: 0 18px 36px rgba(7, 86, 111, 0.14);
      }

      .land-main {
        left: 43%;
        top: -3%;
        width: 43%;
        height: 104%;
        border-radius: 43% 0 0 52% / 18% 0 0 25%;
        transform: rotate(-7deg);
      }

      .land-archipelago {
        left: 18%;
        top: 56%;
        width: 38%;
        height: 33%;
        border-radius: 57% 28% 32% 56%;
        transform: rotate(-18deg);
      }

      .land-aland {
        left: 8%;
        top: 68%;
        width: 17%;
        height: 14%;
        border-radius: 50%;
        transform: rotate(10deg);
      }

      .depth-line {
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 50%;
      }

      .depth-line.one {
        left: 4%;
        top: 21%;
        width: 72%;
        height: 65%;
      }

      .depth-line.two {
        left: 20%;
        top: 8%;
        width: 66%;
        height: 74%;
      }

      .map-marker {
        position: absolute;
        left: var(--x);
        top: var(--y);
        z-index: 3;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 50%;
        color: #fff;
        background: var(--coral);
        box-shadow:
          0 0 0 5px rgba(215, 103, 78, 0.18),
          0 10px 24px rgba(16, 35, 47, 0.24);
        transform: translate(-50%, -50%);
        cursor: pointer;
      }

      .map-marker::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 6px;
        width: 6px;
        height: 15px;
        border-radius: 3px 3px 1px 1px;
        background: #fff;
        transform: translateX(-50%);
      }

      .map-marker::after {
        content: attr(aria-label);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 0.55rem);
        width: max-content;
        max-width: 13rem;
        border-radius: var(--radius);
        padding: 0.35rem 0.55rem;
        background: rgba(16, 35, 47, 0.88);
        color: #fff;
        font-size: 0.77rem;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(4px);
        transition: opacity 160ms ease, transform 160ms ease;
      }

      .map-marker:hover::after,
      .map-marker:focus-visible::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }

      .map-marker.is-active {
        background: var(--sea-deep);
        box-shadow:
          0 0 0 7px rgba(7, 86, 111, 0.22),
          0 10px 24px rgba(16, 35, 47, 0.28);
      }

      .map-panel {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100%;
        min-height: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--surface);
      }

      .map-panel-head {
        padding: 1rem;
        border-bottom: 1px solid var(--line);
        background: #f3f8f9;
      }

      .map-panel-head h3 {
        font-size: 1.35rem;
      }

      .map-list {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
      }

      .map-item {
        position: relative;
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 0.75rem;
        width: 100%;
        border: 0;
        border-bottom: 1px solid var(--line);
        padding: 0.85rem;
        background: #fff;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .map-item-status {
        position: absolute;
        right: 0.75rem;
        top: 0.75rem;
        min-height: 20px;
        padding: 0.1rem 0.38rem;
        font-size: 0.68rem;
      }

      .map-item:hover,
      .map-item.is-active {
        background: #eef8fa;
      }

      .map-item img {
        width: 72px;
        height: 72px;
        border-radius: var(--radius);
        object-fit: cover;
      }

      .map-item strong {
        display: block;
        padding-right: 5.8rem;
      }

      .map-item span {
        display: block;
        color: var(--muted);
        font-size: 0.88rem;
      }

      .map-item .map-tags {
        margin-top: 0.18rem;
        color: var(--spruce);
        font-size: 0.78rem;
        font-weight: 750;
      }

      .ad-band {
        border-block: 1px solid var(--line);
        background:
          linear-gradient(90deg, rgba(241, 220, 167, 0.38), rgba(207, 238, 254, 0.44)),
          rgba(255, 255, 255, 0.7);
      }

      .ad-inner {
        width: min(var(--content), calc(100% - 2rem));
        min-height: 112px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
      }

      .ad-label {
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .ad-copy {
        font-size: clamp(1.2rem, 2.4vw, 2rem);
        font-weight: 850;
        line-height: 1.05;
      }

      .ad-box {
        width: min(38vw, 350px);
        min-width: 230px;
        height: 80px;
        border: 1px dashed rgba(7, 86, 111, 0.34);
        border-radius: var(--radius);
        display: grid;
        place-items: center;
        color: var(--sea-deep);
        background: rgba(255, 255, 255, 0.72);
        font-weight: 800;
      }

      .detail {
        display: grid;
        gap: 1rem;
      }

      .detail-hero {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
        min-height: 560px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--surface);
        box-shadow: var(--shadow);
      }

      .image-carousel {
        position: relative;
        height: 100%;
        min-height: 320px;
        overflow: hidden;
        background: var(--mist);
      }

      .carousel-slides,
      .carousel-slide {
        height: 100%;
        min-height: 100%;
      }

      .carousel-slide {
        display: none;
      }

      .carousel-slide.is-active {
        display: block;
      }

      .detail-hero figure {
        margin: 0;
        min-height: 100%;
      }

      .detail-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .carousel-credit {
        position: absolute;
        right: 0.75rem;
        bottom: 0.75rem;
        z-index: 2;
        max-width: min(70%, 26rem);
        box-sizing: border-box;
        border-radius: 4px;
        padding: 0.25rem 0.45rem;
        color: #ffffff;
        background: rgba(8, 40, 56, 0.54);
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1.25;
        overflow-wrap: anywhere;
        white-space: normal;
      }

      .detail-special-badge {
        font-size: 0.88rem;
      }

      .carousel-slide:nth-child(2) img {
        object-position: center 34%;
      }

      .detail-copy {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
        padding: clamp(1.1rem, 3vw, 2rem);
      }

      .detail-copy > .tag:first-child {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: fit-content;
        min-height: 24px;
        padding: 0.2rem 0.55rem;
        font-size: 0.72rem;
      }

      .detail-copy h1,
      .detail-copy h2 {
        max-width: calc(100% - 8.5rem);
        font-size: clamp(1.9rem, var(--detail-title-size), 3rem);
        line-height: 0.92;
        letter-spacing: 0;
      }

      .detail-copy p {
        color: #425f6d;
        font-size: 1.04rem;
        white-space: pre-line;
      }

      .detail-facts {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
      }

      .detail-facts div {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0.85rem;
        background: #f7fbfc;
      }

      .detail-facts span {
        display: block;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
      }

      .detail-facts strong {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.78rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
      }

      .carousel-button {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 4px;
        color: #ffffff;
        background: rgba(8, 40, 56, 0.48);
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
        transition: background 0.2s ease, transform 0.2s ease;
      }

      .carousel-button:hover {
        background: rgba(8, 40, 56, 0.72);
        transform: translateY(-50%) scale(1.04);
      }

      .carousel-button-prev {
        left: 0.75rem;
      }

      .carousel-button-next {
        right: 0.75rem;
      }

      .carousel-counter {
        position: absolute;
        left: 0.75rem;
        bottom: 0.75rem;
        z-index: 2;
        border-radius: 4px;
        padding: 0.25rem 0.45rem;
        color: #ffffff;
        background: rgba(8, 40, 56, 0.54);
        font-size: 0.78rem;
        font-weight: 800;
      }

      .image-carousel.is-single .carousel-button,
      .image-carousel.is-single .carousel-counter {
        display: none;
      }

      .detail-bottom-meta {
        display: grid;
        gap: 0.45rem;
        margin-top: auto;
      }

      .compact-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1rem;
      }

      .detail-columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
        gap: 1rem;
      }

      .info-panel {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: clamp(1rem, 2vw, 1.4rem);
        background: var(--surface);
      }

      .info-panel h2,
      .info-panel h3 {
        margin-bottom: 0.65rem;
        font-size: 1.35rem;
      }

      .info-panel p,
      .info-panel li {
        color: #425f6d;
      }

      .info-panel p {
        white-space: pre-line;
      }

      .timeline {
        display: grid;
        gap: 0.8rem;
        margin-top: 0.9rem;
      }

      .timeline div {
        display: grid;
        grid-template-columns: 70px 1fr;
        gap: 0.75rem;
        align-items: start;
      }

      .timeline strong {
        color: var(--sea-deep);
      }

      .visit-list {
        display: grid;
        gap: 0.65rem;
        margin: 0.8rem 0 0;
        padding: 0;
        list-style: none;
      }

      .visit-list li {
        border-top: 1px solid var(--line);
        padding-top: 0.65rem;
      }

      .detail-tags {
        margin-top: 0;
      }

      .detail-mini-map {
        margin-top: 0.85rem;
      }

      .detail-mini-map .map-canvas {
        min-height: 320px;
      }

      .map-coordinates {
        margin-top: 0.55rem;
        color: var(--muted);
        font-size: 0.88rem;
        font-weight: 750;
      }

      .static-marker {
        pointer-events: none;
      }

      .sources {
        color: var(--muted);
        font-size: 0.82rem;
      }

      .site-footer {
        border-top: 1px solid var(--line);
        padding: 1.45rem 0 1.1rem;
        color: rgba(255, 255, 255, 0.72);
        background: #10232f;
      }

      .footer-inner {
        display: grid;
        gap: 1.05rem;
      }

      .footer-main {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: clamp(1.5rem, 5vw, 4rem);
      }

      .footer-brand {
        display: grid;
        gap: 0.25rem;
      }

      .footer-brand strong {
        display: block;
        color: #ffffff;
        font-size: 1.05rem;
      }

      .footer-brand p {
        max-width: 32ch;
        margin: 0;
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.92rem;
      }

      .footer-groups {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        gap: clamp(1.5rem, 5vw, 3.5rem);
      }

      .footer-group {
        display: grid;
        gap: 0.28rem;
        min-width: 0;
      }

      .footer-group h2 {
        margin: 0 0 0.1rem;
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 850;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
      }

      .footer-group a {
        width: fit-content;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.9rem;
        font-weight: 650;
        text-decoration: none;
      }

      .footer-group a:hover,
      .footer-group a:focus-visible {
        color: #ffffff;
        text-decoration: underline;
        text-decoration-thickness: 0.08em;
        text-underline-offset: 0.22em;
        outline: none;
      }

      .footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.6rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-top: 0.85rem;
        color: rgba(255, 255, 255, 0.54);
        font-size: 0.82rem;
      }

      .hidden {
        display: none !important;
      }

      @media (max-width: 980px) {
        .hero {
          min-height: auto;
        }

        .hero-layout,
        .detail-hero,
        .detail-columns,
        .map-shell {
          grid-template-columns: 1fr;
        }

        .map-shell {
          height: auto;
          min-height: 0;
        }

        .map-canvas {
          height: min(56svh, 520px);
          min-height: 420px;
        }

        .hero-visual {
          min-height: 430px;
        }

        .home-hero h1 {
          font-size: 4.4rem;
        }

        .home-stats {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .lighthouse-type-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .toolbar {
          grid-template-columns: 1fr 1fr;
        }

        .toolbar .field:first-child {
          grid-column: 1 / -1;
        }

        .results-bar {
          align-items: stretch;
          flex-direction: column;
        }

        .results-bar .results-meta {
          margin-bottom: 0;
        }

        .sort-controls {
          grid-template-columns: minmax(0, 1fr) 46px;
        }

        .lighthouse-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .detail-facts {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .map-panel {
          height: 420px;
          min-height: 0;
        }
      }

      @media (max-width: 700px) {
        .nav {
          display: grid;
          grid-template-columns: minmax(0, 1fr) auto;
          min-height: 0;
          padding: 0.7rem 0 0.65rem;
          align-items: center;
          gap: 0.55rem;
        }

        .brand {
          min-width: 0;
        }

        .brand-mark {
          width: 34px;
          height: 34px;
          flex: 0 0 auto;
        }

        .brand-title {
          font-size: 1rem;
        }

        .brand-tagline {
          font-size: 0.72rem;
        }

        .nav-toggle {
          display: flex;
        }

        .nav-links {
          display: none;
          grid-column: 1 / -1;
          grid-template-columns: 1fr;
          gap: 0;
          width: 100%;
          margin-top: 0.1rem;
          border: 1px solid var(--line);
          border-radius: var(--radius);
          overflow: hidden;
          background: rgba(255, 255, 255, 0.94);
          box-shadow: 0 14px 34px rgba(7, 86, 111, 0.12);
        }

        .nav.is-open .nav-links {
          display: grid;
        }

        .nav-links a {
          display: flex;
          min-height: 44px;
          align-items: center;
          justify-content: flex-start;
          border: 0;
          border-radius: 0;
          padding: 0.7rem 0.85rem;
          background: transparent;
          font-size: 0.9rem;
          text-align: left;
          white-space: nowrap;
        }

        .nav-links a + a {
          border-top: 1px solid var(--line);
        }

        .hero {
          padding-top: 1.1rem;
        }

        h1 {
          font-size: clamp(3rem, 17vw, 4.8rem);
        }

        .home-hero h1 {
          font-size: 3.1rem;
        }

        .search-row,
        .quick-stats,
        .home-stats,
        .toolbar,
        .section-head,
        .ad-inner {
          grid-template-columns: 1fr;
        }

        .footer-main {
          display: grid;
          gap: 1rem;
        }

        .footer-groups {
          grid-template-columns: 1fr 1fr;
          gap: 1rem;
        }

        .tag-filter-panel {
          align-items: stretch;
        }

        .tag-filter-controls {
          align-items: flex-start;
          flex-direction: column;
        }

        .lighthouse-type-grid {
          grid-template-columns: 1fr;
        }

        .primary-button {
          width: 100%;
          border-top: 1px solid rgba(255, 255, 255, 0.24);
        }

        .quick-stats div + div {
          border-left: 0;
          border-top: 1px solid var(--line);
        }

        .hero-visual {
          min-height: 420px;
        }

        .map-canvas {
          height: 420px;
          min-height: 420px;
        }

        .image-caption {
          align-items: start;
          flex-direction: column;
        }

        .carousel-credit {
          left: 0.6rem;
          right: 0.6rem;
          bottom: 0.6rem;
          max-width: none;
          width: auto;
          font-size: 0.68rem;
        }

        .detail-copy > .tag:first-child {
          position: static;
          align-self: flex-start;
          order: -1;
          margin-bottom: 0.1rem;
        }

        .detail-copy h1 {
          max-width: none;
          overflow-wrap: anywhere;
        }

        .weather-pill {
          text-align: left;
        }

        .lighthouse-grid {
          grid-template-columns: 1fr;
        }

        .lighthouse-card {
          grid-template-rows: 210px 1fr;
        }

        .card-title-row {
          flex-direction: column;
          gap: 0.45rem;
        }

        .card-title-row > div {
          min-width: 0;
          order: 2;
        }

        .card-title-row .tag {
          order: 1;
          align-self: flex-start;
        }

        .ad-box {
          width: 100%;
          min-width: 0;
        }

        .detail-facts {
          grid-template-columns: 1fr;
        }

        .map-item {
          grid-template-columns: 64px 1fr;
        }

        .map-item img {
          width: 64px;
          height: 64px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          scroll-behavior: auto !important;
          transition: none !important;
        }
      }
