/* ============================================================
   List your property – loaded only on /listyourproperty.
   Every rule is scoped to .lyp-top / .page_listig so nothing
   here can leak into other pages.

   One shared scale for the whole page (desktop → ≤1199 → ≤991 → ≤575):
     hero title     72 → 60 → 48 → 38
     section title  60 → 48 → 40 → 30   (why / welcome / how does it work)
     card title     40 → 34 → 30 → 26
     body text      18 → 18 → 16 → 16
     section gap   100 → 80 → 60 → 50
   Radius: 24px big cards · 16px media + review cards · 10px controls
   ============================================================ */

.lyp-top,
.page_listig {
  --lyp-green: var(--color-primary, #9eb7af);
  --lyp-green-hover: var(--color-primary-hover, #6d857d);
  --lyp-dark: #090909;
  --lyp-border: #6f6f6f;
  --lyp-muted: #a3a3a3;

  --lyp-h1: 72px;
  --lyp-h2: 60px;
  --lyp-h3: 40px;
  --lyp-body: 18px;
  --lyp-gap: 100px;

  --lyp-radius-lg: 24px;
  --lyp-radius-md: 16px;
  --lyp-radius-sm: 10px;
}

.lyp-top {
  position: relative;
  padding: 90px 0 0;
  /* image already fades to white at the bottom; shifted up so the fade sits behind the "why"  */
  background: #ffffff url(../images/listing_bg.jpg) 50% -1vw / 100% auto no-repeat;
  color: var(--lyp-dark);
}

.lyp-top *,
.lyp-top *::before,
.lyp-top *::after {
  box-sizing: border-box;
}

.lyp-top .lyp-container {
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Hero ---------- */

.lyp-top .lyp-hero {
  padding-top: 240px;
  color: #ffffff;
}

.lyp-top .lyp-hero h1 {
  margin: 0;
  font-size: var(--lyp-h1);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.lyp-top .lyp-hero p {
  margin: 20px 0 40px;
  font-size: var(--lyp-body);
  line-height: 1.5;
  color: #ffffff;
}

.lyp-top .lyp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--lyp-radius-sm);
  background: var(--lyp-green);
  color: #ffffff;
  font-size: var(--lyp-body);
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease;
}

.lyp-top .lyp-btn:hover {
  background: var(--lyp-green-hover);
  color: #ffffff;
}

/* ---------- Why list + form ---------- */

.lyp-top .lyp-why {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  margin-top: 140px;
}

.lyp-top .lyp-why-left {
  flex: 1 1 0;
  max-width: 600px;
  padding-top: 40px;
}

.lyp-top .lyp-why-left h2 {
  margin: 0 0 24px;
  font-size: var(--lyp-h2);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lyp-dark);
}

.lyp-top .lyp-why-left p {
  margin: 0 0 32px;
  font-size: var(--lyp-body);
  line-height: 1.5;
  color: var(--lyp-dark);
}

.lyp-top .lyp-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lyp-top .lyp-checklist li {
  position: relative;
  padding-left: 32px;
  font-size: var(--lyp-body);
  line-height: 22px;
  color: var(--lyp-dark);
}

.lyp-top .lyp-checklist li + li {
  margin-top: 18px;
}

.lyp-top .lyp-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lyp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Form card ---------- */

.lyp-top .lyp-why-right {
  flex: 0 0 620px;
  max-width: 620px;
}

.lyp-top .lyp-card {
  padding: 40px 36px;
  border-radius: var(--lyp-radius-lg);
  background: #ffffff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 100px;
}

.lyp-top .lyp-card-title {
  text-align: center;
  margin-bottom: 32px;
}

.lyp-top .lyp-card-title h3 {
  margin: 0 0 12px;
  font-size: var(--lyp-h3);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lyp-dark);
}

.lyp-top .lyp-card-title p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6a6a6a;
}

.lyp-top .lyp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.lyp-top .lyp-field {
  position: relative;
  min-width: 0;
}

