/* ================================================================
   Route Watch — public directory + single entry pages
   ================================================================ */

.rw-directory,
.rw-single { padding: 20px 0 60px; }

.rw-hero {
    background: linear-gradient(135deg, #0a3d62 0%, #145080 100%);
    padding: 30px 30px 26px;
    border-radius: 12px;
    color: #fff;
    margin: 16px 0 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.rw-hero h1 { color: #fff !important; margin: 0 0 10px; font-size: 2rem; }
.rw-hero-sub { margin: 0; color: rgba(255,255,255,0.9); font-size: 1rem; max-width: 780px; }

/* Filter row */
.rw-filter {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    background: #fff;
    padding: 18px 20px;
    border: 1px solid #e6e9ec;
    border-radius: 10px;
    margin-bottom: 20px;
}
.rw-filter label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.78rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.rw-filter input[type="text"],
.rw-filter select {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #c8d2dc;
    border-radius: 6px;
    font-size: 0.92rem;
    background: #fff;
    color: #2c3e50;
}
.rw-filter input[type="text"] {
    text-transform: uppercase;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
}
.rw-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.rw-filter-actions .button-primary {
    background: #0a3d62;
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.rw-filter-clear {
    color: #6b7785;
    font-size: 0.88rem;
    text-decoration: none;
}
.rw-filter-clear:hover { color: #0a3d62; text-decoration: underline; }

.rw-results-count {
    color: #6b7785;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.rw-empty {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #6b7785;
    border: 1px dashed #dde6ee;
}

/* Entry list */
.rw-entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.rw-entry {
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 10px;
    padding: 16px 20px;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.rw-entry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-color: #c8d2dc;
}
.rw-entry-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    background: #eff6ff;
    color: #1e3a8a;
}
.rw-badge-new_route          { background: #ecfdf5; color: #065f46; }
.rw-badge-cancellation       { background: #fef2f2; color: #991b1b; }
.rw-badge-frequency_increase { background: #eff6ff; color: #1e3a8a; }
.rw-badge-frequency_decrease { background: #fff7ed; color: #9a3412; }
.rw-badge-aircraft_change    { background: #f5f3ff; color: #5b21b6; }
.rw-badge-seasonal_start     { background: #ecfeff; color: #155e75; }
.rw-badge-seasonal_end       { background: #fefce8; color: #713f12; }
.rw-badge-airline_entry      { background: #ecfdf5; color: #065f46; }
.rw-badge-airline_exit       { background: #fef2f2; color: #991b1b; }

.rw-entry-title {
    display: block;
    font-weight: 700;
    color: #0a3d62;
    text-decoration: none;
    font-size: 1.08rem;
    line-height: 1.35;
}
.rw-entry-title:hover { color: #145080; text-decoration: underline; }

.rw-entry-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.85rem;
    color: #6b7785;
}
.rw-entry-tag a {
    color: #0a3d62;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.4px;
}
.rw-entry-tag a:hover { text-decoration: underline; }

/* Single entry */
.rw-single-head {
    background: #fff;
    padding: 24px 28px;
    border-radius: 12px;
    border: 1px solid #e6e9ec;
    margin: 16px 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rw-single-head h1 { color: #0a3d62; font-size: 1.7rem; margin: 4px 0 8px; line-height: 1.2; }
.rw-single-summary { color: #4a5568; font-size: 1.02rem; line-height: 1.55; margin: 0; }

.rw-single-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.rw-fact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    background: #f7f9fc;
    border-radius: 6px;
}
.rw-fact-label {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7785;
    letter-spacing: 0.5px;
}
.rw-fact-value {
    font-size: 0.98rem;
    color: #2c3e50;
    line-height: 1.4;
}
.rw-fact-value code {
    background: #ecf0f5;
    color: #0a3d62;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}
.rw-fact-value a {
    color: #0a3d62;
    text-decoration: none;
}
.rw-fact-value a:hover { text-decoration: underline; }
.rw-arrow { color: #95a5a6; margin: 0 6px; }
.rw-delta {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    margin-left: 6px;
    font-size: 0.9rem;
}
.rw-delta-up   { color: #16794f; }
.rw-delta-down { color: #b32d2e; }

.rw-single-map { margin-bottom: 20px; }
.rw-single-body,
.rw-single-source,
.rw-single-foot {
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.rw-single-body h2,
.rw-single-source h2 {
    color: #0a3d62;
    font-size: 1.15rem;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e6e9ec;
}
.rw-single-foot { font-size: 0.88rem; color: #6b7785; }
.rw-single-foot a { color: #0a3d62; }

@media (max-width: 780px) {
    .rw-filter {
        grid-template-columns: 1fr 1fr;
    }
    .rw-filter-actions {
        grid-column: 1 / -1;
    }
}
