/* Locations page and location detail pages (Nov 2026). Mobile first. */
.lp {
    --lp-green: #005a3c;
    --lp-green-dark: #013b2e;
    --lp-sage: #e9f2ea;
    --lp-gold: #e0a526;
    --lp-gold-soft: #fbf1db;
    --lp-ink: #14312b;
    --lp-muted: #58675e;
    --lp-line: #e1e7e1;
    background: #f7f4ee;
    color: var(--lp-ink);
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp-shell { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.lp h1, .lp h2, .lp h3 { margin: 0; color: var(--lp-green-dark); }
.lp h1, .lp h2 { font-family: var(--fhf-font-display, Georgia, serif); }
.lp p { margin: 0; }
.lp a { color: var(--lp-green); }
.lp-muted { color: var(--lp-muted); font-size: 0.93rem; line-height: 1.5; }
.lp-gap { margin-top: 20px; }
.lp a:focus-visible, .lp button:focus-visible { outline: 3px solid #f1ca62; outline-offset: 2px; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; background-color: var(--lp-green-dark); background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.05) 2px, transparent 2.5px), linear-gradient(100deg, var(--lp-green-dark), var(--lp-green) 75%); background-size: 26px 26px, auto; color: #fff; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; align-content: center; gap: 8px; min-height: 160px; padding-top: 18px; padding-bottom: 20px; }
.lp-hero h1 { color: #fff; font-size: clamp(1.9rem, 7vw, 3.1rem); line-height: 1.08; }
.lp-hero h1 span { color: #f1ca62; }
.lp-hero-inner > p { max-width: 640px; color: rgba(255, 255, 255, 0.92); font-size: clamp(0.95rem, 2.4vw, 1.08rem); line-height: 1.5; }
.lp-hero-small .lp-hero-inner { min-height: 140px; }
.lp-hero-small h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.lp-hero-art { display: none; }
.lp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; }
.lp-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.85); }
.lp-crumbs li + li::before { content: "›"; color: rgba(255, 255, 255, 0.6); }
.lp-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: #fff !important; text-decoration: none; }
.lp-crumbs a:hover { text-decoration: underline; }

/* Services strip */
.lp-services { background: var(--lp-sage); border-bottom: 1px solid #d6e5d8; }
.lp-services-row { display: grid; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
.lp-services a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; color: var(--lp-ink) !important; text-decoration: none; }
.lp-services a .fhf-icon { flex-shrink: 0; color: var(--lp-green); }
.lp-services strong { display: block; color: var(--lp-green-dark); font-size: 1rem; }
.lp-services small { display: block; color: var(--lp-muted); font-size: 0.85rem; line-height: 1.35; }
.lp-services a:hover strong { text-decoration: underline; }

/* Buttons and badges */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 10px; font: inherit; font-size: 0.94rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.lp-btn-primary { background: var(--lp-green); border-color: var(--lp-green); color: #fff !important; }
.lp-btn-primary:hover { background: var(--lp-green-dark); }
.lp-btn-outline { background: #fff; border-color: #bcd2c1; color: var(--lp-green-dark) !important; }
.lp-btn-outline:hover { border-color: var(--lp-green); background: #f6faf6; }
.lp-btn-ghost { background: transparent; border-color: var(--lp-line); color: var(--lp-ink) !important; }
.lp-btn[disabled] { opacity: 0.6; cursor: default; }
.lp-badge { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--lp-gold-soft); color: #7a5208; font-family: var(--fhf-font-ui, system-ui, sans-serif); font-size: 0.78rem; font-weight: 800; vertical-align: middle; }
.lp-short { display: inline; }
.lp-long { display: none; }

/* Location cards */
.lp-cards { display: grid; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.lp-loc { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--lp-line); border-bottom: 3px solid var(--lp-gold); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(20, 49, 43, 0.07); }
.lp-loc-media { position: relative; display: none; aspect-ratio: 16 / 7; overflow: hidden; background: var(--lp-sage); }
.lp-loc-media picture, .lp-loc-media img.fhf-location-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-loc-media .fhf-location-placeholder { display: grid; place-content: center; justify-items: center; gap: 6px; height: 100%; color: var(--lp-green-dark); font-weight: 700; }
.lp-hq { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: #f1ca62; color: #1f2b1f; font-size: 0.82rem; font-weight: 800; }
.lp-loc-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; }
.lp-loc h2 { font-size: clamp(1.35rem, 4.6vw, 1.6rem); line-height: 1.2; }
.lp-loc h2 a { color: inherit !important; text-decoration: none; }
.lp-loc h2 a:hover { text-decoration: underline; }
.lp-facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.97rem; line-height: 1.4; overflow-wrap: anywhere; }
.lp-facts .fhf-icon { flex-shrink: 0; margin-top: 1px; color: var(--lp-green); }
.lp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 4px; }
.lp-actions .lp-btn-primary { grid-column: 1 / -1; }
.lp-actions .lp-btn-primary + .lp-btn:last-child { grid-column: 1 / -1; }
.lp-actions-stack { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.lp-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start; font-weight: 800; }

/* Map + Plan your visit */
.lp-lower { display: grid; gap: 16px; margin-top: 20px; }
.lp-card { min-width: 0; padding: 18px; border: 1px solid var(--lp-line); border-radius: 18px; background: #fff; box-shadow: 0 6px 22px rgba(20, 49, 43, 0.06); }
.lp-card h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: clamp(1.25rem, 3.8vw, 1.55rem); }
.lp-card h2 .fhf-icon { color: var(--lp-green); }
.lp-map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.lp-map-head h2 { margin: 0; }
.lp-map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lp-map-tabs button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--lp-line); border-radius: 999px; background: #fff; color: var(--lp-ink); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.lp-map-tabs button[aria-selected="true"] { border-color: var(--lp-green); background: var(--lp-green); color: #fff; }
.lp-map-frame { position: relative; display: grid; place-items: center; min-height: 120px; overflow: hidden; border-radius: 14px; background: var(--lp-sage); }
.lp-map-frame iframe { width: 100%; height: 300px; border: 0; }
.lp-map-frame.is-loading::after { content: ""; position: absolute; width: 30px; height: 30px; border: 3px solid #cfe0d2; border-top-color: var(--lp-green); border-radius: 50%; animation: lp-spin 0.9s linear infinite; }
.lp-map-note { padding: 16px; color: var(--lp-muted); font-size: 0.9rem; line-height: 1.5; text-align: center; }
.lp-map-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
.lp-map-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; border-top: 1px solid var(--lp-line); }
.lp-map-list span { color: var(--lp-muted); }
.lp-map-list a { margin-left: auto; font-weight: 800; }
.lp-visit { display: grid; gap: 16px; }
.lp-visit-links { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.lp-visit-links a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--lp-ink) !important; font-weight: 600; text-decoration: none; }
.lp-visit-links .fhf-icon { color: var(--lp-green); }
.lp-visit-links a:hover { text-decoration: underline; }
.lp-question { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 14px; background: var(--lp-sage); }
.lp-question h3 { display: flex; align-items: center; gap: 8px; font-family: var(--fhf-font-display, Georgia, serif); font-size: 1.3rem; }
.lp-question .lp-btn { justify-self: start; }

/* Detail page */
.lp-detail { display: grid; gap: 16px; margin-top: 18px; }
.lp-detail-main, .lp-detail-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.lp-detail-photo { overflow: hidden; border-radius: 18px; background: var(--lp-sage); aspect-ratio: 16 / 8; }
.lp-detail-photo picture, .lp-detail-photo img.fhf-location-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-detail-photo .fhf-location-placeholder { display: grid; place-content: center; justify-items: center; gap: 6px; height: 100%; font-weight: 700; color: var(--lp-green-dark); }
.lp-jumuah { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.lp-jumuah li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 14px; border: 1px solid #f1e0bb; border-radius: 12px; background: #fdf6e7; }
.lp-jumuah small { flex-basis: 100%; color: var(--lp-muted); }
.lp-dl { display: grid; gap: 10px; margin: 0; }
.lp-dl dt { font-weight: 800; }
.lp-dl dd { margin: 2px 0 0; color: var(--lp-muted); line-height: 1.5; white-space: pre-line; }
.lp-link-list { display: grid; gap: 6px; margin: 0; padding-left: 18px; }
.lp-back { justify-self: start; }

@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-map-frame.is-loading::after { animation: none; } }

@media (min-width: 600px) {
    .lp-shell { padding: 0 24px; }
    .lp-services-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .lp-services a + a { padding-left: 16px; border-left: 1px solid #cfe0d2; }
    .lp-loc-media { display: block; }
    .lp-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-actions .lp-btn-primary { grid-column: auto; }
    .lp-long { display: inline; }
    .lp-short { display: none; }
    .lp-map-frame iframe { height: 360px; }
}
@media (min-width: 768px) {
    .lp-hero-inner { min-height: 200px; padding-right: 46%; }
    .lp-hero-small .lp-hero-inner { min-height: 170px; padding-right: 0; }
    .lp-hero-art { position: absolute; top: 0; right: 0; bottom: 0; display: block; width: 44%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
    .lp-hero-art::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 6px; background: var(--lp-gold); transform: skewX(-9deg); transform-origin: bottom; }
    .lp-hero-art img { width: 100%; height: 100%; object-fit: cover; }
    .lp-card { padding: 22px; }
}
@media (min-width: 1024px) {
    .lp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
    .lp-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; margin-top: 28px; }
    .lp-visit { grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); }
    .lp-detail { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-top: 24px; }
    .lp-detail-side { position: sticky; top: 96px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
    .lp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-actions .lp-btn-primary { grid-column: 1 / -1; }
}

/* The detail page's side card keeps Directions full width at every size. */
.lp-actions.lp-actions-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-actions.lp-actions-stack .lp-btn-primary { grid-column: 1 / -1; }
.lp-detail-photo { max-height: 380px; }
