/* ==========================================================================
   Oahu Neighborhoods — hub + town guide pages
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   Scoped to .nb-* to avoid global conflicts.
   ========================================================================== */

/* --- Hero (same blob-shape convention as other new pages) --- */
.nb-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-color: #0d2a3a;
}
.nb-hero-back {
  position: absolute;
  top: 34px;
  left: 38px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.nb-hero-back:hover,
.nb-hero-back:focus {
  background: rgba(0, 0, 0, 0.62);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(-2px);
}
.nb-hero-back i { font-size: 11px; opacity: 0.9; }
@media (max-width: 540px) {
  .nb-hero-back { top: 24px; left: 26px; font-size: 12px; padding: 6px 12px 6px 10px; }
}
.nb-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.nb-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.nb-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .nb-hero { min-height: 340px; }
  .nb-hero h1 { font-size: 42px; }
  .nb-hero p { font-size: 21px; }
}

/* --- Intro --- */
.nb-intro {
  margin: 28px 0 8px;
  max-width: 780px;
}
.nb-intro p {
  font-size: 18px;
  color: #444;
  line-height: 1.65;
  margin: 0 0 12px;
}

/* --- Quick Stats (town guides) --- */
.nb-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}
.nb-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: #f5f7fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.3;
}
.nb-stat strong { color: #1a1a1a; font-weight: 700; }
.nb-stat i { color: #F27A24; font-size: 14px; }

/* --- Section --- */
.nb-section { margin: 8px 0 4px; }
.nb-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* --- Card Grid --- */
.nb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 28px;
}
@media (min-width: 480px) {
  .nb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Card --- */
.nb-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.nb-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.nb-card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 56%;
}
.nb-card-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.nb-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nb-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* --- Tags --- */
.nb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}
.nb-tag {
  display: inline-block;
  padding: 3px 9px;
  background: #f0f4f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.nb-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}
.nb-card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0a5e8c;
  text-decoration: none;
  margin-top: auto;
}
.nb-card-link:hover { text-decoration: underline; }
.nb-card-link i { font-size: 11px; margin-left: 3px; }

/* --- Tips Grid (town guides) --- */
.nb-tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 28px;
}
@media (min-width: 640px) {
  .nb-tips { grid-template-columns: repeat(2, 1fr); }
}
.nb-tip {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 3px solid #F27A24;
}
.nb-tip h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.nb-tip p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* --- Related --- */
.nb-related {
  margin: 10px 0 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 16px;
}
.nb-related h3 {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 0 0 14px;
}
.nb-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nb-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nb-related-link:hover { border-color: #0a5e8c; color: #0a5e8c; }
.nb-related-link i { font-size: 13px; }

/* --- Print --- */
@media print {
  .nb-hero-back, .nb-quick-stats, .nb-related { display: none; }
}
