/* Public settings page + place modal */

.om-settings-page .bk-wrap {
  max-width: 40rem;
}

.om-settings-card {
  margin: 1.25rem 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #efe6dc;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 20, 16, 0.05);
}

.om-settings-card-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.om-settings-card-head p {
  margin: 0 0 0.85rem;
  color: var(--guide-muted, #5c534c);
  font-size: 0.92rem;
}

.om-settings-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f7f1ea;
}

.om-settings-lang a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #5c534c;
  font-weight: 600;
  font-size: 0.92rem;
}

.om-settings-lang a.is-active {
  background: #fff;
  color: #9a3412;
  box-shadow: 0 1px 4px rgba(28, 20, 16, 0.08);
}

.om-place-summary-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.om-place-summary-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--guide-muted, #5c534c);
  font-weight: 600;
}

.om-place-summary-value {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.om-place-summary-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--guide-muted, #5c534c);
}

.om-settings-note {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.88rem;
  color: var(--guide-muted, #5c534c);
}

/* Compact place chip on tool pages */
.om-place-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #efe6dc;
  background: #fffaf5;
  font-size: 0.92rem;
}

.om-place-chip strong {
  font-weight: 700;
}

.om-place-chip a {
  font-weight: 600;
  color: #9a3412;
}

/* Modal */
body.om-modal-open {
  overflow: hidden;
}

.om-modal[hidden] {
  display: none !important;
}

.om-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .om-modal {
    align-items: center;
    padding: 1.5rem;
  }
}

.om-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 16, 0.45);
}

.om-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(90vh, 40rem);
  overflow: auto;
  margin: 0;
  padding: 1.15rem 1.2rem 1.35rem;
  border-radius: 1.15rem 1.15rem 0 0;
  background: #fff;
  box-shadow: 0 -8px 40px rgba(28, 20, 16, 0.18);
}

@media (min-width: 640px) {
  .om-modal-dialog {
    border-radius: 1.15rem;
    box-shadow: 0 16px 48px rgba(28, 20, 16, 0.2);
  }
}

.om-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.om-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.om-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5c534c;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.om-place-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f7f1ea;
}

.om-place-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #5c534c;
  cursor: pointer;
}

.om-place-tab.is-active {
  background: #fff;
  color: #9a3412;
  box-shadow: 0 1px 4px rgba(28, 20, 16, 0.08);
}

.om-place-form {
  display: grid;
  gap: 0.85rem;
}

.om-place-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3f3a36;
}

.om-place-form select,
.om-place-form input {
  font: inherit;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid #e7d5c4;
  background: #fff;
}

.om-place-coords {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.om-place-footnote {
  margin: 0.85rem 1.1rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #efe6dc;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--guide-muted, #5c534c);
}

.om-nav-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  color: #5c534c;
  text-decoration: none;
}

.om-nav-settings:hover {
  background: rgba(28, 20, 16, 0.06);
  color: #9a3412;
}

.om-nav-settings svg {
  width: 1.2rem;
  height: 1.2rem;
}
