/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", "YuGothic", "Yu Gothic", sans-serif;
  color: #333;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: #1ab3c8;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.logo span { color: #333; }

/* ── Main Navigation ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  display: block;
  padding: 20px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  letter-spacing: .04em;
  transition: color .2s, border-color .2s;
  border-bottom: 3px solid transparent;
}
.nav-link:hover { color: #1ab3c8; }
.nav-link.active {
  color: #1ab3c8;
  border-bottom-color: #1ab3c8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lang-switch { font-size: 12px; color: #888; }
.lang-switch a { color: #aaa; transition: color .2s; }
.lang-switch a:hover, .lang-switch .lang-active { color: #1ab3c8; font-weight: 700; }
.header-tel {
  font-size: 13px;
  font-weight: 700;
  color: #1ab3c8;
  white-space: nowrap;
}

.header-cta {
  background: #1ab3c8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  transition: background .2s;
}
.header-cta:hover { background: #13a0b4; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all .25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1400&q=80') center/cover no-repeat;
  filter: brightness(.4);
}
.hero-content {
  position: relative;
  color: #fff;
  padding: 0 20px;
}
.hero-sub {
  font-size: 13px;
  letter-spacing: .16em;
  margin-bottom: 14px;
  opacity: .85;
}
.hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: #1ab3c8;
}
.hero-desc {
  font-size: 26px;
  opacity: .9;
  margin-bottom: 32px;
  line-height: 1.9;
}
.hero-btn {
  display: inline-block;
  background: #1ab3c8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(26,179,200,.45);
  transition: background .2s, transform .15s;
}
.hero-btn:hover { background: #13a0b4; transform: translateY(-2px); }

/* ── Page Hero (sub-pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1e2633 0%, #2a3546 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px 56px;
}
.page-hero-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}
.page-hero-sub {
  font-size: 14px;
  opacity: .7;
}

/* ── Section wrapper ── */
.section { padding: 72px 20px; }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.title-en {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1ab3c8;
  margin-left: 10px;
  letter-spacing: .08em;
  vertical-align: middle;
}
.section-sub {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 48px;
}

