.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.market-page {
  background: #ffffff;
}

.hub-page .hub-hero-copy {
  max-width: 980px;
}

.hub-page .hub-hero-copy h1 {
  display: grid;
  gap: 12px;
  max-width: 1050px;
}

.hub-page .hub-hero-copy > p {
  max-width: 900px;
}

.hub-page .hub-hero-copy .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 24px;
  padding: 16px 24px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(39, 110, 241, 0.22);
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
}

.hub-page .hub-hero-copy .button-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.hub-page .hub-market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .hub-page .hub-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hub-page .hub-market-grid {
    grid-template-columns: 1fr;
  }
}

.market-hero {
  padding: 28px 0 58px;
  background:
    radial-gradient(circle at 8% 18%, rgba(89, 191, 255, 0.34), transparent 31%),
    radial-gradient(circle at 91% 14%, rgba(188, 142, 255, 0.3), transparent 33%),
    radial-gradient(circle at 48% 100%, rgba(255, 127, 114, 0.14), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.market-breadcrumb {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.market-breadcrumb a {
  color: var(--blue-dark);
}

.market-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.market-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.82fr);
  align-items: start;
  gap: clamp(38px, 4vw, 56px);
}

.market-hero-copy {
  width: 100%;
  max-width: none;
}

.market-free-offer {
  display: block;
  margin: 30px 0 20px;
  color: var(--blue);
  font-family: "Archivo", Arial, sans-serif;
  font-size: var(--qa-hero-free-size);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.74;
  text-align: left;
}

.market-hero-copy h1 {
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
  font-size: var(--qa-hero-title-size);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-align: left;
  text-wrap: balance;
  white-space: normal;
}

.market-hero-headline {
  display: block;
}

.market-tagline {
  margin-bottom: 20px;
  display: block;
  color: var(--blue-dark);
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.market-hero-copy > p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--steel);
  font-size: var(--qa-hero-lead-size);
  line-height: 1.58;
}

.market-hero-copy > .hero-payment-note {
  margin-top: 18px;
  padding: 10px 15px;
  color: var(--blue-dark);
  font-size: 16px;
  line-height: 1.4;
}

.market-signup {
  width: 100%;
  max-width: 510px;
  padding: 28px 32px;
  justify-self: end;
}

.market-signup h2,
.market-signup-heading {
  margin-bottom: 18px;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.market-signup .field {
  margin-bottom: 16px;
}

.market-signup .field input[type="text"] {
  min-height: 50px;
  padding-block: 10px;
}

.market-signup .trade-option {
  min-height: 43px;
  padding: 8px 10px;
  font-size: 15px !important;
}

.market-signup .trade-check {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.fixed-market {
  margin: 0 0 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--steel);
  background: var(--blue-pale);
  border: 1px solid #d7e4ff;
  border-radius: 13px;
  font-size: 15px;
}

.fixed-market[hidden] {
  display: none;
}

.fixed-market > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fixed-market span {
  font-weight: 700;
}

.fixed-market strong {
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}

.fixed-market button,
.market-area-input-row button {
  min-height: 36px;
  padding: 7px 12px;
  flex: 0 0 auto;
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid #bdd1ff;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.fixed-market button:hover,
.fixed-market button:focus-visible,
.market-area-input-row button:hover,
.market-area-input-row button:focus-visible {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.market-area-field[hidden] {
  display: none;
}

.trade-route-field[hidden] {
  display: none;
}

.trade-route-field {
  margin-bottom: 14px !important;
}

.trade-route-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.trade-route-options a,
.trade-route-options button {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite);
  background: #ffffff;
  border: 1px solid #bdd1ff;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.trade-route-options a:hover,
.trade-route-options a:focus-visible,
.trade-route-options a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--blue-pale);
}

.market-area-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.market-area-input-row input {
  min-width: 0;
}

.pac-container {
  z-index: 10000;
}

.market-signup .form-error:empty {
  min-height: 0;
  margin: 0;
}

.market-page .market-signup .whatsapp-button {
  min-height: 56px;
}

.market-page .market-signup .whatsapp-button:not(:disabled) {
  background: var(--whatsapp-cta);
  box-shadow: 0 12px 28px rgba(0, 173, 89, 0.24);
}

.market-page .market-signup .whatsapp-button:not(:disabled):hover {
  background: var(--whatsapp-cta-dark);
  box-shadow: 0 10px 24px rgba(0, 153, 78, 0.28);
}

.market-signup .privacy-note {
  margin-top: 10px;
  font-size: 14px;
}

.weather-panel {
  margin-bottom: 28px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(110px, auto));
  align-items: center;
  gap: 18px;
  color: #ffffff;
  background: linear-gradient(100deg, var(--blue-dark), var(--blue) 62%, var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(36, 107, 253, 0.18);
}

.weather-panel > strong {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 18px;
}

.weather-panel > span {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}

.weather-panel b {
  color: #ffffff;
  font-size: 22px;
}

.weather-panel small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.weather-panel .weather-current {
  gap: 5px;
}

.climate-history-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 21px;
}

.climate-month-title {
  margin-top: 26px;
}

.seo-section {
  padding: 70px 0;
}

.seo-section-tint {
  background: var(--concrete);
  border-block: 1px solid #e8edf7;
}

.seo-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 30px;
  text-align: left;
}

.seo-heading .section-kicker {
  margin-bottom: 14px;
  background: var(--blue-pale);
}

.seo-heading h2,
.market-final-cta h2 {
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-align: left;
  text-wrap: balance;
  white-space: normal;
}

.seo-heading > p {
  max-width: none;
  margin-bottom: 0;
  color: var(--steel);
  font-size: 20px;
  line-height: 1.68;
}

.seo-prose {
  display: grid;
  gap: 16px;
}

