/* LlynLive Marina — all styles scoped to .llynmarina-wrap
   Design: nautical dark navy / brass / teal
   Zero interference with parent theme
   ================================================================ */

/* ── RESET (scoped) ─────────────────────────────────────────── */
.llynmarina-wrap *,
.llynmarina-wrap *::before,
.llynmarina-wrap *::after {
    box-sizing: border-box;
}

.llynmarina-wrap {
    --lm-navy:      #0d1b2a;
    --lm-navy-mid:  #162335;
    --lm-navy-soft: #1f3148;
    --lm-brass:     #c9a84c;
    --lm-brass-lt:  #e2c97e;
    --lm-teal:      #1a8b7f;
    --lm-teal-lt:   #4ec4b6;
    --lm-white:     #ffffff;
    --lm-off:       #f0f4f8;
    --lm-border:    rgba(255,255,255,0.08);
    --lm-text:      #1c2b3a;
    --lm-text-mid:  #3d5166;
    --lm-text-soft: #6b8299;
    --lm-radius:    10px;
    --lm-card-bg:   #ffffff;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lm-text);
    line-height: 1.6;
    font-size: 15px;
}

/* ── HERO BAR ───────────────────────────────────────────────── */
.lm-hero {
    background: var(--lm-navy);
    padding: 1.4rem clamp(1rem, 4vw, 2rem);
}

.lm-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.lm-hero-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.lm-anchor {
    font-size: 2rem;
    line-height: 1;
}

.lm-hero-title {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--lm-brass);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.1;
}

.lm-hero-sub {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.lm-hero-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.lm-meta-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    min-width: 70px;
    text-align: center;
}

.lm-chip-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.2rem;
}

.lm-chip-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lm-brass-lt);
    text-decoration: none;
}

.lm-chip-val:hover { text-decoration: underline; }

.lm-meta-vhf .lm-chip-val { color: var(--lm-teal-lt); }

/* ── CONDITIONS STRIP ───────────────────────────────────────── */
.lm-conditions {
    background: var(--lm-navy-mid);
    border-top: 1px solid var(--lm-border);
    border-bottom: 1px solid var(--lm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 0.7rem clamp(1rem,4vw,2rem);
    scrollbar-width: none;
}
.lm-conditions::-webkit-scrollbar { display: none; }

.lm-condition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.2rem;
    white-space: nowrap;
}

.lm-cond-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.2rem;
}

.lm-cond-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lm-white);
}

.lm-condition-divider {
    width: 1px;
    height: 28px;
    background: var(--lm-border);
    flex-shrink: 0;
}

/* ── TABS ───────────────────────────────────────────────────── */
.lm-tabs-wrap {
    background: var(--lm-off);
    border-bottom: 1px solid #dde5ed;
    overflow-x: auto;
    scrollbar-width: none;
}
.lm-tabs-wrap::-webkit-scrollbar { display: none; }

.lm-tabs {
    display: flex;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(0.8rem,3vw,1.5rem);
}

.lm-tab {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lm-text-soft);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.lm-tab:hover {
    color: var(--lm-teal);
}

.lm-tab.active {
    color: var(--lm-teal);
    border-bottom-color: var(--lm-teal);
}

.lm-tab-icon { font-size: 0.95rem; }

/* ── MAP ────────────────────────────────────────────────────── */
.lm-map-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

#lm-map {
    width: 100%;
    background: #c8dce8;
}

.lm-map-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--lm-navy);
    color: var(--lm-brass);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    pointer-events: none;
    z-index: 500;
}

/* Leaflet popup override */
.llynmarina-wrap .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.lm-popup {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    min-width: 160px;
}
.lm-popup-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--lm-text);
    margin-bottom: 0.2rem;
}
.lm-popup-cat {
    font-size: 0.75rem;
    color: var(--lm-text-soft);
    margin-bottom: 0.4rem;
}
.lm-popup-walk {
    font-size: 0.75rem;
    color: var(--lm-teal);
    font-weight: 600;
}
.lm-popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--lm-teal);
    font-weight: 600;
    text-decoration: none;
}

/* ── SECTION ────────────────────────────────────────────────── */
.lm-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.8rem clamp(1rem,4vw,2rem);
}

.lm-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.lm-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lm-text);
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
}

