/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080808;
  --bg2:       #0f0f0f;
  --bg3:       #161616;
  --gold:      #c9a962;
  --gold-dim:  rgba(201,169,98,0.12);
  --gold-border: rgba(201,169,98,0.28);
  --white:     #ffffff;
  --muted:     rgba(255,255,255,0.45);
  --muted2:    rgba(255,255,255,0.22);
  --border:    rgba(255,255,255,0.08);
  --ocean:     #1a6b8a;
  --ocean-dim: rgba(26,107,138,0.15);
  --radius:    14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--bg);
  color: var(--white);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Atmosphere ─────────────────────────────────────────── */
.atmo {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(201,169,98,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(26,107,138,0.04) 0%, transparent 55%);
}

/* ── Typography ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600&display=swap');

.display {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.gold  { color: var(--gold); }
.muted { color: var(--muted); }
.ocean { color: var(--ocean); }

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(8,8,8,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.nav-logo span { color: var(--muted); font-size: 12px; letter-spacing: 0.05em; margin-left: 8px; font-family: Inter, sans-serif; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { background: var(--gold); color: #000; }

.nav-cta {
  padding: 8px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: #000; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1545569341-9eb8b30979d9?w=1600&q=85') center/cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.4) 50%, rgba(8,8,8,0.2) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 900px;
  padding: 0 48px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 40px;
}

/* ── Search bar ─────────────────────────────────────────── */
.search-bar {
  display: flex; gap: 0; align-items: stretch;
  background: rgba(15,15,15,0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  max-width: 560px;
  backdrop-filter: blur(10px);
}

.search-select {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 14px;
  padding: 0 20px;
  cursor: pointer;
  outline: none;
  border-right: 1px solid var(--border);
  min-width: 120px;
}
.search-select option { background: #111; }

.search-btn {
  padding: 10px 28px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.search-btn:hover { opacity: 0.88; }

/* ── Stats strip ────────────────────────────────────────── */
.stats-strip {
  display: flex; gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.stat-item {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.08em; }

/* ── Section ────────────────────────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 80px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.02em;
}

.see-all {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.see-all:hover { color: var(--gold); }

/* ── Property Grid ──────────────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.property-grid.two-col { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .property-grid { grid-template-columns: 1fr; } }

/* ── Property Card ──────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--gold-border);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-image img { transform: scale(1.06); }

.card-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px;
  background: rgba(8,8,8,0.8);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.card-region {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px;
  background: rgba(8,8,8,0.8);
  border-radius: 999px;
  font-size: 10px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 20px 22px 24px;
}

.card-prefecture {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.card-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-name-en {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}

.tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-price {
  display: flex; align-items: baseline; gap: 4px;
}
.price-num {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  color: var(--gold);
}
.price-unit { font-size: 11px; color: var(--muted); }

.card-arrow {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.card:hover .card-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* ── Region Tabs ────────────────────────────────────────── */
.region-tabs {
  display: flex; gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.tab:hover { border-color: var(--gold-border); color: var(--gold); }
.tab.active { background: var(--gold); border-color: var(--gold); color: #000; }
.tab.ocean-tab.active { background: var(--ocean); border-color: var(--ocean); color: #fff; }

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-label { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* ── Property Detail ────────────────────────────────────── */
.detail-hero {
  position: relative;
  height: 65svh; min-height: 400px;
  overflow: hidden;
}
.detail-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.1) 60%);
}

.detail-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 0 48px 48px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px;
}

@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-description {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.detail-tag {
  padding: 5px 14px;
  background: rgba(201,169,98,0.08);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gold);
}

/* ── Book Panel ─────────────────────────────────────────── */
.book-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 88px;
  box-shadow: inset 0 1px 0 rgba(201,169,98,0.1);
}

.book-panel-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 8px;
}
.book-price-num {
  font-family: 'Anton', sans-serif;
  font-size: 2.4rem;
  color: var(--gold);
}
.book-price-label { font-size: 13px; color: var(--muted); }

.book-divider {
  height: 1px; background: var(--border);
  margin: 20px 0;
}

.book-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.book-meta-row { display: flex; justify-content: space-between; font-size: 13px; }
.book-meta-key { color: var(--muted); }
.book-meta-val { font-weight: 500; }

.btn-book {
  display: block; width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-book:hover { opacity: 0.9; transform: translateY(-1px); }

.book-note {
  font-size: 11px;
  color: var(--muted2);
  text-align: center;
  margin-top: 12px;
}

/* ── Related ────────────────────────────────────────────── */
.related-section {
  border-top: 1px solid var(--border);
  padding: 64px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  color: var(--muted);
  font-size: 13px;
  position: relative; z-index: 1;
}

.footer-logo {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ── 404 ────────────────────────────────────────────────── */
.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100svh;
  text-align: center; gap: 16px;
}
.not-found-num {
  font-family: 'Anton', sans-serif;
  font-size: 8rem; color: var(--gold); opacity: 0.3; line-height: 1;
}

/* ── Utilities ──────────────────────────────────────────── */
.pt-nav { padding-top: 64px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--muted);
}
.empty-state .display { font-size: 3rem; opacity: 0.2; margin-bottom: 16px; }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-content { padding: 0 24px; }
  .section { padding: 56px 24px; }
  .detail-hero-content { padding: 0 24px 32px; }
  .detail-layout { padding: 40px 24px; }
  .related-section { padding: 48px 24px; }
  footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .stat-item { padding: 20px 16px; }
  .search-bar { border-radius: 16px; flex-direction: column; max-width: 100%; }
  .search-select { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; }
}
