/* ─── Shared ────────────────────────────────────────────────────────────── */
/* Chip look matches the calendar plugin's .ecbc-chip exactly */
.dpt-chip {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    white-space: nowrap;
    display: inline-block;
    margin: 2px 4px 2px 0;
}
.dpt-chip-small { padding: 3px 6px; font-size: 10px; }
.dpt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ============ Landing Page — matches the calendar plugin's toolbar/filter aesthetic ============ */
.dpt-landing {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
}

/* ============ Toolbar — Filters ============ */
.dpt-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0;
    flex-wrap: wrap;
}

.dpt-filter-toggle {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dpt-filter-toggle:hover { background: #f9fafb; border-color: #0073aa; color: #0073aa; }

.dpt-filters-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}
.dpt-filters-panel:not(.expanded) { display: none !important; }
.dpt-filters-panel.expanded { display: flex !important; }
@media (min-width: 769px) {
    /* Desktop shows the panel by default via inline style; toggle still works to collapse it */
    .dpt-filter-toggle { min-width: auto; }
}

.dpt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    max-width: 240px;
    flex: 0 0 auto;
}
.dpt-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dpt-filter {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    min-height: 44px;
    height: auto;
    min-width: 180px;
    max-width: 240px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}
.dpt-filter:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

@media (max-width: 768px) {
    .dpt-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
    .dpt-filters-panel { display: none !important; flex-direction: column; gap: 12px; width: 100%; }
    .dpt-filters-panel.expanded { display: flex !important; flex-direction: column; }
    .dpt-filter-group { width: 100% !important; min-width: auto !important; }
    .dpt-filter { width: 100%; }
    .dpt-filter-toggle { width: 100%; }
}

/* ============ Landing body: list + map ============ */
.dpt-landing-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 860px) {
    .dpt-landing-body { grid-template-columns: 1fr; }
}