.lyp-top .lyp-full {
  grid-column: 1 / -1;
}

.lyp-top .lyp-submit {
  margin-top: 8px;
}

/* inputs + native selects */
.lyp-top .lyp-form input:not([type="hidden"]),
.lyp-top .lyp-form select {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--lyp-border);
  border-radius: var(--lyp-radius-sm);
  background-color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: var(--lyp-dark);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.lyp-top .lyp-form input::placeholder {
  color: var(--lyp-muted);
  opacity: 1;
}

.lyp-top .lyp-form input:focus,
.lyp-top .lyp-form select:focus {
  border-color: var(--lyp-green-hover);
}

.lyp-top .lyp-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  color: var(--lyp-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 0h14L7 10z' fill='%23090909'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.lyp-top .lyp-field.has-value select {
  color: var(--lyp-dark);
}

/* nice-select (main.js converts every <select>) */
.lyp-top .lyp-form .nice-select {
  float: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  line-height: 48px;
  margin: 0;
  padding: 0 40px 0 16px;
  border: 1px solid var(--lyp-border);
  border-radius: var(--lyp-radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
}

.lyp-top .lyp-form .nice-select .current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--lyp-muted);
}

.lyp-top .lyp-field.has-value .nice-select .current {
  color: var(--lyp-dark);
}

.lyp-top .lyp-form .nice-select::after,
.lyp-top .lyp-form .nice-select.open::after {
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-style: solid;
  border-width: 8px 6px 0 6px;
  border-color: var(--lyp-dark) transparent transparent transparent;
  transform: none;
  transform-origin: center;
}

.lyp-top .lyp-form .nice-select.open::after {
  transform: rotate(180deg);
}

.lyp-top .lyp-form .nice-select .list {
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--lyp-radius-sm);
  z-index: 20;
}

.lyp-top .lyp-form .nice-select .option {
  line-height: 40px;
  min-height: 40px;
  font-size: 16px;
  white-space: normal;
}

/* phone (intl-tel-input, separate dial code) */
.lyp-top .lyp-phone .iti {
  display: block;
  width: 100%;
}

.lyp-top .lyp-phone .iti__flag-container {
  padding: 1px;
}

.lyp-top .lyp-phone .iti--separate-dial-code .iti__selected-flag,
.lyp-top .lyp-phone .iti--separate-dial-code .iti__selected-flag:hover,
.lyp-top .lyp-phone .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  padding: 0 10px 0 12px;
  background: transparent;
  border-right: 1px solid var(--lyp-border);
  border-radius: var(--lyp-radius-sm) 0 0 var(--lyp-radius-sm);
}

.lyp-top .lyp-phone .iti__selected-dial-code {
  margin-left: 4px;
  font-size: 16px;
  color: var(--lyp-dark);
}

.lyp-top .lyp-phone .iti__arrow {
  margin-left: 8px;
  border-left-width: 5px;
  border-right-width: 5px;
  border-top: 7px solid var(--lyp-dark);
}

.lyp-top .lyp-phone .iti__arrow--up {
  border-top: none;
  border-bottom: 7px solid var(--lyp-dark);
}

.lyp-top .lyp-phone .iti__country-list {
  z-index: 20;
  max-width: 320px;
  white-space: normal;
  border-radius: var(--lyp-radius-sm);
}

