/*
Theme Name: Get Kids Out
Theme URI: https://getkidsout.com.au
Author: Get Kids Out
Author URI: https://getkidsout.com.au
Description: A warm, family-friendly blog theme for Melbourne parents. Find fun things to do with kids — activities, cafes, outdoor adventures, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getkidsout
Tags: blog, family, kids, activities, one-column, two-columns, custom-menu, featured-images, theme-options
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral: #E8614D;
  --coral-dark: #D4533F;
  --cream: #F7F3EF;
  --white: #ffffff;
  --dark: #1A1A1A;
  --text: #5A5650;
  --muted: #8A8580;
  --light-muted: #B0AAA3;
  --border: #EBE7E2;
  --border-dark: #E0DBD5;
  --green: #3BAA7E;
  --green-light: #E6F5EE;
  --blue-light: #E6F1FB;
  --coral-light: #FDEEE8;
  --yellow-light: #FFF8E6;
  --purple-light: #EEEDFE;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 340px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--coral); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--coral-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.3px;
  font-weight: 700;
}

h1 { font-size: 36px; letter-spacing: -0.5px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin-bottom: 1em; color: var(--text); }

::selection { background: var(--coral-light); color: var(--coral-dark); }

/* === Layout === */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 32px;
  align-items: start;
}

.content-area.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
  margin: 0 auto;
}

.main-content { min-width: 0; }

/* === Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.header-right { margin-left: auto; }

.site-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.site-brand:hover { color: var(--coral); }

.nav-main { display: flex; align-items: center; gap: 4px; }

.nav-main a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}

.nav-main a:hover {
  background: var(--cream);
  color: var(--dark);
}

.nav-main a.current-menu-item,
.nav-main .current-menu-item > a {
  background: var(--dark);
  color: var(--white);
}

/* ── Our Picks dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
  background: var(--cream);
  color: var(--dark);
}
.nav-dropdown-toggle svg {
  width: 12px; height: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
  opacity: 0.5;
}
.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 190px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--cream);
  color: var(--dark);
}
.nav-dropdown-menu a .nav-drop-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.15s;
}

.search-toggle:hover { border-color: var(--coral); color: var(--coral); }

.search-toggle svg { width: 18px; height: 18px; }

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
}

.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.open { display: flex; }

.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.search-box form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box input {
  flex: 1;
  border: none;
  font-size: 18px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  background: transparent;
}

.search-box input::placeholder { color: var(--light-muted); }

.search-box svg { width: 22px; height: 22px; color: var(--light-muted); flex-shrink: 0; }

/* === Hero === */
.hero-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 28px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-title em { color: var(--coral); font-style: italic; }

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.category-pill:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.category-pill.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

.category-pill .pill-emoji { font-size: 16px; }

/* App nav button */
.nav-app-btn {
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 16px !important;
}

.nav-app-btn:hover {
  background: var(--coral-dark) !important;
  color: var(--white) !important;
}

.category-pill-map {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.category-pill-map:hover {
  background: var(--coral-dark);
  color: var(--white);
  border-color: var(--coral-dark);
}

/* === Post Cards === */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 0;
  transition: none;
}

.post-card:last-child { border-bottom: none; }

.post-card:hover { transform: none; box-shadow: none; }

.post-card a { color: inherit; text-decoration: none; }

.post-card-horizontal {
  display: grid !important;
  grid-template-columns: 1fr 140px;
  gap: 28px;
  align-items: start;
}

.post-card-horizontal > a {
  order: 2;
}

.post-card-horizontal > .post-card-body {
  order: 1;
}

.post-card-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}

.post-card-horizontal .post-card-thumb {
  aspect-ratio: 1;
  height: auto;
  width: 140px;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s;
}

.post-card:hover .post-card-thumb img { transform: scale(1.03); }

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--cream);
  border-radius: var(--radius);
}

.post-card-body {
  padding: 0;
}

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

.post-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  background: none;
  padding: 0;
  border-radius: 0;
}

.post-card-date {
  font-size: 13px;
  color: var(--muted);
}

.post-card-date::before {
  content: '·';
  margin-right: 8px;
  color: var(--light-muted);
}

.post-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.post-card-title:hover { color: var(--coral); }

.post-card-horizontal .post-card-title { font-size: 22px; }

.post-card-excerpt {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  background: var(--cream);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid var(--border);
}

.tag-chip:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-left: auto;
}

.read-more svg { width: 14px; height: 14px; }

