/*
Theme Name: Astra Child
Theme URI: https://pawtripper.com.au
Description: Child theme for Astra
Author: James Hach, Michelle Hatch
Template: astra
Version: 1.0.0
*/

/* ==========================
   Global Styles
========================== */
.ast-container p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* ==========================
   Why We Love Shortcode: File lives in shortcodes.php
========================== */
.why-we-love {
  background: #f9f9f9;
  padding: 1.5rem;
  border-left: 4px solid #ff914d;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.why-we-love h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

/* ==========================
   Suburb Grid (3 Columns > 1 Column)
========================== */
.pt-suburb-grid {
  columns: 3;
  column-gap: 2rem;
  list-style: none;
  padding-left: 0;
}

@media (max-width: 1024px) {
  .pt-suburb-grid {
    columns: 2;
  }
}
@media (max-width: 640px) {
  .pt-suburb-grid {
    columns: 1;
  }
}

/* ==========================
   Suburb Grid Counts (Accom, Parks, Beaches)
========================== */
.pt-suburb-grid li {
  /* background: var(--ast-global-color-3); /* previously #f9f9f9 */
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pt-suburb-grid li a {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--ast-global-color-1); /* previously #333 */
}

.pt-suburb-counts {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ast-global-color-4); /* previously #666 */
}

.pt-suburb-counts li {
  margin-bottom: 0.25rem;
}

.pt-suburb-grid li a:hover {
  color: var(--ast-global-color-2); /* Accent colour */
}

/* ==========================
   Section: Overview Block
========================== */
.location-explore-overview {
  margin: 2rem 0;
}

.location-explore-overview h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================
   Dog-Friendly Links (Cards)
========================== */
.dog-location-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none;
  padding-left: 0;
  margin: -0.5rem;
  gap: 1rem;
}

.dog-location-links li {
  flex: 0 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dog-location-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.dog-location-links li a:hover {
  text-decoration: underline;
}

.dog-location-links .icon {
  font-size: 1.5rem;
}

/* Tablet: 2 per row */
@media (max-width: 900px) {
  .dog-location-links li {
    flex: 0 1 48%;
    max-width: 48%;
  }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
  .dog-location-links {
    flex-direction: column;
    margin: 0;
  }

  .dog-location-links li {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0.5rem 0;
  }
}

/* ==========================
   Top Posts by Post Type
========================== */
.pt-location-top-posts {
  margin-top: 3rem;
}

.pt-location-top-posts h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}


.pt-location-post-item {
  flex: 0 1 calc(33.333% - 1.33rem);
  max-width: calc(33.333% - 1.33rem);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pt-location-post-item .post-thumbnail {
  display: block;
}

.pt-location-post-item .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.pt-location-post-item h3.entry-title {
  font-size: 1rem;
  margin: 0.5rem 0;
}

/* Tablet: 2 per row */
@media (max-width: 900px) {
  .pt-location-post-item {
    flex: 0 1 48%;
    max-width: 48%;
  }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
  .pt-location-post-item {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* ==========================
   Button: "View All" + CTA
========================== */
.pt-location-view-all,
.pt-section-button {
  text-align: center;
  margin: 2rem 0 3rem;
}

/* Mobile Tap-Friendly CTA */
@media (max-width: 768px) {
  .pt-large-tap {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================
   🌿 Shared Styles: Dog-Friendly Feature Icons
========================== */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem; /* space between items */
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  flex: 1 1 45%;
  max-width: 45%;
}

.feature-list li i {
  font-size: 1.25rem;
  color: #2e7d32;
}

/* 🔽 Mobile styles */
@media (max-width: 600px) {
  .feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem; /* vertical and horizontal gap */
    padding: 0;
    margin: 0;
  }

  .feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .feature-list li i {
    font-size: 1rem;
  }
}

/* ==========================
   FAQ Block Styles
     background-color: var(--ast-global-color-0);
========================== */
.faq-disclaimer {
  margin-top: 1.5em;
  padding: 1em;
  font-size: 0.85em;
  color: var(--ast-global-color-3);
  border-left: 4px solid var(--ast-global-color-2);
  border-radius: 4px;
}

/* ==========================
   Pawtripper 404 Page Styles
   ========================== */

.pawtripper-404 .pt-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}

.pawtripper-404 .pt-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.pawtripper-404 .pt-emoji {
  font-size: 2.25rem;
  margin-bottom: .25rem;
}

.pawtripper-404 .pt-title {
  font-size: clamp(1.7rem,2.6vw,2.4rem);
  margin: .25rem 0 .5rem;
  font-weight: 800;
}

.pawtripper-404 .pt-leadin {
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pawtripper-404 .pt-search {
  display: flex;
  gap: .5rem;
  margin: 1rem 0 1.25rem;
}

.pawtripper-404 .pt-search-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: 1rem;
}

.pawtripper-404 .pt-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.pawtripper-404 .pt-btn:hover {
  opacity: .9;
}

.pawtripper-404 .pt-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: .6rem;
  margin: 1rem 0 1.25rem;
}

.pawtripper-404 .pt-cta {
  display: block;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: .8rem 1rem;
  text-decoration: none;
  font-weight: 700;
  background: #fafafa;
}

.pawtripper-404 .pt-cta:hover {
  background: #f4f4f4;
}

.pawtripper-404 .pt-subhead {
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  font-weight: 800;
}

.pawtripper-404 .pt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.pawtripper-404 .pt-pills a {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: .4rem .8rem;
  text-decoration: none;
  background: #fff;
}

.pawtripper-404 .pt-list {
  list-style: none;
  padding: 0;
  margin: .25rem 0 1rem;
}

.pawtripper-404 .pt-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed #eee;
  padding: .5rem 0;
}

