/* Diariko Transporte BA — frontend styles for generated line pages */
.dtb-line-page { font-family: inherit; }

/* Header */
.dtb-header {
    background: linear-gradient(135deg, #0e5fa3 0%, #2b8ad6 100%);
    color: #fff; border-radius: 12px; padding: 22px 26px; margin: 0 0 14px;
}
.dtb-header-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.dtb-header-sub { font-size: 14px; opacity: .92; margin-top: 4px; }
.dtb-agency { opacity: .8; }
.dtb-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dtb-badge {
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px; padding: 4px 12px; font-size: 13px; white-space: nowrap;
}
.dtb-data-note { font-size: 13px; color: #666; margin: 0 0 20px; }

/* Map */
.dtb-map-wrapper { width: 100%; margin-bottom: 24px; border-radius: 10px; overflow: hidden; border: 1px solid #e0e0e0; background: #f0f0f0; }
.dtb-map-wrapper iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* Info grid */
.dtb-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 768px) { .dtb-info-grid { grid-template-columns: 1fr; } }

.dtb-stops-block, .dtb-schedule-block {
    background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 20px;
}
.dtb-stops-block h2, .dtb-schedule-block h2, .dtb-ramales h2 {
    font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #2271b1; color: #1a5f9e;
}
.dtb-schedule-block h2 { border-color: #27ae60; color: #1e8449; }
.dtb-direction { font-size: 12px; color: #777; margin-bottom: 6px; }

.dtb-stops-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.dtb-stops-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #efefef; font-size: 13px; color: #333; }
.dtb-stops-list li:last-child { border-bottom: 0; }
.dtb-stop-num {
    background: #2271b1; color: #fff; border-radius: 50%; width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.dtb-stop-num--back { background: #e67e22; }

.dtb-details { margin-top: 12px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.dtb-details summary { padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: #1a5f9e; user-select: none; }
.dtb-details .dtb-stops-list { padding: 4px 14px 10px; }

.dtb-schedule-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtb-schedule-table th { padding: 7px 10px; text-align: left; background: #fff; font-weight: 600; color: #555; border-bottom: 1px solid #efefef; white-space: nowrap; width: 45%; }
.dtb-schedule-table td { padding: 7px 10px; border-bottom: 1px solid #efefef; color: #333; }

/* Ramales table */
.dtb-ramales { margin-bottom: 20px; }
.dtb-table-wrap { overflow-x: auto; }
.dtb-ramales-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtb-ramales-table th { background: #f3f6f9; padding: 8px 10px; text-align: left; border-bottom: 2px solid #dfe5ec; color: #1a5f9e; white-space: nowrap; }
.dtb-ramales-table td { padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.dtb-other-ramales { margin-bottom: 24px; }
.dtb-other-ramales .dtb-details { margin-top: 8px; }

/* Article */
.dtb-article { line-height: 1.75; color: #333; margin-bottom: 28px; }
.dtb-article h2 { font-size: 19px; color: #1a5f9e; margin-top: 30px; border-left: 4px solid #2271b1; padding-left: 12px; }
.dtb-article h3 { font-size: 16px; color: #333; margin-top: 20px; }
.dtb-article ul { padding-left: 20px; }
.dtb-article li { margin-bottom: 5px; }

.dtb-notice { border-radius: 8px; padding: 14px 18px; margin: 18px 0; font-size: 14px; line-height: 1.6; }
.dtb-notice > strong:first-child { display: block; margin-bottom: 4px; }
.dtb-notice--info    { background: #e8f4fd; border-left: 4px solid #2271b1; color: #1a4a6e; }
.dtb-notice--warning { background: #fff8e1; border-left: 4px solid #f0b429; color: #7a5500; }

.dtb-poi-card { display: flex; align-items: flex-start; gap: 12px; background: #fafbfc; border: 1px solid #e8eaed; border-radius: 8px; padding: 14px 16px; margin: 10px 0; }
.dtb-poi-icon { font-size: 22px; line-height: 1; flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; border: 1px solid #e0e0e0; }
.dtb-poi-card > div { flex: 1; min-width: 0; }
.dtb-poi-card strong { display: block; font-size: 14px; color: #1a5f9e; margin-bottom: 2px; }
.dtb-poi-card p { margin: 0; font-size: 13px; color: #555; line-height: 1.5; }

/* FAQ */
.dtb-faq { margin: 28px 0 0; }
.dtb-faq h2 { font-size: 19px; color: #1a5f9e; border-left: 4px solid #2271b1; padding-left: 12px; margin-bottom: 16px; }
.dtb-faq-item { background: #fafbfc; border: 1px solid #e8eaed; border-radius: 8px; margin-bottom: 10px; }
.dtb-faq-q { font-weight: 600; font-size: 14px; color: #1a5f9e; padding: 14px 16px 0; }
.dtb-faq-q::before { content: "❓ "; }
.dtb-faq-a { padding: 8px 16px 14px; font-size: 13px; color: #444; line-height: 1.6; }

/* Related */
.dtb-related { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e8e8e8; }
.dtb-related h3 { font-size: 16px; color: #1a5f9e; margin: 0 0 12px; }
.dtb-related ul { list-style: none; padding: 0; margin: 0; }
.dtb-related li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.dtb-related li:last-child { border-bottom: 0; }
.dtb-related a { color: #2271b1; text-decoration: none; }
.dtb-related a:hover { text-decoration: underline; }

/* Ramales table helpers */
.dtb-ramales-table { font-size: 12.5px; }
.dtb-ramales-table td.dtb-center { text-align: center; }
.dtb-ramales-table td.dtb-nowrap { white-space: nowrap; }
.dtb-ramales-table .dtb-muted { color: #777; font-size: 11.5px; }

/* Theme overrides on line pages (Maag): no category/date/author bar, tighter title spacing */
.dtb-line-body .cs-entry__post-meta { display: none !important; }
.dtb-line-body .cs-entry__header-content { margin-bottom: 8px; }

/* Hub: line cards ([dtb_lines]) */
.dtb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.dtb-card { position: relative; display: flex; gap: 14px; align-items: flex-start; background: #f9fafb; border: 1px solid #e5e8ec; border-radius: 12px; padding: 16px; text-decoration: none; color: #222; transition: box-shadow .15s, border-color .15s; }
a.dtb-card:hover { border-color: #2271b1; box-shadow: 0 3px 12px rgba(0,0,0,.08); text-decoration: none; }
.dtb-card-num { flex-shrink: 0; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 10px; background: linear-gradient(135deg, #0e5fa3, #2b8ad6); color: #fff; font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.dtb-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dtb-card-title { font-weight: 700; font-size: 15px; color: #1a5f9e; }
.dtb-card-route { font-size: 13px; color: #333; line-height: 1.4; }
.dtb-card-meta { font-size: 12px; color: #777; }
.dtb-card--soon { opacity: .6; }
.dtb-card-soon { position: absolute; top: 10px; right: 12px; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .03em; }

/* v0.3: quick answer, ridership, sources */
.dtb-summary { background: #f3f8fd; border: 1px solid #cfe3f5; border-radius: 10px; padding: 16px 20px; margin: 0 0 18px; }
.dtb-summary-title { font-weight: 700; color: #1a5f9e; margin-bottom: 6px; font-size: 15px; }
.dtb-summary ul { margin: 0; padding-left: 20px; }
.dtb-summary li { margin-bottom: 4px; font-size: 14px; line-height: 1.55; }
.dtb-summary p { margin: 0 0 6px; font-size: 14px; }
.dtb-ramales > h2, .dtb-sube > h2, .dtb-sources > h2 { font-size: 19px; color: #1a5f9e; border-left: 4px solid #2271b1; padding-left: 12px; margin: 26px 0 12px; border-bottom: 0; }
.dtb-ramales .dtb-data-note, .dtb-sube .dtb-data-note { margin: 8px 0 10px; }
.dtb-sube { margin-bottom: 20px; }
.dtb-sube-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.dtb-sube-cell { background: #f9fafb; border: 1px solid #e5e8ec; border-radius: 10px; padding: 12px; text-align: center; font-size: 12.5px; color: #555; }
.dtb-sube-num { display: block; font-size: 22px; font-weight: 800; color: #1a5f9e; line-height: 1.2; }
@media (max-width: 520px) { .dtb-sube-grid { grid-template-columns: 1fr; } }
.dtb-sources { margin-top: 26px; font-size: 13px; }
.dtb-sources ul { padding-left: 18px; margin: 0; }
.dtb-sources li { margin-bottom: 4px; }
.dtb-notice a { color: inherit; text-decoration: underline; }
.dtb-ramales-table td.dtb-center, .dtb-ramales-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 640px) { .dtb-ramales-table td:nth-child(2) { min-width: 200px; } .dtb-byday .dtb-ramales-table td { min-width: 96px; } .dtb-byday .dtb-ramales-table td:first-child { min-width: 0; } }

/* v0.4: route map */
.dtb-map { width: 100%; height: 420px; border-radius: 10px; border: 1px solid #e0e0e0; z-index: 0; }
@media (max-width: 640px) { .dtb-map { height: 320px; } }
