/* Inherit theme font */
:root { --ahb-shadow: 0 4px 20px rgba(0,0,0,.06); }
.ahb-cards-grid { display:grid; gap: var(--ahb-grid-gap,20px); grid-template-columns: repeat(var(--ahb-cols,3), minmax(0,1fr)); }
@media (max-width: 960px) { .ahb-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .ahb-cards-grid { grid-template-columns: 1fr; } }
/* Equal-height cards with responsive overrides (from settings) */
.ahb-card { border-radius: var(--ahb-radius,18px); box-shadow: var(--ahb-shadow); overflow:hidden; transition: transform .18s ease, box-shadow .18s ease; display:flex; flex-direction:column; height: var(--ahb-card-h, 480px); position:relative; background:#fff; }
.ahb-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.10); }
.ahb-card-media { margin:0; height: min(var(--ahb-media-h, 260px), calc(var(--ahb-card-h, 480px) * 0.55)); flex-shrink: 0; background:#e9eef3; display:grid; place-items:center; overflow:hidden; }
.ahb-card .ahb-card-media img { display:block; box-sizing:border-box; width:100% !important; height:100% !important; max-width:100%; max-height:100%; object-fit: cover !important; }
.ahb-card-media--placeholder { background:#e9eef3; }
.ahb-badge { position:absolute; top:0; left:0; margin:12px; padding:6px 12px; border-radius:999px; background:#ffffffcc; backdrop-filter:saturate(180%) blur(6px); font-size:.9rem; }
.ahb-card-body { padding: var(--ahb-body-pad, 18px 20px 22px); display:flex; flex-direction:column; gap:10px; flex:1; }
.ahb-card-title { margin:0; font-size:1.25rem; line-height:1.2; }
.ahb-card-sub { margin:0; color:#6b7280; }
.ahb-card-desc { margin:0; color:#374151; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.ahb-card-cta { margin-top:auto; }
.ahb-card-footer { margin-top:auto; padding-top: 8px; }
.ahb-card-link { font-family: inherit; font-weight: 700; color: var(--ahb-link, #00AEEF); text-decoration: none; }
.ahb-card-link:hover { text-decoration: underline; }
.ahb-link { text-decoration:none; font-weight:600; color: var(--ahb-link, #0ea5e9); }
.ahb-link:hover { text-decoration: underline; }
.ahb-btn { display:inline-block; padding:10px 16px; border-radius:12px; background: var(--ahb-accent,#10b981); color:#fff; text-decoration:none; font-weight:600; }
.ahb-btn:hover { filter: brightness(0.95); }
/* Responsive size scaling */
@media (max-width: 960px) {
  .ahb-card { height: var(--ahb-card-h-tablet, calc(var(--ahb-card-h) * .85)); }
  /* Keep media capped to a % of the card height (prevents uneven image blocks) */
  .ahb-card-media {
    height: min(
      var(--ahb-media-h-tablet, calc(var(--ahb-media-h) * .85)),
      calc(var(--ahb-card-h-tablet, calc(var(--ahb-card-h) * .85)) * 0.55)
    );
  }
}
@media (max-width: 640px) {
  .ahb-card { height: var(--ahb-card-h-mobile, calc(var(--ahb-card-h) * .70)); }
  /* Keep media capped to a % of the card height (prevents uneven image blocks) */
  .ahb-card-media {
    height: min(
      var(--ahb-media-h-mobile, calc(var(--ahb-media-h) * .70)),
      calc(var(--ahb-card-h-mobile, calc(var(--ahb-card-h) * .70)) * 0.55)
    );
  }
}
/* FAQ */
.ahb-faq details { background:#f8fafc; border:1px solid #e5e7eb; border-radius:14px; padding:14px 16px; margin-bottom:10px; }
.ahb-faq summary { cursor:pointer; font-weight:600; }
.ahb-faq .ahb-faq-answer { margin-top:8px; color:#374151; }

/* -----------------------------
   Mobile-first Homepage Sections
   Palette aligned w/ your site:
   - Blue: #00AEEF
   - Yellow: #EFCD0F
   Typography: inherits your theme (Astra / WordPress global typography)
------------------------------ */

.ahb-section { max-width: 1200px; margin: 0 auto; padding: 18px 16px; }

.ahb-section-head { max-width: 1200px; margin: 0 auto; padding: 18px 16px 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ahb-section-head .ahb-section-title { margin: 0; }
.ahb-section-head a { font-family: inherit; font-weight: 700; color: #00AEEF; text-decoration: none; }
.ahb-section-head a:hover { text-decoration: underline; }

.ahb-section-title {
  font-family: inherit;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: #222;
  display: inline-block;
  border-bottom: 2px solid #EFCD0F;
  padding-bottom: 4px;
}

.ahb-section-sub {
  font-family: inherit;
  margin: 0 0 12px 0;
  color: #4b5563;
}

/* Hero */
.ahb-home-hero {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  min-height: var(--ahb-hero-h, 320px);
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,var(--ahb-hero-ov,0.40)), rgba(0,0,0,var(--ahb-hero-ov,0.40))),
    var(--ahb-hero-bg, radial-gradient(circle at 30% 20%, #00AEEF 0%, #0b3a4a 55%, #06171e 100%));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ahb-home-hero__inner {
  width: min(620px, 92%);
  text-align: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 18px 16px;
}

.ahb-home-hero__title {
  font-family: inherit;
  margin: 0 0 6px 0;
  color: #fff;
  letter-spacing: 0.2px;
  font-size: 1.35rem;
}

.ahb-home-hero__sub {
  font-family: inherit;
  margin: 0 0 14px 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.35;
}

.ahb-home-hero__btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #EFCD0F;
  color: #111 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}

.ahb-home-hero__btn:hover { filter: brightness(0.97); }

@media (min-width: 768px) {
  .ahb-home-hero__inner { padding: 22px 22px; }
  .ahb-home-hero__title { font-size: 1.8rem; }
}

/* Carousel */
.ahb-carousel-wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 16px; overflow: visible; }
.ahb-carousel {
  display: flex;
  gap: var(--ahb-carousel-gap, 14px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px 2px;
}

.ahb-carousel::-webkit-scrollbar { height: 8px; }
.ahb-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); border-radius: 999px; }

/* Default "peek" sizing (mobile-first) */
.ahb-carousel .ahb-card {
  flex: 0 0 var(--ahb-carousel-peek, 78%);
  max-width: var(--ahb-carousel-peek, 78%);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .ahb-carousel .ahb-card { flex-basis: 48%; max-width: 48%; }
}

@media (min-width: 1024px) {
  .ahb-carousel { overflow: visible; flex-wrap: wrap; }
  .ahb-carousel .ahb-card { flex-basis: calc(25% - var(--ahb-carousel-gap,14px)); max-width: calc(25% - var(--ahb-carousel-gap,14px)); }
}

.ahb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.ahb-carousel-btn--prev { left: -8px; }
.ahb-carousel-btn--next { right: -8px; }

@media (min-width: 1024px) {
  /* On large screens we render as a grid (no horizontal scrolling), so hide arrows */
  .ahb-carousel-btn { display: none; }
}

/* Where to stay pills */
.ahb-city-pills {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--ahb-city-cols-mobile, 1), minmax(0, 1fr));
}

@media (min-width: 640px) {
  .ahb-city-pills {
    grid-template-columns: repeat(var(--ahb-city-cols-tablet, var(--ahb-city-cols, 3)), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ahb-city-pills {
    grid-template-columns: repeat(var(--ahb-city-cols, 3), minmax(0, 1fr));
  }
}

.ahb-city-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    var(--ahb-pill-bg, linear-gradient(135deg, rgba(0,174,239,0.35), rgba(239,205,15,0.18)));
  background-size: cover;
  background-position: center;
  box-shadow: var(--ahb-shadow);
  min-height: 72px;
}

.ahb-city-pill__label {
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* Events list */
.ahb-events {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: var(--ahb-shadow);
  background: #fff;
}

.ahb-event-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #f0f0f0;
}

.ahb-event-row:first-child { border-top: none; }

.ahb-event-date {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b3a4a;
  background: #fcfbf2;
  border-left: 4px solid #EFCD0F;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}

.ahb-event-title {
  font-family: inherit;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.ahb-event-title:hover { text-decoration: underline; }


.ahb-city-pill__text{display:flex;flex-direction:column;gap:4px;text-align:center;}
.ahb-city-pill__title{font-family:inherit;font-weight:700;color:#fff;font-size:1.05rem;line-height:1.15;text-shadow:0 2px 8px rgba(0,0,0,0.35);}
.ahb-city-pill__sub{font-family:inherit;font-weight:600;color:rgba(255,255,255,0.92);font-size:0.9rem;line-height:1.2;text-shadow:0 2px 8px rgba(0,0,0,0.35);}

/* ---------- SEO Trust & E-E-A-T Components ---------- */

/* Trust Box */
.aht-trust-box {
  background: #f8fafc;
  border-left: 4px solid #00AEEF;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.aht-trust-box h3 { margin: 0 0 10px 0; font-size: 1.1rem; color: #0b3a4a; }
.aht-trust-box ul { margin: 0; padding: 0; list-style: none; }
.aht-trust-box li { padding: 4px 0; color: #374151; font-size: 0.95rem; }
.aht-trust-box li + li { border-top: 1px solid #e5e7eb; }

/* Affiliate Disclosure */
.aht-affiliate-disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
}

/* Last Checked Badge */
.aht-last-checked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

/* Author Box */
.aht-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.aht-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.aht-author-box__info { flex: 1; min-width: 0; }
.aht-author-box__name { font-size: 1.05rem; color: #111; }
.aht-author-box__bio { margin: 6px 0 0; font-size: 0.9rem; color: #4b5563; line-height: 1.45; }
.aht-author-box__reviewed { margin: 6px 0 0; font-size: 0.82rem; color: #6b7280; }

/* Related Guides */
.aht-related-guides {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.aht-related-guides h3 { margin: 0 0 12px 0; font-size: 1.1rem; color: #0b3a4a; }
.aht-related-guides__cards { display: flex; flex-direction: column; gap: 8px; }
.aht-related-guide {
  display: block;
  text-decoration: none;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.aht-related-guide:hover { border-color: #00AEEF; box-shadow: 0 2px 8px rgba(0,174,239,0.12); }
.aht-related-guide strong { display: block; color: #00AEEF; font-size: 0.95rem; }
.aht-related-guide span { display: block; color: #4b5563; font-size: 0.85rem; margin-top: 2px; }

/* Provider Review Card */
.aht-provider-review {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--ahb-shadow);
}
.aht-provider-review__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aht-provider-review__header h3 { margin: 0; font-size: 1.15rem; }
.aht-provider-review__rating { display: flex; align-items: center; gap: 6px; }
.aht-stars { position: relative; display: inline-block; font-size: 1.2rem; line-height: 1; color: #d1d5db; }
.aht-stars__empty { letter-spacing: 2px; }
.aht-stars__filled { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #f59e0b; letter-spacing: 2px; }
.aht-provider-review__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 0.9rem; color: #374151; }
.aht-provider-review__proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.aht-provider-review__proscons h4 { margin: 0 0 6px 0; font-size: 0.95rem; }
.aht-provider-review__col ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: #374151; }
.aht-provider-review__col ul li { padding: 2px 0; }
.aht-provider-review__verdict { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 0.95rem; color: #111; }
@media (max-width: 640px) {
  .aht-provider-review__proscons { grid-template-columns: 1fr; }
}

/* Comparison Table */
.aht-comparison-table { overflow-x: auto; margin: 24px 0; border-radius: 14px; border: 1px solid #e5e7eb; }
.aht-comparison-table table { width: 100%; border-collapse: collapse; min-width: 480px; }
.aht-comparison-table thead { background: #f8fafc; }
.aht-comparison-table th { padding: 10px 14px; text-align: left; font-size: 0.88rem; font-weight: 700; color: #374151; border-bottom: 2px solid #e5e7eb; }
.aht-comparison-table td { padding: 10px 14px; font-size: 0.9rem; color: #374151; border-bottom: 1px solid #f3f4f6; }
.aht-comparison-table tbody tr:nth-child(even) { background: #f9fafb; }
.aht-comparison-table tbody tr:hover { background: #f0f9ff; }
