:root {
  --background: #edf6f4;
  --foreground: #162824;
  --mint: #62c9bd;
  --mint-dark: #2e918a;
  --mint-soft: #e4f6f3;
  --line: #e8efed;
  --muted: #71837f;
  --danger: #ef4056;
  --shadow: 0 18px 48px rgba(32, 88, 80, 0.14);
}

#app {
  height: calc(100% - 44px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 22% 12%, rgba(98, 201, 189, 0.22), transparent 34%),
    linear-gradient(135deg, #f4fbfa 0%, #edf6f4 55%, #f9fbfa 100%);
  color: var(--foreground);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone {
  position: relative;
  width: min(100%, 390px);
  height: min(850px, calc(100vh - 24px));
  min-height: 740px;
  background: #fff;
  border: 1px solid rgba(22, 40, 36, 0.08);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-bar {
  height: 44px;
  padding: 14px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #101f1c;
}

.screen {
  height: calc(100% - 44px);
  padding: 18px 22px 96px;
}

.scrollable {
  overflow-y: auto;
  scrollbar-width: none;
}

.scrollable::-webkit-scrollbar {
  display: none;
}

.brand-row,
.top-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 24px;
}

.brand-row h1,
.top-title h1,
.profile-screen h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-row p,
.profile-screen p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.icon-button,
.top-title button,
.card-actions button,
.bottom-nav button {
  border: 0;
  background: transparent;
}

.icon-button {
  margin-left: auto;
  width: 48px;
  height: 48px;
  color: var(--mint-dark);
  font-size: 22px;
}

.hero-card {
  min-height: 166px;
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #54c7bb, #8edbd2);
  color: white;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(62, 168, 158, 0.22);
}

.hero-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.45;
}

.hero-card button {
  margin-top: 16px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.care-illustration {
  position: relative;
  width: 128px;
  height: 132px;
  align-self: flex-end;
}

.person {
  position: absolute;
  bottom: 0;
  border-radius: 48% 48% 18px 18px;
  box-shadow: inset 0 -10px rgba(0, 0, 0, 0.06);
}

.person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #ffd9bd;
  box-shadow: 0 -10px 0 #5d4b42 inset;
}

.elder {
  left: 12px;
  width: 58px;
  height: 84px;
  background: #f4b7a2;
}

.helper {
  right: 2px;
  width: 62px;
  height: 110px;
  background: #fff3e5;
}

.search-box,
.input-wrap {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(36, 70, 65, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #8a9b97;
}

.search-box {
  text-align: left;
}

.search-box b,
.input-wrap span {
  color: var(--mint-dark);
  font-size: 22px;
}

.input-wrap {
  margin-top: 0;
  background: #f8fbfa;
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.quick-grid button {
  min-height: 78px;
  border: 0;
  background: #fff;
  color: var(--foreground);
  display: grid;
  place-items: center;
  gap: 8px;
}

.quick-grid span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.quick-grid strong {
  font-size: 12px;
}

.menu-card,
.guide-banner,
.facility-card,
.favorite-row,
.info-list,
.notice-box {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(31, 72, 67, 0.07);
}

.menu-card {
  overflow: hidden;
}

.menu-card button {
  width: 100%;
  min-height: 70px;
  border: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.menu-card button + button {
  border-top: 1px solid var(--line);
}

.menu-card span,
.guide-banner span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-weight: 900;
}

.menu-card strong,
.guide-banner strong,
.mini-list h2 {
  font-size: 15px;
  font-weight: 900;
}

.menu-card p,
.guide-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.menu-card em {
  color: #b7c4c1;
  font-style: normal;
  font-size: 24px;
}

.guide-banner {
  margin-top: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eefaf8;
}

.mini-list {
  margin-top: 24px;
}

.mini-list h2 {
  margin: 0 0 12px;
}

.mini-row {
  width: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px 0;
}

.mini-row img,
.favorite-row img,
.facility-main img {
  object-fit: cover;
  background: var(--mint-soft);
}

.mini-row img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.mini-row p,
.favorite-row p,
.facility-main p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.top-title {
  justify-content: space-between;
}

.top-title button {
  min-width: 48px;
  min-height: 48px;
  color: var(--mint-dark);
  font-weight: 900;
}

.filter-button {
  font-size: 13px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
}

.category-tabs button {
  border: 0;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #f3f7f6;
  color: #647772;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.category-tabs button.active {
  background: var(--mint);
  color: white;
}

.category-tabs.compact {
  padding-top: 4px;
}

.map-preview {
  position: relative;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(35deg, transparent 47%, rgba(222, 201, 168, 0.55) 48% 50%, transparent 51%),
    linear-gradient(125deg, transparent 44%, rgba(196, 224, 208, 0.8) 45% 48%, transparent 49%),
    #eef3e7;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
}

.pin,
.current-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--mint);
  box-shadow: 0 6px 12px rgba(44, 134, 127, 0.22);
  transform: translate(-50%, -50%);
}

