:root {
  color-scheme: light;
  --bg: #f2ede6;
  --bg-2: #e7dfd4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #141414;
  --muted: #6d645b;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.14);
  --accent: #101010;
  --accent-soft: #ebe4da;
  --accent-gold: #b08a55;
  --shadow: 0 22px 50px rgba(24, 18, 12, 0.10);
  --shadow-soft: 0 10px 26px rgba(24, 18, 12, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 44%),
    radial-gradient(circle at top right, rgba(176, 138, 85, 0.12), transparent 36%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 56%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
}

.app-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 16px 112px;
}

.hero {
  padding: 12px 4px 22px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-gold), #d7c1a0);
  box-shadow: 0 0 0 6px rgba(176, 138, 85, 0.12);
}

.hero-chip {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  max-width: 34rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 7px 11px;
}

.panel, .results, .message {
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 14px;
}

.field-label, .eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(20, 20, 20, 0.10);
  border-radius: 18px;
  padding: 17px 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

button, .secondary-button, .map-link {
  border: none;
  border-radius: 18px;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

button {
  background: linear-gradient(180deg, #181818, #0f0f0f);
  color: #fff;
  padding: 0 20px;
  min-height: 56px;
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.18);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
  opacity: 0.92;
}

.secondary-button {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #f7f2ea, #ece4d8);
  color: var(--text);
  min-height: 58px;
  padding: 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.floating-location-button {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  z-index: 60;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #121212, #090909);
  color: #fff;
  box-shadow: 0 14px 34px rgba(16, 16, 16, 0.25);
  min-height: 58px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.floating-location-button:hover {
  transform: translateX(-50%) translateY(-1px);
}

.floating-location-button:active {
  transform: translateX(-50%) translateY(1px);
}

.or-divider {
  text-align: center;
  color: var(--muted);
  margin: 18px 0;
  font-size: 13px;
}

.hint {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.suggestions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.suggestion-item, .suggestion-empty {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 20, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.suggestion-item {
  display: grid;
  gap: 4px;
}

.suggestion-main {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.suggestion-sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.results-header h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.result-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.hotel-card {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(160px, 220px);
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 249, 245, 0.98));
  box-shadow: var(--shadow-soft);
  align-items: stretch;
}

.rank {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f1e8db, #e7dbc9);
  font-weight: 800;
  color: #2a241d;
}

.hotel-main h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.address, .meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.meta-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
}

.meta-pill {
  color: var(--muted);
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid rgba(20, 20, 20, 0.06);
}

.badge {
  color: #2d2417;
  background: #f2e7d7;
  border: 1px solid rgba(176, 138, 85, 0.18);
  font-weight: 700;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hotel-visual {
  min-height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.04), rgba(24, 24, 24, 0.08));
  border: 1px solid rgba(20, 20, 20, 0.08);
  position: relative;
  display: grid;
  grid-template-rows: minmax(160px, 1fr) auto;
}

.hotel-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-photo.placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hotel-photo.placeholder span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.hotel-photo.placeholder small {
  font-size: 12px;
}

.hotel-visual-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 237, 0.98));
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.info-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 20, 20, 0.07);
}

a.info-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

a.info-card:hover {
  transform: translateY(-1px);
  border-color: rgba(176, 138, 85, 0.28);
  box-shadow: 0 10px 20px rgba(24, 18, 12, 0.08);
}

.info-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}

.info-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}

.message {
  color: var(--muted);
  font-size: 14px;
  border-left: 4px solid rgba(176, 138, 85, 0.7);
}

@media (max-width: 480px) {
  .app-shell {
    padding: 14px 12px 124px;
  }

  .search-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .hero {
    padding-bottom: 14px;
  }

  .hero-top {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .panel, .results, .message {
    border-radius: 24px;
    padding: 16px;
  }

  .hotel-card {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .rank {
    width: 40px;
    height: 40px;
  }

  .hotel-visual {
    grid-column: 1 / -1;
    min-height: 132px;
  }

  .hotel-main {
    grid-column: 2;
  }

  .hotel-visual-info {
    grid-template-columns: 1fr;
  }
}
