:root {
  --ink: #17231f; --muted: #68746e; --paper: #f5f6f2; --white: #fff;
  --line: #dce2dc; --green: #214f40; --lime: #c7d8a4; --serif: Georgia, "Times New Roman", serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
.site-header { min-height: 82px; padding: 0 clamp(22px, 6vw, 100px); display:flex; align-items:center; justify-content:space-between; gap:28px; background:var(--paper); border-bottom:1px solid var(--line); }
.brand { font-size:14px; font-weight:800; letter-spacing:.13em; white-space:nowrap; }
.brand span { color:#91a96f; }
.site-header nav { display:flex; align-items:center; gap:clamp(14px,2.5vw,36px); font-size:12px; color:#4d5a53; }
.site-header nav a:hover, .text-link:hover { color:var(--green); }
.nav-cta { padding:12px 16px; border:1px solid #aeb9af; border-radius:3px; color:var(--ink); }
.hero { min-height:590px; display:grid; grid-template-columns:1fr .9fr; align-items:center; gap:5vw; padding:80px clamp(22px, 8vw, 130px); overflow:hidden; }
.hero-copy { max-width:650px; position:relative; z-index:1; }
.eyebrow { color:#68806d; font-size:10px; font-weight:800; letter-spacing:.2em; line-height:1.6; }
h1,h2,h3,p { margin-top:0; }
.hero h1 { font-family:var(--serif); font-size:clamp(48px,6.2vw,86px); font-weight:400; letter-spacing:-.055em; line-height:.99; margin:25px 0; }
.hero h1 em { color:#6d856c; font-weight:400; }
.lead { color:#59665f; font-size:17px; line-height:1.8; max-width:570px; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:25px; margin-top:34px; }
.button { display:inline-flex; justify-content:center; align-items:center; min-height:48px; padding:0 22px; border:0; border-radius:2px; font-size:12px; font-weight:700; cursor:pointer; }
.primary { background:var(--green); color:#fff; }
.primary:hover { background:#17392e; }
.light { color:var(--ink); background:#e1e9d8; margin-top:18px; }
.text-link { font-size:12px; font-weight:700; }
.text-link span { padding-left:7px; }
.hero-art { height:390px; max-width:510px; width:100%; justify-self:center; position:relative; overflow:hidden; background:#dce5d6; border-radius:48% 52% 43% 57% / 45% 42% 58% 55%; transform:rotate(-5deg); }
.hero-art:before,.hero-art:after { content:""; position:absolute; inset:12%; border:1px solid #a9baa2; border-radius:44% 56% 55% 45% / 52% 40% 60% 48%; }
.hero-art:after { inset:23%; border-color:#92a98c; }
.contour { position:absolute; border:1px solid #8da78a; border-radius:50%; transform:rotate(25deg); }
.contour-one { inset:4% -18%; }.contour-two { inset:18% -10%; }.contour-three { inset:31% 4%; }
.map-label { position:absolute; z-index:2; color:#526a55; font-size:8px; font-weight:800; letter-spacing:.16em; transform:rotate(5deg); }
.label-a { left:12%; top:26%; }.label-b { right:11%; bottom:22%; }
.map-point { position:absolute; width:16px; height:16px; left:53%; top:47%; border:4px solid #f5f6f2; background:#355c43; border-radius:50%; box-shadow:0 0 0 9px #355c4322; }
.map-cross { position:absolute; right:22%; top:20%; color:#80987b; font-size:22px; transform:rotate(5deg); }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.metrics div { display:flex; gap:18px; align-items:center; padding:27px clamp(18px,7vw,100px); background:#eef1eb; }
.metrics strong { color:#83947e; font-family:var(--serif); font-size:26px; font-weight:400; }
.metrics span { color:#526057; font-size:12px; }
.section { padding:100px clamp(22px,8vw,130px); }
.section-heading { max-width:650px; margin-bottom:44px; }
.section h2,.dark-section h2 { font-family:var(--serif); font-size:clamp(34px,4vw,54px); line-height:1.08; letter-spacing:-.035em; font-weight:400; margin:14px 0 18px; }
.section-heading>p:last-child,.dark-section>div>p:not(.eyebrow) { color:var(--muted); line-height:1.8; font-size:14px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.feature { padding:30px 28px 32px 0; }
.feature + .feature { border-left:1px solid var(--line); padding-left:28px; }
.feature-number { color:#7a8d78; font-size:9px; font-weight:800; letter-spacing:.15em; }
.feature h3 { font-family:var(--serif); font-size:25px; font-weight:400; margin:24px 0 12px; }
.feature p { min-height:88px; color:var(--muted); font-size:13px; line-height:1.8; }
.feature a { font-size:11px; font-weight:700; color:var(--green); }
.dark-section { display:grid; grid-template-columns:1fr .85fr; gap:8vw; align-items:center; padding:90px clamp(22px,8vw,130px); color:#f4f5ef; background:#203b31; }
.dark-section .eyebrow { color:#b6c89d; }
.dark-section h2 { max-width:520px; }
.dark-section>div>p:not(.eyebrow) { color:#c0cbc1; max-width:550px; }
.doc-list { border-top:1px solid #597064; }
.doc-list a { display:grid; grid-template-columns:38px 1fr 20px; align-items:center; padding:20px 0; border-bottom:1px solid #597064; font-size:13px; }
.doc-list span { color:#b6c89d; font-size:10px; }.doc-list b { color:#b6c89d; }
.platform { text-align:center; }
.platform .section-heading { margin:0 auto 30px; }
.module-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:28px 0 32px; }
.module-chips span { padding:12px 17px; border:1px solid var(--line); border-radius:2px; color:#526057; font-size:11px; background:#fafbf8; }
footer { display:flex; justify-content:space-between; gap:20px; padding:27px clamp(22px,8vw,130px); border-top:1px solid var(--line); color:#69766e; font-size:10px; }
footer small { margin-left:12px; color:#97a199; }
.content-page { max-width:900px; margin:0 auto; padding:80px 24px 110px; }
.content-page h1,.login-card h1,.app-main h1 { font-family:var(--serif); font-size:clamp(40px,6vw,64px); font-weight:400; letter-spacing:-.04em; }
.content-page h2 { font-family:var(--serif); font-size:27px; font-weight:400; margin:35px 0 10px; }
.content-page p,.content-page li { color:#59665f; font-size:14px; line-height:1.9; }
.content-page li { margin:8px 0; }.content-page a { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.notice { padding:18px 20px; margin-top:30px; border-left:3px solid #9cad85; background:#e9eee5; color:#4e5e52; font-size:13px; line-height:1.7; }
.pre-tasar-blocked-notice {
  padding:18px 20px; margin-top:30px; border-left:3px solid #b00; background:#fee2e2; color:#991b1b; font-size:13px; font-weight:600; line-height:1.7;
  display:flex; align-items:center; gap:8px;
}
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(100%,430px); padding:42px; background:#fff; border:1px solid var(--line); }
.login-card h1 { font-size:42px; margin:36px 0 8px; }.muted { color:var(--muted); font-size:13px; line-height:1.7; }
.login-card label { display:block; margin:22px 0 8px; font-size:12px; font-weight:700; }
.login-card input { width:100%; height:46px; padding:0 12px; border:1px solid var(--line); background:#fbfcf9; font:inherit; }
.login-card button { width:100%; margin-top:24px; }.login-card [data-login-message] { min-height:42px; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:240px 1fr; }
.sidebar { padding:30px 22px; background:#203b31; color:#fff; display:flex; flex-direction:column; gap:9px; }
.sidebar .brand { margin:0 0 34px; }.sidebar .item { padding:13px 14px; color:#d1dbd2; font-size:12px; border-radius:2px; }.sidebar .item.active,.sidebar .item:hover { background:#355447; color:#fff; }
.app-main { padding:55px clamp(22px,5vw,70px); }.app-top { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:36px; }
.app-main h1 { margin:5px 0; font-size:52px; }.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stat,.panel { padding:22px; background:#fff; border:1px solid var(--line); color:#68746e; font-size:12px; }
.stat strong { display:block; margin:16px 0 5px; font-family:var(--serif); font-size:38px; font-weight:400; color:var(--ink); }.stat span { font-size:11px; }
.panel { margin-top:22px; padding:28px; }.panel h2 { font-family:var(--serif); font-size:26px; font-weight:400; color:var(--ink); }
@media (max-width:850px) {
  .hero { grid-template-columns:1fr; padding-top:65px; }.hero-art { height:310px; max-width:420px; }
  .dark-section { grid-template-columns:1fr; }.feature-grid { grid-template-columns:1fr; }.feature,.feature + .feature { padding:26px 0; border-left:0; border-bottom:1px solid var(--line); }
  .feature p { min-height:0; }.stat-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px) {
  .site-header { align-items:flex-start; flex-direction:column; padding:20px 22px; }.site-header nav { flex-wrap:wrap; gap:12px 18px; }
  .hero { min-height:0; padding-bottom:55px; }.hero-art { height:260px; }
  .metrics { grid-template-columns:1fr; }.metrics div { padding:18px 24px; }
  .section,.dark-section { padding-top:65px; padding-bottom:65px; }
  footer { flex-direction:column; }.app-shell { grid-template-columns:1fr; }.sidebar { flex-direction:row; flex-wrap:wrap; align-items:center; padding:16px; }.sidebar .brand { width:100%; margin:0 0 8px; }
  .app-main { padding:32px 20px; }.app-top { align-items:flex-start; flex-direction:column; }.stat-grid { grid-template-columns:1fr 1fr; gap:8px; }.stat { padding:15px; }
  .login-card { padding:28px 22px; }
}

.password-form { max-width: 520px; }
.password-form label { display:block; margin:18px 0 7px; color:var(--ink); font-size:12px; font-weight:700; }
.password-form input { width:100%; height:46px; padding:0 12px; border:1px solid var(--line); background:#fbfcf9; font:inherit; }
.password-form button { margin-top:22px; }
.password-form [data-password-message] { min-height:24px; margin-top:12px; }
.app-user { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

.app-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:22px; }
.app-form-grid label { display:block; color:var(--ink); font-size:12px; font-weight:700; }
.app-form-grid input,.app-form-grid select { display:block; width:100%; height:44px; margin-top:7px; padding:0 12px; border:1px solid var(--line); background:#fbfcf9; color:var(--ink); font:inherit; font-weight:400; border-radius:2px; }
.app-form-grid .wide { grid-column:1/-1; }
.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:20px; }
.form-actions p { margin:0; }
.list-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.list-heading h2 { margin-bottom:6px; }
.table-wrap { width:100%; overflow-x:auto; }
.data-table { width:100%; min-width:850px; border-collapse:collapse; text-align:left; font-size:12px; }
.data-table th { padding:13px 10px; color:#68746e; font-size:10px; letter-spacing:.08em; text-transform:uppercase; border-bottom:1px solid var(--line); white-space:nowrap; }
.data-table td { padding:13px 10px; border-bottom:1px solid #e8ece7; vertical-align:middle; }
.data-table tbody tr:hover { background:#f7f9f5; }
.table-empty { padding:26px 10px !important; color:var(--muted); text-align:center; }
.table-actions { display:flex; align-items:center; gap:7px; }
.table-actions input { width:115px; height:36px; padding:0 8px; border:1px solid var(--line); background:#fff; font:inherit; }
.table-actions button { min-height:36px; padding:0 10px; border:1px solid var(--line); background:#fff; color:var(--green); font:inherit; font-weight:700; cursor:pointer; }
.table-actions button.danger { color:#9b3d34; }
.table-actions button:disabled,.form-actions button:disabled { opacity:.55; cursor:wait; }
.page-footnote { margin:16px 2px; font-size:11px; }
@media (max-width:850px) { .app-form-grid { grid-template-columns:1fr; } .app-form-grid .wide { grid-column:auto; } }
@media (max-width:600px) { .list-heading { align-items:flex-start; flex-direction:column; } .form-actions { align-items:flex-start; flex-direction:column; } }
/* Cadastral analysis workspace */
.cadastral-search { margin-top: 0; padding: 30px; }
.cadastral-search label { display:block; margin-bottom:10px; font-size:12px; font-weight:800; }
.cadastral-search-row { display:flex; gap:12px; }
.cadastral-search-row input { flex:1; min-width:0; height:50px; border:1px solid var(--line); background:#fbfcf9; padding:0 15px; font:inherit; font-size:15px; letter-spacing:.04em; }
.cadastral-search-row button { min-width:190px; }
.analysis-status { min-height:20px; margin:12px 0 0; color:var(--muted); font-size:12px; }
.analysis-status.success { color:#176b4d; }.analysis-status.error { color:#a13d35; }
.analysis-result { margin-top:28px; }.result-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:24px 0; }
.result-heading h2 { margin:5px 0; font-family:var(--serif); font-size:32px; font-weight:400; overflow-wrap:anywhere; }
.cadastral-stats { margin-bottom:18px; }.analysis-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.detail-list { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0; }.detail-list dt { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }.detail-list dd { margin:5px 0 0; color:var(--ink); font-size:12px; font-weight:700; overflow-wrap:anywhere; }
.source-list { display:grid; gap:12px; }.source-list article { display:grid; gap:4px; padding-bottom:10px; border-bottom:1px solid var(--line); }.source-list strong { font-size:11px; }.source-list span { color:var(--muted); font-size:10px; line-height:1.6; }
.data-table { width:100%; border-collapse:collapse; font-size:11px; }.data-table th { padding:11px 12px; text-align:left; color:#526057; background:#eef2ed; font-size:9px; letter-spacing:.08em; }.data-table td { padding:12px; border-bottom:1px solid var(--line); color:#34443c; }.data-table tr:last-child td { border-bottom:0; }.table-scroll { overflow-x:auto; }
.small-button { min-height:32px; padding:0 12px; font-size:10px; border:1px solid var(--line); background:#fff; }.previous-analyses { margin-top:26px; }
.dashboard-feature { display:flex; justify-content:space-between; align-items:center; gap:24px; }.dashboard-feature h2 { margin:8px 0; }.dashboard-feature .button { flex-shrink:0; }
@media (max-width:700px) { .cadastral-search-row,.result-heading,.dashboard-feature { flex-direction:column; align-items:stretch; }.cadastral-search-row button { width:100%; }.analysis-columns { grid-template-columns:1fr; }.detail-list { grid-template-columns:1fr 1fr; }.result-heading .button { width:100%; } }

/* Interactive cadastral and territorial map */
.map-panel { margin: 22px 0; overflow: visible; }
.map-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.map-heading h2 { margin: 0 0 7px; }
.map-heading .muted { max-width: 620px; margin: 0; }
.map-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 8px; min-width: 250px; }
.map-actions label { width: 100%; color: var(--muted, #64748b); font-size: 12px; font-weight: 700; }
.map-actions select { min-width: 180px; max-width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border, #dce4e5); border-radius: 8px; background: #fff; color: var(--ink, #183136); }
.map-export { display: flex; gap: 6px; }
#parcel-map { width: 100%; height: 480px; border: 1px solid var(--border, #dce4e5); border-radius: 12px; z-index: 1; background: #e8eeee; }
.map-attribution { margin: 10px 0 0; color: var(--muted, #64748b); font-size: 11px; }
.small-button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.leaflet-control-layers { border: 1px solid rgba(24,49,54,.16) !important; border-radius: 9px !important; box-shadow: 0 4px 18px rgba(15,35,40,.12) !important; }
.leaflet-control-layers-expanded { padding: 10px 12px !important; }
.leaflet-container { font-family: inherit; }
@media (max-width: 760px) {
  .map-heading { display: block; }
  .map-actions { justify-content: flex-start; margin-top: 14px; }
  #parcel-map { height: 380px; }
}

/* Transparent economic valuation workspace */
.valuation-create { display:flex; gap:12px; align-items:center; }
.valuation-create select { flex:1; min-width:0; height:46px; padding:0 12px; border:1px solid var(--line); background:#fbfcf9; font:inherit; }
.case-status { display:inline-block; padding:8px 12px; border:1px solid var(--line); color:var(--green); font-size:10px; font-weight:800; letter-spacing:.1em; }
.valuation-comparables { min-width:1050px; }
.valuation-comparables input:not([type=checkbox]) { width:100%; min-width:90px; height:36px; padding:0 7px; border:1px solid var(--line); font:inherit; }
.valuation-comparables td:first-child input { min-width:190px; }
.valuation-comparables input[type=checkbox] { width:18px; height:18px; }
.valuation-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0 30px; }
.valuation-results article { display:flex; flex-direction:column; gap:9px; padding:18px; border:1px solid var(--line); background:#f8faf6; }
.valuation-results article span { color:var(--muted); font-size:10px; }
.valuation-results article strong { color:var(--ink); font-family:var(--serif); font-size:26px; font-weight:400; }
.valuation-results article small { color:var(--muted); font-size:10px; line-height:1.6; }
@media(max-width:700px){.valuation-create{align-items:stretch;flex-direction:column}.valuation-create .button{width:100%}.valuation-results{grid-template-columns:1fr}}
.batch-import-panel textarea { width:100%; min-height:100px; padding:12px; border:1px solid var(--line); background:#fbfcf9; color:var(--ink); font:inherit; resize:vertical; }
.batch-import-panel label { display:block; margin:14px 0 8px; font-size:12px; font-weight:700; }

.territorial-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:18px 0 24px; }
.territorial-stats article { display:flex; flex-direction:column; gap:8px; padding:15px; border:1px solid var(--line); background:#f7faf8; }
.territorial-stats article span,.territorial-sources span { color:var(--muted); font-size:10px; line-height:1.5; }
.territorial-stats article strong { color:var(--ink); font-family:var(--serif); font-size:20px; font-weight:400; }
.territorial-protection h3 { margin:0 0 8px; font-family:var(--serif); font-size:20px; font-weight:400; }
.territorial-sources { display:grid; gap:5px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.territorial-panel .list-heading { align-items:center; }
@media(max-width:700px){.territorial-panel .list-heading{align-items:flex-start;flex-direction:column}.territorial-panel .list-heading .button{width:100%}}

/* Public technical documentation and source traceability */
.documentation-page { max-width: 980px; }
.documentation-page .lead { max-width: 820px; font-size: 17px; line-height: 1.8; color: var(--muted); }
.documentation-page h2 { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); }
.documentation-page h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.documentation-page p,.documentation-page li { line-height: 1.75; }
.source-entry { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.source-entry p { margin: 9px 0; }
.source-entry ul { padding-left: 22px; }
.source-entry a,.documentation-page a { color: var(--green); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.documentation-links { display: grid; gap: 12px; padding: 0; list-style: none; }
.documentation-links li { margin: 0; }
.documentation-links a { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); text-decoration: none; }
.documentation-links a span { color: var(--muted); font-size: 13px; font-weight: 400; }
.source-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; }
.source-actions a { color: var(--green); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.source-warning { display: block; margin-top: 6px; color: #8b5a24; font-size: 10px; line-height: 1.5; }
.source-list article { padding: 12px 0; }
.territorial-sources > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.territorial-sources > div:last-child { border-bottom: 0; }
.territorial-sources .source-actions a { font-size: 10px; }
@media (max-width: 700px) { .documentation-page .lead { font-size: 15px; } .documentation-page h2 { margin-top: 30px; } }


/* Multi-parcel and SIGPAC lot workflow */
.lot-builder .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.lot-builder .form-grid label { display:grid; gap:7px; color:var(--ink); font-size:12px; font-weight:700; }
.lot-builder input,.lot-builder select { width:100%; min-width:0; min-height:44px; padding:9px 11px; border:1px solid var(--line); background:#fbfcf9; color:var(--ink); font:inherit; }
.lot-builder input[type=checkbox] { width:18px; min-height:18px; }
.analysis-repeat-row td { background:rgba(15,118,110,.035); }
.analysis-repeat-row td:nth-child(2) { padding-left:26px; }
#recent-analyses small { display:block; margin-top:4px; font-size:10px; }
#lot-result { scroll-margin-top:24px; }
#lot-result .stat-grid { margin:18px 0; }
@media(max-width:700px){.lot-builder .form-grid{grid-template-columns:1fr}}
