/* Shared mobile chrome for m.naver.com, m.search, m.place and m.booking. */

body {
  background: #fff;
  font-size: 14px;
}

.m-shell {
  max-width: 640px;
  margin: 0 auto;
}

/* ── m.naver.com header ───────────────────────────────────────── */
.mh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
}

.mh-left,
.mh-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mh-search-wrap {
  padding: 12px 16px 16px;
}

.mh-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.09);
}

.mh-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
}

.mh-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9f3ff, #e6e9ff);
  color: #2f6fed;
  font-size: 12px;
  font-weight: 800;
}

.mh-chips {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mh-chips::-webkit-scrollbar {
  display: none;
}

.mh-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #333;
}

.mh-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #444;
}

.mh-strip .sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.mh-strip .up {
  color: #e0342c;
}

.m-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 40px;
}

.m-feed li img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--fill);
}

.m-feed .fd-author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 12px;
  color: #555;
}

.m-feed .fd-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--chip);
}

.m-feed .fd-text {
  margin-top: 4px;
  font-size: 13px;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-ad {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.m-ad img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.m-ad b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.m-ad span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── m.search header ──────────────────────────────────────────── */
.ms-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.ms-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 8px 14px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--fill);
}

.ms-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
}

.ms-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c9c9c9;
}

.ms-tabs {
  display: flex;
  gap: 18px;
  padding: 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ms-tabs::-webkit-scrollbar {
  display: none;
}

.ms-tabs a {
  flex: 0 0 auto;
  padding: 10px 0;
  font-size: 15px;
  color: #767676;
  border-bottom: 2px solid transparent;
}

.ms-tabs a.on {
  color: var(--text-strong);
  font-weight: 700;
  border-bottom-color: #222;
}

.ms-body {
  padding-bottom: 40px;
}

.ms-block {
  padding: 16px;
  border-bottom: 8px solid var(--fill-soft);
}

/* Mobile footer */
.m-foot {
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.m-foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
