*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f5f7fb;
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 72px;
}

.app-header {
  display: flex;
  flex-direction: column;
  padding: 14px 0 10px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 20px;
  width: auto;
}

@media (max-width: 480px) {
  .logo-img {
    height: 24px;
  }
}

.header-menu-button {
  display: none; /* 햄버거 버튼 임시 숨김 */
}

.menu-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
}

.header-search {
  width: 100%;
}

.search-form {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 13px 44px 13px 18px;
  border-radius: 999px;
  border: none;
  background-color: #f1fbf9;
  font-size: 14px;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.search-input::placeholder {
  color: #6b7280;
}

.search-icon-button {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ff7f3f, #ff5b2c);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  position: relative;
}

.search-icon::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background-color: #fff;
  right: -4px;
  bottom: -2px;
  transform: rotate(40deg);
}

.app-main {
  flex: 1;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.primary-button.full {
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
}

.link-more {
  font-size: 12px;
  color: #9ca3af;
}

.section-today {
  padding-top: 12px;
  margin-bottom: 20px;
}

.section-title-main {
  font-size: 18px;
  font-weight: 700;
  margin-left: 2px;
  margin-bottom: 10px;
}

.today-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0;
  scroll-snap-type: x mandatory;
}

.today-card {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
}

.today-card-link {
  display: block;
}

.today-card-image {
  position: relative;
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.today-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}

.today-card-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.today-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.today-card-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
  line-height: 1.4;
}

.today-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.today-distance,
.today-rating {
  display: inline-flex;
  align-items: center;
}

.event-section {
  margin-top: 8px;
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.event-card {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.event-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
}

.event-main {
  flex: 1;
}

.event-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.event-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  margin-bottom: 4px;
}

.event-address {
  font-size: 12px;
  color: #6b7280;
}

.event-date {
  margin-top: 2px;
  font-size: 12px;
  color: #a5b4fc;
}

.event-meta {
  margin-left: 8px;
  font-size: 12px;
  color: #e5e7eb;
}

.event-price {
  font-weight: 600;
}

.empty-text {
  font-size: 13px;
  color: #6b7280;
  padding: 12px 0;
}

.section-nearby {
  margin-top: 18px;
}

.nearby-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.nearby-card {
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 12px;
}

.nearby-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nearby-thumb-wrapper {
  flex-shrink: 0;
}

.nearby-thumb {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 12px;
}

.nearby-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nearby-info {
  flex: 1;
  min-width: 0;
}

.nearby-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.nearby-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nearby-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 6px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0284c7;
}

.filter-bar {
  margin-bottom: 10px;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: #020617;
  color: #e5e7eb;
  font-size: 13px;
}

.input::placeholder {
  color: #6b7280;
}

.detail-page {
  margin: 0 -16px;
  padding-bottom: 120px;
  background-color: #ffffff;
}

.detail-top-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px 8px;
  background-color: #ffffff;
}

.detail-back-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background-color: #fff7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  cursor: pointer;
  color: #ff6b2c;
  margin-right: 8px;
}

.detail-back-icon {
  font-size: 18px;
}

.detail-top-title {
  font-size: 16px;
  font-weight: 500;
}

.detail-hero {
  width: 100%;
  height: 260px;
  background-color: #e5e7eb;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
}

.detail-sheet {
  padding: 16px 16px 24px;
}

.detail-basic {
  margin-bottom: 10px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-basic-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #4b5563;
  flex-wrap: wrap;
}

.detail-rating {
  color: #f59e0b;
}

.detail-dot {
  color: #d1d5db;
}

.detail-distance {
  color: #6b7280;
}

.detail-price {
  font-weight: 600;
  color: #ef4444;
}

.detail-chip-row {
  margin-top: 8px;
}

.detail-divider {
  margin: 12px -16px 8px;
  border: none;
  border-top: 1px solid #f3f4f6;
}

.detail-section {
  margin-top: 16px;
}

.detail-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-section-body {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-line;
}

.detail-address-text {
  color: #111827;
}

.detail-link {
  color: #0284c7;
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: 100%;
  max-width: 480px;
  padding: 8px 16px;
  display: flex;
  gap: 10px;
  z-index: 25;
}

.detail-bottom-button {
  flex: 1;
  padding: 12px 0;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.detail-bottom-button.primary {
  background: linear-gradient(135deg, #ff7f3f, #ff5b2c);
  color: #ffffff;
}

.detail-bottom-button.secondary {
  background-color: #ffffff;
  border: 1px solid #ff7f3f;
  color: #ff7f3f;
}

.detail-bottom-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.error-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fb;
}

.error-container {
  text-align: center;
}

.error-code {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.error-message {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  padding: 4px 0 6px;
  z-index: 20;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 11px;
  color: #9ca3af;
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item.is-active {
  color: #ff6b2c;
}

@media (min-width: 600px) {
  .app {
    max-width: 520px;
  }
}


