
:root {
  --font-noto-sans: "Noto Sans JP";
  --font-noto-serif: "Noto Serif JP";
  --font-geist-sans: "Noto Sans JP";
  --navy: #0d2945;
  --navy-deep: #071d31;
  --teal: #137a78;
  --teal-dark: #0b6463;
  --ivory: #f7f3eb;
  --paper: #fffdf9;
  --stone: #e8e1d7;
  --ink: #10283f;
  --muted: #66717a;
  --gold: #b69352;
  --line: rgba(16, 40, 63, 0.14);
  --shadow: 0 20px 60px rgba(14, 37, 57, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-noto-sans), "Hiragino Kaku Gothic ProN", sans-serif; }
button, select, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.public-site { min-height: 100vh; overflow: hidden; background: var(--ivory); }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 82px); background: rgba(255, 253, 249, 0.97); border-bottom: 1px solid rgba(14, 43, 68, 0.08); position: relative; z-index: 20; }
.wordmark { display: inline-flex; flex-direction: column; gap: 5px; color: var(--navy); font-family: var(--font-noto-serif), "Yu Mincho", serif; font-size: 21px; font-weight: 600; letter-spacing: .04em; line-height: 1.08; }
.wordmark span { font-size: 9px; font-weight: 500; letter-spacing: .06em; color: #747d84; }
.site-nav { height: 100%; display: flex; align-items: center; gap: clamp(25px, 3.5vw, 52px); font-size: 14px; font-weight: 580; }
.site-nav a { height: 100%; display: inline-flex; align-items: center; position: relative; white-space: nowrap; transition: color .2s ease; }
.site-nav a:hover { color: var(--teal); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); }
.favorite-count { min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--navy); color: white; font-size: 10px; }
.mobile-menu-button { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.demo-notice { min-height: 38px; padding: 10px 20px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 19; background: #b69352; color: white; font-size: 11px; font-weight: 650; letter-spacing: .02em; text-align: center; }

.hero { min-height: 580px; position: relative; display: flex; align-items: center; background-image: linear-gradient(90deg, rgba(247,243,235,.2) 0%, rgba(247,243,235,0) 45%), url("/images/hero-residence.png"); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,249,.38) 0%, rgba(255,253,249,0) 42%, rgba(7,29,49,.04) 100%); pointer-events: none; }
.hero-copy { width: min(50%, 660px); padding-left: clamp(32px, 7vw, 112px); position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; padding-left: 10px; border-left: 2px solid var(--gold); color: var(--teal-dark); font-family: var(--font-noto-sans), sans-serif; font-size: 12px; font-weight: 650; letter-spacing: .06em; }
.hero h1 { margin: 0; color: var(--navy); font-family: var(--font-noto-serif), "Yu Mincho", serif; font-size: clamp(40px, 3.6vw, 60px); font-weight: 600; line-height: 1.55; letter-spacing: .035em; }
.hero h1 span { white-space: nowrap; }
.gold-line { width: 38px; height: 1px; margin: 24px 0 21px; background: var(--gold); }
.hero-lead { margin: 0; color: #344454; font-family: var(--font-noto-sans), sans-serif; font-size: 14px; line-height: 2; letter-spacing: .015em; }

.search-wrap { width: min(1180px, calc(100% - 48px)); margin: -46px auto 0; position: relative; z-index: 5; }
.search-panel { min-height: 128px; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr 1fr 1.05fr; align-items: end; gap: 18px; border: 1px solid rgba(16,40,63,.12); border-radius: 5px; background: rgba(255,253,249,.98); box-shadow: 0 12px 34px rgba(14,37,57,.09); }
.search-panel label { display: grid; gap: 9px; }
.search-panel label > span { color: var(--ink); font-size: 13px; font-weight: 700; }
.search-panel select { width: 100%; height: 48px; padding: 0 39px 0 14px; border: 1px solid #cfd5d8; border-radius: 3px; background: #fff; color: #56616b; font-size: 13px; outline: none; cursor: pointer; transition: border .2s, box-shadow .2s; }
.search-panel select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,122,120,.12); }
.search-button { height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 3px; background: var(--navy); color: white; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: background .2s; }
.search-button:hover { background: var(--teal-dark); }
.discovery-links { width: 88%; margin: 16px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.discovery-links button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(16,40,63,.13); border-radius: 4px; background: rgba(255,253,249,.8); font-size: 13px; font-weight: 650; cursor: pointer; transition: border .2s, color .2s, background .2s; }
.discovery-links button:hover { border-color: rgba(19,122,120,.35); color: var(--teal); background: #fff; }

.properties-section { width: min(1180px, calc(100% - 48px)); margin: 94px auto 110px; scroll-margin-top: 30px; }
.section-heading { margin-bottom: 31px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-family: var(--font-noto-serif), serif; font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: .035em; }
.property-note { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.text-link, .card-link { display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.text-link { padding: 10px 0; border-bottom: 1px solid var(--line); }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card { overflow: hidden; border: 1px solid rgba(16,40,63,.13); border-radius: 4px; background: var(--paper); box-shadow: 0 6px 18px rgba(15,41,63,.045); transition: border-color .2s, box-shadow .2s; }
.property-card:hover { border-color: rgba(19,122,120,.35); box-shadow: 0 10px 24px rgba(15,41,63,.08); }
.property-image { aspect-ratio: 3/2; position: relative; overflow: hidden; background: #ddd; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.property-card:hover .property-image img { transform: scale(1.035); }
.sample-badge { position: absolute; left: 14px; bottom: 13px; padding: 6px 10px; border-radius: 2px; background: rgba(7,29,49,.9); color: white; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.heart-button { width: 38px; height: 38px; display: grid; place-items: center; position: absolute; right: 13px; top: 13px; border: 0; border-radius: 50%; background: rgba(255,255,255,.93); color: var(--navy); cursor: pointer; box-shadow: 0 5px 18px rgba(13,41,69,.15); transition: color .2s, transform .2s; }
.heart-button:hover { transform: scale(1.06); }
.heart-button.selected { color: #b65258; }
.heart-button.selected svg { fill: currentColor; }
.property-body { padding: 20px 19px 18px; }
.property-meta-top { display: flex; align-items: center; justify-content: space-between; color: #7a8187; font-size: 10px; letter-spacing: .04em; }
.property-meta-top span:first-child { color: var(--teal); font-weight: 720; }
.property-body h3 { margin: 11px 0 7px; font-family: var(--font-noto-sans), sans-serif; font-size: 19px; font-weight: 650; letter-spacing: .01em; }
.property-price { margin: 0 0 17px; color: var(--teal); font-family: var(--font-geist-sans), sans-serif; font-size: 21px; font-weight: 720; }
.property-price small { font-size: 10px; font-weight: 500; }
.property-body dl { margin: 0 0 17px; padding: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-body dl div { text-align: center; border-right: 1px solid var(--line); }
.property-body dl div:last-child { border: 0; }
.property-body dt { margin-bottom: 5px; color: #868d92; font-size: 9px; }
.property-body dd { margin: 0; font-size: 12px; font-weight: 650; }
.card-link { margin-left: auto; color: var(--navy); padding: 4px 0; }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 18px; border: 1px dashed rgba(16,40,63,.2); border-radius: 18px; background: rgba(255,255,255,.5); }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state button { border: 0; border-bottom: 1px solid var(--navy); background: transparent; cursor: pointer; }

.service-section { padding: 86px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; background: #ece7de; }
.service-copy h2 { margin: 0; font-family: var(--font-noto-serif), serif; font-size: clamp(34px, 3.7vw, 52px); font-weight: 600; line-height: 1.65; letter-spacing: .03em; }
.service-text { padding-bottom: 10px; }
.service-text p { max-width: 500px; margin: 0 0 29px; color: #596670; font-family: var(--font-noto-sans), sans-serif; font-size: 14px; line-height: 2; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.service-cta { min-width: 210px; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--navy); color: white; font-weight: 650; }
.service-phone { color: var(--navy); font-family: var(--font-geist-sans), sans-serif; font-size: 17px; font-weight: 750; border-bottom: 1px solid rgba(13,41,69,.35); }
.service-features { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 18px; }
.service-features article { min-height: 190px; padding: 27px; border: 1px solid rgba(16,40,63,.1); background: rgba(255,253,249,.72); }
.service-features span { color: var(--gold); font-family: var(--font-geist-sans), sans-serif; font-size: 10px; font-weight: 750; letter-spacing: .18em; }
.service-features h3 { margin: 20px 0 10px; font-family: var(--font-noto-serif), serif; font-size: 20px; font-weight: 600; letter-spacing: .025em; }
.service-features p { margin: 0; color: #596670; font-size: 12px; line-height: 1.85; }
.site-footer { min-height: 190px; padding: 45px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; background: var(--navy-deep); color: rgba(255,255,255,.72); }
.wordmark.inverse { color: white; }
.site-footer > p { margin: 0; text-align: right; font-size: 12px; }
.site-footer > div { grid-column: 1/-1; padding-top: 25px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }
.site-footer a:hover { color: white; }

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .mobile-menu-button { display: grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 72px; height: auto; padding: 18px 24px 26px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 18px 35px rgba(7,29,49,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .site-nav a.active::after { display: none; }
  .hero { min-height: 570px; background-position: 58% center; }
  .hero::after { background: linear-gradient(90deg, rgba(255,253,249,.75) 0%, rgba(255,253,249,.36) 52%, rgba(255,253,249,0) 100%); }
  .hero-copy { width: 70%; padding-left: 7vw; }
  .search-panel { grid-template-columns: repeat(2, 1fr); }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .hero { min-height: 520px; align-items: flex-start; padding-top: 74px; background-position: 68% center; }
  .hero::after { background: linear-gradient(90deg, rgba(255,253,249,.80) 0%, rgba(255,253,249,.44) 58%, rgba(255,253,249,.05) 100%); }
  .hero-copy { width: 88%; padding-left: 24px; }
  .hero h1 { font-size: 37px; line-height: 1.5; }
  .hero-lead { font-size: 12px; }
  .search-wrap { width: calc(100% - 28px); margin-top: 18px; }
  .search-panel { padding: 20px; grid-template-columns: 1fr; gap: 14px; border-radius: 4px; }
  .discovery-links { width: 100%; grid-template-columns: 1fr; gap: 9px; }
  .discovery-links button { min-height: 44px; }
  .properties-section { width: calc(100% - 28px); margin-top: 70px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 30px; }
  .section-heading .eyebrow { font-size: 9px; }
  .property-grid { grid-template-columns: 1fr; }
  .service-section { padding: 68px 24px; grid-template-columns: 1fr; gap: 38px; }
  .service-features { grid-template-columns: 1fr; padding-top: 0; }
  .service-copy h2 { font-size: 37px; }
  .site-footer { grid-template-columns: 1fr; padding: 40px 24px; }
  .site-footer > p { text-align: left; }
}

@media (max-width: 430px) {
  .hero h1 span { white-space: normal; }
  .hero h1 { font-size: 34px; }
}

/* Admin */
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 20%, #f8f4ec 0%, #e8e1d7 72%); }
.admin-login-card { width: min(470px, 100%); padding: 52px; border: 1px solid rgba(16,40,63,.1); border-radius: 22px; background: rgba(255,253,249,.96); box-shadow: 0 30px 80px rgba(12,35,55,.14); text-align: center; }
.admin-login-card .wordmark { margin-bottom: 50px; text-align: left; }
.admin-login-kicker { margin: 0 0 13px; color: var(--gold); font-family: var(--font-geist-sans), sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.admin-login-card h1 { margin: 0 0 16px; font-family: var(--font-noto-serif), serif; font-size: 32px; font-weight: 550; }
.admin-login-card > p:not(.admin-login-kicker) { margin: 0 auto 30px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.admin-login-button { height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--navy); color: white; font-weight: 700; }
.admin-back-link { display: inline-block; margin-top: 22px; color: #798189; font-size: 12px; border-bottom: 1px solid #b8bdc0; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: #f4f6f6; color: var(--ink); }
.admin-sidebar { height: 100vh; position: sticky; top: 0; padding: 27px 18px 20px; display: flex; flex-direction: column; background: var(--navy-deep); color: rgba(255,255,255,.72); }
.admin-brand { min-height: 57px; padding: 0 9px; display: flex; align-items: center; gap: 11px; color: white; }
.admin-brand > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; font-family: var(--font-geist-sans), sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.admin-brand strong { display: flex; flex-direction: column; font-family: var(--font-geist-sans), sans-serif; font-size: 13px; letter-spacing: .09em; }
.admin-brand small { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 7px; letter-spacing: .19em; }
.admin-sidebar nav { margin-top: 48px; display: grid; gap: 7px; }
.admin-sidebar nav a { min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 13px; border-radius: 8px; font-size: 12px; font-weight: 600; transition: background .2s, color .2s; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.06); color: white; }
.admin-sidebar nav a.active { background: rgba(31,144,140,.2); color: #75d2ce; }
.admin-user { margin-top: auto; padding: 15px 8px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.09); }
.admin-user > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--teal); color: white; font-size: 12px; font-weight: 700; }
.admin-user div { min-width: 0; display: flex; flex-direction: column; }
.admin-user strong { overflow: hidden; color: white; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user small { max-width: 145px; overflow: hidden; margin-top: 3px; color: rgba(255,255,255,.45); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-signout { min-height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.45); font-size: 10px; }
.admin-signout:hover { color: white; }

.admin-main { min-width: 0; }
.admin-topbar { height: 92px; padding: 0 clamp(24px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e6e7; background: rgba(255,255,255,.92); }
.admin-topbar p, .saved-properties header p { margin: 0 0 4px; color: #8b959c; font-family: var(--font-geist-sans), sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.admin-topbar h1 { margin: 0; font-family: var(--font-noto-serif), serif; font-size: 27px; font-weight: 600; }
.admin-topbar > a { padding: 9px 0; border-bottom: 1px solid #8e999f; color: #5b6972; font-size: 11px; }
.admin-content { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 70px; }
.admin-steps { width: min(720px, 92%); margin: 0 auto 33px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; }
.admin-steps > div { min-width: 84px; display: grid; justify-items: center; gap: 7px; color: #98a0a5; }
.admin-steps > div span { width: 31px; height: 31px; display: grid; place-items: center; border: 1.5px solid #b9c0c5; border-radius: 50%; background: #fff; font-family: var(--font-geist-sans), sans-serif; font-size: 12px; font-weight: 700; }
.admin-steps > div p { margin: 0; font-size: 10px; font-weight: 650; }
.admin-steps > div.active, .admin-steps > div.done { color: var(--teal); }
.admin-steps > div.active span { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 0 0 5px rgba(19,122,120,.1); }
.admin-steps > div.done span { border-color: var(--teal); color: var(--teal); }
.admin-steps > i { height: 1px; margin-top: 15px; background: #d8dddf; }
.mysoku-dropzone { min-height: 108px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; border: 1.5px dashed #b7c1c6; border-radius: 12px; background: #fff; cursor: pointer; transition: border .2s, background .2s, transform .2s; }
.mysoku-dropzone:hover, .mysoku-dropzone.dragging { border-color: var(--teal); background: #f5fbfa; transform: translateY(-1px); }
.mysoku-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.file-icon { width: 48px; height: 57px; display: grid; place-items: center; position: relative; border: 1.5px solid #9eabb2; border-radius: 5px; color: #d6554d; font-family: var(--font-geist-sans), sans-serif; font-size: 11px; font-weight: 800; }
.file-icon::after { content: ""; width: 14px; height: 14px; position: absolute; right: -1px; top: -1px; background: linear-gradient(45deg, transparent 48%, #9eabb2 50%, #9eabb2 55%, #fff 57%); border-radius: 0 4px 0 0; }
.file-icon small { width: 18px; height: 18px; display: grid; place-items: center; position: absolute; right: -8px; bottom: -5px; border-radius: 5px; background: var(--teal); color: white; font-size: 13px; }
.mysoku-dropzone > div { flex: 1; }
.mysoku-dropzone strong { color: var(--navy); font-size: 14px; }
.mysoku-dropzone p { margin: 5px 0 0; color: #8a949a; font-size: 10px; }
.mysoku-dropzone > b { padding: 10px 14px; border: 1px solid #d1d8db; border-radius: 6px; color: #56656e; font-size: 10px; }
.extract-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 12px; }
.primary-button, .secondary-button { min-height: 46px; padding: 0 24px; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.primary-button { border: 0; background: var(--teal); color: white; box-shadow: 0 8px 22px rgba(19,122,120,.18); }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary-button { border: 1px solid #cbd2d5; background: #fff; color: #51616b; }
.secondary-button:hover { background: #f7f9f9; }
.admin-message { margin: 17px 0 0; padding: 12px 16px; border-radius: 7px; background: #eaf6f4; color: #176c6a; font-size: 11px; }
.admin-message.error { background: #fff1ef; color: #9c443e; }
.review-alert { margin-top: 22px; padding: 13px 17px; display: flex; align-items: center; gap: 15px; border: 1px solid #efcf8b; border-radius: 8px; background: #fff9e9; color: #765919; font-size: 10px; }
.review-alert strong { padding-right: 15px; border-right: 1px solid #e6c97f; font-size: 11px; }
.extraction-workspace { margin-top: 16px; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(470px, 1.28fr); gap: 15px; }
.source-panel, .fields-panel { min-width: 0; overflow: hidden; border: 1px solid #dde2e4; border-radius: 10px; background: white; }
.source-panel > header, .fields-panel > header { height: 56px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e6eaeb; }
.source-panel h2, .fields-panel h2 { margin: 0; font-size: 14px; }
.source-panel header span { color: #8a949a; font-size: 9px; }
.read-complete { color: var(--teal); font-size: 10px; font-weight: 700; }
.source-preview { min-height: 500px; margin: 15px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2e5e6; background: #f1f2f1; }
.source-preview > img { width: 100%; height: 100%; max-height: 680px; object-fit: contain; }
.pdf-preview { padding: 25px; text-align: center; color: #728089; }
.pdf-preview > span { width: 75px; height: 90px; margin: 0 auto 22px; display: grid; place-items: center; border: 2px solid #9ca8ae; border-radius: 7px; color: #d0544e; font-family: var(--font-geist-sans), sans-serif; font-size: 18px; font-weight: 800; }
.pdf-preview strong { display: block; max-width: 260px; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.pdf-preview p { font-size: 9px; }
.source-note { margin: 0 15px 15px; padding: 12px; border-radius: 6px; background: #f7f8f8; color: #6d7981; font-size: 9px; line-height: 1.65; }
.fields-grid { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.extracted-field { min-width: 0; padding: 11px; display: grid; gap: 7px; border: 1px solid #e0e5e6; border-radius: 7px; background: #fff; }
.extracted-field.needs-review { border-color: #eccb81; background: #fffaf0; }
.extracted-field > span { display: flex; align-items: center; gap: 7px; color: #53626c; font-size: 9px; font-weight: 700; }
.extracted-field em, .extracted-field small { margin-left: auto; padding: 3px 6px; border-radius: 4px; font-style: normal; font-size: 8px; }
.extracted-field em { background: #f39b21; color: white; }
.extracted-field small { border: 1px solid rgba(19,122,120,.35); color: var(--teal); }
.extracted-field input, .extracted-field textarea { width: 100%; padding: 0; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.extracted-field textarea { min-height: 56px; }
.extracted-field:has(textarea) { grid-column: 1/-1; }
.evidence { width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: #98a0a5; font-size: 7.5px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.registration-footer { margin-top: 15px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dfe4e5; border-radius: 10px; background: white; }
.registration-footer > div { display: flex; gap: 10px; }
.publish-toggle { display: flex; align-items: center; gap: 9px; color: #56656e; font-size: 10px; cursor: pointer; }
.publish-toggle input { position: absolute; opacity: 0; }
.publish-toggle span { width: 34px; height: 19px; position: relative; border-radius: 12px; background: #c9d0d3; transition: background .2s; }
.publish-toggle span::after { content: ""; width: 15px; height: 15px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.publish-toggle input:checked + span { background: var(--teal); }
.publish-toggle input:checked + span::after { transform: translateX(15px); }
.saved-properties { margin-top: 42px; border-top: 1px solid #dce2e3; padding-top: 31px; }
.saved-properties > header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.saved-properties h2 { margin: 0; font-family: var(--font-noto-serif), serif; font-size: 23px; }
.saved-properties > header > span { color: #7f8a90; font-size: 10px; }
.saved-list { display: grid; gap: 7px; }
.saved-list article { min-height: 66px; padding: 10px 15px; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 15px; border: 1px solid #e0e4e5; border-radius: 8px; background: white; }
.saved-list .status { padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 700; text-align: center; }
.status.published { background: #e4f4f1; color: #14706e; }
.status.draft { background: #f1f1ef; color: #70787d; }
.status.archived { background: #f8e8e6; color: #a5534e; }
.saved-list article div { min-width: 0; }
.saved-list strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.saved-list p { margin: 4px 0 0; overflow: hidden; color: #899298; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.saved-list time { color: #9aa2a7; font-family: var(--font-geist-sans), sans-serif; font-size: 9px; }
.no-saved { margin: 0; padding: 34px; border: 1px dashed #cbd3d6; border-radius: 8px; color: #879198; font-size: 10px; text-align: center; }

/* Property detail */
.property-detail-page { min-height: 100vh; background: var(--ivory); }
.detail-header { height: 82px; padding: 0 clamp(24px, 5vw, 82px); display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
.detail-header > a:last-child { padding-bottom: 5px; border-bottom: 1px solid #9ca4a9; font-size: 11px; }
.detail-hero { min-height: 560px; display: grid; grid-template-columns: 1.4fr .8fr; background: #ede8df; }
.detail-hero > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.detail-hero > div { padding: clamp(42px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.detail-hero p { margin: 0 0 20px; color: var(--gold); font-family: var(--font-geist-sans), sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.detail-hero h1 { margin: 0 0 20px; font-family: var(--font-noto-serif), serif; font-size: clamp(34px, 4vw, 55px); font-weight: 480; line-height: 1.45; }
.detail-hero strong { color: var(--teal); font-family: var(--font-geist-sans), sans-serif; font-size: 26px; }
.detail-hero span { margin-top: 15px; color: #69757c; font-size: 12px; line-height: 1.7; }
.detail-body { width: min(1100px, calc(100% - 48px)); margin: 80px auto 110px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 65px; }
.detail-specs > h2 { margin: 0 0 28px; font-family: var(--font-noto-serif), serif; font-size: 34px; font-weight: 540; }
.detail-specs dl { margin: 0; border-top: 1px solid var(--line); }
.detail-specs dl div { min-height: 58px; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.detail-specs dt { color: #7d878c; font-size: 10px; }
.detail-specs dd { margin: 0; font-size: 12px; font-weight: 560; }
.detail-remarks { padding: 26px 0; border-bottom: 1px solid var(--line); }
.detail-remarks h3 { margin: 0 0 11px; font-size: 12px; }
.detail-remarks p, .detail-notice { margin: 0; color: #6f7b82; font-size: 10px; line-height: 1.9; white-space: pre-wrap; }
.detail-notice { margin-top: 25px; }
.detail-contact { padding: 34px; position: sticky; top: 24px; border-radius: 12px; background: var(--navy); color: white; box-shadow: 0 18px 42px rgba(7,29,49,.16); }
.detail-contact > p:first-child { margin: 0 0 12px; color: #8bd0cc; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.detail-contact h2 { margin: 0 0 18px; font-family: var(--font-noto-serif), serif; font-size: 23px; font-weight: 550; line-height: 1.5; }
.detail-contact > p:not(:first-child) { margin: 0 0 24px; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.8; }
.detail-contact > a, .detail-contact .contact-placeholder { height: 48px; display: grid; place-items: center; background: var(--teal); font-size: 12px; font-weight: 700; }
.detail-contact .contact-placeholder { background: rgba(255,255,255,.12); color: rgba(255,255,255,.62); }
.detail-contact small { display: block; margin-top: 13px; color: rgba(255,255,255,.43); font-size: 8px; }
.property-not-found { min-height: 100vh; padding: 30px; display: grid; place-items: center; align-content: center; gap: 16px; background: var(--ivory); text-align: center; }
.property-not-found > p:first-child { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.property-not-found h1 { margin: 0; font-family: var(--font-noto-serif), serif; font-size: 32px; }
.property-not-found p { margin: 0; color: #758088; font-size: 11px; }
.property-not-found a { margin-top: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--navy); font-size: 11px; }

@media (max-width: 1050px) {
  .admin-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .admin-brand strong, .admin-sidebar nav span, .admin-user div, .admin-signout { display: none; }
  .admin-brand { justify-content: center; padding: 0; }
  .admin-sidebar nav a { justify-content: center; padding: 0; }
  .admin-user { justify-content: center; padding: 15px 0; }
  .extraction-workspace { grid-template-columns: 1fr; }
  .source-preview { min-height: 340px; }
}

@media (max-width: 720px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: 100%; height: 64px; position: sticky; z-index: 20; padding: 7px 14px; flex-direction: row; align-items: center; }
  .admin-brand { margin-right: auto; }
  .admin-brand > span { width: 34px; height: 34px; }
  .admin-sidebar nav { margin: 0; display: flex; }
  .admin-sidebar nav a { width: 43px; min-height: 43px; }
  .admin-sidebar nav a:first-child, .admin-sidebar nav a:nth-child(3), .admin-sidebar nav a:nth-child(4), .admin-user, .admin-signout { display: none; }
  .admin-topbar { height: 82px; padding: 0 18px; }
  .admin-topbar > a { display: none; }
  .admin-content { width: calc(100% - 28px); padding-top: 28px; }
  .admin-steps { width: 100%; }
  .admin-steps > div { min-width: 66px; }
  .mysoku-dropzone { padding: 17px; gap: 14px; }
  .mysoku-dropzone > b { display: none; }
  .extract-actions { display: grid; grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  .extracted-field:has(textarea) { grid-column: auto; }
  .registration-footer { align-items: stretch; flex-direction: column; gap: 18px; }
  .registration-footer > div { display: grid; grid-template-columns: 1fr; }
  .review-alert { align-items: flex-start; flex-direction: column; }
  .review-alert strong { border: 0; }
  .saved-list article { grid-template-columns: 58px minmax(0, 1fr); }
  .saved-list time { display: none; }
  .detail-hero { min-height: 0; grid-template-columns: 1fr; }
  .detail-hero > img { min-height: 0; aspect-ratio: 4/3; }
  .detail-hero > div { padding: 40px 24px; }
  .detail-body { width: calc(100% - 32px); margin: 55px auto 75px; grid-template-columns: 1fr; gap: 40px; }
  .detail-specs dl div { grid-template-columns: 105px minmax(0, 1fr); }
  .detail-contact { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Search empty-state correction */
[hidden] {
  display: none !important;
}

.empty-state {
  min-height: 170px;
  margin-top: 26px;
  padding: 34px 24px;
  border: 1px solid rgba(16, 40, 63, 0.12);
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 10px 30px rgba(14, 37, 57, 0.05);
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button {
  min-width: 190px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.empty-state button::before {
  content: "↺";
  margin-right: 9px;
}

.empty-state button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* Property grid spacing */
.property-grid {
  padding-bottom: 38px;
}

#empty-state[hidden] {
  display: none !important;
}

/* Property detail page */
.detail-site {
  min-height: 100vh;
  background: var(--ivory);
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 650;
}

.detail-loading {
  min-height: 55vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.detail-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 100px;
}

.detail-back {
  display: inline-block;
  margin-bottom: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 56px;
  align-items: center;
}

.detail-image {
  min-height: 430px;
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.detail-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-image span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 7px 13px;
  background: rgba(7,29,49,.92);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.detail-summary h1 {
  margin: 0 0 18px;
  font-family: var(--font-noto-serif), serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.45;
}

.detail-address {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-price {
  margin: 0 0 32px;
  color: var(--teal);
  font-size: 30px;
  font-weight: 700;
}

.detail-contact-button {
  min-height: 54px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.detail-phone {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-information,
.detail-remarks {
  margin-top: 75px;
}

.detail-information h2,
.detail-remarks h2 {
  margin: 0 0 25px;
  font-family: var(--font-noto-serif), serif;
  font-size: 28px;
  font-weight: 600;
}

.detail-information dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.detail-information dl div {
  min-height: 66px;
  display: grid;
  grid-template-columns: 145px 1fr;
  border-bottom: 1px solid var(--line);
}

.detail-information dt,
.detail-information dd {
  margin: 0;
  padding: 20px;
  font-size: 12px;
  line-height: 1.8;
}

.detail-information dt {
  background: rgba(232,225,215,.55);
  font-weight: 700;
}

.detail-remarks > p:last-child {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
}

.detail-caution {
  margin-top: 35px;
  padding: 18px 22px;
  background: #eee9df;
  color: #68727a;
  font-size: 10px;
  line-height: 1.8;
}

.detail-footer {
  width: 100%;
}

@media (max-width: 760px) {
  .detail-nav a:first-child {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-image,
  .detail-image img {
    min-height: 280px;
  }

  .detail-information dl {
    grid-template-columns: 1fr;
  }

  .detail-information dl div {
    grid-template-columns: 115px 1fr;
  }

  .detail-container {
    width: calc(100% - 28px);
    padding-top: 28px;
  }
}

/* Property detail page */
.detail-site {
  min-height: 100vh;
  background: var(--ivory);
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 650;
}

.detail-loading {
  min-height: 55vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.detail-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 100px;
}

.detail-back {
  display: inline-block;
  margin-bottom: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 56px;
  align-items: center;
}

.detail-image {
  min-height: 430px;
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.detail-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-image span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 7px 13px;
  background: rgba(7,29,49,.92);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.detail-summary h1 {
  margin: 0 0 18px;
  font-family: var(--font-noto-serif), serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.45;
}

.detail-address {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-price {
  margin: 0 0 32px;
  color: var(--teal);
  font-size: 30px;
  font-weight: 700;
}

.detail-contact-button {
  min-height: 54px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.detail-phone {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-information,
.detail-remarks {
  margin-top: 75px;
}

.detail-information h2,
.detail-remarks h2 {
  margin: 0 0 25px;
  font-family: var(--font-noto-serif), serif;
  font-size: 28px;
  font-weight: 600;
}

.detail-information dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.detail-information dl div {
  min-height: 66px;
  display: grid;
  grid-template-columns: 145px 1fr;
  border-bottom: 1px solid var(--line);
}

.detail-information dt,
.detail-information dd {
  margin: 0;
  padding: 20px;
  font-size: 12px;
  line-height: 1.8;
}

.detail-information dt {
  background: rgba(232,225,215,.55);
  font-weight: 700;
}

.detail-remarks > p:last-child {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
}

.detail-caution {
  margin-top: 35px;
  padding: 18px 22px;
  background: #eee9df;
  color: #68727a;
  font-size: 10px;
  line-height: 1.8;
}

.detail-footer {
  width: 100%;
}

@media (max-width: 760px) {
  .detail-nav a:first-child {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-image,
  .detail-image img {
    min-height: 280px;
  }

  .detail-information dl {
    grid-template-columns: 1fr;
  }

  .detail-information dl div {
    grid-template-columns: 115px 1fr;
  }

  .detail-container {
    width: calc(100% - 28px);
    padding-top: 28px;
  }
}

/* Property detail page */
.detail-site {
  min-height: 100vh;
  background: var(--ivory);
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 650;
}

.detail-loading {
  min-height: 55vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.detail-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 100px;
}

.detail-back {
  display: inline-block;
  margin-bottom: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 56px;
  align-items: center;
}

.detail-image {
  min-height: 430px;
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.detail-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-image span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 7px 13px;
  background: rgba(7,29,49,.92);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.detail-summary h1 {
  margin: 0 0 18px;
  font-family: var(--font-noto-serif), serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.45;
}

.detail-address {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-price {
  margin: 0 0 32px;
  color: var(--teal);
  font-size: 30px;
  font-weight: 700;
}

.detail-contact-button {
  min-height: 54px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.detail-phone {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-information,
.detail-remarks {
  margin-top: 75px;
}

.detail-information h2,
.detail-remarks h2 {
  margin: 0 0 25px;
  font-family: var(--font-noto-serif), serif;
  font-size: 28px;
  font-weight: 600;
}

.detail-information dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.detail-information dl div {
  min-height: 66px;
  display: grid;
  grid-template-columns: 145px 1fr;
  border-bottom: 1px solid var(--line);
}

.detail-information dt,
.detail-information dd {
  margin: 0;
  padding: 20px;
  font-size: 12px;
  line-height: 1.8;
}

.detail-information dt {
  background: rgba(232,225,215,.55);
  font-weight: 700;
}

.detail-remarks > p:last-child {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
}

.detail-caution {
  margin-top: 35px;
  padding: 18px 22px;
  background: #eee9df;
  color: #68727a;
  font-size: 10px;
  line-height: 1.8;
}

.detail-footer {
  width: 100%;
}

@media (max-width: 760px) {
  .detail-nav a:first-child {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-image,
  .detail-image img {
    min-height: 280px;
  }

  .detail-information dl {
    grid-template-columns: 1fr;
  }

  .detail-information dl div {
    grid-template-columns: 115px 1fr;
  }

  .detail-container {
    width: calc(100% - 28px);
    padding-top: 28px;
  }
}

/* Property detail title adjustment */
.detail-summary h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.5;
  letter-spacing: .02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Property title line control */
.detail-summary h1 {
  max-width: 100%;
  font-size: clamp(27px, 2.7vw, 38px);
  white-space: nowrap;
}

.detail-summary h1.long-title {
  font-size: clamp(25px, 2.3vw, 34px);
  white-space: normal;
}

@media (max-width: 760px) {
  .detail-summary h1,
  .detail-summary h1.long-title {
    white-space: normal;
  }
}

/* Property photo gallery */
.detail-media {
  min-width: 0;
}

.detail-gallery {
  margin-top: 12px;
  padding: 2px 0 8px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.detail-thumbnail {
  width: 92px;
  height: 69px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e4e1da;
  cursor: pointer;
  opacity: .72;
  transition: border-color .2s ease, opacity .2s ease;
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbnail:hover,
.detail-thumbnail.selected {
  border-color: var(--gold);
  opacity: 1;
}

@media (max-width: 760px) {
  .detail-thumbnail {
    width: 78px;
    height: 59px;
  }
}