/* Featured post (first post, larger) */
.post-card-featured {
  padding: 0 0 32px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.post-card-featured .post-card-horizontal {
  grid-template-columns: 1fr;
  gap: 20px;
}

.post-card-featured .post-card-thumb {
  aspect-ratio: 2.2/1;
  width: 100%;
  order: 1;
  border-radius: var(--radius-lg);
}

.post-card-featured .post-card-thumb-placeholder {
  font-size: 56px;
  border-radius: var(--radius-lg);
}

.post-card-featured .post-card-body { order: 2; }
.post-card-featured .post-card-title { font-size: 30px; letter-spacing: -0.5px; }
.post-card-featured .post-card-excerpt { font-size: 16px; }
.post-card-featured .post-card-category {
  padding: 4px 12px;
  background: var(--coral-light);
  border-radius: 8px;
}

/* Two-column grid for non-featured */
.posts-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* === Sidebar === */
.sidebar { position: sticky; top: 96px; }

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

/* About widget */
.widget-about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.widget-about-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Categories widget */
.widget-categories { list-style: none; }

.widget-categories li { margin-bottom: 2px; }

.widget-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}

.widget-categories a:hover { background: var(--cream); color: var(--dark); }

.widget-categories .cat-count {
  font-size: 12px;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
}

/* Tags widget */
.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-tags a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}

.widget-tags a:hover {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

/* What's On — horizontal bar */
.whats-on-bar {
  background: var(--white);
  border: 1.5px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.whats-on-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.whats-on-bar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.whats-on-bar-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.whats-on-bar-scroll::-webkit-scrollbar { display: none; }

.whats-on-bar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.15s;
}

.whats-on-bar-card:hover { background: var(--coral-light); }

.whats-on-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.whats-on-bar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  line-height: 1.3;
}

.whats-on-bar-detail {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.whats-on-bar-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .whats-on-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .whats-on-bar-scroll {
    width: 100%;
    padding-bottom: 4px;
  }

  .whats-on-bar-all {
    align-self: center;
  }
}

/* What's On — sidebar widget */
.widget-whats-on {
  border: 1.5px solid var(--coral);
  background: var(--white);
}

.whats-on-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.whats-on-live {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.whats-on-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.whats-on-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.whats-on-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whats-on-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.whats-on-item:hover {
  background: var(--cream);
}

.whats-on-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.whats-on-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.whats-on-info {
  min-width: 0;
}

.whats-on-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whats-on-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.whats-on-see-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
}

.whats-on-see-all:hover {
  color: var(--coral-dark);
}

/* What's On bar — sponsored card */
.whats-on-bar-card-sponsored {
  background: rgba(232,97,77,0.08);
  border: 1px solid rgba(232,97,77,0.25);
  border-radius: 10px;
  padding: 8px 14px 8px 10px;
  flex-shrink: 0;
}
.whats-on-bar-card-sponsored:hover {
  background: rgba(232,97,77,0.14);
}
.whats-on-bar-sponsored-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E8614D;
  margin-bottom: 2px;
}
.whats-on-bar-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  align-self: center;
  margin: 0 4px;
}

/* Premium Picks widget */
.widget-premium-picks {
  background: linear-gradient(160deg, #fffaf9 0%, #fff5f3 100%);
  border: 1px solid rgba(232,97,77,0.18);
}
.widget-premium-picks .widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget-premium-picks .widget-title-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8614D;
  background: rgba(232,97,77,0.1);
  border: 1px solid rgba(232,97,77,0.2);
  padding: 3px 9px;
  border-radius: 50px;
}
.premium-pick-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232,97,77,0.1);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.premium-pick-card:last-child { border-bottom: none; padding-bottom: 0; }
.premium-pick-card:first-of-type { padding-top: 0; }
.premium-pick-card:hover { opacity: 0.8; }
.premium-pick-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.premium-pick-body { flex: 1; min-width: 0; }
.premium-pick-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E8614D;
  margin-bottom: 3px;
}
.premium-pick-name {
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.35;
  margin-bottom: 3px;
}
.premium-pick-detail {
  font-size: 12px;
  color: #6B7280;
}
.premium-pick-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #E8614D;
  text-decoration: none;
}
.premium-pick-cta:hover { text-decoration: underline; }
.premium-picks-sponsor-note {
  font-size: 10px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Ad widget */
.widget-ad {
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.ad-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light-muted);
  padding: 10px 16px 0;
}

.ad-slot {
  padding: 8px;
}

.ad-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px dashed var(--border-dark);
}

/* Single post ad (below featured image) */
.single-ad {
  max-width: var(--content-width);
  margin: 0 auto 32px;
  padding: 0 24px;
}

