.tt-app-nav,
.tt-app-panel {
  display: none;
}

.tt-facility-actions {
  max-width: 820px;
  margin: 28px auto;
  padding: 18px;
  border: 1px solid #e4e7ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(26, 32, 38, .06);
}

.tt-favorite-button,
.tt-public-form button[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #c91f5d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tt-favorite-button {
  width: 100%;
  margin-bottom: 10px;
}

.tt-favorite-button[aria-pressed="true"] {
  background: #fff1f6;
  color: #a3154a;
  border: 1px solid #e6a4bb;
}

.tt-facility-actions details {
  border-top: 1px solid #eceef0;
}

.tt-facility-actions summary {
  padding: 15px 2px;
  font-weight: 700;
  cursor: pointer;
}

.tt-comments-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 15px 2px;
  border: 0;
  border-top: 1px solid #eceef0;
  background: transparent;
  color: #282b2e;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tt-comments-action.is-loading {
  opacity: .58;
  cursor: wait;
}

.tt-public-form {
  display: grid;
  gap: 14px;
  padding: 4px 0 18px;
}

.tt-public-form label:not(.tt-hp-field) {
  display: grid;
  gap: 7px;
  color: #282b2e;
  font-weight: 650;
}

.tt-public-form input[type="file"],
.tt-public-form select,
.tt-public-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bcc3c9;
  border-radius: 9px;
  background: #fff;
  color: #202326;
  font: inherit;
}

.tt-facility-submission-page {
  max-width: 760px;
  margin: 28px auto 60px;
  padding: 24px;
  border: 1px solid #e4e7ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(26, 32, 38, .06);
}

.tt-submission-emotional-intro {
  margin: 0 0 22px;
  padding: 18px;
  border-radius: 14px;
  background: #fff3f7;
  color: #34383c;
  text-align: center;
}

.tt-submission-emotional-intro p {
  margin: 0;
  line-height: 1.8;
}

.tt-submission-emotional-intro p + p {
  margin-top: 8px;
  color: #596168;
  font-size: 14px;
}

.tt-submission-emotional-intro strong {
  font-size: 17px;
}

.tt-submission-lead {
  margin: 0 0 22px;
  color: #596168;
  font-size: 15px;
  line-height: 1.75;
}

.tt-facility-submission-form > fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #e1e4e7;
  border-radius: 12px;
}

.tt-facility-submission-form > fieldset > legend,
.tt-choice-group > legend {
  padding: 0 8px;
  color: #282b2e;
  font-weight: 800;
}

.tt-facility-submission-form input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bcc3c9;
  border-radius: 9px;
  background: #fff;
  color: #202326;
  font: inherit;
}

.tt-choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e1e4e7;
  border-radius: 10px;
}

.tt-choice-group label {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
}

.tt-choice-group input {
  width: 18px;
  height: 18px;
}

.tt-location-capture {
  display: grid;
  gap: 8px;
}

.tt-form-label {
  font-weight: 650;
}

.tt-location-capture__button {
  min-height: 44px;
  border: 1px solid #c91f5d;
  border-radius: 10px;
  background: #fff1f6;
  color: #a3154a;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tt-location-capture__button[disabled] {
  opacity: .58;
  cursor: wait;
}

.tt-public-form textarea {
  resize: vertical;
}

.tt-public-form .tt-form-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  font-weight: 500;
  line-height: 1.55;
}

.tt-public-form .tt-form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.tt-form-note,
.tt-form-status {
  margin: 0;
  color: #60676d;
  font-size: 13px;
  line-height: 1.6;
}

.tt-form-status:not(:empty) {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f2f5f7;
  color: #31363a;
}

.tt-public-form button[type="submit"] {
  padding: 10px 18px;
}

.tt-public-form button[disabled] {
  opacity: .58;
  cursor: wait;
}

.tt-hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.tt-community-gallery {
  margin: 32px 0;
  padding: 20px;
  border: 1px solid #e3e6e9;
  border-radius: 14px;
  background: #fbfcfd;
}

.tt-community-gallery > p {
  color: #626970;
  font-size: 13px;
}

.tt-community-gallery > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tt-community-gallery img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.tt-comments-form-deferred {
  display: none !important;
}

html.tt-comments-dialog-open {
  overflow: hidden;
}

.tt-comments-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(90dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #282b2e;
  box-shadow: 0 18px 70px rgba(20, 24, 28, .28);
  overflow: auto;
}

.tt-comments-dialog::backdrop {
  background: rgba(20, 24, 28, .58);
}

.tt-comments-dialog__inner {
  padding: 0 18px 20px;
}

.tt-comments-dialog__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid #eceef0;
  background: #fff;
}

.tt-comments-dialog__header h2 {
  margin: 0;
  font-size: 20px;
}

.tt-comments-dialog__header button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #4a4f54;
  font-size: 30px;
  cursor: pointer;
}

