/* ==========================================================================
   Private area · account.html additions to the owner panel (css/owner/*):
   "Add a listing" button, notices and the "link an existing listing" box
   ========================================================================== */

/* Thai letters (account.html loads Noto Sans Thai): Latin text keeps Manrope / Poppins. */
html:root {
  --font-heading: 'Poppins', 'Noto Sans Thai', sans-serif;
  --font-body: 'Manrope', 'Noto Sans Thai', sans-serif;
}

/* Thai needs a little more line height for its tone marks and vowels above / below. */
html:lang(th) .owner-intro__title { line-height: 1.4; }

/* Language switch: "ไทย | English", top right of the intro */
.lang-switch {
  align-self: flex-end;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.lang-switch__option {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch__option[aria-pressed="true"] {
  background: var(--color-teal);
  color: var(--color-surface);
  cursor: default;
}

.lang-switch__option:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* Coral action button (same coral as "List your place") */
.btn--coral {
  background: var(--color-coral);
  color: var(--color-surface);
  border-radius: var(--radius-sm);
}
.btn--coral:hover { background: var(--color-coral-dark); }

.account-add {
  margin-top: 8px;
  font-size: 15px;
}
.account-add span { font-size: 20px; line-height: 1; }

/* "Add a listing" + "Booking calendar" */
.account-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* owner.html (old private links): "Create account" / "Log in" */
.owner-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.owner-links__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  font-size: 15px;
}

.account-notice {
  margin: 0 var(--owner-gutter) 24px;
  text-align: center;
}

.account-notice[hidden] { display: none; }

/* Link an existing listing */
.account-link {
  padding: 0 var(--owner-gutter) 40px;
  container: listing-body / inline-size;
}

/* No listings yet: the box comes right after the intro */
.account-link--first { padding-top: 8px; }

.account-link__form {
  flex-wrap: wrap;
}

.account-link__form .notice__copy { flex: 1 1 280px; }

.account-link__controls {
  flex: 1 1 360px;
}

.account-link__input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: var(--owner-control-height);
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

.account-link__input:focus-visible,
.account-link button:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.account-link__input[aria-invalid="true"] { border-color: var(--color-danger); }

/* "Account settings": a small link above the footer, not a button */
.account-settings-link {
  margin: 0;
  padding: 0 var(--owner-gutter) 28px;
  text-align: center;
  font-size: 13px;
}
.account-settings-link[hidden] { display: none; }
.account-settings-link a {
  color: var(--color-muted);
  font-weight: 600;
  text-decoration: underline;
}
.account-settings-link a:hover { color: var(--color-teal-dark); }

@media (max-width: 600px) {
  .account-link__controls { flex-wrap: wrap; }
  .account-link__controls .btn { width: 100%; }
}
