/**
 * SEO catch-all landing (state / city-state) — aligns with KT Rents accent colors.
 */

.kt-seo-catchall {
  --kt-seo-accent: #bf0000;
  --kt-seo-accent-hover: #a30000;
  --kt-seo-link: #005f8d;
  --kt-seo-text: #333;
  --kt-seo-muted: #555;
  --kt-seo-border: #e5e5e5;
  --kt-seo-surface: #f8f9fa;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--kt-seo-text);
  line-height: 1.6;
}

/**
 * On Safari mobile, the .apus-page-loading class is an invisible overlay preventing scrolling by touch
 * We had to remove it for the time being inside seo-catchall routes.
 */
body.kt-seo-catchall-page .apus-page-loading {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html:has(body.kt-seo-catchall-page),
body.kt-seo-catchall-page {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
  position: static !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}

body.kt-seo-catchall-page #wrapper-container,
body.kt-seo-catchall-page #apus-main-content {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}

.kt-seo-catchall__hero {
  position: relative;
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  background: #f6f7f8;
  color: #1a1a1a;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
}

.kt-seo-catchall__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(191, 0, 0, 0.055), transparent 42%);
  pointer-events: none;
}

.kt-seo-catchall__hero-inner {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 18rem);
}

.kt-seo-catchall__hero-social {
  position: absolute;
  top: 2.25rem;
  right: 2.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.kt-seo-catchall__hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #dde1e6;
  background: #fff;
  color: #1f2933;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.kt-seo-catchall__hero-social-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.kt-seo-catchall__hero-social-link:hover,
.kt-seo-catchall__hero-social-link:focus {
  border-color: #cfd5dc;
  background: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.kt-seo-catchall__hero-social-link--facebook {
  color: #1877f2 !important;
}

.kt-seo-catchall__hero-social-link--x {
  color: #111 !important;
}

.kt-seo-catchall__hero-social-link--instagram {
  color: #d62976 !important;
}

.kt-seo-catchall__hero-social-link--linkedin {
  color: #0a66c2 !important;
}

.kt-seo-catchall__hero-social-link--youtube {
  color: #f00 !important;
}

.kt-seo-catchall__hero-social-link--tiktok,
.kt-seo-catchall__hero-social-link--threads {
  color: #111 !important;
}

.kt-seo-catchall__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d8dde3;
  color: #3d4652;
  margin-bottom: 0.75rem;
}

.kt-seo-catchall__title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.kt-seo-catchall__hero .kt-seo-catchall__title {
  color: #1a1a1a;
}

.kt-seo-catchall__content-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--kt-seo-text);
}

.kt-seo-catchall__subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: #4c5561;
  margin: 0;
  max-width: 36rem;
}

.kt-seo-catchall__panel {
  background: #fff;
  border: 1px solid var(--kt-seo-border);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.kt-seo-catchall__panel h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.kt-seo-catchall__tts {
  display: block;
  margin: 0 0 1rem;
  width: 100%;
  max-width: 100%;
}

.kt-seo-catchall__tts .tts__listent_content {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.kt-seo-catchall__tts tts-play-button {
  display: inline-block;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.kt-seo-catchall__tts .plyr {
  width: 100%;
  max-width: 100%;
}

/* Legacy default Listen button styling only; Pro Plyr controls keep plugin styles. */
.kt-seo-catchall__tts:not(:has(.tts__listent_content))
  :is(button, a, .tts__listen, .tts__listen_content, .tta__listen_content) {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.kt-seo-catchall__tts:not(:has(.tts__listent_content))
  :is(
    button,
    a,
    .tts__listen,
    .tts__listen_content,
    .tta__listen_content,
    .kt-seo-catchall__tts-button
  ) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--kt-seo-accent) !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.kt-seo-catchall__tts:not(:has(.tts__listent_content))
  :is(
    button,
    a,
    .tts__listen,
    .tts__listen_content,
    .tta__listen_content,
    .kt-seo-catchall__tts-button
  ):hover,
.kt-seo-catchall__tts:not(:has(.tts__listent_content))
  :is(
    button,
    a,
    .tts__listen,
    .tts__listen_content,
    .tta__listen_content,
    .kt-seo-catchall__tts-button
  ):focus {
  background: var(--kt-seo-accent-hover) !important;
  color: #fff !important;
}

.kt-seo-catchall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.kt-seo-catchall__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  border: 2px solid transparent;
}

.kt-seo-catchall__btn--primary {
  background: var(--kt-seo-accent);
  color: #fff;
  border-color: var(--kt-seo-accent);
}

.kt-seo-catchall__btn--primary:hover,
.kt-seo-catchall__btn--primary:focus {
  background: var(--kt-seo-accent-hover);
  border-color: var(--kt-seo-accent-hover);
  color: #fff;
}

.kt-seo-catchall__btn--outline {
  background: #fff;
  color: #1a1a1a;
  border-color: #ccc;
}

.kt-seo-catchall__btn--outline:hover,
.kt-seo-catchall__btn--outline:focus {
  border-color: var(--kt-seo-link);
  color: var(--kt-seo-link);
}

.kt-seo-catchall__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
}

.kt-seo-catchall__grid a {
  color: var(--kt-seo-link);
  font-weight: 600;
  text-decoration: none;
}

.kt-seo-catchall__grid a:hover,
.kt-seo-catchall__grid a:focus {
  text-decoration: underline;
  color: var(--kt-seo-accent);
}

.kt-seo-catchall__grid--pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 8px;
  grid-template-columns: none;
}

.kt-seo-catchall__grid--pills li {
  margin: 0;
}

.kt-seo-catchall__grid--pills .kt-seo-catchall__pill {
  display: inline-block;
  padding: 5px 12px;
  background: #f4f4f4;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.kt-seo-catchall__grid--pills .kt-seo-catchall__pill:hover,
.kt-seo-catchall__grid--pills .kt-seo-catchall__pill:focus {
  background-color: var(--kt-seo-accent);
  border-color: var(--kt-seo-accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.kt-seo-catchall__empty {
  color: var(--kt-seo-muted);
  font-size: 0.95rem;
  margin: 0;
}

.kt-seo-catchall__meta {
  font-size: 0.9rem;
  color: var(--kt-seo-muted);
  margin: 1rem 0 0;
}

.kt-seo-catchall__ad {
  clear: both;
  margin: 2rem 0;
  min-height: 120px;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .kt-seo-catchall__hero {
    padding: 2.25rem 2.25rem;
  }
}

@media (max-width: 734px) {
  .kt-seo-catchall__hero {
    padding-top: 3.75rem;
  }

  .kt-seo-catchall__hero-inner {
    max-width: none;
  }

  .kt-seo-catchall__hero-social {
    top: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .kt-seo-catchall__hero-social-link {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.8rem;
  }

  .kt-seo-catchall__grid--pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 0.35rem 0.75rem;
  }

  .kt-seo-catchall__grid--pills .kt-seo-catchall__pill {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kt-seo-link);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .kt-seo-catchall__grid--pills .kt-seo-catchall__pill:hover,
  .kt-seo-catchall__grid--pills .kt-seo-catchall__pill:focus {
    background: transparent;
    color: var(--kt-seo-accent);
    text-decoration: underline;
    transform: none;
    transition-duration: 0s;
  }
}