.tt-comments-dialog__body {
  padding-top: 16px;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .tt-app-nav {
    position: fixed;
    z-index: 99960;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 50px;
    padding: 2px 4px calc(2px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(33, 37, 41, .14);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -6px 24px rgba(24, 30, 36, .12);
    backdrop-filter: blur(12px);
  }

  .tt-app-nav a,
  .tt-app-nav button {
    display: grid;
    grid-template-rows: 21px auto;
    place-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 1px 2px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #33383c;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }

  .tt-app-nav a:focus-visible,
  .tt-app-nav button:focus-visible {
    outline: 3px solid rgba(201, 31, 93, .3);
    outline-offset: -2px;
  }

  .tt-app-nav a span:first-child,
  .tt-app-nav button span:first-child {
    color: #bd1c56;
    font-size: 20px;
    line-height: 1;
  }

  .tt-pwa-install:not([hidden]) {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tt-app-panel:not([hidden]) {
    position: fixed;
    z-index: 99970;
    inset: 0;
    display: flex;
    align-items: flex-end;
  }

  .tt-app-panel__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(19, 23, 27, .52);
  }

  .tt-app-panel[data-tt-panel-mode="nearby"] .tt-app-panel__content {
    min-height: min(520px, calc(100dvh - 190px));
  }

  .tt-app-panel__sheet {
    position: relative;
    width: 100%;
    max-height: min(82dvh, 760px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -18px 60px rgba(0, 0, 0, .22);
  }

  .tt-app-panel__sheet > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 8px 14px 8px 18px;
    border-bottom: 1px solid #e8ebed;
  }

  .tt-app-panel__sheet > header h2 {
    margin: 0;
    color: #25292d;
    font-size: 18px;
  }

  .tt-app-panel__sheet > header button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f2f4;
    color: #30353a;
    font-size: 28px;
  }

  .tt-app-panel__content {
    max-height: calc(min(82dvh, 760px) - 58px);
    padding: 18px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  html.tt-app-panel-open {
    overflow: hidden;
  }

  .tt-app-loading,
  .tt-app-nearby-state,
  .tt-app-empty {
    padding: 24px 12px;
    text-align: center;
  }

  .tt-app-nearby-state button,
  .tt-app-nearby-state a,
  .tt-app-map-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 9px;
    background: #c91f5d;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .tt-app-nearby-state a {
    background: #eef1f3;
    color: #252a2e;
  }

  .tt-app-nearby-note {
    margin: 0 0 12px;
    color: #626970;
    font-size: 13px;
  }

  .tt-app-nearby-list,
  .tt-app-facility-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tt-app-nearby-list li,
  .tt-app-facility-list li {
    border: 1px solid #e1e5e8;
    border-radius: 11px;
    background: #fff;
  }

  .tt-app-nearby-list a {
    display: grid;
    gap: 3px;
    padding: 13px;
    color: #25292d;
    text-decoration: none;
  }

  .tt-app-nearby-list span,
  .tt-app-nearby-list small {
    color: #60676d;
    font-size: 12px;
  }

  .tt-app-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 10px;
  }

  .tt-app-section-head:not(:first-child) {
    margin-top: 26px;
  }

  .tt-app-section-head h3 {
    margin: 0;
    font-size: 17px;
  }

  .tt-app-section-head button {
    border: 0;
    background: transparent;
    color: #a1184a;
    font-size: 12px;
    text-decoration: underline;
  }

  .tt-app-facility-list li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 36px;
    align-items: center;
    overflow: hidden;
  }

  .tt-app-facility-list img,
  .tt-app-facility-list__placeholder {
    width: 58px;
    height: 58px;
    object-fit: cover;
    background: #eef1f3;
  }

  .tt-app-facility-list__placeholder {
    display: grid;
    place-items: center;
    color: #a51b4d;
    font-size: 24px;
  }

  .tt-app-facility-list a {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 8px 10px;
    color: #25292d;
    text-decoration: none;
  }

  .tt-app-facility-list strong,
  .tt-app-facility-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tt-app-facility-list span {
    color: #687078;
    font-size: 11px;
  }

  .tt-app-facility-list li > button {
    width: 34px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #70777d;
    font-size: 22px;
  }

  .tt-app-search label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
  }

  .tt-app-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tt-app-search input,
  .tt-app-search button {
    min-height: 48px;
    font: inherit;
  }

  .tt-app-search input {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #aeb6bc;
    border-radius: 9px 0 0 9px;
  }

  .tt-app-search button {
    padding: 0 18px;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: #c91f5d;
    color: #fff;
    font-weight: 700;
  }

  .tt-app-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
  }

  .tt-app-category-links a {
    padding: 12px 8px;
    border-radius: 9px;
    background: #f0f2f4;
    color: #282d31;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .tt-facility-actions {
    margin: 22px 12px;
    padding: 14px;
  }

  .tt-facility-submission-page {
    margin: 18px 10px 42px;
    padding: 18px 14px;
  }

  .tt-facility-submission-form > fieldset {
    padding: 15px 12px;
  }

  .tt-community-gallery {
    padding: 14px;
  }

  .tt-community-gallery > div {
    grid-template-columns: 1fr;
  }

  .tt-community-gallery img {
    height: auto;
    max-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-app-panel *,
  .tt-app-nav * {
    scroll-behavior: auto !important;
  }
}
