@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/assets/aangan-cormorant.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/aangan-manrope.woff2') format('woff2'); }

:root {
  --paper: #f7f5ef;
  --white: #fffdf8;
  --olive: #394530;
  --ink: #272d25;
  --muted: #5f6855;
  --line: #dfddd0;
  --soft: #eeede3;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  font-family: var(--body);
  color: var(--ink);
  color-scheme: light;
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; font-size: 1rem; line-height: 1.55; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--olive); line-height: 1.05; }
h1 { font-size: clamp(3rem, 7vw, 5.15rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.45rem); letter-spacing: -.028em; }
h3 { font-size: 1.65rem; letter-spacing: -.012em; }
a { color: var(--olive); }
.shell { width: min(100% - clamp(2rem, 8vw, 8rem), 77rem); margin-inline: auto; }
.skip { position: absolute; top: .45rem; left: .5rem; z-index: 3; transform: translateY(-190%); background: var(--white); padding: .55rem .8rem; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid #637452; outline-offset: 4px; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { min-height: 4.85rem; display: flex; align-items: center; gap: clamp(1rem, 4vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand-icon { display: grid; place-items: center; background: var(--olive); color: var(--white); width: 2.62rem; height: 2.62rem; border-radius: .38rem; }
.brand-icon svg { width: 1.76rem; height: 1.76rem; }
.brand-text { display: grid; gap: .1rem; line-height: .95; font-family: var(--display); font-size: 1.64rem; font-weight: 660; }
.brand-text small { font: 680 .59rem/1 var(--body); letter-spacing: .17em; text-transform: uppercase; }
.global-nav { display: flex; gap: clamp(.65rem, 3vw, 1.7rem); }
.global-nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.global-nav a:hover, .footer a:hover, .text-action:hover { text-decoration: underline; text-underline-offset: .24em; }
.footer { border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .88rem; }
.footer-inner { justify-content: space-between; min-height: 3.7rem; }

.auth-layout { margin-block: clamp(1.75rem, 6vw, 4.5rem); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(21rem, .92fr); overflow: hidden; border-radius: 1.25rem; background: var(--white); box-shadow: 0 1rem 3.5rem #343a2611; animation: rise 360ms ease both; }
.welcome-image { min-height: 35rem; background: linear-gradient(145deg, #222c2155, transparent 65%), url('/assets/property-courtyard.webp') center center/cover no-repeat, #a6a78e; }
.auth-content { padding: clamp(1.35rem, 5vw, 3.2rem); min-width: 0; }
.intro { color: var(--muted); max-width: 41ch; margin-top: .55rem; }
.demo-panel { background: var(--soft); border: 1px solid var(--line); border-radius: .78rem; margin-block: 1.55rem 1.5rem; padding: 1rem 1.05rem 1.1rem; }
.demo-panel h2 { font-size: 1.75rem; }
.demo-panel p { color: var(--muted); margin-top: .2rem; }
.demo-options { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .9rem; }
.auth-switch { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 1rem; gap: 1.2rem; }
.toggle { border: 0; background: transparent; color: var(--muted); padding: .25rem 0 .55rem; border-bottom: 2px solid transparent; cursor: pointer; font-weight: 650; }
.toggle[aria-pressed='true'] { border-color: var(--olive); color: var(--olive); }
.form-stack { display: grid; gap: .85rem; }
.form-stack > .button { margin-top: .18rem; }
.field-help { color: var(--muted); font-size: .86rem; margin-top: -.65rem; }
.loading { padding-block: clamp(2rem, 10vw, 5rem); }
.loading p { color: var(--muted); margin-top: .7rem; }

input, select, textarea, button { font: inherit; color: inherit; }
label { display: grid; gap: .32rem; font-size: .875rem; font-weight: 680; min-width: 0; }
input:not([type='checkbox']), select, textarea { width: 100%; min-width: 0; border: 1px solid #cac8ba; border-radius: .44rem; background: var(--white); padding: .64rem .72rem; font-size: 1rem; font-weight: 450; }
select { appearance: none; padding-right: 2.1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.4 5 5 5-5' fill='none' stroke='%23394530' stroke-width='1.45' stroke-linecap='round'/%3E%3C/svg%3E") right .65rem center no-repeat var(--white); }
textarea { resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--olive); color: var(--white); border: 1px solid var(--olive); min-height: 2.8rem; padding: .63rem .95rem; border-radius: .46rem; font-size: .9rem; font-weight: 675; line-height: 1.25; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.button:hover:not(:disabled) { background: #536145; border-color: #536145; }
.button.outline { background: transparent; color: var(--olive); border-color: #aeb3a0; }
.button.outline:hover:not(:disabled) { background: #e7e9df; border-color: var(--olive); }
.button.compact { min-height: 2.35rem; padding: .4rem .7rem; }
.button.danger { background: #8d4f3c; border-color: #8d4f3c; }
.button.danger:hover:not(:disabled) { background: #713c2c; border-color: #713c2c; }
.button:disabled { opacity: .6; cursor: wait; }
.notice { background: #e9ede0; color: #36452c; border: 1px solid #afbc9e; border-radius: .5rem; padding: .65rem .85rem; margin-block: .55rem; overflow-wrap: anywhere; }
.notice.error { background: #f8ece3; border-color: #d4a38c; color: #743f2e; }
main > .notice { margin-top: 1rem; }
.text-action { color: var(--olive); padding: .1rem 0; border: 0; background: transparent; display: inline-block; text-decoration: none; font-size: .89rem; font-weight: 680; cursor: pointer; }
.text-action.danger { color: #853f2d; }

#workspace { padding-block: clamp(1.75rem, 5vw, 3.7rem) 3.5rem; animation: rise 360ms ease both; }
.workspace-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.workspace-heading h1 { overflow-wrap: anywhere; }
.eyebrow { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; font-weight: 725; margin-bottom: .46rem; }
.overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.55rem, 2vw, 1rem); margin-bottom: clamp(1.45rem, 3vw, 2.2rem); }
.overview-tile { display: grid; gap: .15rem; background: #efeee6; border: 1px solid var(--line); border-radius: .8rem; min-height: 6.45rem; padding: clamp(.65rem, 2vw, 1rem); text-decoration: none; transition: background 160ms ease; }
.overview-tile:hover { background: #e7e8dc; }
.overview-label { font-size: .86rem; font-weight: 690; }
.overview-tile strong { font-family: var(--display); font-size: clamp(1.85rem, 4vw, 2.6rem); line-height: 1; }
.workspace-panel { background: var(--white); border: 1px solid var(--line); border-radius: .95rem; padding: clamp(.9rem, 3vw, 1.45rem); min-width: 0; scroll-margin-top: 1rem; }
.panel-head { margin-bottom: 1rem; }
.properties-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.property-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: .62rem; background: var(--paper); display: flex; flex-direction: column; }
.property-image { display: block; aspect-ratio: 1.65; overflow: hidden; background: #e4e5d7; }
.property-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms ease; }
.property-image:hover img { transform: scale(1.035); }
.property-image:focus-visible { outline-offset: -4px; }
.property-content { display: flex; flex-direction: column; gap: .38rem; height: 100%; padding: .9rem; }
.property-content h3 a { text-decoration: none; overflow-wrap: anywhere; }
.property-content h3 a:hover { text-decoration: underline; text-underline-offset: .16em; }
.listing-place, .listing-facts, .record-meta { color: var(--muted); font-size: .86rem; }
.listing-price { font-weight: 720; color: var(--olive); }
.card-actions { display: flex; gap: .75rem; flex-wrap: wrap; padding-top: .5rem; margin-top: auto; }
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.requests-list, .empty-state { min-width: 0; }
.request { min-width: 0; padding: .85rem 0; overflow-wrap: anywhere; }
.request:first-child { padding-top: 0; }
.request + .request { border-top: 1px solid var(--line); }
.request h3 a { text-decoration: none; }
.request h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.request-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .65rem; }
.request p { margin-top: .35rem; white-space: pre-wrap; }
.status-chip { background: #efece2; border: 1px solid var(--line); color: #535648; padding: .17rem .43rem; border-radius: .3rem; line-height: 1.4; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.status-chip.confirmed, .status-chip.responded, .status-chip.completed { background: #e8eddf; color: var(--olive); }
.status-chip.cancelled, .status-chip.closed { color: #754d40; background: #f4e9e1; }
.request-status-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-top: .8rem; }
.status-control-field { flex: 0 1 auto; min-width: 9rem; }
.status-control-field label { margin-bottom: .32rem; }
.request-status-form select { font-size: .88rem; padding-block: .5rem; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: start; align-content: start; gap: .5rem; padding: 1rem 1.05rem; border: 1px dashed #c8c8b6; border-radius: .6rem; background: var(--paper); color: var(--muted); }

dialog { width: min(calc(100% - 1.4rem), 42rem); max-height: 92vh; overflow: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(.95rem, 3vw, 1.5rem); box-shadow: 0 1rem 5rem #2b32274f; }
dialog::backdrop { background: #272d2580; }
.dialog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .95rem; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
#delete-dialog { max-width: 29rem; }
#delete-dialog p { overflow-wrap: anywhere; }
.image-picker { border: 1px solid var(--line); border-radius: .45rem; margin: .1rem 0 0; min-width: 0; }
.image-picker legend { font-weight: 650; font-size: .9rem; }
.image-picker legend span { color: var(--muted); font-weight: 500; }
.image-options { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: .55rem; }
.image-options label { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; border: 1px solid var(--line); border-radius: .4rem; overflow: hidden; padding: .25rem; color: var(--muted); }
.image-options img { width: 100%; aspect-ratio: 1.75; object-fit: cover; background: #e4e5d7; border-radius: .23rem; }
.image-options input { width: 1rem; height: 1rem; accent-color: var(--olive); }

@keyframes rise { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 57rem) { .properties-list { grid-template-columns: repeat(2,minmax(0, 1fr)); } }
@media (max-width: 47rem) { .auth-layout { grid-template-columns: 1fr; } .welcome-image { min-height: clamp(9rem, 35vw, 14rem); background-position: center 49%; } }
@media (max-width: 38rem) { .request-grid { grid-template-columns: 1fr; } .masthead-inner { gap: .7rem; } .global-nav .tour-link { display: none; } }
@media (max-width: 32rem) { .properties-list { grid-template-columns: 1fr; } }
@media (max-width: 24rem) { .image-options { grid-template-columns: repeat(2,minmax(0, 1fr)); } .masthead-inner { flex-wrap: wrap; gap: .6rem; padding-block: .55rem; } .editor { grid-template-columns: 1fr; } }
