/* Restaurant management workspace */
html.restaurant-editor-route body > header,
html.restaurant-editor-route body > main {
  visibility: hidden;
}
body.restaurant-editor-active > header {
  display: none;
}
body.restaurant-editor-active > main {
  display: none;
}
body.restaurant-editor-active .account-view {
  height: 100vh;
}
.dashboard:has(#panel-restaurant-editor.active) {
  grid-template-columns: 1fr;
}
.dashboard:has(#panel-restaurant-editor.active) > aside {
  display: none;
}
.dashboard:has(#panel-restaurant-editor.active) .dash-content {
  padding: 0;
  overflow: hidden;
}
.dashboard .dash-content > #panel-restaurant-editor.active {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f8f8f4;
}
.restaurant-editor-page.slide-in { animation: none; }
.restaurant-editor-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.dashboard .restaurant-editor-sidebar {
  display: flex;
  height: 100%;
  min-height: 0;
  padding: 26px 18px;
  overflow-y: auto;
  color: var(--deep);
  background: linear-gradient(180deg, #f8f5eb, #f2f0e7);
  border-right: 1px solid #e1e1d8;
}
.restaurant-editor-sidebar .editor-back {
  margin: 0 0 22px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.editor-restaurant-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #dedfd5;
  border-radius: 13px;
  background: #fff;
}
.editor-restaurant-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--green);
  background-position: center;
  background-size: cover;
  font-weight: 900;
}
.editor-restaurant-card > span.has-image { color: transparent; }
.editor-restaurant-card div { min-width: 0; }
.editor-restaurant-card b,
.editor-restaurant-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-restaurant-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.dashboard .restaurant-editor-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}
.dashboard .restaurant-editor-sidebar nav button {
  padding: 12px;
  border: 0;
  border-radius: 9px;
  color: #33443a;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
}
.dashboard .restaurant-editor-sidebar nav button.active,
.dashboard .restaurant-editor-sidebar nav button:hover {
  color: var(--deep);
  background: #e5eadb;
  box-shadow: none;
  transform: none;
}
.editor-help {
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  background: #fffdf7;
  font-size: 11px;
}
.editor-help p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.restaurant-editor-workspace {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.restaurant-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #e1e1d8;
  background: #fff;
}
.restaurant-editor-topbar > div { display: flex; align-items: center; gap: 13px; }
.restaurant-editor-topbar h2 { margin: 0; font: 800 21px Inter, sans-serif; }
.restaurant-editor-topbar span {
  padding: 7px 11px;
  border-radius: 8px;
  color: #537047;
  background: #eef3e7;
  font-size: 10px;
  font-weight: 800;
}
.restaurant-editor-columns {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(360px, .72fr);
  gap: 22px;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
}
.restaurant-editor-shell.summary-active .restaurant-editor-columns {
  grid-template-columns: minmax(0, 1fr);
}
.restaurant-editor-shell.summary-active .editor-preview-column {
  display: none;
}
.restaurant-editor-shell.summary-active .editor-main-column {
  width: min(980px, 100%);
  margin: 0 auto;
}
.editor-main-column {
  min-width: 0;
}
#restaurant-page-host #restaurant-form-wrap {
  max-width: none;
}
#restaurant-page-host .restaurant-editor-head {
  display: none;
}
#restaurant-page-host #restaurant-form {
  display: grid;
  gap: 17px;
}
#editor-basic { order: 1; }
#editor-location { order: 2; }
#editor-media { order: 3; }
#editor-amenities { order: 4; }
#restaurant-page-host .form-actions { order: 5; }
.editor-form-section {
  min-height: 0;
}
.editor-form-section[hidden] { display: none !important; }
.editor-section-heading { margin: 0 0 12px; }
.editor-section-heading h3 {
  margin: 0;
  font: 600 22px Georgia, serif;
}
.editor-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.editor-card {
  max-width: none;
  padding: 18px;
  border: 1px solid #dfe1d7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px #18332307;
}
#restaurant-page-host .form-grid.two {
  grid-template-columns: 1fr 1fr;
  max-width: none;
}
#restaurant-page-host .modal-card label {
  margin: 0;
}
#restaurant-page-host .form-grid label { margin: 0 0 14px; }
.icon-form-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.icon-form-field > span img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
#restaurant-page-host .media-manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .5fr);
  gap: 15px;
  align-items: center;
}
#restaurant-page-host .image-gallery {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f1f2eb;
}
#restaurant-page-host .map-toolbar {
  margin-top: 0;
}
#restaurant-page-host #restaurant-map {
  height: 310px;
  border-radius: 13px;
}
#editor-location .coordinates {
  align-items: center;
  padding: 0 0 12px;
}
.map-coordinate-label {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #7a6451;
  background: #f5eee5;
  font-size: 10px;
  font-weight: 800;
}
.map-coordinate-label.confirmed {
  color: #46653e;
  background: #eaf2e4;
}
#restaurant-map .leaflet-marker-icon {
  filter: drop-shadow(0 5px 5px #17332455);
}
#restaurant-page-host fieldset {
  margin: 0;
  border: 0;
}
#restaurant-page-host fieldset legend {
  margin-bottom: 13px;
  font-weight: 900;
}
.editor-hours-fieldset {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--line) !important;
}
#restaurant-page-host .form-actions {
  position: sticky;
  z-index: 5;
  bottom: -22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0;
  background: #f8f8f4e8;
  backdrop-filter: blur(8px);
}
#restaurant-page-host .form-actions .solid { width: auto; }
.dashboard .editor-preview-column {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  height: fit-content;
  padding: 0;
  overflow: visible;
  color: var(--deep);
  background: transparent;
}
.editor-public-preview,
.editor-progress-card {
  padding: 18px;
  border: 1px solid #dfe1d7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px #18332307;
}
.editor-public-preview {
  padding: 16px;
}
.editor-public-preview h3,
.editor-progress-card h3 { margin: 0 0 14px; font: 600 19px Georgia, serif; }
.editor-preview-image {
  display: grid;
  height: 190px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #2d5238, #78934e);
  background-position: center;
  background-size: cover;
  font: 700 45px Georgia, serif;
}
.editor-preview-image.has-image { color: transparent; }
.editor-preview-profile { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 13px 4px 10px; }
.editor-preview-thumb { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 9px; color: white; background: linear-gradient(135deg, #2d5238, #78934e) center / cover; font: 700 21px Georgia, serif; }
.editor-preview-thumb.has-image { color: transparent; }
.editor-preview-title > div:first-child { display: flex; align-items: center; gap: 8px; }
.editor-preview-title h2 { margin: 0; font: 600 20px Georgia, serif; }
.editor-preview-title > div:first-child span { padding: 4px 7px; border-radius: 999px; color: #496341; background: #edf2e5; font-size: 7px; font-weight: 850; }
.editor-preview-reputation { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.editor-preview-reputation b { color: #ed9c22; font-size: 12px; }
.editor-preview-reputation small { color: var(--muted); font-size: 8px; }
.editor-preview-reputation i { margin-left: 8px; color: #3f7040; font-style: normal; }
.editor-preview-reputation strong { font-size: 9px; }
#editor-preview-amenities { display: flex; flex-wrap: wrap; gap: 6px; }
#editor-preview-amenities span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf1e6;
  font-size: 9px;
  font-weight: 800;
}
#editor-preview-amenities small { color: var(--muted); }
.editor-preview-meta { display: grid; gap: 7px; padding: 10px 4px 3px; border-top: 1px solid #eef0e9; }
.editor-preview-meta p { margin: 0; color: #687168; font-size: 9px; }
.editor-preview-meta .open { color: #4e7b43; font-weight: 750; }
.editor-progress-card > p { color: var(--muted); font-size: 11px; }
.editor-progress-card ul { display: grid; gap: 13px; padding: 0; list-style: none; }
.editor-progress-card li { position: relative; padding-left: 25px; font-size: 11px; font-weight: 750; }
.editor-progress-card li::before {
  content: "−";
  position: absolute;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 4px;
  color: #7f877d;
  background: #e9ebe5;
}
.editor-progress-card li.complete::before {
  content: "✓";
  color: white;
  background: #528044;
}
.editor-progress-total { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eceee7; font-size: 9px; font-weight: 800; }
.editor-progress-total i { height: 5px; overflow: hidden; border-radius: 999px; background: #e9ece5; }
.editor-progress-total b { display: block; width: 0; height: 100%; border-radius: inherit; background: #497c3e; transition: width .25s ease; }
#editor-view-public-bottom { width: 100%; margin-top: 15px; }

.restaurant-photo-manager { display: grid; gap: 18px; margin-top: 16px; }
#restaurant-images { display: none !important; }
.restaurant-photo-group { display: grid; gap: 12px; padding: 18px; border: 1px solid #dfe1d7; border-radius: 14px; background: #fff; }
.restaurant-photo-group > h4, .restaurant-photo-group > div > h4 { margin: 0; font: 700 16px Georgia, serif; }
.restaurant-photo-group > div > p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.restaurant-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.restaurant-photo-card, .restaurant-photo-add { position: relative; min-height: 138px; overflow: hidden; border: 1px dashed #bcc4b7; border-radius: 12px; background: #f8f9f5; }
.restaurant-photo-card.primary { min-height: 260px; }
.restaurant-photo-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.restaurant-photo-card > span { position: absolute; left: 9px; bottom: 9px; padding: 5px 8px; border-radius: 999px; color: white; background: #173324d9; font-size: 8px; font-weight: 850; }
.restaurant-photo-card > button { position: absolute; top: 8px; right: 8px; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #8f291f; background: #fff; box-shadow: 0 3px 12px #17332430; font-size: 18px; }
.restaurant-photo-card[draggable=true] { cursor: grab; }
.restaurant-photo-card.dragging { opacity: .45; }
.restaurant-photo-add { display: grid; padding: 20px; place-items: center; align-content: center; color: var(--deep); cursor: pointer; }
.restaurant-photo-add.primary-add { min-height: 230px; }
.restaurant-photo-add b { font-size: 30px; font-weight: 400; }
.restaurant-photo-add span { margin-top: 8px; font-weight: 850; }
.restaurant-photo-add small { margin-top: 4px; color: var(--muted); }
.restaurant-photo-upgrade { grid-column: 1 / -1; display: grid; gap: 6px; padding: 16px; border-radius: 11px; color: #46613e; background: #edf2e5; }
.restaurant-photo-upgrade span { font-size: 10px; }
.restaurant-photo-upgrade button { justify-self: start; margin-top: 4px; }
.editor-summary-view[hidden] { display: none !important; }
.editor-summary-hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid #dfe1d7;
  border-radius: 15px;
  background: #fff;
}
#editor-summary-image {
  display: grid;
  min-height: 170px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #31543f, #8aa45f);
  background-position: center;
  background-size: cover;
  font: 700 46px Georgia, serif;
}
#editor-summary-image.has-image { color: transparent; }
.editor-summary-hero > div:last-child { align-self: center; }
.editor-summary-hero > div > span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #4d7042;
  background: #edf3e7;
  font-size: 9px;
  font-weight: 850;
}
.editor-summary-hero h2 { margin: 12px 0 5px; font: 600 32px Georgia, serif; }
.editor-summary-hero p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
#editor-summary-amenities { display: flex; flex-wrap: wrap; gap: 6px; }
#editor-summary-amenities span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f0f2eb;
  font-size: 9px;
  font-weight: 750;
}
#editor-summary-amenities small { color: var(--muted); }
.editor-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.editor-summary-grid article {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid #dfe1d7;
  border-radius: 13px;
  background: #fff;
}
.editor-summary-grid span { color: #657166; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.editor-summary-grid b { font-size: 15px; }
.editor-summary-grid small { color: var(--muted); }
@media (max-width: 1050px) {
  .profile-heading { align-items: flex-start; }
  .profile-security-note { width: 36%; }
  .profile-plan-card { grid-template-columns: 150px 1fr; }
  .profile-plan-card > button { grid-column: 2; justify-self: end; }
  .owned-summary { grid-template-columns: 1fr 1fr; }
  .owned-summary article:nth-child(2) { border-right: 0; }
  .owned-summary article:nth-child(-n+2) { border-bottom: 1px solid #e5e4dc; }
  .restaurant-editor-columns { grid-template-columns: 1fr; }
  .editor-preview-column { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .profile-heading { flex-direction: column; }
  .profile-security-note { width: 100%; }
  .profile-plan-card { grid-template-columns: 1fr; }
  .profile-plan-card > button { grid-column: auto; justify-self: stretch; }
  .profile-plan-card .subscription-summary { justify-content: flex-start; }
  .profile-plan-card .subscription-summary span { text-align: left; }
  .profile-information-layout { grid-template-columns: 1fr; }
  .profile-photo-column { width: min(220px, 100%); margin: 0 auto; }
  .profile-edit-field { grid-template-columns: minmax(0, 1fr) 70px; }
  .owned-summary { grid-template-columns: 1fr; }
  .owned-summary article { border-right: 0; border-bottom: 1px solid #e5e4dc; }
  .owned-summary article:last-child { border-bottom: 0; }
  .owned-list article,
  .owned-main { flex-direction: column; }
  .owned-thumb { width: 100%; height: 180px; flex-basis: auto; }
  .owned-actions { width: 100%; }
  .restaurant-editor-shell { grid-template-columns: 1fr; }
  .dashboard .restaurant-editor-sidebar { display: none; }
  .restaurant-editor-topbar { padding: 0 14px; }
  .restaurant-editor-topbar span,
  #editor-public-preview { display: none; }
  .restaurant-editor-columns { padding: 14px; }
  .editor-preview-column { grid-template-columns: 1fr; }
  .editor-progress-card { display: none; }
  #restaurant-page-host .form-grid.two,
  #restaurant-page-host .media-manager { grid-template-columns: 1fr; }
  .editor-summary-hero,
  .editor-summary-grid { grid-template-columns: 1fr; }
}
