@charset "utf-8";
/* ============================================================
   요양원119컨설팅 v5 · Elderly-Friendly + Photo Hero
   - Larger fonts (base 17px, nav 18px, hero 60px)
   - Hero background image support with overlay
   - More design elements: waves, patterns, badges
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
  --brand-900: #072252;
  --brand-800: #0B2E70;
  --brand-700: #1849A9;
  --brand-600: #2563EB;
  --brand-500: #3B82F6;
  --brand-400: #60A5FA;
  --brand-100: #DBEAFE;
  --brand-50:  #EFF6FF;

  --accent-red: #DC2626;
  --accent-red-50: #FEF2F2;
  --accent-orange: #EA580C;
  --accent-yellow: #FBBF24;
  --accent-green: #059669;

  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;

  --gray-900: #0F172A;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50:  #F8FAFC;
  --white:    #FFFFFF;

  --shadow-sm: 0 2px 4px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.12);
  --shadow-brand: 0 10px 30px rgba(37,99,235,0.20);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --container: 1280px;
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --header-h: 88px; } }

/* ============================================================
   Base - LARGER fonts for elderly users
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;      /* was 15 */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-600); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; color: var(--ink-900); }
input, select, textarea { font-family: inherit; font-size: 17px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ============================================================
   Brand Logo - LARGER
============================================================ */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-logo-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
@media (min-width: 768px) { .brand-logo-icon { width: 48px; height: 48px; } }
.brand-logo-text {
  font-size: 19px;      /* was 16 */
  font-weight: 800;
  color: var(--brand-800);
  letter-spacing: -0.035em;
  white-space: nowrap;
}
@media (min-width: 768px) { .brand-logo-text { font-size: 22px; } }

/* ============================================================
   Main Notice Bar (optional top notice)
============================================================ */
.main-notice {
  background: var(--brand-50);
  color: var(--brand-800);
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--brand-100);
}
.main-notice .container {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  font-weight: 600;
}

/* ============================================================
   Header - LARGER
============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.nav-primary {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--white);
  z-index: 200;
  transition: right 240ms ease;
  padding: 88px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,0.10);
}
body.menu-open .nav-primary { right: 0; }
.nav-primary a {
  font-size: 18px;      /* was 16 */
  font-weight: 600;
  color: var(--ink-800);
  padding: 18px 4px;    /* was 14 */
  border-bottom: 1px solid var(--gray-100);
}
.nav-primary a.active { color: var(--brand-700); }
.nav-phone-mobile {
  margin-top: 24px;
  padding: 18px 20px !important;
  background: var(--brand-700);
  color: var(--white) !important;
  border-radius: var(--r-md);
  border: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 18px !important;
}

.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 150;
}
body.menu-open .nav-backdrop { display: block; }

@media (min-width: 1024px) {
  .nav-primary {
    position: static;
    width: auto; height: auto;
    padding: 0;
    flex-direction: row;
    gap: 36px;
    box-shadow: none;
    overflow: visible;
  }
  .nav-primary a {
    padding: 12px 0;
    border: none;
    font-size: 17px;       /* was 15 */
    color: var(--ink-800);
    position: relative;
    font-weight: 600;
  }
  .nav-primary a:hover { color: var(--brand-700); }
  .nav-primary a.active { color: var(--brand-700); }
  .nav-primary a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 3px; background: var(--brand-600);
    transform: scaleX(0); transform-origin: center;
    transition: transform 180ms ease;
    border-radius: 3px 3px 0 0;
  }
  .nav-primary a:hover::after, .nav-primary a.active::after { transform: scaleX(1); }
  .nav-phone-mobile { display: none; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-phone { display: none; }
.header-right .btn { display: none; }
@media (min-width: 1024px) {
  .header-right { gap: 20px; }
  .header-phone {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px;       /* was 16 */
    font-weight: 800;
    color: var(--brand-700);
    font-variant-numeric: tabular-nums;
  }
  .header-phone::before {
    content: ""; width: 22px; height: 22px;
    background: var(--brand-700);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>") no-repeat center / contain;
  }
  .header-right .btn { display: inline-flex; }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  width: 48px; height: 48px;      /* larger touch target */
  border-radius: var(--r-sm);
  padding: 0;
  z-index: 220;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--ink-900);
  position: relative;
  border-radius: 2px;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 3px; background: var(--ink-900);
  transition: transform 180ms ease, top 180ms ease;
  border-radius: 2px;
}
.menu-toggle span::before { top: -9px; }
.menu-toggle span::after  { top:  9px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ============================================================
   Buttons - LARGER
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;              /* was 12/22 */
  border-radius: var(--r-md);
  font-size: 16px;                 /* was 14 */
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 180ms ease;
  cursor: pointer;
  gap: 8px;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--brand-700); color: var(--white); }
