:root {
  color-scheme: light;
  --navy: #10243d;
  --navy-soft: #173b49;
  --coral: #ef6455;
  --coral-dark: #d84e42;
  --gold: #f5cf6a;
  --mint: #54e0c1;
  --cream: #fffaf2;
  --surface: #ffffff;
  --line: #d9dfdc;
  --muted: #61706d;
  --success: #176b45;
  --success-soft: #e9f8f0;
  --warning: #8a5200;
  --warning-soft: #fff5dc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: var(--cream);
}

button, input, textarea { font: inherit; }

button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgb(239 100 85 / 35%);
  outline-offset: 3px;
}

.owner-header, main, footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.owner-languages {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: rgb(255 255 255 / 86%);
}

.owner-languages a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  border-radius: 9px;
  padding: 8px 5px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
}

.owner-languages a:hover,
.owner-languages a[aria-current="page"] { background: #eef2f0; }
.owner-languages a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--coral); }
.owner-languages img { display: block; flex: 0 0 auto; object-fit: cover; }

.owner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}

.brand {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 650;
  text-decoration: none;
}

.brand strong { color: var(--coral); }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { margin-bottom: 6px; font-size: clamp(1.25rem, 3vw, 1.65rem); }
h3 { margin-bottom: 0; font-size: 1.25rem; }

.eyebrow, .room-code {
  margin-bottom: 7px;
  color: var(--coral-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.access-card, .listing-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgb(16 36 61 / 9%);
}

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(26px, 6vw, 52px);
}

.access-card p, .hero p, .list-heading p, .listing-summary { color: var(--muted); }
.access-actions, .card-actions, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled { opacity: .55; cursor: wait; }
.button-primary { color: #fff; background: var(--coral); }
.button-primary:hover:not(:disabled) { background: var(--coral-dark); }
.button-secondary, .button-quiet { border-color: var(--line); color: var(--navy); background: #fff; }

.dashboard { padding-bottom: 30px; }
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  width: 100%;
  min-height: auto;
  margin-inline: 0;
  margin-bottom: 28px;
  border-radius: 26px;
  padding: clamp(28px, 3.2vw, 38px) clamp(28px, 5vw, 52px);
  color: #fff;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgb(84 224 193 / 18%);
}

.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p { max-width: 690px; margin-bottom: 0; color: #dce8e5; }
.hero .eyebrow { color: var(--mint); }

.notice {
  margin-bottom: 20px;
  border: 1px solid #c6d6d1;
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--navy);
  background: #eef8f5;
}
.notice[data-tone="error"] { border-color: #e5b0aa; color: #8d2c23; background: #fff0ee; }
.notice[data-tone="success"] { border-color: #a9dbc4; color: var(--success); background: var(--success-soft); }

.list-heading, .listing-card-top, .form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.list-heading { align-items: center; margin-bottom: 18px; }
.list-heading p { margin-bottom: 0; }
.listing-grid { display: grid; gap: 20px; }
.listing-card { padding: clamp(22px, 4vw, 32px); }
.listing-card[data-editing="true"] { border-color: rgb(239 100 85 / 55%); }

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--success);
  background: var(--success-soft);
  font-size: .78rem;
  font-weight: 850;
}
.status[data-draft="true"] { color: var(--warning); background: var(--warning-soft); }

.listing-summary { max-width: 850px; margin-block: 14px 20px; line-height: 1.55; }
.listing-facts { display: flex; gap: 36px; margin: 0 0 22px; }
.listing-facts div { min-width: 130px; }
.listing-facts dt { margin-bottom: 3px; color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.listing-facts dd { margin: 0; font-size: 1.08rem; font-weight: 850; }
.draft-note { margin-bottom: 18px; border-left: 4px solid var(--gold); padding: 9px 12px; color: var(--warning); background: var(--warning-soft); }

[dir="rtl"] .hero::after { right: auto; left: -110px; }
[dir="rtl"] .draft-note { border-right: 4px solid var(--gold); border-left: 0; }
[dir="rtl"] .input-suffix input { border-radius: 0 10px 10px 0; }
[dir="rtl"] .input-suffix > span { border-right: 0; border-left: 1px solid #aebbb7; border-radius: 10px 0 0 10px; }

.edit-form { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.form-explanation { margin-block: 12px 22px; color: var(--muted); }
.edit-form label { display: block; margin-bottom: 18px; font-weight: 780; }
.edit-form input, .edit-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #aebbb7;
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--navy);
  background: #fff;
}
.edit-form textarea { resize: vertical; line-height: 1.45; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 550; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin-top: 7px; }
.input-suffix input { margin-top: 0; border-radius: 10px 0 0 10px; }
.input-suffix > span { display: grid; place-items: center; border: 1px solid #aebbb7; border-left: 0; border-radius: 0 10px 10px 0; padding-inline: 12px; color: var(--muted); background: #f5f7f5; font-size: .82rem; }
.close-button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--navy); background: #eef2f0; font-size: 1.5rem; cursor: pointer; }
.form-actions { justify-content: flex-end; }
.form-message { min-height: 1.4em; margin: 12px 0 0; color: var(--success); font-weight: 700; }
.form-message[data-tone="error"] { color: #a22424; }

footer { padding-block: 22px 34px; color: var(--muted); font-size: .84rem; text-align: center; }
footer p { margin: 0; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .owner-languages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .access-card { grid-template-columns: 1fr; align-items: stretch; }
  .hero, .list-heading { align-items: stretch; flex-direction: column; }
  .hero .button { width: 100%; }
}

@media (max-width: 560px) {
  .owner-header, main, footer { width: min(100% - 20px, 1120px); }
  .owner-languages { width: min(100% - 20px, 760px); }
  .owner-header { align-items: flex-start; }
  .owner-header .button { min-height: 40px; padding-inline: 12px; }
  .listing-card-top, .form-heading { gap: 12px; }
  .listing-card-top { flex-direction: column; }
  .listing-facts, .card-actions, .access-actions, .form-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .button { width: 100%; }
}
