/* ============================================================================
   BSTWY Extras — load-bearing site styling that lives outside the Customizer
   so it cannot be silently stripped by the Customizer's CSS sanitizer.
   Enqueued by /opt/bitnami/wordpress/wp-content/mu-plugins/bstwy-home-helpers.php
   ============================================================================ */

/* ============================================================================
   Journal Grid Page (Travel Journals — page-id-382)
   Polaroid grid + chip filters. Mirrors the single-post polaroid styling
   but scoped to the page so post bodies stay untouched.
   ============================================================================ */

body.postid-382 {
  background-color: #FDFDFD !important;
  background-image:
    linear-gradient(to right, rgba(66, 196, 191, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(66, 196, 191, 0.18) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  background-attachment: fixed !important;
}

/* Page heading "Travel" already on the page — pink Londrina to match single-post H1. */
body.postid-382 .elementor-widget-heading .elementor-heading-title {
  font-family: 'Londrina Solid', cursive !important;
  font-weight: 900 !important;
  color: #f0006b !important;
  letter-spacing: 0.01em !important;
  line-height: 1.05 !important;
  text-align: center !important;
}
@media (min-width: 768px) {
  body.postid-382 .elementor-widget-heading .elementor-heading-title {
    font-size: 3.4rem !important;
  }
}

.bstwy-journal-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* Chip row */
.bstwy-journal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 36px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(37, 163, 162, 0.25);
}
@media (max-width: 640px) {
  .bstwy-journal-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bstwy-journal-filters::-webkit-scrollbar { display: none; }
}

.bstwy-chip {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border: 1.5px solid #00053d;
  border-radius: 9999px;
  background: #FDFDFD;
  color: #00053d;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  flex: 0 0 auto;
}
.bstwy-chip:hover {
  background: rgba(240, 0, 107, 0.12);
}
.bstwy-chip.is-active {
  background: #f0006b;
  color: #FDFDFD;
  border-color: #f0006b;
}

/* Polaroid grid */
.bstwy-journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px 24px;
  justify-items: center;
  align-items: start;
  padding: 24px 0;
}

.bstwy-journal-card {
  display: block;
  background: #FDFDFD;
  padding: 14px 14px 28px;
  box-shadow: 0 6px 18px rgba(0, 5, 61, 0.18), 0 1px 3px rgba(0, 5, 61, 0.10);
  width: 300px;
  max-width: calc(100% - 16px);
  position: relative;
  text-decoration: none;
  color: inherit;
  box-sizing: content-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bstwy-journal-card:hover {
  box-shadow: 0 10px 28px rgba(0, 5, 61, 0.26), 0 2px 4px rgba(0, 5, 61, 0.12);
  transform: rotate(0deg) translateY(-4px) !important;
}
.bstwy-journal-card.tilt-left  { transform: rotate(-2deg); }
.bstwy-journal-card.tilt-right { transform: rotate(2deg); }
.bstwy-journal-card[hidden] { display: none !important; }

/* Washi tape on each card */
.bstwy-journal-card::before {
  content: '';
  position: absolute;
  top: -10px;
  width: 88px;
  height: 20px;
  box-shadow: 0 1px 3px rgba(0, 5, 61, 0.12);
  background: rgba(202, 102, 189, 0.70);
}
.bstwy-journal-card.tilt-left::before  { left: 22px;  transform: rotate(-6deg); }
.bstwy-journal-card.tilt-right::before { right: 26px; transform: rotate(5deg); background: rgba(66, 196, 191, 0.70); }

/* Photo area */
.bstwy-journal-thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2B2B2B;
}
.bstwy-journal-thumb {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
}

/* Fallback tile for posts with no featured image */
.bstwy-journal-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.bstwy-journal-fallback-title {
  font-family: 'Londrina Solid', cursive;
  font-weight: 900;
  color: #FDFDFD;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 5, 61, 0.35);
}