.btn-primary:hover { background: var(--brand-800); color: var(--white); box-shadow: var(--shadow-brand); transform: translateY(-1px); }
.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--ink-800); color: var(--white); }
.btn-outline { background: var(--white); color: var(--brand-700); border-color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); color: var(--ink-900); }
.btn-sm { padding: 10px 18px; font-size: 15px; }    /* larger */
.btn-lg { padding: 18px 40px; font-size: 18px; }    /* larger */
.btn-xl { padding: 22px 48px; font-size: 20px; }    /* huge */
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   HERO - Photo bg support + LARGER
============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
  color: var(--white);
  padding: 56px 0 48px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) { .hero { padding: 88px 0 72px; min-height: 560px; } }
@media (min-width: 1024px) { .hero { padding: 120px 0 100px; min-height: 640px; } }

/* When background image is set (via inline style) */
.hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  pointer-events: none;
}

/* Decorative pattern on hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(96,165,250,0.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520' fill='none'><g opacity='0.07'><rect x='60' y='140' width='120' height='360' fill='white' rx='4'/><rect x='190' y='90' width='140' height='410' fill='white' rx='4'/><rect x='340' y='170' width='110' height='330' fill='white' rx='4'/><g fill='%23072252'><rect x='80' y='160' width='16' height='16'/><rect x='104' y='160' width='16' height='16'/><rect x='128' y='160' width='16' height='16'/><rect x='152' y='160' width='16' height='16'/><rect x='80' y='190' width='16' height='16'/><rect x='104' y='190' width='16' height='16'/><rect x='128' y='190' width='16' height='16'/><rect x='152' y='190' width='16' height='16'/><rect x='80' y='220' width='16' height='16'/><rect x='104' y='220' width='16' height='16'/><rect x='128' y='220' width='16' height='16'/><rect x='152' y='220' width='16' height='16'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  pointer-events: none;
  display: none;
}
@media (min-width: 1024px) { .hero::after { display: block; } }
.hero.has-image::after { display: none; }

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;             /* larger */
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 15px;                /* was 12 */
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.24);
}
.hero-eyebrow::before {
  content: "●";
  color: var(--accent-yellow);
  font-size: 10px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-size: 38px;               /* was 32 */
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
@media (min-width: 640px)  { .hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .hero-title { font-size: 64px; margin-bottom: 24px; } }
.hero-title .accent { color: var(--accent-yellow); }

.hero-sub {
  font-size: 18px;                /* was 15 */
  color: rgba(255,255,255,0.92);
  margin-bottom: 40px;
  max-width: 680px;
  line-height: 1.65;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
@media (min-width: 768px) { .hero-sub { font-size: 20px; margin-bottom: 48px; } }

/* Category tabs - LARGER */
.category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  padding: 14px 26px;            /* larger */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md) var(--r-md) 0 0;
  color: rgba(255,255,255,0.85);
  font-size: 16px;               /* was 14 */
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 160ms ease;
}
.category-tab:hover { background: rgba(255,255,255,0.22); color: var(--white); }
.category-tab.active {
  background: var(--white);
  color: var(--brand-700);
  border-color: var(--white);
}

/* Search bar - BIGGER */
.search-bar {
  background: var(--white);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
}
.search-bar .btn-search { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .search-bar {
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 12px;
    padding: 20px;
  }
  .search-bar .btn-search { grid-column: auto; }
}
.search-bar select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 16px 44px 16px 16px;    /* was 14/36/14 */
  font-size: 16px;                 /* was 14 */
  font-weight: 600;
  color: var(--ink-900);
  width: 100%;
  min-width: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 8l5 5 5-5' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.search-bar select:focus { outline: none; border-color: var(--brand-600); }