.ad-placeholder-leaderboard {
  aspect-ratio: auto;
  height: 90px;
}

/* In-feed ad (banner between posts) */
.infeed-ad {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.ad-placeholder-banner {
  aspect-ratio: auto;
  height: 90px;
}

/* Newsletter widget */
.widget-newsletter {
  background: linear-gradient(135deg, var(--coral-light) 0%, #FFF3E0 100%);
  border-color: #F0D8C8;
}

.widget-newsletter-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.widget-newsletter input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 8px;
  background: var(--white);
}

.widget-newsletter input[type="email"]:focus { border-color: var(--coral); }

.widget-newsletter button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  background: var(--coral);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.widget-newsletter button:hover { background: var(--coral-dark); }

/* Recent posts widget */
.widget-recent-post {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget-recent-post:last-child { border-bottom: none; }

.widget-recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.widget-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }

.widget-recent-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.widget-recent-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 2px;
}

.widget-recent-date { font-size: 12px; color: var(--muted); }

/* === Single Post === */
.single-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px 0;
  text-align: center;
}

.single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-excerpt {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.single-featured-image {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  padding: 0 24px;
}

.single-featured-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.single-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.single-content .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.single-content .entry-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.single-content .entry-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.single-content .entry-content p { margin-bottom: 1.5em; }

.single-content .entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.single-content .entry-content blockquote {
  border-left: 4px solid var(--coral);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--coral-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--dark);
}

.single-content .entry-content blockquote p:last-child { margin-bottom: 0; }

.single-content .entry-content ul,
.single-content .entry-content ol {
  margin: 0 0 1.5em 1.5em;
}

.single-content .entry-content li {
  margin-bottom: 0.5em;
}

.single-content .entry-content a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-content .entry-content pre {
  background: var(--dark);
  color: #e0e0e0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  margin: 24px 0;
}

.single-content .entry-content code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.single-content .entry-content pre code {
  background: none;
  padding: 0;
}

/* Post tags bottom */
.single-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.author-bio { font-size: 14px; color: var(--text); line-height: 1.5; }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.post-nav-link {
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.post-nav-link:hover { border-color: var(--coral); }

.post-nav-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav-title { font-size: 15px; font-weight: 600; color: var(--dark); }

/* === Comments === */
.comments-section {
  max-width: var(--content-width);
  margin: 48px auto 0;
  padding: 0 24px;
}

.comments-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.comment-list { list-style: none; }

.comment {
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.comment .children {
  list-style: none;
  margin-top: 12px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.comment-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-author-name { font-size: 14px; font-weight: 600; }
.comment-date { font-size: 12px; color: var(--muted); }

.comment-body p { font-size: 14px; color: var(--text); line-height: 1.6; }

.comment-reply-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  margin-top: 8px;
  display: inline-block;
}

/* Comment form */
.comment-respond {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
}

.comment-respond .comment-reply-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.comment-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #FAFAF8;
  margin-bottom: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--coral); }

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .submit {
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  background: var(--coral);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.comment-form .submit:hover { background: var(--coral-dark); }

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  padding-bottom: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all 0.15s;
}

.pagination a:hover { border-color: var(--coral); color: var(--coral); }

.pagination .current {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

/* === Footer === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  margin-top: 60px;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--coral); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s;
}

.footer-social a:hover { background: var(--coral); color: var(--white); }

.footer-social svg { width: 16px; height: 16px; }

/* === Page === */
.page-header {
  padding: 48px 0 32px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-desc {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}

/* Archive/category header */
.archive-header {
  margin-bottom: 24px;
}

.archive-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--coral-light);
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* === 404 === */
.error-404 {
  text-align: center;
  padding: 80px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.error-emoji { font-size: 64px; margin-bottom: 20px; }

.error-404 h1 { font-size: 32px; margin-bottom: 8px; }

.error-404 p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }

.error-404 a {
  display: inline-flex;
  padding: 14px 28px;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

.error-404 a:hover { background: var(--coral-dark); color: var(--white); }

/* === Collections Banner (homepage) === */
.collections-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 32px;
}

.collections-scroll::-webkit-scrollbar { display: none; }

.collection-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.15s;
}

.collection-card:hover { transform: translateY(-2px); }

.collection-emoji { font-size: 32px; margin-bottom: 8px; }
.collection-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.collection-count { font-size: 12px; margin-top: 4px; opacity: 0.7; font-weight: 500; }

/* === Venue Single === */
.venue-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
}

