/* =========================================================
   planning.css — Styles for /planning/ SEO landing pages
   ========================================================= */

/* ── Layout ──────────────────────────────────────────────── */
.pl-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.pl-hero {
  background: linear-gradient(135deg, #f0f2ff 0%, #e8f5e9 100%);
  border-bottom: 1px solid #e0e4f0;
  padding: 36px 0 28px;
}

.pl-breadcrumb {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pl-breadcrumb a {
  color: #5c6bc0;
  text-decoration: none;
}

.pl-breadcrumb a:hover { text-decoration: underline; }

.pl-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  line-height: 1.2;
}

.pl-hero-sub {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 16px;
}

.pl-stats-line {
  display: inline-block;
  background: #fff;
  border: 1px solid #c5cae9;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  color: #5c6bc0;
  font-weight: 600;
}

/* ── Body ─────────────────────────────────────────────────── */
.pl-body {
  padding-top: 28px;
  padding-bottom: 60px;
}

/* ── Filter bar ──────────────────────────────────────────── */
.pl-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}

.pl-filters input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid #d0d5e8;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}

.pl-filters input[type="text"]:focus { border-color: #5c6bc0; }

.pl-filters select {
  padding: 9px 14px;
  border: 1px solid #d0d5e8;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #444;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}

.pl-filters select:focus { border-color: #5c6bc0; }

.pl-btn-apply {
  padding: 9px 20px;
  background: #5c6bc0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.pl-btn-apply:hover { background: #4a59b0; }

.pl-btn-reset {
  padding: 9px 16px;
  background: transparent;
  color: #888;
  border: 1px solid #dde1f0;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.pl-btn-reset:hover { color: #333; border-color: #aaa; }

/* ── Cards ────────────────────────────────────────────────── */
#pl-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.pl-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow .15s, transform .15s;
}

.pl-card:hover {
  box-shadow: 0 4px 16px rgba(92,107,192,.12);
  transform: translateY(-1px);
}

.pl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.pl-card-ref {
  font-size: 0.75rem;
  font-family: monospace;
  color: #888;
}

.pl-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.pl-status-pending  { background: #e3f2fd; color: #1565c0; }
.pl-status-decided  { background: #e8f5e9; color: #2e7d32; }

.pl-card-addr {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pl-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.pl-card-type {
  font-size: 0.72rem;
  background: #f0f2ff;
  color: #5c6bc0;
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}

.pl-card-applicant {
  font-size: 0.75rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.pl-card-date {
  font-size: 0.75rem;
  color: #aaa;
  margin-left: auto;
}

.pl-card-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Skeleton ─────────────────────────────────────────────── */
.pl-skeleton {
  pointer-events: none;
}

@keyframes pl-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.pl-sk-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: pl-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 8px;
}

.pl-sk-ref  { height: 12px; width: 40%; }
.pl-sk-addr { height: 16px; width: 80%; }
.pl-sk-meta { height: 12px; width: 55%; }
.pl-sk-desc { height: 12px; width: 100%; }
.pl-sk-short { width: 70%; }

/* ── Empty / Error ────────────────────────────────────────── */
.pl-empty, .pl-error {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.pl-error { color: #c62828; }

/* ── Load more ────────────────────────────────────────────── */
.pl-btn-more {
  padding: 11px 32px;
  background: #fff;
  color: #5c6bc0;
  border: 2px solid #5c6bc0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  margin: 0 auto;
  display: block;
}

.pl-btn-more:hover { background: #5c6bc0; color: #fff; }

/* ── CTA ──────────────────────────────────────────────────── */
.pl-cta {
  margin: 40px 0;
}

.pl-cta-inner {
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
  color: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  text-align: center;
}

.pl-cta-inner h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.pl-cta-inner p {
  font-size: 0.95rem;
  opacity: .88;
  margin: 0 0 22px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.pl-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pl-btn-signup {
  padding: 12px 28px;
  background: #fff;
  color: #3949ab;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  display: inline-block;
}

.pl-btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.pl-btn-learn {
  padding: 12px 24px;
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  display: inline-block;
}

.pl-btn-learn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}

/* ── Borough nav ──────────────────────────────────────────── */
.pl-borough-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.pl-borough-nav h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin: 0 0 16px;
}

.pl-borough-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pl-borough-list li a {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid #d0d5e8;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #5c6bc0;
  text-decoration: none;
  background: #fff;
  transition: background .15s, border-color .15s;
}

.pl-borough-list li a:hover {
  background: #f0f2ff;
  border-color: #5c6bc0;
}

.pl-borough-list li.pl-current a {
  background: #5c6bc0;
  color: #fff;
  border-color: #5c6bc0;
  pointer-events: none;
}

/* ── Hub index page ───────────────────────────────────────── */
.pl-hub-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #3949ab 100%);
  color: #fff;
  padding: 52px 0 40px;
}

.pl-hub-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}

.pl-hub-hero p {
  font-size: 1rem;
  opacity: .85;
  max-width: 620px;
  line-height: 1.7;
  margin: 0;
}

.pl-hub-body {
  padding-top: 36px;
  padding-bottom: 60px;
}

.pl-hub-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8eaf0;
}

.pl-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.pl-hub-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}

.pl-hub-card:hover {
  box-shadow: 0 4px 16px rgba(92,107,192,.14);
  transform: translateY(-2px);
  border-color: #c5cae9;
}

.pl-hub-card-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.pl-hub-card-sub {
  font-size: 0.75rem;
  color: #888;
}

/* ── Dark mode ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .pl-hero { background: linear-gradient(135deg, #1e2040 0%, #1a2e1e 100%); border-color: #2a2d40; }
  .pl-hero h1 { color: #e8eaf6; }
  .pl-hero-sub { color: #9fa8c8; }
  .pl-card { background: #1e2140; border-color: #2e3154; }
  .pl-card-addr { color: #e0e2f0; }
  .pl-card-desc { color: #9fa8c8; }
  .pl-filters input, .pl-filters select { background: #1e2140; border-color: #2e3154; color: #e0e2f0; }
  .pl-borough-list li a { background: #1e2140; border-color: #2e3154; }
  .pl-hub-card { background: #1e2140; border-color: #2e3154; color: #e0e2f0; }
}