.dpt-park-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}
.dpt-park-map {
    height: 640px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
    z-index: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Park cards — same polish as the calendar's fc-list-event / list-event-row: white
   card, subtle shadow, hover lift, blue-accented title on hover */
.dpt-park-card {
    display: flex;
    gap: 12px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}
.dpt-park-card:hover, .dpt-park-card.dpt-active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.dpt-park-card-img { width: 120px; height: 100%; min-height: 110px; object-fit: cover; flex-shrink: 0; }
.dpt-park-card-body { padding: 14px 16px 14px 0; flex: 1; min-width: 0; }
.dpt-park-card-body h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 600; color: #111827; line-height: 1.4; transition: color 0.15s ease; }
.dpt-park-card:hover .dpt-park-card-body h3 { color: #0073aa; }
.dpt-park-card-address { margin: 0 0 6px 0; font-size: 13px; color: #6b7280; }
.dpt-park-card-meta { margin: 6px 0 0 0; font-size: 12px; color: #6b7280; }
.dpt-no-results { padding: 40px 0; text-align: center; color: #6b7280; font-size: 15px; }

/* ============ Single Dog Park Page (mirrors the calendar plugin's single-event design) ============ */
.dpt-park-single {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
}

/* Hero */
.dpt-hero {
    position: relative;
    z-index: 10;
    border-radius: 0;
    overflow: visible;
    background: #f3f4f6;
    width: 100vw;
    max-width: 100vw;
    margin: -24px 0 24px;
    left: 50%;
    transform: translateX(-50%);
}
.dpt-hero-media {
    position: relative;
    height: 340px;
    background: #e5e7eb;
    border-radius: 0;
    overflow: visible;
}
@media (min-width: 1024px) {
    .dpt-hero-media { height: 374px; }
    .dpt-hero { margin-top: -40px; }
}
.dpt-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.dpt-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}
.dpt-hero-content {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 24px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 2;
}
.dpt-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dpt-title { color: #fff; font-weight: 800; line-height: 1.2; font-size: clamp(24px, 3.2vw, 40px); margin: 0; }
.dpt-hero-content .dpt-chips { margin-top: 6px; }
.dpt-hero-content .dpt-chip {
    background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 999px;
    padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Floating Action Bar */
.dpt-action-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #000; border-top: 1px solid #111;
    padding: 12px 16px;
    padding-bottom: calc(12px + constant(safe-area-inset-bottom));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 12px; justify-content: center; align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.dpt-action-bar.show { transform: translateY(0); }
.dpt-action-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 12px; }
.dpt-action-inner > * { min-width: 0; }
.dpt-action-inner a, .dpt-action-inner button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; height: 40px; padding: 0; text-align: center; font-size: 14px;
    box-sizing: border-box; border-radius: 8px;
}
.dpt-btn-primary { background: #dc2626; color: #fff; border: 1px solid #dc2626; border-radius: 0; font-weight: 800; text-decoration: none; }
.dpt-btn-primary:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.dpt-btn-ghost { background: #fbbf00; color: #fff; border: 1px solid #fbbf00; border-radius: 0; font-weight: 800; cursor: pointer; }
.dpt-btn-ghost:hover { background: #e0ac00; border-color: #e0ac00; color: #fff; }
.dpt-external-icon { margin-left: 6px; font-weight: 800; line-height: 1; }

@media (max-width: 768px) {
    .dpt-action-bar { flex-wrap: nowrap; padding: 10px 12px; gap: 8px; box-shadow: none; }
    .dpt-action-inner { max-width: 100%; padding: 0 12px; }
    .dpt-action-inner a, .dpt-action-inner button { padding: 12px 10px; font-size: 13px; }
}

/* Dropdown menu (mobile action bar Share) */
.dpt-dropdown { position: relative; width: 100%; }
.dpt-menu-popup {
    position: absolute; bottom: calc(100% + 8px); left: 0;
    background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px; padding: 6px; width: 100%; box-sizing: border-box; display: none; z-index: 9999;
}
.dpt-menu-popup a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: #111827 !important; text-decoration: none; font-weight: 600; }
.dpt-menu-popup a:hover { background: #f3f4f6; }

/* Breadcrumb */
.dpt-breadcrumb { margin: 16px auto 24px; max-width: 1100px; padding: 0 12px; }
.dpt-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: #6b7280; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s ease; }
.dpt-breadcrumb a:hover { color: #374151; }
.dpt-breadcrumb a:before { content: '←'; font-weight: 600; }

/* Shell / layout */
.dpt-shell { max-width: 1100px; margin: 0 auto 48px; padding: 0 12px; }
.dpt-main-content { display: grid; gap: 32px; align-items: start; }
.dpt-park-primary { min-width: 0; }

.dpt-cta-sidebar { display: none; }
@media (min-width: 1024px) {
    .dpt-shell { max-width: 1160px; }
    .dpt-main-content { grid-template-columns: 1fr 240px; }
    .dpt-cta-sidebar { display: block; align-self: start; }
    .dpt-action-bar { display: none !important; }
}
.dpt-cta-sidebar-inner { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.dpt-sidebar-park-name { font-size: 15px; font-weight: 800; color: #111827; line-height: 1.3; }
.dpt-sidebar-park-meta { font-size: 13px; color: #6b7280; font-weight: 500; line-height: 1.4; }
.dpt-sidebar-divider { height: 1px; background: #e5e7eb; margin: 2px 0; }
.dpt-sidebar-btn-primary { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: #dc2626; color: #fff; border: 1px solid #dc2626; border-radius: 0; padding: 10px 16px; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; transition: all .2s; min-height: 44px; box-sizing: border-box; }
.dpt-sidebar-btn-primary:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.dpt-sidebar-btn-ghost { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; background: #fbbf00; color: #fff; border: 1px solid #fbbf00; border-radius: 0; padding: 10px 16px; font-weight: 800; font-size: 14px; cursor: pointer; transition: all .2s; min-height: 44px; box-sizing: border-box; }
.dpt-sidebar-btn-ghost:hover { background: #e0ac00; border-color: #e0ac00; color: #fff; }
.dpt-sidebar-cal-menu { display: none; border: 1px solid #e5e7eb; border-top: none; overflow: hidden; }
.dpt-sidebar-cal-menu.open { display: block; }
.dpt-sidebar-cal-menu a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #111827 !important; text-decoration: none; background: #fff; }
.dpt-sidebar-cal-menu a:hover { background: #f9fafb; }
.dpt-sidebar-cal-menu a + a { border-top: 1px solid #f3f4f6; }
.dpt-sidebar-cal-wrap { display: flex; flex-direction: column; }

/* Details sections */
.dpt-details-label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.dpt-fact-primary { font-weight: 700; color: #111827; font-size: 16px; }
.dpt-fact-primary.dpt-price-free { color: #059669; }
.dpt-park-content { font-size: 16px; line-height: 1.7; color: #334155; }
.dpt-park-content p { margin: 0 0 16px; }

.dpt-pill-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 40px; font-weight: 600; font-size: 14px; color: #111827; }

.dpt-amenities-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; color: #111; }

.dpt-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.dpt-gallery-item { display: block; border-radius: 8px; overflow: hidden; }
.dpt-gallery-item img { width: 100%; height: 110px; object-fit: cover; display: block; transition: transform .2s ease; }
.dpt-gallery-item:hover img { transform: scale(1.05); }

/* Hours table (mirrors the calendar plugin's sessions table) */
.dpt-hours-note { font-size: 13px; color: #6b7280; margin: -2px 0 10px 0; }
.dpt-hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.dpt-hours-table th { text-align: left; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; border-bottom: 2px solid #e5e7eb; }
.dpt-hours-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: top; }
.dpt-hours-table tr:last-child td { border-bottom: none; }
.dpt-hours-table tr:hover td { background: #f9fafb; }
.dpt-hours-table tr.dpt-today td { color: #0073aa; font-weight: 700; }

/* Map */
.dpt-map { height: 240px; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); z-index: 0; }

/* Related */
.dpt-related { max-width: 1100px; margin: 0 auto 80px; padding: 0 12px; }
.dpt-related h2 { font-size: 20px; font-weight: 800; color: #111827; margin: 0 0 20px; }
.dpt-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1024px) { .dpt-related-grid { grid-template-columns: repeat(4, 1fr); } }
.dpt-related-card { display: block; text-decoration: none; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s ease; background: #fff; }
.dpt-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.dpt-related-img { width: 100%; height: 140px; object-fit: cover; display: block; background: #f3f4f6; }
.dpt-related-img-placeholder { width: 100%; height: 140px; background: #fbbf00; }
.dpt-related-body { padding: 14px 16px; }
.dpt-related-address { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.dpt-related-title { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.3; }

/* ─── Lightbox ──────────────────────────────────────────────────────────── */
.dpt-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
.dpt-lightbox-image { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.dpt-lightbox-close, .dpt-lightbox-prev, .dpt-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
}
.dpt-lightbox-close:hover, .dpt-lightbox-prev:hover, .dpt-lightbox-next:hover { background: rgba(255,255,255,.2); }
.dpt-lightbox-close { top: 20px; right: 20px; }
.dpt-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.dpt-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