.lm-count {
    font-size: 0.8rem;
    color: var(--lm-text-soft);
}

/* ── GRID ───────────────────────────────────────────────────── */
.lm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.lm-card {
    background: var(--lm-card-bg);
    border: 1px solid #dde5ed;
    border-radius: var(--lm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.lm-card:hover {
    box-shadow: 0 6px 24px rgba(26,139,127,0.12);
    border-color: var(--lm-teal);
    transform: translateY(-2px);
}

.lm-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #e8edf2;
}

.lm-card-img-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a8b7f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.lm-card-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lm-card-cat-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lm-teal);
    margin-bottom: 0.35rem;
}

.lm-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lm-text);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.lm-card-excerpt {
    font-size: 0.82rem;
    color: var(--lm-text-soft);
    line-height: 1.55;
    margin: 0 0 0.8rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid #eef2f6;
}

.lm-card-walk {
    font-size: 0.78rem;
    color: var(--lm-teal);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lm-card-phone {
    font-size: 0.78rem;
    color: var(--lm-text-soft);
    text-decoration: none;
}
.lm-card-phone:hover { color: var(--lm-teal); }

.lm-card-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lm-teal);
    text-decoration: none;
}

/* ── SKELETON LOADERS ───────────────────────────────────────── */
.lm-card-skeleton {
    pointer-events: none;
}

.lm-skel {
    background: linear-gradient(90deg, #e8edf2 25%, #f5f7fa 50%, #e8edf2 75%);
    background-size: 200% 100%;
    animation: lm-shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes lm-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lm-skel-img  { height: 150px; border-radius: 0; }
.lm-skel-title{ height: 16px; margin: 0 1.1rem 0.5rem; width: 70%; }
.lm-skel-text { height: 12px; margin: 0 1.1rem 0.4rem; width: 90%; }
.lm-skel-short{ width: 55%; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.lm-empty {
    text-align: center;
    padding: 2rem;
    color: var(--lm-text-soft);
    font-size: 0.95rem;
}
.lm-empty a {
    color: var(--lm-teal);
    font-weight: 600;
    text-decoration: none;
}

/* ── PASSAGE PLANNING ───────────────────────────────────────── */
.lm-passage {
    background: var(--lm-navy);
    max-width: 100%;
    padding: 1.5rem clamp(1rem,4vw,2rem);
}

.lm-passage-title {
    max-width: 1000px;
    margin: 0 auto 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    font-family: inherit;
}

.lm-passage-links {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem;
}

.lm-plink {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lm-plink:hover {
    background: rgba(26,139,127,0.15);
    border-color: var(--lm-teal);
    color: var(--lm-teal-lt);
}
.lm-plink-icon { font-size: 1.1rem; flex-shrink: 0; }
.lm-plink span:nth-child(2) { flex: 1; }
.lm-plink-arrow { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* ── QR CARD ────────────────────────────────────────────────── */
.lm-qr-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1rem,4vw,2rem) 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.lm-qr-card img {
    border-radius: 8px;
    border: 2px solid var(--lm-border);
    flex-shrink: 0;
}

.lm-qr-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--lm-text);
    margin-bottom: 0.25rem;
}

.lm-qr-text p {
    font-size: 0.8rem;
    color: var(--lm-text-soft);
    margin: 0;
}
.lm-qr-text a { color: var(--lm-teal); }

/* ── FOOTER LINK ────────────────────────────────────────────── */
.lm-footer-link {
    background: var(--lm-off);
    border-top: 1px solid #dde5ed;
    text-align: center;
    padding: 1rem;
}
.lm-footer-link a {
    font-size: 0.82rem;
    color: var(--lm-teal);
    font-weight: 600;
    text-decoration: none;
}
.lm-footer-link a:hover { text-decoration: underline; }

/* ── MARINA MAP MARKER ──────────────────────────────────────── */
.lm-marina-marker {
    background: var(--lm-brass);
    color: var(--lm-navy);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--lm-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 500px) {
    .lm-hero-meta { justify-content: flex-start; }
    .lm-meta-chip { min-width: 60px; padding: 0.4rem 0.6rem; }
    .lm-grid { grid-template-columns: 1fr; }
    .lm-passage-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .lm-skel { animation: none; }
    .lm-card { transition: none; }
}
