:root {
    color-scheme: light;
    --ld-bg: #f4f7f8;
    --ld-panel: #ffffff;
    --ld-soft: #e8f8f7;
    --ld-navy: #071b32;
    --ld-text: #092f35;
    --ld-muted: #405f67;
    --ld-line: #cbdcdf;
    --ld-teal: #00b7b2;
    --ld-teal-dark: #006f73;
}

* { box-sizing: border-box; }

html {
    background: var(--ld-bg);
    color: var(--ld-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
}

body { margin: 0; background: var(--ld-bg); }
a { color: inherit; }

.ld-card-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.ld-container {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
}

.ld-topbar { background: var(--ld-navy); color: #fff; }
.ld-topbar__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.ld-topbar__inner--banner { justify-content: center; }
.ld-topbar a { text-decoration: none; }
.ld-topbar__inner > a:last-child {
    color: #a7fbf5;
    font-size: 0.9rem;
    font-weight: 800;
}
.ld-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}
.ld-brand__mark {
    width: 27px;
    height: 27px;
    border: 7px solid var(--ld-teal);
    border-right-color: #52d8f4;
    border-radius: 50%;
}

.ld-card { padding: 28px 0 44px; }
.ld-card-page .ld-card {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 42px 0;
}
.ld-banner {
    min-width: 0;
    width: 100%;
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid var(--ld-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 8%, rgba(0, 183, 178, 0.18), transparent 32%),
        var(--ld-panel);
    box-shadow: 0 24px 60px rgba(7, 27, 50, 0.12);
    text-align: center;
}
.ld-banner .ld-location { margin-bottom: 14px; }
.ld-banner h1 {
    margin-inline: auto;
    overflow-wrap: anywhere;
}
.ld-banner .ld-lead { margin: 20px auto 24px; }
.ld-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
    padding: 0 0 28px;
    color: var(--ld-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}
.ld-breadcrumbs a {
    color: var(--ld-teal-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ld-location,
.ld-eyebrow {
    margin-bottom: 12px;
    color: var(--ld-teal-dark);
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}
.ld-card h1,
.ld-directory h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ld-text);
    font-size: clamp(2rem, 6vw, 3.15rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.ld-lead,
.ld-directory > p {
    max-width: 720px;
    margin: 20px 0 26px;
    color: var(--ld-muted);
    font-size: 1.06rem;
    line-height: 1.65;
}

.ld-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ld-button {
    min-width: 0;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 2px solid var(--ld-teal-dark);
    border-radius: 10px;
    background: var(--ld-panel);
    color: var(--ld-teal-dark);
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ld-button--primary {
    border-color: var(--ld-teal-dark);
    background: var(--ld-teal-dark);
    color: #fff;
}
.ld-button--portal {
    position: relative;
    width: min(100%, 390px);
    min-height: 64px;
    margin: 28px auto 0;
    overflow: hidden;
    font-size: 1.08rem;
    box-shadow: 0 12px 28px rgba(0, 111, 115, 0.24);
}
.ld-button--portal::after {
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -35%;
    width: 22%;
    background: rgba(255, 255, 255, 0.26);
    content: "";
    transform: skewX(-20deg);
    animation: ld-button-shine 4.8s ease-in-out infinite;
}
.ld-entry-note {
    max-width: 520px;
    margin: 15px auto 0;
    color: var(--ld-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}
@keyframes ld-button-shine {
    0%, 68% { left: -35%; opacity: 0; }
    72% { opacity: 1; }
    92%, 100% { left: 118%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ld-button--portal::after { animation: none; }
}
.ld-button:focus-visible,
.ld-link-list a:focus-visible,
.ld-listings__grid > a:focus-visible {
    outline: 4px solid #ffbf47;
    outline-offset: 3px;
}

.ld-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 22px;
    color: var(--ld-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}
.ld-banner .ld-facts { justify-content: center; }
.ld-facts span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--ld-teal-dark);
    font-weight: 900;
}

.ld-listings,
.ld-related,
.ld-nearby {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--ld-line);
}
.ld-listings h2,
.ld-related h2,
.ld-nearby h2 {
    margin: 0 0 16px;
    color: var(--ld-text);
    font-size: 1.3rem;
    line-height: 1.3;
}
.ld-listings__grid { display: grid; gap: 10px; }
.ld-listings__grid > a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 72px;
    padding: 16px;
    border: 1px solid var(--ld-line);
    border-radius: 9px;
    background: var(--ld-panel);
    text-decoration: none;
}
.ld-listings__grid > a:hover { border-color: var(--ld-teal-dark); }
.ld-listings__grid strong { font-size: 1rem; line-height: 1.4; }
.ld-listings__grid span { color: var(--ld-muted); font-size: 0.86rem; }

.ld-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ld-link-list a {
    min-width: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid var(--ld-line);
    border-radius: 9px;
    background: var(--ld-panel);
    color: var(--ld-teal-dark);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.ld-link-list li { min-width: 0; }

.ld-footer {
    padding: 20px 0;
    border-top: 1px solid var(--ld-line);
    background: var(--ld-panel);
    color: var(--ld-muted);
    font-size: 0.86rem;
}
.ld-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.ld-footer__inner--banner { justify-content: center; text-align: center; }
.ld-footer a {
    color: var(--ld-teal-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ld-directory { padding: 46px 0; }
.ld-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}
.ld-directory__grid > a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--ld-line);
    border-radius: 10px;
    background: var(--ld-panel);
    text-decoration: none;
}
.ld-directory__grid > a span { color: var(--ld-muted); font-size: 0.8rem; }
.ld-empty {
    padding: 18px;
    border: 1px solid var(--ld-line);
    border-radius: 10px;
    background: var(--ld-panel);
}
.ld-pagination { margin-top: 24px; }
.ld-pagination nav > div:first-child { display: none; }
.ld-pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ld-pagination nav span,
.ld-pagination nav a { display: inline-flex; padding: 8px; text-decoration: none; }

.cookie-banner {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: 760px;
    margin: auto;
    padding: 16px;
    border: 1px solid var(--ld-line);
    border-radius: 10px;
    background: var(--ld-panel);
    box-shadow: 0 16px 50px rgba(7, 27, 50, 0.2);
}
.cookie-banner form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.cookie-banner p { margin: 5px 0; color: var(--ld-muted); font-size: 0.8rem; }
.cookie-banner details { grid-column: 1 / -1; }
.cookie-banner__actions { display: flex; gap: 8px; }
.cookie-banner button {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid var(--ld-line);
    border-radius: 8px;
    background: var(--ld-panel);
    color: var(--ld-text);
    font-weight: 800;
}
.cookie-banner button:last-child { background: var(--ld-navy); color: #fff; }

@media (max-width: 700px) {
    html { font-size: 18px; }
    .ld-container { width: min(calc(100% - 24px), 780px); }
    .ld-topbar__inner { min-height: 62px; }
    .ld-topbar__inner > a:last-child { display: none; }
    .ld-brand { font-size: 1.25rem; }
    .ld-card { padding: 22px 0 36px; }
    .ld-card-page .ld-card { padding: 24px 0; }
    .ld-banner { padding: 28px 18px; border-radius: 18px; }
    .ld-breadcrumbs { display: block; padding-bottom: 22px; font-size: 0.76rem; }
    .ld-breadcrumbs > * { margin-right: 5px; }
    .ld-breadcrumbs > :nth-child(n + 6) { display: none; }
    .ld-location { font-size: 0.8rem; }
    .ld-card h1,
    .ld-directory h1 { font-size: 1.82rem; line-height: 1.12; }
    .ld-lead,
    .ld-directory > p { margin: 16px 0 22px; font-size: 1rem; line-height: 1.6; }
    .ld-actions { grid-template-columns: 1fr; }
    .ld-button { min-height: 60px; padding: 12px; font-size: 0.94rem; }
    .ld-button--portal { min-height: 62px; margin-top: 24px; font-size: 1rem; }
    .ld-facts { display: grid; gap: 8px; font-size: 0.9rem; }
    .ld-listings,
    .ld-related,
    .ld-nearby { margin-top: 28px; padding-top: 22px; }
    .ld-listings h2,
    .ld-related h2,
    .ld-nearby h2 { font-size: 1.1rem; overflow-wrap: anywhere; }
    .ld-link-list { grid-template-columns: 1fr; }
    .ld-link-list a { min-height: 54px; font-size: 0.94rem; }
    .ld-footer__inner { flex-direction: column; }
    .ld-directory { padding: 30px 0; }
    .ld-directory__grid { grid-template-columns: 1fr; }
    .cookie-banner form { grid-template-columns: 1fr; }
    .cookie-banner__actions { flex-wrap: wrap; }
}