.search-bar .btn-search {
  background: var(--brand-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  padding: 16px 32px;
  font-weight: 800;
  font-size: 17px;                 /* was 15 */
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.search-bar .btn-search::before {
  content: "";
  width: 20px; height: 20px;
  background: white;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.35-4.35'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.35-4.35'/></svg>") no-repeat center / contain;
}
.search-bar .btn-search:hover { background: var(--brand-800); }

.region-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}
.region-chips .label {
  color: rgba(255,255,255,0.75);
  font-size: 15px;                 /* was 13 */
  font-weight: 600;
  margin-right: 4px;
}
.region-chip {
  padding: 8px 18px;               /* was 6/14 */
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 15px;                 /* was 13 */
  font-weight: 600;
  transition: all 160ms ease;
  border: 1px solid rgba(255,255,255,0.20);
}
.region-chip:hover { background: rgba(255,255,255,0.28); color: var(--white); }

/* Wave decorator at bottom of hero */
.hero + .stats-bar { position: relative; }

/* ============================================================
   STATS BAR - LARGER
============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
  position: relative;
  z-index: 3;
  margin-top: -1px;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-bar .container { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.stat-item { padding: 12px; }
.stat-item .num {
  font-size: 32px;               /* was 24 */
  font-weight: 900;
  color: var(--brand-700);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
@media (min-width: 768px) { .stat-item .num { font-size: 44px; } }
.stat-item .num .unit { font-size: 55%; color: var(--gray-500); font-weight: 700; margin-left: 3px; }
.stat-item .label {
  font-size: 14px;               /* was 12 */
  color: var(--gray-600);
  font-weight: 600;
}
@media (min-width: 768px) { .stat-item .label { font-size: 15px; } }

/* ============================================================
   Section
============================================================ */
.section { padding: 56px 0; }
@media (min-width: 768px)  { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 100px 0; } }
.section-sm { padding: 40px 0; }
.section-bg { background: var(--gray-50); }
.section-brand { background: var(--brand-50); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .section-head { margin-bottom: 40px; } }
.section-head .head-left { flex: 1; }
.section-head h2 {
  font-size: 28px;               /* was 24 */
  color: var(--ink-900);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  font-weight: 800;
}
@media (min-width: 768px) { .section-head h2 { font-size: 36px; } }
.section-head .head-sub {
  font-size: 16px;               /* was 14 */
  color: var(--gray-600);
  font-weight: 500;
}
.section-head .see-all {
  font-size: 16px;               /* was 14 */
  color: var(--brand-700);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-md);
  background: var(--brand-50);
}
.section-head .see-all:hover { background: var(--brand-100); color: var(--brand-800); }

/* ============================================================
   PROPERTY GRID
============================================================ */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px)  { .property-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: block;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-600);
}
.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;              /* larger */
  border-radius: var(--r-sm);
  font-size: 13px;                /* was 11 */
  font-weight: 800;
  z-index: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}
.badge-new      { background: var(--brand-700); color: var(--white); }
.badge-urgent   { background: var(--accent-red); color: var(--white); }
.badge-contract { background: var(--accent-orange); color: var(--white); }
.badge-closed   { background: var(--gray-500); color: var(--white); }
.badge-featured { background: var(--accent-yellow); color: var(--ink-900); }

.type-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 6px 12px;              /* larger */
  border-radius: var(--r-sm);
  background: rgba(15,23,42,0.80);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 13px;                /* was 11 */
  font-weight: 700;
  z-index: 1;
}

.card-body { padding: 16px; }
@media (min-width: 768px) { .card-body { padding: 18px; } }
.card-region {
  font-size: 14px;                /* was 12 */
  color: var(--brand-700);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.card-region::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--brand-600);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2C8 2 5 5 5 9c0 5 7 13 7 13s7-8 7-13c0-4-3-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2C8 2 5 5 5 9c0 5 7 13 7 13s7-8 7-13c0-4-3-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/></svg>") no-repeat center / contain;
}
.card-title {
  font-size: 17px;                /* was 15 */
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.card-specs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;                /* was 12 */
  color: var(--gray-600);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gray-200);
  flex-wrap: wrap;
  font-weight: 500;
}
.card-specs .divider { width: 1px; height: 12px; background: var(--gray-300); }
.card-specs strong { color: var(--ink-800); font-weight: 700; }

.card-price {
  font-size: 24px;                /* was 20 */
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.card-price .unit {
  font-size: 14px;                /* was 13 */
  color: var(--gray-500);
  font-weight: 700;
  margin-left: 2px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;                /* was 11 */
  color: var(--gray-500);
  font-weight: 500;
}
.card-meta .code { font-family: ui-monospace, monospace; font-weight: 700; }

.more-btn-wrap { text-align: center; margin-top: 48px; }

/* ============================================================
   Category Cards (property types)
============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 16px;              /* larger */
  text-align: center;
  transition: all 200ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
  transform: translateY(-4px);
}
.category-card .icon {
  width: 56px; height: 56px;        /* larger */
  border-radius: var(--r-lg);
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  transition: all 220ms ease;
}
.category-card:hover .icon { background: var(--brand-600); color: var(--white); transform: scale(1.08); }
.category-card .name {
  font-size: 16px;                  /* was 13 */
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.category-card .count {
  font-size: 14px;                  /* was 11 */
  color: var(--brand-700);
  font-weight: 700;
}

/* ============================================================
   Region grid
============================================================ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .region-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1024px) { .region-grid { grid-template-columns: repeat(9, 1fr); } }

.region-btn {
  padding: 20px 10px;               /* larger */
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  text-align: center;
  transition: all 160ms ease;
  cursor: pointer;
  font-size: 16px;                  /* was 13 */
  font-weight: 700;
  color: var(--ink-800);
}
.region-btn:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-2px);
}
.region-btn .region-count {
  display: block;
  font-size: 13px;                  /* was 11 */
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 4px;
}
.region-btn:hover .region-count { color: var(--brand-700); }

