/**
 * Landlord Guide page only. All selectors are scoped under .landlord-guide
 * so these rules cannot leak onto other templates.
 */

.landlord-guide-page {
  overflow-x: hidden;
  padding-top: 0 !important;
}

.landlord-guide {
  --lg-pink: var(--bs-primary, #ff7bac);
  --lg-ink: var(--bs-dark, #323e48);
  --lg-muted: #425b76;
  --lg-bg: #ffffff;
  --lg-surface: #f7f8fa;
  --lg-surface-2: #eef1f4;
  --lg-border: #e2e6eb;
  --lg-card: #ffffff;
  --lg-radius: 16px;
  --lg-radius-sm: 12px;
  --lg-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: var(--lg-ink);
}

.landlord-guide section[id],
.landlord-guide .lg-roadmap-step[id] {
  scroll-margin-top: 120px;
}

/* CSS stand-in for AOS fade-up. JS adds .aos-animate when the node enters view. */
.landlord-guide [data-aos="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.landlord-guide [data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .landlord-guide [data-aos] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.landlord-guide .lg-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lg-pink);
  margin-bottom: 0.75rem;
}

.landlord-guide .lg-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 680px;
  color: var(--lg-ink);
  letter-spacing: -0.02em;
}

.landlord-guide .lg-intro {
  font-size: 1.125rem;
  color: var(--lg-muted);
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.landlord-guide .lg-intro strong {
  color: var(--lg-ink);
}

.landlord-guide .lg-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1rem;
}

.landlord-guide .lg-text-link:hover {
  color: var(--lg-pink);
}

.landlord-guide .lg-btn-ghost {
  background: transparent;
  color: var(--lg-ink);
  border: 1px solid var(--lg-border);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.landlord-guide .lg-btn-ghost:hover {
  border-color: var(--lg-pink);
  color: var(--lg-pink);
  background: transparent;
}

/* ---- Hero ---- */
.landlord-guide .lg-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2a313b;
  color: #fff;
  padding-top: 90px;
}

.landlord-guide .lg-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a313b 0%, #333c48 45%, #3e4754 100%);
}

.landlord-guide .lg-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 124, 172, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 124, 172, 0.1) 0%, transparent 50%);
}

.landlord-guide .lg-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.landlord-guide .lg-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 5rem;
  width: 100%;
}

.landlord-guide .lg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.landlord-guide .lg-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  max-width: 800px;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.landlord-guide .lg-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.landlord-guide .lg-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.landlord-guide .lg-hero .lg-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.landlord-guide .lg-hero .lg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.landlord-guide .lg-hero .lg-text-link {
  color: rgba(255, 255, 255, 0.9);
}

.landlord-guide .lg-hero .lg-text-link:hover {
  color: #fff;
}

.landlord-guide .lg-hero-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.landlord-guide .lg-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.landlord-guide .lg-trust-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lg-pink);
  flex-shrink: 0;
}

/* ---- Journey ---- */
.landlord-guide .lg-journey {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-bg);
}

.landlord-guide .lg-journey-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.landlord-guide .lg-journey-card {
  display: block;
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  color: var(--lg-ink);
  text-decoration: none;
}

.landlord-guide .lg-journey-card:hover {
  border-color: var(--lg-pink);
  box-shadow: var(--lg-shadow);
  transform: translateY(-2px);
  color: var(--lg-ink);
}

.landlord-guide .lg-journey-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.landlord-guide .lg-journey-card p {
  font-size: 0.875rem;
  color: var(--lg-muted);
  margin: 0;
}

/* ---- Roadmap ---- */
.landlord-guide .lg-roadmap {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-surface);
}

.landlord-guide .lg-roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.landlord-guide .lg-roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--lg-pink), #ffe3ee);
}

.landlord-guide .lg-roadmap-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.landlord-guide .lg-roadmap-step:last-child {
  margin-bottom: 0;
}

.landlord-guide .lg-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lg-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--lg-surface);
}

