/*
Theme Name:   MontereyBay Child
Template:     twentytwentyfive
Description:  Child theme for MontereyBay.com — ocean blues, teal, sandy neutrals
Version:      1.0
*/

/* ── Color palette ───────────────────────────────────────────────────────── */
:root {
  --mb-ocean:      #0e6e8c;   /* primary links, accents */
  --mb-ocean-dark: #0a4f66;   /* hover states */
  --mb-teal:       #1d9e75;   /* secondary accent */
  --mb-sand:       #f5f0e8;   /* light background */
  --mb-sand-dark:  #e8dfc8;   /* card borders, dividers */
  --mb-slate:      #334155;   /* body text */
  --mb-slate-light:#64748b;   /* muted text */
  --mb-white:      #ffffff;
}

/* ── Global ──────────────────────────────────────────────────────────────── */
body {
  background-color: var(--mb-sand);
  color: var(--mb-slate);
  font-family: system-ui, -apple-system, sans-serif;
}

a {
  color: var(--mb-ocean);
  text-decoration: none;
}
a:hover {
  color: var(--mb-ocean-dark);
  text-decoration: underline;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.wp-block-template-part header,
header.wp-block-template-part {
  background-color: var(--mb-ocean-dark);
  padding: 0 2rem;
}

/* site title in header */
.wp-block-site-title a {
  color: var(--mb-white) !important;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* nav links in header */
.wp-block-navigation a {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.9rem;
}
.wp-block-navigation a:hover {
  color: var(--mb-white) !important;
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.wp-block-template-part footer,
footer.wp-block-template-part {
  background-color: var(--mb-ocean-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 4rem;
}

footer .wp-block-site-title a,
footer .wp-block-heading {
  color: var(--mb-white) !important;
}

footer .wp-block-navigation a,
footer a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem;
}
footer .wp-block-navigation a:hover,
footer a:hover {
  color: var(--mb-white) !important;
  text-decoration: none;
}

/* hide "Designed with WordPress" credit */
.wp-block-template-part footer p:last-child,
footer > .wp-block-group > p:last-child {
  display: none;
}

/* ── Content area ────────────────────────────────────────────────────────── */
.wp-block-post-content,
.entry-content,
.wp-site-blocks {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* headings */
h1, h2, h3, h4 {
  color: var(--mb-ocean-dark);
  font-weight: 600;
}

/* ── City listing pills ──────────────────────────────────────────────────── */
.mb-place-pill {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #9ac4d8;
  color: var(--mb-ocean);
  background: #eaf5fb;
  margin: 3px 2px;
  text-decoration: none;
  transition: background 0.15s;
}
.mb-place-pill:hover {
  background: #d0eaf5;
  text-decoration: none;
  color: var(--mb-ocean-dark);
}

/* ── Featured listing badge ──────────────────────────────────────────────── */
.mb-featured {
  display: inline-block;
  font-size: 0.7rem;
  background: #fff3d0;
  color: #7a5000;
  border: 1px solid #e8c87a;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 6px;
}

/* ── Listing card ────────────────────────────────────────────────────────── */
.mb-listing-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-sand-dark);
  border-radius: 10px;
  padding: 14px 16px;
  transition: box-shadow 0.15s;
}
.mb-listing-card:hover {
  box-shadow: 0 2px 12px rgba(14,110,140,0.12);
}

/* ── Hide page title on front page ──────────────────────────────────────── */
.home .wp-block-post-title,
.home h1.wp-block-post-title,
.page-template-default .wp-block-post-title {
  display: none;
}

/* ── Hide "Home" post title ──────────────────────────────────────────────── */
h1.wp-block-post-title {
  display: none;
}

/* ── Remove "Designed with WordPress" ───────────────────────────────────── */
.wp-block-template-part footer .wp-block-group > div:last-child,
footer .wp-block-site-credits,
footer p a[href*="wordpress.org"] {
  display: none;
}

/* ── Kill the giant top gap ─────────────────────────────────────────────── */
.wp-site-blocks {
  padding-top: 0 !important;
}
.wp-block-post {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ── Widen content area ──────────────────────────────────────────────────── */
.wp-block-post-content > * {
  max-width: 1100px !important;
}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1100px !important;
}

/* ── Kill top gap (block theme spacer) ───────────────────────────────────── */
.wp-site-blocks > .wp-block-group:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.has-global-padding {
  padding-top: 0 !important;
}

/* ── Kill bottom gap below footer ────────────────────────────────────────── */
.wp-site-blocks {
  padding-bottom: 0 !important;
}

/* ── Nuke "Designed with WordPress" completely ───────────────────────────── */
footer .wp-block-group div:last-child,
footer > div > div:last-child {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