/* ============================================================
   Service Cards
============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 32px 24px;                /* larger */
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--brand-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .num {
  font-size: 14px;                    /* was 12 */
  font-weight: 900;
  color: var(--brand-600);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.service-card .icon {
  width: 56px; height: 56px;          /* larger */
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 20px;                    /* was 16 */
  margin-bottom: 10px;
  color: var(--ink-900);
  font-weight: 800;
}
.service-card p {
  font-size: 15px;                    /* was 13 */
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   CTA & Footer
============================================================ */
.bottom-cta {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 100%);
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.10) 0%, transparent 40%);
  pointer-events: none;
}
.bottom-cta .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .bottom-cta { padding: 64px 0; }
  .bottom-cta .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.bottom-cta h3 { font-size: 24px; color: var(--white); margin-bottom: 8px; letter-spacing: -0.03em; font-weight: 800; }
@media (min-width: 768px) { .bottom-cta h3 { font-size: 30px; } }
.bottom-cta p { font-size: 17px; color: rgba(255,255,255,0.90); margin: 0; }    /* was 14 */
.bottom-cta .cta-right {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-phone {
  color: var(--accent-yellow);
  font-size: 30px;                    /* was 26 */
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 10px;
}
.cta-phone::before {
  content: "";
  width: 28px; height: 28px;
  background: var(--accent-yellow);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>") no-repeat center / contain;
}
@media (min-width: 768px) { .cta-phone { font-size: 36px; } }
.bottom-cta .btn {
  background: var(--white);
  color: var(--brand-800);
  padding: 18px 32px;
  font-weight: 800;
  font-size: 17px;
  border: none;
}
.bottom-cta .btn:hover { background: var(--accent-yellow); color: var(--brand-900); }

.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  font-size: 14px;                   /* was 13 */
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 320px 1fr; gap: 56px; }
}
.footer-brand .brand-logo-text { color: var(--white); font-size: 22px; }
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 14px;
  line-height: 1.65;
}
.footer-info {
  font-size: 14px;                   /* was 12 */
  line-height: 2.0;
  color: rgba(255,255,255,0.68);
}
.footer-info strong {
  color: var(--white); font-weight: 700;
}
.footer-bottom {
  padding-top: 24px;
  font-size: 12px;                   /* was 11 */
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .links a {
  margin-right: 20px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.footer-bottom .links a:hover { color: var(--white); }

/* ============================================================
   Page Header (sub pages) - LARGER
============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: var(--white);
  padding: 48px 0 40px;
}
@media (min-width: 768px) { .page-header { padding: 72px 0 56px; } }
.page-header h1 {
  font-size: 30px;                   /* was 26 */
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 800;
}
@media (min-width: 768px) { .page-header h1 { font-size: 40px; } }
.breadcrumb {
  font-size: 15px;                   /* was 13 */
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.40); }

/* ============================================================
   Filter Bar
============================================================ */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px)  {
  .filter-bar { grid-template-columns: repeat(3, 1fr) auto; gap: 12px; }
  .filter-bar .btn { grid-column: 4; }
}
@media (min-width: 900px)  {
  .filter-bar { grid-template-columns: repeat(5, 1fr) auto; padding: 18px; gap: 12px; align-items: center; }
  .filter-bar .btn { grid-column: 6; }
}
.filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 14px 38px 14px 16px;
  font-size: 16px;                    /* was 14 */
  font-weight: 600;
  color: var(--ink-900);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 8l5 5 5-5' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  width: 100%;
  cursor: pointer;
}
.filter-bar select:focus { outline: none; border-color: var(--brand-600); }
.filter-bar .btn {
  padding: 14px 32px;
  background: var(--brand-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}
.filter-bar .btn:hover { background: var(--brand-800); color: var(--white); }

.result-count {
  font-size: 16px;                    /* was 14 */
  color: var(--gray-700);
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-weight: 500;
}
.result-count strong { color: var(--brand-700); font-weight: 800; font-size: 18px; }

/* ============================================================
   Property Detail
============================================================ */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
@media (min-width: 900px) { .detail-hero { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.detail-gallery {
  background: var(--gray-50);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--gray-200);
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 28px; margin-bottom: 10px; letter-spacing: -0.03em; font-weight: 800; }    /* larger */
@media (min-width: 768px) { .detail-title { font-size: 36px; } }
.detail-region { color: var(--brand-700); font-size: 17px; margin-bottom: 24px; font-weight: 700; }
.detail-price {
  font-size: 36px;                    /* was 32 */
  color: var(--ink-900);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .detail-price { font-size: 44px; } }
.detail-price-note {
  font-size: 15px;                    /* was 13 */
  color: var(--gray-500);
  margin-bottom: 28px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink-900);
  margin-bottom: 28px;
}
.spec-table th, .spec-table td {
  padding: 16px 12px;                 /* larger */
  font-size: 16px;                    /* was 14 */
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}
.spec-table th { color: var(--gray-600); font-weight: 600; width: 120px; background: var(--gray-50); }
@media (min-width: 768px) { .spec-table th { width: 150px; padding: 16px 18px; } }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
@media (min-width: 640px) { .gallery-thumbs { grid-template-columns: repeat(6, 1fr); } }
.gallery-thumbs .thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  padding: 0;
  background: var(--gray-100);
  cursor: pointer;
}
.gallery-thumbs .thumb.active { border-color: var(--brand-600); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.rich-desc { font-size: 16px; line-height: 1.8; color: var(--ink-800); }
.rich-desc p { margin: 0 0 14px; }
.rich-desc img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 14px 0; }
.rich-desc strong, .rich-desc b { color: var(--ink-900); }
.rich-desc a { color: var(--brand-700); text-decoration: underline; }