.venue-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.venue-info-icon { font-size: 20px; line-height: 1; margin-top: 2px; }
.venue-info-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.venue-info-value { font-size: 14px; color: var(--dark); font-weight: 500; margin-top: 2px; }

.venue-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}

.venue-facilities {
  margin-bottom: 28px;
}

.venue-facilities-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.venue-facility {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.venue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 28px;
}

.venue-btn {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}

.venue-btn-primary {
  background: var(--coral);
  color: var(--white);
}

.venue-btn-primary:hover { background: var(--coral-dark); color: var(--white); }

.venue-btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
}

.venue-btn-secondary:hover { border-color: var(--coral); color: var(--coral); }

.venue-map-section { margin: 28px 0; }

.venue-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.venue-directions {
  display: inline-flex;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
}

/* === Venue Grid (archive) === */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.venue-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.venue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.venue-card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.venue-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.venue-card-emoji { font-size: 48px; }

.venue-card-price {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,0,0,0.6);
  color: #fff;
}

.venue-card-price.is-free { background: var(--green); }

.venue-card-body { padding: 16px; }

.venue-card-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.venue-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.venue-card-detail {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.venue-card-chips { display: flex; gap: 4px; flex-wrap: wrap; }

.venue-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--text);
  font-weight: 500;
}

/* === Map Page === */
.map-page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 20px;
}

.map-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.map-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.map-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.map-filter-btn:hover { border-color: var(--dark); }
.map-filter-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.map-filter-btn.pill-age.active { background: var(--coral); border-color: var(--coral); color: var(--white); }

.map-page-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: calc(100vh - 250px);
  min-height: 500px;
}

.map-page-map { width: 100%; height: 100%; }

.map-page-sidebar {
  background: var(--white);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px;
}

.map-sidebar-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.map-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  margin-bottom: 2px;
}

.map-sidebar-item:hover, .map-sidebar-item.active { background: var(--cream); }

.map-sidebar-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  font-size: 22px;
}

.map-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }

.map-sidebar-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.map-sidebar-detail { font-size: 12px; color: var(--muted); }
.map-sidebar-tags { display: flex; gap: 4px; margin-top: 4px; }
.map-sidebar-tags .tag-chip { font-size: 10px; padding: 2px 6px; }

/* Leaflet custom markers */
.gko-marker { background: none !important; border: none !important; }
.gko-pin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  border: 2.5px solid var(--white);
  cursor: pointer;
  transition: transform 0.15s;
}

.gko-pin:hover { transform: scale(1.15); }

/* === Responsive === */

/* Tablet */
@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .posts-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .header-inner { height: 60px; }

  .nav-main { display: none; }

  .mobile-menu-toggle { display: block; }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 150;
    padding: 80px 24px 24px;
  }

  .mobile-nav.open { display: block; }

  .mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
  }

  .hero-title { font-size: 32px; }
  .hero-banner { padding: 32px 0; }

  .post-card-horizontal {
    grid-template-columns: 1fr;
  }

  .post-card-horizontal > a { order: 1; }
  .post-card-horizontal > .post-card-body { order: 2; }

  .post-card-horizontal .post-card-thumb {
    aspect-ratio: 16/10;
    height: auto;
    width: 100%;
  }

  .posts-grid-2col {
    grid-template-columns: 1fr;
  }

  .post-card-featured .post-card-thumb { aspect-ratio: 16/10; }
  .post-card-featured .post-card-title { font-size: 22px; }

  .single-title { font-size: 28px; }
  .single-header { padding: 32px 20px 0; }
  .single-content { padding: 0 20px; }
  .single-featured-image { padding: 0 20px; }

  .comments-section { padding: 0 20px; }

  .post-navigation { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .collection-card { width: 160px; }

  .site-wrapper { padding: 0 16px; }

  .author-box { flex-direction: column; text-align: center; }

  .map-page-body { grid-template-columns: 1fr; height: auto; }
  .map-page-map { height: 50vh; min-height: 300px; }
  .map-page-sidebar { border-left: none; border-top: 1px solid var(--border); max-height: 40vh; }

  .venue-grid { grid-template-columns: 1fr; }
  .venue-info-bar { grid-template-columns: 1fr; }
  .venue-actions { flex-direction: column; }
  .venue-btn { text-align: center; justify-content: center; }
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}

/* Small mobile */
@media (max-width: 420px) {
  body { font-size: 15px; }
  .hero-title { font-size: 26px; }
  .single-title { font-size: 24px; }
  .post-card-body { padding: 16px; }
}

/* === WordPress defaults === */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: var(--radius-sm); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