/* Title + date */
.bstwy-journal-title {
  display: block;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  color: #2B2B2B;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  margin: 12px 4px 4px;
}
.bstwy-journal-date {
  display: block;
  font-family: 'Kalam', cursive;
  font-weight: 400;
  color: #25a3a2;
  font-size: 0.9rem;
  text-align: center;
}

/* Mobile - straighten cards, single column to avoid edge clipping */
@media (max-width: 640px) {
  .bstwy-journal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bstwy-journal-card.tilt-left,
  .bstwy-journal-card.tilt-right {
    transform: rotate(0deg);
  }
}

/* Empty state (defensive) */
.bstwy-journal-empty {
  font-family: 'Kalam', cursive;
  text-align: center;
  color: #25a3a2;
  padding: 48px 16px;
}

/* ============================================================================
   Location page (page-id-1383) - Londrina headings
   ============================================================================ */
body.page-id-1383 .elementor-widget-heading .elementor-heading-title,
body.page-id-1383 .elementor-widget-text-editor h2,
body.page-id-1383 .elementor-widget-text-editor h2 b {
  font-family: 'Londrina Solid', cursive !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.05 !important;
}

/* ============================================================================
   BSTWY Site Chrome Patch
   ============================================================================ */
/* Pin the site header to the top of the viewport on every page.
   The original CSS used position: sticky, which doesn't pin once the
   header lives inside Elementor's Theme Builder header wrapper (the
   wrapper's scroll context is shorter than the document, so sticky
   scrolls away with it). position: fixed pins to the viewport;
   body padding-top compensates so the first row of content isn't
   covered. ~70px = 38px logo + 12px x 2 padding + 1px border. */
.bstwy-home-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  z-index: 100 !important;
  padding-left: max(20px, env(safe-area-inset-left)) !important;
  padding-right: max(20px, env(safe-area-inset-right)) !important;
}
body { padding-top: 70px !important; }
/* The home page's .bstwy-home wrapper sets min-height: 100vh,
   which now overflows because of the body padding. Trim it. */
.bstwy-home { min-height: calc(100vh - 70px) !important; }

/* Header wordmark - the span outside .bstwy-home wrapper after rollout */
.bstwy-home-wordmark .wordmark-base {
  font-family: 'Kalam', cursive !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #00053d !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
}
.bstwy-home-wordmark .wordmark-yo {
  font-family: 'Londrina Solid', 'Kalam', cursive !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  color: #f0006b !important;
  margin-left: 2px !important;
  transform: rotate(-4deg) translateY(2px) !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Suppress Astra's auto-injected dropdown-toggle chevron inside our nav */
.bstwy-home-nav .ast-header-navigation-arrow,
.bstwy-home-nav .dropdown-menu-toggle {
  display: none !important;
}

/* Hide Jetpack share / like / related blocks site-wide (kept on single
   posts only by removing the .single-post / page-id-3797 ancestors) */
.sharedaddy,
#jp-post-flair,
.jp-relatedposts,
.jetpack-likes-widget,
.sd-like,
.sd-sharing,
.sd-content,
div.sharedaddy.sd-sharing-enabled {
  display: none !important;
}

/* ============================================================================
   Off-canvas nav keyword highlights
   Wrapped in spans by the nav_menu_item_title filter in bstwy-home-helpers.php
   ============================================================================ */
.bstwy-home-submenu .bstwy-nav-hl {
  font-weight: 700 !important;
  font-family: inherit !important;
}
.bstwy-home-submenu .bstwy-nav-hl--purple { color: #ca66bd !important; }
.bstwy-home-submenu .bstwy-nav-hl--pink   { color: #f0006b !important; }
.bstwy-home-submenu .bstwy-nav-hl--teal   { color: #42c4bf !important; }
.bstwy-home-submenu li > a:hover .bstwy-nav-hl--pink   { color: #f0006b !important; }
.bstwy-home-submenu li > a:hover .bstwy-nav-hl--purple { color: #ca66bd !important; }
.bstwy-home-submenu li > a:hover .bstwy-nav-hl--teal   { color: #42c4bf !important; }