.detail-desc {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 2px solid var(--gray-200);
}
.detail-desc h2 { font-size: 24px; margin-bottom: 20px; letter-spacing: -0.03em; font-weight: 800; }
.detail-actions { display: flex; gap: 10px; margin-top: 24px; }
.detail-actions .btn { flex: 1; padding: 18px; font-size: 17px; }

/* ============================================================
   Forms - LARGER
============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-field.full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 15px; color: var(--gray-700); font-weight: 700; }    /* was 13 */
.form-field .req { color: var(--accent-red); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--r-md);
  font-size: 17px;                    /* was 15 */
  color: var(--ink-900);
  background: var(--white);
  width: 100%;
  transition: border-color 160ms ease;
}
.form-field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.form-agree { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-700); cursor: pointer; }
.form-agree input { width: 20px; height: 20px; }
.form-submit { display: flex; justify-content: center; margin-top: 28px; gap: 10px; }
.form-submit .btn { min-width: 160px; }
@media (max-width: 480px) {
  .form-submit { flex-direction: column; }
  .form-submit .btn { width: 100%; }
}

/* ============================================================
   Alerts / Empty / Pagination - LARGER
============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 15px;                    /* was 14 */
  margin-bottom: 18px;
  font-weight: 500;
}
.alert-success { background: #ecfdf5; color: var(--accent-green); border: 1px solid #a7f3d0; }
.alert-error   { background: var(--accent-red-50); color: var(--accent-red); border: 1px solid #fecaca; }
.alert-info    { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }

.empty-state { text-align: center; padding: 88px 20px; color: var(--gray-500); }
.empty-state h3 { color: var(--gray-700); margin-bottom: 10px; font-size: 22px; }
.empty-state p { font-size: 16px; }

.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 16px;                    /* was 14 */
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
  min-width: 44px;
  text-align: center;
  font-weight: 600;
}
.pagination a:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-600); }
.pagination .current {
  background: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
  font-weight: 800;
}

/* ============================================================
   Admin - keep functional
============================================================ */
.admin-body { background: var(--gray-50); }
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 900px) { .admin-shell { grid-template-columns: 240px 1fr; } }

.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 900px) { .admin-sidebar { min-height: 100vh; padding: 24px 16px; } }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-sidebar nav a {
  color: var(--gray-700);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
}
.admin-sidebar nav a:hover { background: var(--gray-50); color: var(--brand-700); }
.admin-sidebar nav a.active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
}
@media (max-width: 899px) {
  .admin-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }
  .admin-sidebar nav a { white-space: nowrap; padding: 10px 14px; }
}

.admin-main { padding: 24px 16px 48px; overflow-x: auto; }
@media (min-width: 768px) { .admin-main { padding: 28px 28px 56px; } }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 12px; flex-wrap: wrap;
}
.admin-topbar h1 { font-size: 24px; letter-spacing: -0.03em; font-weight: 800; }
@media (min-width: 768px) { .admin-topbar h1 { font-size: 28px; } }
.admin-topbar .user { color: var(--gray-500); font-size: 14px; }

/* Settings panel */
.settings-panel { max-width: 800px; }
.settings-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .settings-section { padding: 32px; } }
.settings-section-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.settings-section-head h2 { font-size: 18px; margin-bottom: 6px; }
.settings-section-head .hint { font-size: 13px; color: var(--gray-500); margin: 0; }

