/* =========================================================
   Maps landing page (/maps)
   Two large cards: Ethanol Stations + Canyon Routes.
   Visual language matches /resources cards: brand blue
   (#0563bb), Open Sans / Raleway, soft shadows.
   ========================================================= */

.maps-landing {
  padding: 60px 0;
}

.maps-landing .section-title .maps-subtitle {
  max-width: 720px;
  margin: 12px auto 0;
  color: #6c757d;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Card grid ---------- */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.maps-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4eaf1;
  border-radius: 14px;
  padding: 38px 32px 32px;
  text-decoration: none;
  color: #45505b;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.maps-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0563bb, #5fa8ff);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.maps-card:hover,
.maps-card:focus-visible {
  border-color: #c8dcf2;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(5, 99, 187, 0.15);
  color: #45505b;
  text-decoration: none;
}

.maps-card:hover::before,
.maps-card:focus-visible::before {
  opacity: 1;
}

.maps-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #e8f0fb;
  color: #0563bb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 22px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.maps-card-icon-alt {
  background: #fef3c7;
  color: #b45309;
}

.maps-card:hover .maps-card-icon {
  background: #0563bb;
  color: #fff;
  transform: scale(1.05);
}

.maps-card:hover .maps-card-icon-alt {
  background: #b45309;
  color: #fff;
}

.maps-card-title {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #173b6c;
  margin: 0 0 12px;
  line-height: 1.25;
}

.maps-card-desc {
  font-size: 14.5px;
  color: #6c757d;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}

.maps-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0563bb;
  letter-spacing: 0.3px;
}

.maps-card-cta i {
  font-size: 18px;
  transition: transform 0.22s ease;
}

.maps-card:hover .maps-card-cta i {
  transform: translateX(4px);
}

/* ---------- Coming soon variant ---------- */
.maps-coming-soon {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 30px 28px;
  text-align: center;
  background: #f8fafd;
  border: 1px dashed #cdd7e4;
  border-radius: 12px;
  color: #6c757d;
  font-family: "Open Sans", sans-serif;
}

.maps-coming-soon h3 {
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #173b6c;
  margin: 0 0 10px;
}

.maps-coming-soon p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.maps-coming-soon .maps-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: #0563bb;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.maps-coming-soon .maps-back-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .maps-landing { padding: 50px 0; }
  .maps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .maps-card {
    padding: 30px 24px 26px;
  }
  .maps-card-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin-bottom: 18px;
  }
  .maps-card-title { font-size: 20px; }
  .maps-card-desc { font-size: 14px; }
}

@media (max-width: 575.98px) {
  .maps-landing { padding: 36px 0; }
  .maps-landing .section-title h2 { font-size: 26px; }
  .maps-landing .section-title .maps-subtitle {
    font-size: 13.5px;
    padding: 0 6px;
  }
}

/* ── Route reviews (canyon route detail panel) ──────────────────────────── */
.route-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #45505b;
}
.route-reviews-pane { margin-top: 10px; }
.route-reviews-loading,
.route-reviews-error,
.route-reviews-empty {
  font-size: 13px;
  color: #6c757d;
  padding: 12px 0;
}
.route-reviews-error { color: #c0392b; }

.route-reviews-list .review-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f4f8;
}
.route-reviews-list .review-item:last-child { border-bottom: none; }
.route-reviews-list .review-item.is-own {
  background: rgba(5, 99, 187, 0.04);
  margin: 0 -12px 8px;
  padding: 12px;
  border-radius: 8px;
  border-bottom: none;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.review-author {
  font-weight: 600;
  color: #0563bb;
  text-decoration: none;
  font-size: 13px;
}
.review-author:hover { text-decoration: underline; }
.review-stars { display: inline-flex; align-items: center; gap: 1px; }
.review-when {
  font-size: 12px;
  color: #6c757d;
  margin-left: auto;
}
.review-body {
  font-size: 13px;
  color: #45505b;
  line-height: 1.45;
  white-space: pre-wrap;
}

.review-form {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafd;
  border: 1px solid #e4eaf1;
  border-radius: 10px;
}
.review-form-title {
  font-size: 13px;
  font-weight: 700;
  color: #45505b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.review-form-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.review-star-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  line-height: 0;
}
.review-star-btn i { font-size: 22px; transition: color 0.1s; }
.review-form-comment {
  width: 100%;
  min-height: 70px;
  padding: 8px 10px;
  border: 1px solid #d0dae8;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  background: #fff;
}
.review-form-comment:focus { outline: 2px solid #0563bb; outline-offset: -1px; border-color: #0563bb; }
.review-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.review-submit-btn {
  appearance: none;
  border: 0;
  background: #0563bb;
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.review-submit-btn:hover { background: #0452a3; }
.review-submit-btn:disabled { opacity: 0.6; cursor: default; }
.review-delete-btn {
  appearance: none;
  border: 1px solid #f0c4c4;
  background: transparent;
  color: #c0392b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.review-delete-btn:hover { background: #fff3f3; }
.review-form-status { font-size: 12px; }
.review-signin {
  margin-top: 14px;
  font-size: 13px;
  color: #6c757d;
  padding: 10px;
  background: #f8fafd;
  border-radius: 8px;
  text-align: center;
}
.review-signin a { color: #0563bb; font-weight: 600; }