/* submit */
.lyp-top .lyp-form button[type="submit"] {
  display: block;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: var(--lyp-radius-sm);
  background: var(--lyp-green);
  color: #ffffff;
  font-family: inherit;
  font-size: var(--lyp-body);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lyp-top .lyp-form button[type="submit"]:hover {
  background: var(--lyp-green-hover);
}

/* ============================================================
   Lower sections (inside .page_listig): welcome, Trustpilot, FAQ
   ============================================================ */

.page_listig {
  padding: var(--lyp-gap) 0;
}

/* ---------- Welcome to treo ---------- */

.lyp-welcome {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1330px;
  margin: 0 auto;
  color: var(--lyp-dark);
}

.lyp-welcome *,
.lyp-welcome *::before,
.lyp-welcome *::after {
  box-sizing: border-box;
}

.lyp-welcome .lyp-welcome-video {
  flex: 0 0 52%;
  max-width: 700px;
  display: block;
  border-radius: var(--lyp-radius-md);
  overflow: hidden;
  /* keep rounded corners clipping the zoom in Safari */
  transform: translateZ(0);
}

.lyp-welcome .lyp-welcome-video img {
  display: block;
  width: 100%;
  aspect-ratio: 700 / 477;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lyp-welcome .lyp-welcome-video:hover img {
  transform: scale(1.03);
}

.lyp-welcome .lyp-welcome-text {
  flex: 1 1 0;
  max-width: 560px;
}

.page_listig .lyp-welcome .lyp-welcome-text h2 {
  margin: 0 0 24px;
  font-size: var(--lyp-h2);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lyp-dark);
}

/* site-wide .heading_dot, lifted onto the baseline for this large heading */
.lyp-welcome .lyp-welcome-text span.heading_dot::after {
  bottom: 0.2em;
}

.page_listig .lyp-welcome .lyp-welcome-text p {
  margin: 0;
  font-size: var(--lyp-body);
  line-height: 1.5;
  color: var(--lyp-dark);
}

/* ---------- Trustpilot ---------- */

.page_listig .Trustpilot {
  margin-top: var(--lyp-gap);
}

.page_listig .Trustpilot .tp_top {
  gap: 24px;
  margin-bottom: 32px;
}

.page_listig .Trustpilot .tp_left {
  max-width: 420px;
}

.page_listig .Trustpilot .tp_logo {
  margin-bottom: 20px;
}

.page_listig .Trustpilot .tp_left p {
  font-size: 16px;
  line-height: 1.5;
}

.page_listig .Trustpilot .tp_right img {
  border-radius: var(--lyp-radius-sm);
}

.page_listig .Trustpilot .tp_card {
  padding: 24px;
  border-radius: var(--lyp-radius-md);
}

.page_listig .Trustpilot .tp_card_head {
  margin-bottom: 20px;
}

.page_listig .Trustpilot .tp_card p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
  /* live reviews vary a lot in length — cap the text so cards stay even */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.page_listig .Trustpilot .tp_bottom {
  margin-top: 24px;
}

/* Trustpilot cards link to the review on trustpilot.com */
.page_listig .Trustpilot a.tp_card_link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.page_listig .Trustpilot a.tp_card_link:hover {
  border-color: var(--lyp-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.page_listig .Trustpilot a.tp_card_link:focus-visible {
  outline: 2px solid var(--lyp-green-hover);
  outline-offset: 2px;
}

/* ---------- How does it work (FAQ) ---------- */

.page_listig .how_does_section {
  margin-top: var(--lyp-gap);
}

.page_listig .how_does_section .title {
  max-width: 900px;
  margin: 0 auto 40px;
}

.page_listig .how_does_section .title h2 {
  margin-bottom: 16px;
  font-size: var(--lyp-h2);
  line-height: 1.1;
}

.page_listig .how_does_section .title p {
  font-size: var(--lyp-body);
  line-height: 1.5;
}

.page_listig .how_does_accordion .accordion-title {
  font-size: var(--lyp-body);
  line-height: 1.4;
}

.page_listig .how_does_accordion .accordion-content p {
  font-size: 16px;
  line-height: 1.6;
}

.page_listig .how_does_accordion .accordion-item:not(:first-child) {
  margin-top: 18px;
  padding-top: 18px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1399px) {
  .lyp-top .lyp-why-right {
    flex-basis: 540px;
    max-width: 540px;
  }
}

@media (max-width: 1199px) {
  .lyp-top,
  .page_listig {
    --lyp-h1: 60px;
    --lyp-h2: 48px;
    --lyp-h3: 34px;
    --lyp-gap: 80px;
  }
  .lyp-top .lyp-hero {
    padding-top: 180px;
  }
  .lyp-top .lyp-why {
    gap: 40px;
    margin-top: 110px;
  }
  .lyp-top .lyp-why-left {
    padding-top: 20px;
  }
  .lyp-top .lyp-why-right {
    flex-basis: 50%;
    max-width: 50%;
  }
  .lyp-top .lyp-card {
    padding: 32px 24px;
  }
  .lyp-welcome {
    gap: 50px;
  }
}

@media (max-width: 991px) {
  .lyp-top,
  .page_listig {
    --lyp-h1: 48px;
    --lyp-h2: 40px;
    --lyp-h3: 30px;
    --lyp-body: 16px;
    --lyp-gap: 60px;
  }
  .lyp-top {
    padding: 40px 0 0;
    background-position: 50% 0;
    background-size: auto 560px;
  }
  .lyp-top .lyp-hero {
    padding-top: 160px;
  }
  .lyp-top .lyp-hero p {
    margin: 16px 0 28px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }
  .lyp-top .lyp-btn {
    height: 50px;
    padding: 0 20px;
  }
  .lyp-top .lyp-why {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    margin-top: 80px;
  }
  .lyp-top .lyp-why-left {
    max-width: none;
    padding-top: 0;
  }
  .lyp-top .lyp-why-right {
    flex-basis: auto;
    max-width: 100%;
  }
  .lyp-top .lyp-checklist li + li {
    margin-top: 14px;
  }
  .lyp-top .lyp-form button[type="submit"] {
    height: 52px;
  }

  .lyp-welcome {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .lyp-welcome .lyp-welcome-video {
    flex-basis: auto;
    max-width: none;
  }
  .lyp-welcome .lyp-welcome-text {
    max-width: none;
  }
  .page_listig .how_does_section .title {
    margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .lyp-top,
  .page_listig {
    --lyp-h1: 38px;
    --lyp-h2: 30px;
    --lyp-h3: 26px;
    --lyp-gap: 50px;
    --lyp-radius-lg: 18px;
    --lyp-radius-md: 14px;
  }
  .lyp-top {
    padding: 20px 0 0;
    background-size: auto 440px;
  }
  .lyp-top .lyp-hero {
    padding-top: 130px;
  }
  .lyp-top .lyp-hero p {
    margin: 14px 0 24px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }
  .lyp-top .lyp-hero p br,
  .lyp-top .lyp-why-left h2 br,
  .lyp-top .lyp-why-left p br,
  .lyp-top .lyp-card-title p br,
  .page_listig .lyp-welcome-text h2 br {
    display: none;
  }
  .lyp-top .lyp-btn {
    height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }
  .lyp-top .lyp-why {
    gap: 32px;
    margin-top: 70px;
  }
  .lyp-top .lyp-why-left h2 {
    margin-bottom: 16px;
  }
  .lyp-top .lyp-why-left p {
    margin-bottom: 24px;
  }
  .lyp-top .lyp-card {
    padding: 28px 18px;
  }
  .lyp-top .lyp-card-title {
    margin-bottom: 24px;
  }
  .lyp-top .lyp-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lyp-top .lyp-form input:not([type="hidden"]),
  .lyp-top .lyp-form select,
  .lyp-top .lyp-form .nice-select {
    height: 48px;
  }
  .lyp-top .lyp-form .nice-select {
    line-height: 46px;
  }
  .lyp-top .lyp-submit {
    margin-top: 4px;
  }
  .page_listig .lyp-welcome .lyp-welcome-text h2 {
    margin-bottom: 16px;
  }
  .page_listig .Trustpilot .tp_card {
    padding: 20px;
  }
  .page_listig .how_does_accordion .accordion-title {
    font-size: 16px;
  }
}