.hero-preview-wrap { margin-top: 16px; }
.hero-preview {
  position: relative;
  aspect-ratio: 16 / 6;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: grid; place-items: center;
}
.hero-preview.empty { background: var(--gray-50); aspect-ratio: 16 / 5; }
.hero-preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #072252, #1849A9);
  pointer-events: none;
}
.hero-preview-text {
  position: relative; z-index: 1;
  color: white; font-weight: 700;
  padding: 8px 16px; background: rgba(0,0,0,0.4); border-radius: 6px;
}
.hero-preview-actions { margin-top: 12px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.kpi-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); padding: 20px; }
.kpi-label { font-size: 13px; color: var(--gray-500); margin-bottom: 6px; }
.kpi-value { font-size: 30px; font-weight: 900; color: var(--brand-700); letter-spacing: -0.03em; }
.kpi-delta { font-size: 12px; color: var(--gray-500); margin-top: 6px; }

.data-table {
  width: 100%; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); border-collapse: collapse; font-size: 14px; overflow: hidden;
}
.data-table th {
  background: var(--gray-50); padding: 14px 16px; text-align: left;
  color: var(--gray-600); font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--gray-200);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.data-table a { color: var(--brand-700); font-weight: 600; }

.login-shell {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  padding: 20px;
}
.login-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: 44px 36px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-card h1 { text-align: center; font-size: 24px; margin-bottom: 28px; font-weight: 800; }

/* Crawler UI */
.crawler-panel { display: flex; flex-direction: column; gap: 20px; }
.crawler-config, .crawler-status, .crawler-info, .crawler-history {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 24px;
}
.crawler-config h2, .crawler-history h3 { font-size: 17px; margin-bottom: 6px; }
.crawler-config .hint { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.crawler-config code {
  background: var(--brand-50); padding: 3px 8px; border-radius: var(--r-sm);
  font-size: 13px; font-family: ui-monospace, monospace; color: var(--brand-700);
}
.crawler-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) {
  .crawler-controls { display: flex; flex-wrap: wrap; }
  .crawler-controls .btn { min-width: 120px; }
}

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--brand-50); border-radius: var(--r-md);
  padding: 16px; text-align: center;
}
.stat-label { font-size: 12px; color: var(--gray-600); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--brand-700); letter-spacing: -0.02em; }
.stat-value.phase-idle       { color: var(--gray-500); }
.stat-value.phase-discovering { color: var(--accent-orange); }
.stat-value.phase-fetching    { color: var(--brand-700); }
.stat-value.phase-done        { color: var(--accent-green); }
.stat-value.phase-error       { color: var(--accent-red); }
.stat-value.phase-stopped     { color: var(--gray-600); }

.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress-bar { flex: 1; height: 12px; background: var(--gray-100); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  border-radius: var(--r-pill); transition: width 300ms ease;
}
.progress-text { font-size: 15px; color: var(--gray-700); font-weight: 800; min-width: 48px; text-align: right; }

.log-box {
  background: #0d1117; color: #c9d1d9;
  border-radius: var(--r-md); padding: 14px;
  height: 320px; overflow-y: auto;
  font-family: ui-monospace, monospace;
  font-size: 13px; line-height: 1.6;
}
.log-line.info  { color: #79c0ff; }
.log-line.ok    { color: #56d364; }
.log-line.error { color: #ff7b72; }
.log-line.dim   { color: #6e7681; }

.crawler-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.info-item { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 200px; }
.info-label { font-size: 13px; color: var(--gray-500); }
.info-value { font-size: 24px; font-weight: 900; color: var(--brand-700); }
.info-action { padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: var(--r-sm); font-size: 13px; color: var(--gray-700); font-weight: 600; }
.info-action:hover { border-color: var(--brand-600); color: var(--brand-700); }

.status-tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; }
.status-success { background: #dcfce7; color: var(--accent-green); }
.status-running { background: var(--brand-100); color: var(--brand-700); }
.status-partial { background: #fef3c7; color: var(--accent-orange); }
.status-failed  { background: var(--accent-red-50); color: var(--accent-red); }
.status-stopped { background: var(--gray-100); color: var(--gray-600); }

/* Trust row compat */
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.trust-card { background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--r-xl); padding: 32px 24px; }
.trust-card .num { font-size: 14px; font-weight: 900; color: var(--brand-600); letter-spacing: 0.08em; margin-bottom: 12px; }
.trust-card h3 { font-size: 20px; margin-bottom: 8px; font-weight: 800; }
.trust-card p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin: 0; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }

/* ============================================================
   v6 · 3-Column Layout (매물 밀도 최대화)
============================================================ */
.yy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 0;
}
@media (min-width: 900px) {
  .yy-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
}
@media (min-width: 1280px) {
  .yy-layout {
    grid-template-columns: 260px 1fr 260px;
  }
}

/* Left sidebar */
.yy-side-left, .yy-side-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 899px) {
  .yy-side-left { order: 3; }
  .yy-side-right { display: none; }
}

.yy-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.yy-widget-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 6px;
}
.yy-widget-body { padding: 16px; }

