:root {
  --ink: #342b27;
  --muted: #756a64;
  --cream: #fffaf0;
  --paper: #fff;
  --line: #eadfce;
  --orange: #e67e3c;
  --orange-dark: #b84a2f;
  --green: #53765d;
  --shadow: 0 14px 38px rgba(78, 53, 36, 0.11);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fffdf9;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: #fff;
  padding: 12px 18px;
  border: 2px solid var(--orange-dark);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand-mark {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: #fff2da;
  border-radius: 15px;
}
.brand-mark svg {
  width: 39px;
  height: 39px;
  fill: var(--orange);
}

.brand-logo {
    display: block;
    width: 49px;
    height: 49px;
    object-fit: contain;
}

.brand-mark .brand-door {
  fill: var(--cream);
}
.brand-mark .brand-heart {
  fill: var(--orange-dark);
}
.brand strong {
  display: block;
  font-size: 1.27rem;
  letter-spacing: -0.04em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.main-nav {
  display: flex;
  align-self: stretch;
}
.nav-item {
  position: relative;
  display: flex;
}
.nav-link {
  min-width: 126px;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.nav-link span {
  margin-left: 5px;
  color: var(--orange-dark);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--orange-dark);
  background: #fff6e8;
}
.dropdown {
  position: absolute;
  top: 70px;
  left: 0;
  min-width: 158px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s;
}
.dropdown-right {
  left: auto;
  right: 0;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #544741;
}
.dropdown a:hover,
.dropdown a:focus {
  background: #fff1d7;
  color: var(--orange-dark);
}
.search-section {
  background: linear-gradient(110deg, #fff4df 0%, #fffaf1 58%, #f7ead3 100%);
  border-bottom: 1px solid #ead8bd;
}
.search-inner {
  width: min(1040px, calc(100% - 40px));
  margin: auto;
  padding: 45px 0 40px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.search-section h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.055em;
}
.search-form {
  background: #fff;
  border: 1px solid #eedfc8;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(116, 73, 37, 0.12);
}
.primary-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 2px solid var(--orange-dark);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.search-icon {
  padding-left: 18px;
  color: var(--orange-dark);
  font-size: 1.7rem;
  line-height: 1;
}
.primary-search input {
  min-width: 0;
  height: 62px;
  border: 0;
  padding: 0 14px;
  font-size: 1.05rem;
  color: var(--ink);
}
.primary-search input:focus {
  outline: 0;
}
.search-button {
  align-self: stretch;
  border: 0;
  background: var(--orange-dark);
  color: #fff;
  padding: 0 32px;
  font-weight: 800;
  cursor: pointer;
}
.search-button:hover {
  background: #963923;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.filter-field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
.filter-field select,
.sort-field select {
  width: 100%;
  height: 49px;
  padding: 0 38px 0 13px;
  border: 1px solid #d8c9b6;
  border-radius: 9px;
  background: #fffaf1;
  color: var(--ink);
  cursor: pointer;
}
.filter-field select:disabled {
  color: #8a7e76;
  background: #f3eee7;
  cursor: not-allowed;
  opacity: 1;
}
.service-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.service-filter legend {
  float: left;
  margin-right: 17px;
  padding: 8px 0;
  font-weight: 800;
}
.service-filter label {
  cursor: pointer;
}
.service-filter input {
  position: absolute;
  opacity: 0;
}
.service-filter span {
  display: block;
  padding: 8px 14px;
  border: 1px solid #ddcdb9;
  border-radius: 999px;
  background: #fff;
  color: #5b504a;
  font-weight: 600;
}
.service-filter input:checked + span {
  border-color: var(--orange-dark);
  background: #fff0dc;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px var(--orange-dark);
}
.service-filter input:focus-visible + span {
  outline: 3px solid rgba(184, 74, 47, 0.25);
}
.results-area {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 44px 0 78px;
}
.results-heading {
  margin-bottom: 24px;
  text-align: center;
}
.results-kicker {
  margin: 0 0 3px;
  color: var(--orange-dark);
  font-weight: 800;
}
.results-heading h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: -0.045em;
}
.results-heading h1 span {
  color: var(--orange-dark);
}
.result-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.result-summary strong {
  color: var(--orange-dark);
  font-size: 1.3rem;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.condition-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.condition-chip {
  padding: 7px 12px;
  border: 1px solid #e0c9ad;
  border-radius: 999px;
  background: #fff5e5;
  color: #6a4937;
  font-size: 0.9rem;
  font-weight: 700;
}
.sort-field {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-weight: 700;
}
.sort-field select {
  width: 145px;
  background: #fff;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.care-card {
  display: flex;
  min-width: 0;
  min-height: 294px;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 6px 22px rgba(75, 51, 35, 0.06);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.care-card:hover {
  transform: translateY(-3px);
  border-color: #d3a879;
  box-shadow: var(--shadow);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.facility-type,
.grade {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}
.facility-type {
  overflow: hidden;
  background: #f3eee7;
  color: #665b54;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grade-a {
  background: #e4f1e7;
  color: #396244;
}
.grade-b {
  background: #fff0ca;
  color: #7d5814;
}
.grade-c {
  background: #f4e5db;
  color: #8b4d32;
}
.care-home-name {
  margin: 16px 0 5px;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.address {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.care-info {
  margin: 16px 0 18px;
  padding: 13px 0;
  border-top: 1px solid #eee5da;
  border-bottom: 1px solid #eee5da;
}
.care-info div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.care-info div + div {
  margin-top: 5px;
}
.care-info dt {
  color: var(--muted);
  font-size: 0.86rem;
}
.care-info dd {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
}
.care-info dd strong {
  color: var(--orange-dark);
}
.detail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 13px;
  border-radius: 9px;
  background: #4b3930;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.detail-link:hover,
.detail-link:focus-visible {
  background: var(--orange-dark);
}
.detail-link span {
  font-size: 1.2rem;
}
.empty-result {
  margin: 0;
  padding: 70px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
}
.empty-result span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 42px;
}
.page-button {
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #d8c9b6;
  border-radius: 9px;
  background: #fff;
  color: #544741;
  font-weight: 700;
  cursor: pointer;
}
.page-button:hover:not(:disabled) {
  border-color: var(--orange-dark);
  color: var(--orange-dark);
  background: #fff8ed;
}
.page-button.is-current {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
  color: #fff;
}
.page-arrow {
  font-size: 1.35rem;
}
.page-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.page-ellipsis {
  padding: 0 3px;
  color: var(--muted);
}
.site-footer {
  background: #3c302b;
  color: #ede6df;
}
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 55px;
}
.footer-brand strong {
  font-size: 1.3rem;
  color: #fff;
}
.footer-brand p {
  margin: 7px 0 0;
  color: #cbbfb7;
}
.footer-info nav {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-info nav a {
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.footer-info address {
  font-style: normal;
  color: #d0c5be;
  font-size: 0.88rem;
  line-height: 1.9;
}
.notice {
  margin: 15px 0 3px;
  color: #dbc6b8;
  font-size: 0.8rem;
}
.copyright {
  margin: 0;
  color: #9f928a;
  font-size: 0.8rem;
}
@media (max-width: 900px) {
  .header-inner {
    min-height: 74px;
  }
  .main-nav {
    display: none;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
@media (max-width: 620px) {
  .header-inner,
  .search-inner,
  .results-area,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }
  .brand-mark {
    width: 43px;
    height: 43px;
  }
  .brand strong {
    font-size: 1.08rem;
  }
  .search-inner {
    padding: 34px 0 30px;
  }
  .search-section h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  .search-form {
    padding: 14px;
    border-radius: 15px;
  }
  .primary-search {
    grid-template-columns: auto 1fr;
  }
  .search-button {
    grid-column: 1/-1;
    height: 52px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .service-filter {
    display: grid;
  }
  .service-filter legend {
    float: none;
    margin: 0;
    padding-bottom: 3px;
  }
  .results-area {
    padding-top: 30px;
  }
  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .sort-field {
    width: 100%;
    justify-content: space-between;
  }
  .sort-field select {
    width: 150px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .care-card {
    min-height: 0;
  }
  .address {
    min-height: 0;
  }
  .pagination {
    gap: 4px;
  }
  .page-button {
    min-width: 36px;
    height: 39px;
    padding: 0 8px;
  }
  .pagination .page-button:nth-of-type(5),
  .pagination .page-button:nth-of-type(6),
  .page-ellipsis {
    display: none;
  }
  .footer-info nav {
    flex-wrap: wrap;
    gap: 9px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .care-card:hover {
    transform: none;
  }
}
.condition-chip:empty {
  display: none;
}