.landlord-guide .lg-step-content {
  flex: 1;
  background: var(--lg-card);
  border-radius: var(--lg-radius);
  padding: 2rem;
  border: 1px solid var(--lg-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.landlord-guide .lg-step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.landlord-guide .lg-step-content p,
.landlord-guide .lg-step-content {
  color: var(--lg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.landlord-guide .lg-step-content h3 {
  color: var(--lg-ink);
}

.landlord-guide .lg-step-content p:last-child {
  margin-bottom: 0;
}

.landlord-guide .lg-step-content strong {
  color: var(--lg-ink);
}

.landlord-guide .lg-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  background: #fff3f8;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--lg-pink);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  body.landlord-guide-page .landlord-slideout__tab {
    display: none !important;
}
.landlord-guide .lg-step-tag {
  padding: 8px 18px;;
}
}

.landlord-guide .lg-roadmap-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---- Compliance ---- */
.landlord-guide .lg-compliance {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-bg);
}

.landlord-guide .lg-checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.landlord-guide .lg-checklist-card {
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s ease;
}

.landlord-guide .lg-checklist-card:hover {
  box-shadow: var(--lg-shadow);
}

.landlord-guide .lg-checklist-card.is-highlight {
  background: var(--lg-pink);
  color: #fff;
  border-color: var(--lg-pink);
}

.landlord-guide .lg-checklist-card.is-highlight h3,
.landlord-guide .lg-checklist-card.is-highlight p,
.landlord-guide .lg-checklist-card.is-highlight strong {
  color: #fff;
}

.landlord-guide .lg-checklist-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.landlord-guide .lg-checklist-header h3 {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  margin: 0;
}

.landlord-guide .lg-checklist-frequency {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--lg-surface-2);
  color: var(--lg-muted);
  white-space: nowrap;
}

.landlord-guide .lg-checklist-card.is-highlight .lg-checklist-frequency {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.landlord-guide .lg-checklist-card p {
  font-size: 0.875rem;
  color: var(--lg-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.landlord-guide .lg-checklist-card p:last-child {
  margin-bottom: 0;
}

.landlord-guide .lg-checklist-penalty {
  font-size: 0.75rem;
  color: var(--lg-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--lg-border);
  font-weight: 500;
}

.landlord-guide .lg-checklist-card.is-highlight .lg-checklist-penalty {
  color: rgba(255, 255, 255, 0.8);
  border-top-color: rgba(255, 255, 255, 0.25);
}

.landlord-guide .lg-compliance-note {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  background: var(--lg-surface-2);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--lg-muted);
}

.landlord-guide .lg-compliance-note p {
  margin: 0;
}

/* ---- Toolkit ---- */
.landlord-guide .lg-toolkit {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-surface);
}

.landlord-guide .lg-toolkit-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.landlord-guide .lg-toolkit-inner .lg-title,
.landlord-guide .lg-toolkit-inner .lg-intro {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.landlord-guide .lg-toolkit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---- Renters' Rights Act ---- */
.landlord-guide .lg-rra {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-bg);
}

.landlord-guide .lg-rra-inner {
  max-width: 760px;
  margin: 0 auto;
}

.landlord-guide .lg-rra-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.landlord-guide .lg-rra-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lg-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lg-border);
}

.landlord-guide .lg-rra-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landlord-guide .lg-rra-list strong {
  color: var(--lg-ink);
  display: block;
  margin-bottom: 0.25rem;
}

.landlord-guide .lg-rra-cta {
  margin-top: 1.5rem;
}

/* ---- Comparison ---- */
.landlord-guide .lg-comparison {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-surface);
}

.landlord-guide .lg-article-link-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  background: var(--lg-card);
  margin-bottom: 1rem;
}

.landlord-guide .lg-article-link-content {
  flex: 1;
}

.landlord-guide .lg-article-link-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.landlord-guide .lg-article-link-content p {
  font-size: 0.875rem;
  color: var(--lg-muted);
  line-height: 1.5;
  margin: 0;
}

.landlord-guide .lg-article-link-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.landlord-guide .lg-comparison-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ---- Knowledge Hub ---- */
.landlord-guide .lg-knowledge {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-bg);
}

.landlord-guide .lg-knowledge-modules {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.landlord-guide .lg-knowledge-module {
  max-width: 720px;
}

.landlord-guide .lg-module-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--lg-ink);
}

.landlord-guide .lg-article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.landlord-guide .lg-article-card {
  display: block;
  padding: 1.5rem;
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  color: var(--lg-ink);
  text-decoration: none;
}