/* Contact widget · 고객상담센터 */
.yy-contact {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: var(--white);
  padding: 20px 18px;
  border-radius: var(--r-lg);
}
.yy-contact-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
  font-weight: 600;
}
.yy-contact-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
}
.yy-contact-phone {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-yellow);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
  text-decoration: none;
}
.yy-contact-phone::before {
  content: "";
  width: 22px; height: 22px;
  background: var(--accent-yellow);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>") no-repeat center / contain;
}
.yy-contact-phone:hover { color: var(--accent-yellow); }
.yy-contact-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  padding-left: 30px;
  font-variant-numeric: tabular-nums;
}

/* CTA buttons stack */
.yy-cta-stack { display: flex; flex-direction: column; gap: 8px; }
.yy-cta-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease;
  border: none;
}
.yy-cta-btn::after {
  content: "›";
  font-size: 20px;
  opacity: 0.7;
}
.yy-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.yy-cta-sell   { background: linear-gradient(135deg, #7C3AED, #4F46E5); }
.yy-cta-buy    { background: linear-gradient(135deg, #0891B2, #0E7C7B); }

/* SMS Quick form */
.yy-sms-form { padding: 16px; }
.yy-sms-form textarea,
.yy-sms-form input[type=text],
.yy-sms-form input[type=tel] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: 8px;
  font-family: inherit;
}
.yy-sms-form textarea { min-height: 80px; resize: vertical; }
.yy-sms-form .phone-row { display: flex; gap: 6px; margin-bottom: 8px; }
.yy-sms-form .phone-row input { margin-bottom: 0; }
.yy-sms-form label { font-size: 12px; color: var(--gray-600); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.yy-sms-form button {
  width: 100%;
  padding: 12px;
  background: var(--brand-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.yy-sms-form button:hover { background: var(--brand-800); }

/* Region list · 지역별 매물보기 */
.yy-region-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--ink-800);
  font-weight: 600;
  transition: background 160ms ease;
}
.yy-region-list a:last-child { border-bottom: none; }
.yy-region-list a:hover { background: var(--brand-50); color: var(--brand-700); }
.yy-region-list a::before {
  content: "📍";
  margin-right: 8px;
  font-size: 12px;
  filter: grayscale(1);
  opacity: 0.6;
}
.yy-region-list a:hover::before { filter: none; opacity: 1; }
.yy-region-list .cnt {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Recommended matter (small card list · left sidebar) */
.yy-rec-list .rec-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: inherit;
}
.yy-rec-list .rec-item:last-child { border-bottom: none; }
.yy-rec-list .rec-item:hover { background: var(--gray-50); }
.yy-rec-list .rec-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 800;
  margin-right: 6px;
}
.yy-rec-list .rec-badge.sale { background: var(--brand-700); color: var(--white); }
.yy-rec-list .rec-badge.lease { background: var(--accent-orange); color: var(--white); }
.yy-rec-list .rec-badge.urgent { background: var(--accent-red); color: var(--white); }
.yy-rec-list .rec-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}
.yy-rec-list .rec-region {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
}
.yy-rec-list .rec-region strong { color: var(--brand-700); font-weight: 700; }
.yy-rec-list .rec-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* Right sidebar · 급매물 (with images) */
.yy-urgent-list .urg-item {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.yy-urgent-list .urg-item:last-child { border-bottom: none; }
.yy-urgent-list .urg-item:hover { background: var(--gray-50); }
.yy-urgent-list .urg-img {
  aspect-ratio: 16/10;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--gray-100);
  position: relative;
}
.yy-urgent-list .urg-img img { width: 100%; height: 100%; object-fit: cover; }
.yy-urgent-list .urg-img .urg-badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--accent-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}
.yy-urgent-list .urg-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.yy-urgent-list .urg-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Region picker · 지역 그리드 (7×2 버튼)
============================================================ */
.yy-region-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 640px) { .yy-region-picker { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .yy-region-picker { grid-template-columns: repeat(7, 1fr); } }
.yy-region-picker a {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 8px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
  text-align: center;
  transition: all 160ms ease;
  line-height: 1.3;
  min-height: 56px;
}
.yy-region-picker a:hover, .yy-region-picker a.active {
  background: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
}

/* Capacity picker */
.yy-capacity-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
@media (min-width: 640px) { .yy-capacity-picker { grid-template-columns: repeat(6, 1fr); } }
.yy-capacity-picker a {
  padding: 14px 8px;
  background: var(--brand-600);
  color: var(--white);
  border-radius: var(--r-md);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  transition: background 160ms ease;
}
.yy-capacity-picker a:hover, .yy-capacity-picker a.active {
  background: var(--brand-800);
  color: var(--white);
}

/* ============================================================
   Search inline bar
============================================================ */
.yy-search-inline {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .yy-search-inline { grid-template-columns: 1fr 1fr 1fr auto; }
}
.yy-search-inline select, .yy-search-inline input {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--white);
  width: 100%;
}
.yy-search-inline button {
  padding: 10px 24px;
  background: var(--brand-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================================
   Premium property cards (top featured)
============================================================ */
.yy-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 640px)  { .yy-premium-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.yy-premium-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 200ms ease;
  color: inherit;
}
.yy-premium-card:hover {
  border-color: var(--brand-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.yy-premium-card .img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  overflow: hidden;
}
.yy-premium-card .img img { width: 100%; height: 100%; object-fit: cover; }
.yy-premium-card .body { padding: 12px 14px; }
.yy-premium-card .type {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 4px;
}
.yy-premium-card .region {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 6px;
}
.yy-premium-card .price {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.yy-premium-card .badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--brand-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

/* ============================================================
   Dense property table (매물이 한눈에 다 보이는 표)
============================================================ */
.yy-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.yy-table-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
}
.yy-table-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  display: flex; align-items: center; gap: 6px;
}
.yy-table-head .meta {
  font-size: 13px;
  color: var(--gray-600);
}
.yy-table-head .meta strong { color: var(--brand-700); font-weight: 800; }

.yy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.yy-table thead th {
  background: var(--white);
  padding: 12px 8px;
  text-align: center;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid var(--ink-900);
  white-space: nowrap;
}
.yy-table tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  color: var(--ink-800);
  font-size: 13px;
}
@media (min-width: 768px) {
  .yy-table thead th, .yy-table tbody td { padding: 14px 10px; font-size: 14px; }
}
.yy-table tbody tr { transition: background 120ms ease; cursor: pointer; }
.yy-table tbody tr:hover { background: var(--brand-50); }
.yy-table tbody tr:hover .yy-table-title a { color: var(--brand-700); }