/* ── Needs Section ── */
.needs-section { background: #f7f8fa; }
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.needs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px 32px;
  background: #1ab3c8;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.needs-card:nth-child(2) { background: #e8734a; }
.needs-card:nth-child(3) { background: #6c5ce7; }
.needs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.needs-icon { font-size: 42px; margin-bottom: -20px; margin-top: 10px; }
.needs-en {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: block;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: .08em;
  opacity: .35;
  text-transform: uppercase;
  text-align: center;
}
.needs-label {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}
.needs-desc {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
}
.needs-arrow {
  position: absolute;
  bottom: 28px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  transition: transform .2s;
}
.needs-card:hover .needs-arrow { transform: translateX(4px); }

.needs-cn {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.needs-phone {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ── News ── */
.news-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.news-filter-btn {
  padding: 7px 20px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.news-filter-btn:hover { border-color: #1ab3c8; color: #1ab3c8; }
.news-filter-btn.active { background: #1ab3c8; color: #fff; border-color: #1ab3c8; }

.news-list {
  list-style: none;
  max-width: 720px;
  margin: 28px auto 0;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.news-date {
  font-size: 12px;
  font-weight: 700;
  color: #1ab3c8;
  flex-shrink: 0;
  min-width: 70px;
}
.news-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  background: #f0f0f0;
  color: #666;
}
.news-badge-buy { background: #e6f9fc; color: #0e7a8a; }
.news-badge-rent { background: #fff5e6; color: #a05a00; }
.news-text { color: #444; }

/* ── Service Section ── */
.service-section { background: #f7f8fa; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: #36b5c8;
  color: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.service-card:nth-child(2) { background: #5b8ec9; }
.service-card:nth-child(3) { background: #7c7fe0; }
.service-card:nth-child(4) { background: #a072c7; }
.service-card:nth-child(5) { background: #58b896; }
.service-card:nth-child(6) { background: #8b9dc3; }
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
}
.service-icon { font-size: 32px; margin-bottom: 14px; }
.service-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.service-lead {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 16px;
  color: rgb(255, 255, 255);
  line-height: 1.85;
}

/* ── Property Grid ── */
.listings { background: #f5f5f5; }
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.property-img {
  height: 200px;
  overflow: hidden;
}
.property-img img { transition: transform .4s; }
.property-card:hover .property-img img { transform: scale(1.05); }
.property-info {
  padding: 18px 20px 22px;
}
.property-name {
  font-size: 15px; font-weight: 800; color: #222; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.property-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.property-meta .station { font-weight: 700; color: #222; }
.property-price {
  font-size: 28px;
  font-weight: 900;
  color: #1ab3c8;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.property-price .unit {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-left: 2px;
}
.property-card-footer {
  padding: 0 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #aaa;
}
.property-card-footer .detail-link {
  color: #1ab3c8;
  font-weight: 700;
}
.listings-note {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 36px;
  line-height: 1.8;
}

/* ── CTA Section ── */
.cta-section { background: #fff; }

/* ── Chinese Service Banner ── */
.cn-banner {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  text-align: center;
  padding: 14px 20px;
}
.cn-banner-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ── SNS Icons in needs card ── */
.needs-card .sns-icon {
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
}

/* ── Contact Page ── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.contact-card-wechat { border-top: 4px solid #07C160; }
.contact-card-line { border-top: 4px solid #06C755; }
.contact-card-icon { margin-bottom: 16px; }
.contact-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}
.contact-card-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 20px;
}
.contact-card-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f6f8;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 24px;
}
.contact-id-label {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
}
.contact-id-value {
  font-size: 16px;
  font-weight: 800;
  color: #222;
  letter-spacing: .04em;
}
.contact-qr { margin-bottom: 16px; text-align: center; }
.contact-qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
}
.qr-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  color: #bbb;
  font-size: 13px;
}
.contact-card-note {
  font-size: 11px;
  color: #aaa;
}
.contact-phone-box {
  text-align: center;
  margin-top: 56px;
  padding: 32px;
  background: #f7f8fa;
  border-radius: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-phone-box p:first-child {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  margin-bottom: 10px;
}
.contact-phone-num {
  font-size: 28px;
  font-weight: 900;
  color: #1ab3c8;
}

/* ── Company Table ── */
.company-table-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 18px 20px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.company-table th {
  width: 220px;
  font-weight: 700;
  color: #333;
  background: #f9fafb;
  white-space: nowrap;
}
.company-table td { color: #555; }
.company-table td a { color: #1ab3c8; text-decoration: underline; }
.company-table td a:hover { color: #0e8fa0; }

.map-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Merits ── */
.merits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.merit-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: 12px;
  background: #f9fefe;
  border: 1.5px solid #e0f5f8;
}
.merit-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.merit-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}
.merit-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* ── Stats ── */
.stats { background: #1ab3c8; }
.stats .section-title { color: #fff; }
.stats .section-sub { color: rgba(255,255,255,.75); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  color: #fff;
}
.stat-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
}
.stat-num .small { font-size: 18px; }
.stat-label {
  font-size: 13px;
  opacity: .85;
  margin-top: 8px;
  line-height: 1.7;
}

/* ── Process ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-card {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1ab3c8;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}
.process-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}
.process-time {
  display: inline-block;
  font-size: 11px;
  color: #1ab3c8;
  background: #e6f9fc;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.process-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* ── Form ── */
.form-section { background: #f5f5f5; }
.form-box {
  background: #fff;
  border-radius: 16px;
  padding: 48px 56px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  max-width: 600px;
  margin: 0 auto;
}
.form-box .section-title { font-size: 22px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  margin-top: 20px;
}
.form-label .req {
  color: #fff;
  background: #e05555;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}
.form-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-input:focus { border-color: #1ab3c8; }
.form-submit {
  display: block;
  width: 100%;
  margin-top: 28px;
  background: #1ab3c8;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, transform .15s;
}
.form-submit:hover { background: #13a0b4; transform: translateY(-2px); }
.form-free {
  display: inline-block;
  background: #fff3cd;
  color: #a07000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-note {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 14px;
}
.form-note a { color: #1ab3c8; text-decoration: underline; }
.company-badge {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 14px;
}

/* ── Footer ── */
footer {
  background: #1e2633;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 40px 20px 28px;
  font-size: 12px;
  line-height: 1.8;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #1ab3c8;
  margin-bottom: 14px;
}
.footer-info {
  margin-bottom: 16px;
  line-height: 1.9;
}
.footer-info p { margin-bottom: 2px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin-bottom: 18px;
}
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: 11px;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 0 16px; }
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-link {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
  }
  .nav-link.active { border-bottom-color: #1ab3c8; }
  .header-right { display: none; }
  .hamburger { display: block; }

  .hero { height: 420px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .page-hero { padding: 48px 20px 40px; }
  .page-hero-title { font-size: 24px; }

  .needs-grid,
  .service-grid,
  .property-grid,
  .merits-grid,
  .stats-grid,
  .process-grid,
  .contact-cards { grid-template-columns: 1fr; }

  .company-table th { width: 120px; font-size: 12px; }
  .company-table td { font-size: 13px; }
  .form-box { padding: 32px 20px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .needs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════
   Property Detail Page
   ══════════════════════════════════════ */
.back-link {
  font-size: 13px; color: #888; display: flex; align-items: center; gap: 6px;
  padding: 8px 0; transition: color .2s;
}
.back-link:hover { color: #1ab3c8; }

.page-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }
.breadcrumb { font-size: 12px; color: #aaa; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: #1ab3c8; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.gallery {
  border-radius: 16px; overflow: hidden;
  background: #e0e0e0;
}
.gallery-main {
  position: relative; height: 440px; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gallery-arrow:hover { background: rgba(0,0,0,.7); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.gallery-thumbs {
  display: flex; gap: 8px; padding: 10px 0; overflow-x: auto;
}
.gallery-thumb {
  width: 72px; height: 52px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; opacity: .6;
  transition: opacity .2s, border-color .2s; flex-shrink: 0;
}
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.active { border-color: #1ab3c8; opacity: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 15px;
}

/* Image count badge on property cards */
.img-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6); color: #fff;
  padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.property-img { position: relative; overflow: hidden; }

/* Status ribbon on property cards */
.status-ribbon {
  position: absolute; top: 12px; left: -2px;
  padding: 4px 14px 4px 10px; font-size: 12px; font-weight: 700;
  color: #fff; z-index: 2; border-radius: 0 4px 4px 0;
  letter-spacing: .5px;
}
.status-ribbon.sold { background: #e74c3c; }
.status-ribbon.occupied { background: #e67e22; }

/* Admin multi-image preview grid */
.img-preview-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; min-height: 40px;
}
.img-preview-item {
  position: relative; width: 100px; height: 75px; border-radius: 8px; overflow: hidden;
  border: 2px solid #e8e8e8;
}
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-remove-btn {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.img-remove-btn:hover { background: #e74c3c; }
.img-main-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,179,200,.85); color: #fff;
  text-align: center; font-size: 10px; font-weight: 700; padding: 2px 0;
}

.title-card {
  background: #fff; border-radius: 14px; padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-top: 20px;
}
.prop-station { font-size: 13px; color: #888; margin-bottom: 6px; }
.prop-name {
  font-size: 24px; font-weight: 900; color: #1a1a1a; margin-bottom: 16px; line-height: 1.3;
}
.prop-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.tag-cyan { background: #e6f9fc; color: #0e7a8a; }
.tag-gray { background: #f0f0f0; color: #666; }
.tag-green { background: #e6fff5; color: #0a7a55; }
.tag-red { background: #fde8e8; color: #c0392b; }
.tag-orange { background: #fff5e6; color: #a05a00; }
.price-row {
  display: flex; align-items: baseline; gap: 4px;
  border-top: 1px solid #f0f0f0; padding-top: 18px; margin-top: 4px;
}
.price-big { font-size: 38px; font-weight: 900; color: #1ab3c8; }
.price-unit { font-size: 16px; font-weight: 600; color: #888; margin-top: 6px; }
.monthly-fees { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.fee-item { font-size: 13px; color: #777; }
.fee-item strong { color: #444; }

.card { background: #fff; border-radius: 14px; padding: 28px 32px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-top: 20px; }
.card-title { font-size: 16px; font-weight: 800; color: #222; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #e6f9fc; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.spec-row {
  display: flex; padding: 12px 0; border-bottom: 1px solid #f5f5f5;
  align-items: flex-start; gap: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 12px; color: #999; font-weight: 700; min-width: 80px; padding-top: 1px; }
.spec-value { font-size: 13px; color: #333; font-weight: 600; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.feature-item {
  display: flex; align-items: center; gap: 8px;
  background: #f0fbfd; border: 1.5px solid #cceef5;
  border-radius: 8px; padding: 9px 12px;
  font-size: 13px; color: #0e7a8a; font-weight: 600;
}

.desc-text { font-size: 14px; color: #555; line-height: 1.9; }

.right-col { position: sticky; top: 84px; }

.inquiry-card {
  background: #fff; border-radius: 14px; padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
}
.inquiry-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.inquiry-sub { font-size: 12px; color: #888; margin-bottom: 22px; line-height: 1.7; }
.f-label { display: block; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 5px; margin-top: 14px; }
.f-label .req { color: #e05555; margin-left: 3px; }
.f-input {
  width: 100%; border: 1.5px solid #e0e0e0; border-radius: 7px;
  padding: 11px 13px; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color .2s;
}
.f-input:focus { border-color: #1ab3c8; }
.submit-btn {
  display: block; width: 100%; margin-top: 20px;
  background: #1ab3c8; color: #fff; font-size: 15px; font-weight: 700;
  padding: 15px; border: none; border-radius: 8px; cursor: pointer;
  letter-spacing: .04em; font-family: inherit; transition: background .2s, transform .15s;
}
.submit-btn:hover { background: #13a0b4; transform: translateY(-1px); }

.agent-strip {
  margin-top: 16px; background: #f8f9fb; border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.agent-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #ddd; overflow: hidden; flex-shrink: 0;
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-info { font-size: 12px; }
.agent-name { font-weight: 700; color: #333; }
.agent-role { color: #aaa; margin-top: 2px; }

/* Agent profile in contact card */
.agent-profile-section { text-align: center; margin-bottom: 20px; }
.agent-profile-avatar {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px;
  border: 3px solid #1ab3c8;
}
.agent-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-profile-name { font-size: 17px; font-weight: 800; color: #222; }
.agent-profile-role { font-size: 12px; color: #999; margin-top: 2px; }

.agent-contact-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.agent-contact-item {
  display: flex; align-items: center; gap: 10px;
  background: #f8f9fb; border-radius: 8px; padding: 12px 14px;
  text-decoration: none; color: #333; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.agent-contact-item:hover { background: #edf7f8; }
.agent-contact-icon { font-size: 18px; flex-shrink: 0; }

.agent-qr-section {
  display: flex; gap: 16px; justify-content: center; margin-bottom: 18px;
  flex-wrap: wrap;
}
.agent-qr-row { text-align: center; }
.agent-qr-label {
  font-size: 12px; font-weight: 700; color: #555; margin-bottom: 6px;
}
.agent-qr-img {
  width: 130px; height: 130px; object-fit: contain; border-radius: 10px;
  border: 1.5px solid #e8e8e8; background: #fff;
}

.not-found { text-align: center; padding: 100px 20px; color: #aaa; }
.not-found h2 { font-size: 22px; margin-bottom: 12px; }
.not-found a { color: #1ab3c8; font-weight: 700; }

.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #0a8a55; color: #fff; padding: 13px 22px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(12px);
  transition: all .3s; z-index: 300; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .right-col { position: static; }
  .gallery-main { height: 260px; }
  .spec-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   Admin Dashboard
   ══════════════════════════════════════ */

/* ── Login ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1ab3c8 0%, #0e7a8a 100%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 52px 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.login-logo {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: #1ab3c8;
  margin-bottom: 6px;
}
.login-logo span { color: #333; }
.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 36px;
}
.login-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  margin-top: 18px;
}
.login-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.login-input:focus { border-color: #1ab3c8; }
.login-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  background: #1ab3c8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s;
}
.login-btn:hover { background: #13a0b4; }
.login-error {
  display: none;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #e05555;
  background: #fff0f0;
  border-radius: 6px;
  padding: 8px;
}

/* ── Dashboard layout ── */
.dashboard { display: none; min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 220px;
  background: #1e2633;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.sidebar-logo {
  padding: 24px 20px 20px;
  font-size: 20px;
  font-weight: 900;
  color: #1ab3c8;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo span { color: rgba(255,255,255,.7); font-size: 12px; display: block; margin-top: 2px; font-weight: 400; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(26,179,200,.15); color: #1ab3c8; border-left-color: #1ab3c8; }
.nav-icon { font-size: 16px; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.logout-btn {
  width: 100%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: background .2s;
}
.logout-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Main area */
.main {
  margin-left: 220px;
  padding: 32px 36px;
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: #222;
}
.page-title span { font-size: 14px; font-weight: 400; color: #888; margin-left: 10px; }

/* Panel */
.panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 28px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #f0f0f0;
}
.panel-title { font-size: 16px; font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.btn-primary { background: #1ab3c8; color: #fff; }
.btn-primary:hover { background: #13a0b4; }
.btn-danger { background: #fff0f0; color: #e05555; }
.btn-danger:hover { background: #ffe0e0; }
.btn-edit { background: #f0f8ff; color: #1a7bc8; }
.btn-edit:hover { background: #ddeeff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: #f8f9fb; }
th { text-align: left; font-size: 12px; color: #888; font-weight: 700; padding: 14px 20px; white-space: nowrap; }
td { padding: 16px 20px; font-size: 14px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
tr:hover td { background: #fafcff; }
.prop-img-thumb {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 6px;
}
.price-cell { font-weight: 800; color: #1ab3c8; font-size: 15px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-sale { background: #e6fff5; color: #0a8a55; }
.badge-sold { background: #f0f0f0; color: #999; }
.badge-buy { background: #e6f9fc; color: #0e7a8a; }
.badge-rent { background: #fff5e6; color: #a05a00; }
.empty-row td {
  text-align: center;
  padding: 52px;
  color: #aaa;
  font-size: 14px;
}

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(12px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid #f0f0f0;
}
.modal-title { font-size: 17px; font-weight: 800; }
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  transition: color .15s;
}
.modal-close:hover { color: #333; }
.modal-body { padding: 24px 28px 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.f-select {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.f-select:focus { border-color: #1ab3c8; }
.img-preview-wrap {
  margin-top: 10px;
  height: 140px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
}
.img-preview-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.img-placeholder { font-size: 13px; color: #bbb; text-align: center; }
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 28px 24px;
}
.btn-cancel { background: #f0f0f0; color: #666; }
.btn-cancel:hover { background: #e4e4e4; }

/* Stats cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-icon.cyan { background: #e6f9fc; }
.stat-icon.green { background: #e6fff5; }
.stat-icon.orange { background: #fff5e6; }
.stat-info .num { font-size: 26px; font-weight: 900; color: #222; }
.stat-info .label { font-size: 12px; color: #888; margin-top: 2px; }

/* Admin toast */
.toast.success { background: #0a8a55; }
.toast.error { background: #e05555; }

/* Section tabs */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Confirm dialog */
.confirm-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* Form section headings */
.form-section-heading {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 800;
  color: #1ab3c8;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 0 4px;
  border-bottom: 1.5px solid #e6f9fc;
  margin-bottom: 4px;
}

/* Checkbox grid */
.checkbox-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fb;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
  color: #444;
  user-select: none;
}
.cb-item:hover { border-color: #1ab3c8; background: #f0fbfd; }
.cb-item input[type=checkbox] { accent-color: #1ab3c8; width: 15px; height: 15px; cursor: pointer; }
.cb-item.checked { border-color: #1ab3c8; background: #e6f9fc; color: #0e7a8a; font-weight: 700; }

/* ── Agent Management ── */
.agent-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding: 24px; }
.agent-card { background: #fff; border-radius: 12px; border: 1px solid #e8eaf0; padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.agent-card-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid #1ab3c8; flex-shrink: 0; }
.agent-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-card-name { font-weight: 700; font-size: 15px; color: #1e2633; margin-top: 4px; }
.agent-card-role { font-size: 12px; color: #888; }
.agent-card-contact { font-size: 11px; color: #666; line-height: 1.6; }
.agent-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.agent-sel-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.tbl-agent { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.tbl-agent img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #e0e0e0; }

@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-logo, .nav-item span, .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 14px; }
  .main { margin-left: 60px; padding: 20px 16px; }
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