.landlord-guide .lg-article-card:hover {
  border-color: var(--lg-pink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: var(--lg-ink);
}

.landlord-guide .lg-article-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.landlord-guide .lg-article-card p {
  font-size: 0.75rem;
  color: var(--lg-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.landlord-guide .lg-article-date {
  font-size: 0.75rem;
  color: var(--lg-pink);
  font-weight: 600;
}

.landlord-guide .lg-knowledge-all {
  text-align: center;
  margin-top: 3rem;
}

/* ---- Book a Call ---- */
.landlord-guide .lg-book-call {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--lg-bg);
}

.landlord-guide .lg-book-call-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.landlord-guide .lg-book-call-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.landlord-guide .lg-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--lg-muted);
}

.landlord-guide .lg-feature::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lg-pink);
  flex-shrink: 0;
}

.landlord-guide .lg-book-call-form-wrapper {
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --gf-ctrl-bg-color: #f8f8f8;
}

.landlord-guide .lg-book-call-form-wrapper h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.landlord-guide .lg-form-intro {
  font-size: 0.875rem;
  color: var(--lg-muted);
  margin-bottom: 1.5rem;
}

/* Keep Gravity Form layout inside the card; do not restyle site-wide gform rules. */
.landlord-guide .lg-book-call-form-wrapper .gform_wrapper {
  margin: 0;
}

.landlord-guide .lg-book-call-form-wrapper .gform_heading {
  display: none;
}

.landlord-guide .lg-book-call-form-wrapper .iti,
.landlord-guide .lg-book-call-form-wrapper .ginput_container,
.landlord-guide .lg-book-call-form-wrapper .ginput_container input,
.landlord-guide .lg-book-call-form-wrapper .ginput_container select,
.landlord-guide .lg-book-call-form-wrapper .ginput_container textarea {
  width: 100%;
  max-width: 100%;
}

.landlord-guide .lg-book-call-form-wrapper input.large,
.landlord-guide .lg-book-call-form-wrapper input[type="text"],
.landlord-guide .lg-book-call-form-wrapper input[type="email"],
.landlord-guide .lg-book-call-form-wrapper input[type="tel"],
.landlord-guide .lg-book-call-form-wrapper textarea,
.landlord-guide .lg-book-call-form-wrapper select,
.landlord-guide .lg-book-call-form-wrapper .selectric,
.landlord-guide .lg-book-call-form-wrapper .selectric .button {
  background-color: #d9d9d9 !important;
  background: #d9d9d9 !important;
}

.landlord-guide .lg-book-call-form-wrapper .gform_wrapper .gform_footer,
.landlord-guide .lg-book-call-form-wrapper input#gform_submit_button_2 {
  display: none !important;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

/* ---- Mobile sticky CTA ---- */
.lg-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2147483001;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.lg-mobile-cta .btn {
  width: 100%;
}

/* Slide-out tab becomes a full-width bottom bar below 768px. This page already
   has a Book a Call sticky that opens the same panel, so hide the tab here. */
@media (max-width: 768px), (max-height: 640px) {
  body.landlord-guide-page .landlord-slideout__tab {
    display: none !important;
  }
}

body.landlord-guide-page:has(.landlord-slideout.is-open) .lg-mobile-cta {
  display: none !important;
}

@media (max-width: 1024px) {
  .landlord-guide .lg-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landlord-guide .lg-book-call-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .lg-mobile-cta.is-visible {
    display: block;
  }

  body.landlord-guide-page {
    padding-bottom: 72px;
  }
}

@media (max-width: 768px) {
  .landlord-guide .lg-hero-trust {
    grid-template-columns: 1fr;
  }

  .landlord-guide .lg-article-list {
    grid-template-columns: 1fr;
  }

  .landlord-guide .lg-article-link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .landlord-guide .lg-article-link-card .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .landlord-guide .lg-journey-cards,
  .landlord-guide .lg-checklist-grid {
    grid-template-columns: 1fr;
  }

  .landlord-guide .lg-hero {
    min-height: auto;
  }

  .landlord-guide .lg-hero-content {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .landlord-guide .lg-hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .landlord-guide .lg-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

.landlord-guide .btn.btn-primary {
  letter-spacing: 1px;
}

@media (max-width: 1400px) {
  body.landlord-guide-page .landlord-slideout__tab {
    padding: 20px;
    font-size: 24px;
  }

  .landlord-guide .lg-checklist-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 1400px) {
  body.landlord-guide-page .container  {
    max-width: 960px;
  }
}

@media (max-width: 1120px) {
  body.landlord-guide-page .container  {
    max-width: 860px;
  }
}