.yy-table .col-num { color: var(--gray-500); font-family: ui-monospace, monospace; font-weight: 600; }
.yy-table .col-region {
  text-align: left;
  font-weight: 700;
  color: var(--ink-900);
  min-width: 90px;
}
.yy-table .col-region .region-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--accent-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}
.yy-table .col-region .badge-new { background: var(--brand-700); }
.yy-table .col-region .badge-featured { background: var(--accent-yellow); color: var(--ink-900); }

.yy-table .col-type { color: var(--gray-700); font-weight: 600; }
.yy-table .col-price {
  color: var(--accent-red);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.yy-table .col-price.lease { color: var(--accent-orange); }
.yy-table .col-area { color: var(--gray-600); font-variant-numeric: tabular-nums; }
.yy-table .col-beds { color: var(--ink-800); font-weight: 600; font-variant-numeric: tabular-nums; }
.yy-table .col-date { color: var(--gray-500); font-variant-numeric: tabular-nums; font-size: 12px; }
.yy-table .col-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.yy-table .status-open { background: #dcfce7; color: var(--accent-green); }
.yy-table .status-contract { background: #fed7aa; color: var(--accent-orange); }
.yy-table .status-closed { background: var(--gray-100); color: var(--gray-500); }

/* Mobile: 표를 카드형으로 자연스럽게 축약 */
@media (max-width: 640px) {
  .yy-table thead { display: none; }
  .yy-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "region price"
      "type   area"
      "beds   date";
    gap: 4px 8px;
    padding: 12px 16px;
    text-align: left;
  }
  .yy-table tbody td {
    padding: 0;
    border-bottom: none;
    text-align: left;
    font-size: 13px;
  }
  .yy-table .col-num { display: none; }
  .yy-table .col-region { grid-area: region; }
  .yy-table .col-type { grid-area: type; font-size: 12px; color: var(--gray-500); }
  .yy-table .col-price { grid-area: price; text-align: right; font-size: 16px; }
  .yy-table .col-beds { grid-area: beds; font-size: 12px; }
  .yy-table .col-area { grid-area: area; text-align: right; font-size: 12px; }
  .yy-table .col-date { grid-area: date; text-align: right; }
  .yy-table .col-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