.seo-prose p {
  margin: 0;
  color: var(--steel);
  font-size: 19px;
  line-height: 1.72;
}

.property-field-list,
.trade-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.property-field-list article,
.trade-use-grid article {
  padding: 23px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.property-field-list h3,
.trade-use-grid h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.trade-use-grid h3 a {
  color: var(--blue-dark);
  text-decoration: none;
}

.trade-use-grid h3 a:hover,
.trade-use-grid h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.property-field-list p,
.trade-use-grid p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.62;
}

.chat-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.chat-section-grid .seo-heading {
  margin-bottom: 0;
}

.market-phone-preview {
  justify-self: end;
}

.trade-ease-result {
  margin-top: 28px;
}

.whatsapp-hero-layout .market-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  align-items: center;
}

.beta-hero-phone {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.beta-phone-preview {
  width: min(100%, 430px);
}

.beta-phone-preview .chat {
  height: 460px;
}

.beta-copy-cta {
  margin-top: 18px;
  min-height: 52px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(36, 107, 253, 0.22);
  font-size: var(--qa-hero-cta-size);
  font-weight: 800;
}

.beta-signup-section {
  padding: 70px 0;
  background: #ffffff;
}

.beta-signup-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 5vw, 64px);
  align-items: center;
}

.beta-signup-shell .market-signup {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.beta-signup-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
}

.beta-signup-copy p {
  max-width: 650px;
  color: var(--steel);
  font-size: 19px;
  line-height: 1.62;
}

.signup-ease-card {
  margin-top: 26px;
}

.market-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.market-stat-grid article {
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #f7f9ff);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.market-stat-grid strong,
.market-stat-grid span {
  display: block;
}

.market-stat-grid strong {
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.15;
}

.market-stat-grid span {
  color: var(--steel);
  font-size: 15px;
  font-weight: 600;
}

.source-note {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.6;
}

.climate-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.climate-stat-row span {
  padding: 20px 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--steel);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 16px;
}

.climate-stat-row b {
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 28px;
  white-space: nowrap;
}

.property-data-stat-grid,
.related-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.property-data-stat-grid article {
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #f7f9ff);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.property-data-stat-grid strong,
.property-data-stat-grid span {
  display: block;
}

.property-data-stat-grid strong {
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 30px;
}

.property-data-stat-grid span {
  color: var(--steel);
  font-size: 15px;
  font-weight: 600;
}

.market-links-section {
  background: var(--concrete);
  border-block: 1px solid #e8edf7;
}

.related-market-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.related-market-grid a {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.related-market-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 107, 253, 0.4);
  box-shadow: 0 14px 30px rgba(23, 34, 59, 0.1);
}

.related-market-grid strong {
  color: var(--blue-dark);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 19px;
}

.related-market-grid span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.faq-layout {
  display: block;
}

.faq-list {
  max-width: 980px;
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.faq-list summary {
  padding: 18px 54px 18px 20px;
  position: relative;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--blue);
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.7;
}

.market-final-section {
  padding: 58px 0 76px;
}

.market-final-cta {
  padding: clamp(32px, 4.5vw, 50px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(123, 97, 255, 0.26), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(89, 191, 255, 0.24), transparent 35%),
    #f4f8ff;
  border: 1px solid #dce6f7;
  border-radius: 26px;
}

.market-final-cta > div {
  width: 100%;
  max-width: none;
}

.market-final-cta h2 {
  margin-bottom: 10px;
}

.market-final-cta p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 17px;
  line-height: 1.62;
}

.market-final-cta > a {
  min-height: 54px;
  padding: 14px 22px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 13px;
  box-shadow: 0 12px 26px rgba(36, 107, 253, 0.22);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.market-final-cta > a:hover {
  background: var(--blue-dark);
}

.market-how-it-works .section-heading {
  width: 100%;
  max-width: none;
  display: block;
  text-align: left;
}

.market-how-it-works .section-heading h2,
.market-how-it-works .section-heading p {
  width: 100%;
  max-width: none;
  text-align: left;
}

.market-how-it-works .section-heading h2 {
  text-wrap: balance;
  white-space: normal;
}

.market-how-it-works .section-heading p {
  margin: 16px 0 0;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .property-field-list,
  .trade-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-panel > strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .market-hero-grid,
  .whatsapp-hero-layout .market-hero-grid,
  .chat-section-grid,
  .faq-layout,
  .beta-signup-shell {
    grid-template-columns: 1fr;
  }

  .market-signup {
    max-width: 640px;
    justify-self: start;
  }

  .market-phone-preview {
    justify-self: start;
  }

  .beta-hero-phone {
    justify-items: start;
  }

}

@media (max-width: 720px) {
  .market-page main > section:not(.market-hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }

  .market-hero {
    padding: 20px 0 42px;
  }

  .market-hero-grid {
    gap: 32px;
  }

  .beta-phone-preview .chat {
    height: 410px;
  }

  .market-hero-copy h1 {
    font-size: var(--qa-hero-title-size);
  }

  .market-free-offer {
    margin-top: 26px;
    font-size: var(--qa-hero-free-size);
  }

  .seo-section {
    padding: 54px 0;
  }

  .property-field-list,
  .trade-use-grid,
  .market-stat-grid,
  .property-data-stat-grid,
  .climate-stat-row {
    grid-template-columns: 1fr;
  }

  .market-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .market-final-cta > a {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .market-signup {
    padding: 24px 20px;
  }

  .fixed-market {
    gap: 12px;
  }

  .market-area-input-row {
    grid-template-columns: 1fr;
  }

  .market-area-input-row button {
    width: 100%;
  }

  .market-breadcrumb {
    margin-bottom: 18px;
  }

  .weather-panel {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .weather-panel > strong {
    grid-column: auto;
  }
}