.pawtripper-404 .pt-list a {
  text-decoration: none;
}

.pawtripper-404 .pt-date {
  color: #777;
  font-size: .9rem;
  white-space: nowrap;
}

.pawtripper-404 .pt-footnote {
  color: #666;
  margin-top: .75rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .pawtripper-404 .pt-card {background:#141414;border-color:#2a2a2a}
  .pawtripper-404 .pt-leadin,
  .pawtripper-404 .pt-footnote {color:#c7c7c7}
  .pawtripper-404 .pt-cta {background:#1a1a1a;border-color:#2a2a2a}
  .pawtripper-404 .pt-search-input {background:#0e0e0e;border-color:#2a2a2a;color:#eaeaea}
  .pawtripper-404 .pt-btn {background:#eaeaea;color:#111}
  .pawtripper-404 .pt-pills a {background:#141414;border-color:#2a2a2a}
  .pawtripper-404 .pt-list li {border-color:#2a2a2a}
}

/* --- Pawtripper blog titles fix --- */

/* Always show H1 on blog posts */
.single-post {
  --page-title-display: block !important;
}
.single-post .entry-title {
  display: var(--page-title-display);
  color: var(--e-global-color-primary); /* Pawtripper teal */
  margin-bottom: 1rem;
}

/* Optional: keep Page titles hidden */
.page {
  --page-title-display: none !important;
}

/* --- Pawtripper CPT titles fix --- */

/* Always show H1 on Accommodation, Parks, Beaches */
body.single-accommodation,
body.single-parks,
body.single-beaches {
  --page-title-display: block !important;
}

body.single-accommodation h1.entry-title,
body.single-accommodation .elementor-widget-theme-post-title h1.elementor-heading-title,
body.single-parks h1.entry-title,
body.single-parks .elementor-widget-theme-post-title h1.elementor-heading-title,
body.single-beaches h1.entry-title,
body.single-beaches .elementor-widget-theme-post-title h1.elementor-heading-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Pawtripper Feature Stay pattern - Est. 9-Sep-2025 */

.pt-featurestay{max-width:1200px;margin:0 auto;padding:24px}
.pt-section{margin-block:32px}
.pt-muted{color:#64748B}
.pt-sub{color:#334155;margin-top:8px}

/* HERO */
.pt-hero img{width:100%;height:auto;border-radius:16px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.pt-hero-body{text-align:center;margin-top:16px}
.pt-hero-body h1{font-size:2rem;margin:0 0 6px}
.pt-hero-cta{margin-top:12px}

/* BUTTONS */
.pt-btn{display:inline-block;padding:10px 18px;border-radius:999px;border:1px solid #CBD5E1;text-decoration:none;color:#0F172A;margin-right:12px}
.pt-btn-primary{background:#0F766E;border-color:#0F766E;color:#fff}

/* GRID */
.pt-grid-wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.pt-grid-wrap{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.pt-grid-wrap{grid-template-columns:1fr}}
.pt-grid-item{background:#F8FAFC;border:1px solid #E5E7EB;border-radius:12px;padding:14px}
.pt-grid-item h3{font-size:1rem;margin:0 0 4px}

/* LISTS */
.pt-list{margin:0;padding-left:18px}
.pt-list li{margin:6px 0}

/* VIDEO (click-to-play) */
.pt-video .pt-yt{position:relative;display:block;border-radius:16px;overflow:hidden;aspect-ratio:16/9;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.pt-video img{width:100%;height:100%;object-fit:cover;display:block}
.pt-play{position:absolute;right:16px;bottom:16px;width:64px;height:64px;background:rgba(0,0,0,.4);border-radius:50%}
.pt-play::after{content:'';position:absolute;left:26px;top:20px;border-style:solid;border-width:12px 0 12px 18px;border-color:transparent transparent transparent #fff}
.pt-caption{color:#64748B;margin-top:8px}

/* GALLERY */
.pt-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:900px){.pt-gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.pt-gallery-grid{grid-template-columns:1fr}}
.pt-gallery-grid img{width:100%;height:auto;border-radius:12px;display:block}
/* Core Gutenberg Gallery (flex layout) — stack to 1 column on small screens */
@media (max-width:560px){
  .wp-block-gallery.is-layout-flex{ gap:12px; }
  .wp-block-gallery.is-layout-flex .wp-block-image{
    flex:1 1 100% !important;
    max-width:100% !important;
    margin:0 !important;
  }
  .wp-block-gallery.is-layout-flex img{
    width:100%; height:auto; display:block; border-radius:12px;
  }
}

/* MAP */
.pt-map {
  position: relative;
  width: 100%;
  margin-top: 12px;
}

/* Aspect ratio wrapper (16:9 by default) */
.pt-map::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 ratio */
}

.pt-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Slightly taller map on very small screens */
@media (max-width: 480px) {
  .pt-map::before { padding-top: 70%; } /* ~3:2 ratio */
}

/* CTA BLOCK */
.pt-cta{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}

/* PT grid: neutralise Gutenberg's block-gap + group spacing inside the grid */
.pt-grid-wrap { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Kill automatic margins Gutenberg adds to Group children in this grid */
.pt-grid-wrap > * {
  margin: 0 !important;
}

/* Your cards – make heights consistent */
.pt-grid-item {
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Tidy default heading/paragraph margins so text aligns */
.pt-grid-item h3 { margin: 0 0 4px; font-size: 1rem; }
.pt-grid-item p { margin: 0; }

/* Responsive columns */
@media (max-width:900px){ .pt-grid-wrap { grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .pt-grid-wrap { grid-template-columns: 1fr; } }

/* Hide Astra's default byline/date on these CPTs. In plain english, hide the author name and date it was posted :facepalm */
.single-accommodation .entry-meta,
.single-parks .entry-meta,
.single-beaches .entry-meta { display:none !important; }

/* AUTHOR BOX */
.pt-author{
  background:#F8FAFC;
  border:1px solid #E5E7EB;
  border-radius:12px;
  padding:20px;
}
.pt-author h3{ margin-top:0; font-size:1.1rem; color:#0F172A; }
.pt-author p{ margin:0 0 8px; color:#334155; line-height:1.7; }
.pt-author img{ border-radius:12px; display:block; }

/* Pawtripper: Breadcrumbs */
.pt-breadcrumb,
.breadcrumb-trail {
  font-size: 0.875rem;
  color: #64748B;
  margin: 8px 0 16px;
}

.pt-breadcrumb a,
.breadcrumb-trail a {
  color: #0F766E;
  text-decoration: none;
}

.pt-breadcrumb a:hover,
.breadcrumb-trail a:hover {
  text-decoration: underline;
}

/* Layout the list horizontally and remove numbers */
.pt-breadcrumb ol,
.breadcrumb-trail ol {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.pt-breadcrumb li,
.breadcrumb-trail li {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

/* Separator */
.pt-breadcrumb li + li::before,
.breadcrumb-trail li + li::before {
  content: "›";
  margin: 0 .35rem;
  color: #94A3B8;
}

/* Current page */
.pt-breadcrumb [aria-current="page"],
.breadcrumb-trail span {
  color: #0F172A;
  font-weight: 500;
}

/* Breadcrumbs – mobile tweaks */
.pt-breadcrumb,
.breadcrumb-trail {
  font-size: 0.85rem;
  line-height: 1.4;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 480px) {
  .pt-breadcrumb,
  .breadcrumb-trail {
    font-size: 0.8rem;
    gap: 4px;
  }
  .pt-breadcrumb a,
  .breadcrumb-trail a {
    padding: 2px 4px;
  }
  .pt-breadcrumb [aria-current="page"],
  .breadcrumb-trail span {
    white-space: normal;
  }
}