.current-dot {
  left: 50%;
  top: 50%;
  background: #73b8ff;
  outline: 18px solid rgba(115, 184, 255, 0.2);
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
  font-size: 13px;
}

.result-head strong {
  font-size: 15px;
}

.result-head span {
  color: var(--muted);
}

.facility-list,
.favorite-list {
  display: grid;
  gap: 12px;
}

.facility-card {
  position: relative;
  padding: 12px;
}

.facility-main {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  text-align: left;
  padding: 0 32px 0 0;
}

.facility-main img {
  width: 88px;
  height: 88px;
  border-radius: 15px;
}

.facility-main strong,
.favorite-row strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.rating {
  color: #f0aa24;
  font-size: 12px;
  font-weight: 900;
}

.rating em {
  color: #566763;
  font-style: normal;
  margin-left: 6px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag-row span {
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-size: 10px;
  font-weight: 800;
}

.card-actions {
  position: absolute;
  top: 12px;
  right: 10px;
  display: grid;
  gap: 8px;
}

.card-actions button {
  width: 36px;
  height: 36px;
  color: var(--danger);
  font-size: 19px;
}

.detail-screen {
  padding: 0 0 96px;
}

.detail-image {
  position: relative;
  height: 236px;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-button,
.share-button,
.heart-button {
  position: absolute;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #17312d;
  font-size: 22px;
  font-weight: 900;
}

.back-button {
  left: 16px;
}

.share-button {
  right: 68px;
}

.heart-button {
  right: 16px;
  color: var(--danger);
}

.photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 12px;
}

.detail-content {
  padding: 20px 22px;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-title h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.detail-title span {
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta b {
  color: #f0aa24;
  margin-left: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.action-grid button {
  min-height: 64px;
  border: 0;
  border-radius: 16px;
  background: #f8fbfa;
  color: var(--mint-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.action-grid button:disabled {
  color: #9daaa7;
}

.action-grid span {
  display: block;
  color: #465853;
  font-size: 11px;
}

.section-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.section-tabs button {
  border: 0;
  background: transparent;
  min-height: 48px;
  white-space: nowrap;
  color: #647772;
  font-size: 13px;
  font-weight: 900;
}

.section-tabs button.active {
  color: var(--foreground);
  box-shadow: inset 0 -2px 0 var(--mint-dark);
}

.info-list {
  margin-top: 16px;
  padding: 12px 16px;
  box-shadow: none;
}

.info-list div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 10px;
}

.info-list span {
  color: #61736f;
  font-size: 13px;
}

.info-list strong {
  font-size: 13px;
  font-weight: 800;
}

.notice-box {
  margin-top: 14px;
  padding: 14px;
  color: #60736f;
  font-size: 12px;
  line-height: 1.55;
  background: #f8fbfa;
  box-shadow: none;
}

.sticky-call {
  position: sticky;
  bottom: 12px;
  padding: 0 22px 18px;
}

.sticky-call button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: #2f8f89;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.sticky-call button:disabled {
  background: #b9c8c5;
}

.favorite-row {
  width: 100%;
  border: 0;
  min-height: 96px;
  padding: 12px;
  display: grid;
  grid-template-columns: 78px 1fr 40px;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.favorite-row > img {
  width: 78px;
  height: 78px;
  border-radius: 15px;
}

.favorite-row span {
  color: #f0aa24;
  font-size: 12px;
  font-weight: 900;
}

.favorite-row > button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 23px;
  min-width: 40px;
  min-height: 48px;
}

.profile-screen {
  padding-top: 40px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  padding: 8px 14px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 5;
}

.bottom-nav button {
  min-height: 56px;
  border-radius: 14px;
  color: #9aa8a5;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  gap: 2px;
}

.bottom-nav span {
  font-size: 20px;
}

.bottom-nav button.active {
  color: var(--mint-dark);
}

.compare-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px;
  min-height: 54px;
  border-radius: 16px;
  background: #143834;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  z-index: 6;
  box-shadow: 0 14px 30px rgba(20, 56, 52, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.compare-bar button {
  border: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: white;
  color: #143834;
  font-weight: 900;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}
