/* ──────────────────────────────────────────────────────────
   Patricia's Room Rental — "Cozy" theme
   Warm, soft, welcoming. Used on the unified login + tenant portal.
   Self-contained (does not require style.css).
   ────────────────────────────────────────────────────────── */

:root {
    --cream:      #FBF6EE;
    --paper:      #FFFDF9;
    --clay:       #C36F4E;
    --clay-dark:  #A8583A;
    --clay-soft:  #F3E4DA;
    --clay-tint:  #FBEFE7;
    --sage:       #7E8B6E;
    --sage-soft:  #E7ECE0;
    --amber:      #E0A458;
    --ink:        #3A322A;
    --ink-soft:   #6B6055;
    --muted:      #9A8E7F;
    --line:       #ECE2D3;
    --line-soft:  #F3EDE2;
    --ok:         #5E8B6A;
    --ok-soft:    #E4EFE5;
    --warn:       #C98A3C;
    --warn-soft:  #F8ECD6;
    --danger:     #B4573F;
    --danger-soft:#F6E2DB;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --shadow-soft: 0 8px 24px -12px rgba(120, 80, 40, 0.22);
    --shadow-lift: 0 16px 40px -18px rgba(120, 80, 40, 0.30);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-head: 'Fraunces', 'DM Sans', Georgia, serif;
}

* , *::before, *::after { box-sizing: border-box; }

body.cozy {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.cozy h1, .cozy h2, .cozy h3 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.01em; }
.cozy a { color: var(--clay-dark); text-decoration: none; }
.cozy a:hover { color: var(--clay); }
.cozy .muted { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────── */
.cbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--r-md); border: 1px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all .2s var(--ease); text-decoration: none; line-height: 1;
}
.cbtn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-soft); }
.cbtn-primary:hover { background: var(--clay-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.cbtn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.cbtn-ghost:hover { background: var(--clay-tint); border-color: var(--clay-soft); color: var(--clay-dark); }
.cbtn-sage { background: var(--sage); color: #fff; }
.cbtn-sage:hover { background: #6c7a5d; color: #fff; }
.cbtn-block { width: 100%; }
.cbtn-sm { padding: 8px 14px; font-size: 0.85rem; }

.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line);
    border-radius: var(--r-md); background: var(--paper); color: var(--ink);
    font-weight: 600; font-size: 0.94rem; cursor: pointer; transition: all .2s var(--ease);
}
.social-btn:hover { background: var(--clay-tint); border-color: var(--clay-soft); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.social-btn svg { width: 18px; height: 18px; flex: none; }

.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── Forms ───────────────────────────────────────────── */
.cozy label.field-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--ink-soft); }
.cozy .cinput, .cozy textarea.cinput, .cozy select.cinput {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--paper); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cozy .cinput:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
.cozy textarea.cinput { resize: vertical; min-height: 96px; }
.cozy .field-help { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.cozy .field { margin-bottom: 16px; }

/* ── Cards ───────────────────────────────────────────── */
.ccard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.ccard-pad { padding: 22px 24px; }

/* ── Alerts ──────────────────────────────────────────── */
.calert { padding: 12px 16px; border-radius: var(--r-md); font-size: 0.9rem; margin-bottom: 16px; border: 1px solid transparent; }
.calert-info    { background: var(--sage-soft); color: #40503a; border-color: #cdd8c1; }
.calert-success { background: var(--ok-soft); color: #315a3c; border-color: #bcd8c1; }
.calert-danger  { background: var(--danger-soft); color: #7c3220; border-color: #e6c1b6; }
.calert-warning { background: var(--warn-soft); color: #7a5417; border-color: #ecd3a6; }

/* ── Badges ──────────────────────────────────────────── */
.cbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.cbadge-clay  { background: var(--clay-tint); color: var(--clay-dark); }
.cbadge-sage  { background: var(--sage-soft); color: #46543c; }
.cbadge-open  { background: var(--warn-soft); color: #7a5417; }
.cbadge-prog  { background: #E5EDF5; color: #315a7c; }
.cbadge-done  { background: var(--ok-soft); color: #315a3c; }
.cbadge-new   { background: var(--clay); color: #fff; }

/* ── Login (unified) ─────────────────────────────────── */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.login-visual {
    position: relative; background: linear-gradient(180deg, rgba(58,40,26,0.15), rgba(58,40,26,0.55)),
        url('images/cozy/red-living.webp') center/cover no-repeat;
    display: flex; align-items: flex-end; padding: 44px;
}
.login-visual .v-copy { color: #fff8ef; max-width: 420px; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.login-visual .v-copy h2 { color: #fff8ef; font-size: 2rem; line-height: 1.12; margin-bottom: 10px; }
.login-visual .v-copy p { color: rgba(255,248,239,0.9); margin: 0; font-size: 1rem; }
.login-visual .v-brand { position: absolute; top: 40px; left: 44px; display: flex; align-items: center; gap: 10px; color: #fff8ef; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.login-visual .v-brand .p-mark { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,253,249,0.16); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.login-inner { width: 100%; max-width: 380px; animation: rise .5s var(--ease) both; }
.login-inner .eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clay-dark); font-weight: 700; margin-bottom: 8px; }
.login-inner h1 { font-size: 1.7rem; margin-bottom: 4px; }
.login-inner .lead { color: var(--ink-soft); margin: 0 0 24px; }
.pw-toggle { text-align: center; margin-top: 16px; font-size: 0.82rem; }
.pw-panel { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); display: none; }
.pw-panel.open { display: block; animation: rise .3s var(--ease) both; }
.login-foot { text-align: center; margin-top: 26px; font-size: 0.72rem; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 200px; padding: 28px; }
    .login-visual .v-brand { top: 22px; left: 28px; }
}

/* ── Portal shell ────────────────────────────────────── */
.pnav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.pnav-inner { max-width: 920px; margin: 0 auto; padding: 0 18px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.pnav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.pnav-brand .p-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--clay), var(--clay-dark)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); }
.pnav-links { display: flex; align-items: center; gap: 4px; }
.pnav-links a { padding: 8px 13px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.pnav-links a:hover { background: var(--clay-tint); color: var(--clay-dark); }
.pnav-links a.active { background: var(--clay-tint); color: var(--clay-dark); font-weight: 600; }
.pnav-links a .dot { background: var(--clay); color: #fff; border-radius: 999px; font-size: 0.64rem; padding: 1px 6px; font-weight: 700; }
@media (max-width: 620px) { .pnav-links a span.lbl { display: none; } .pnav-brand span.txt { display: none; } }

.pwrap { max-width: 920px; margin: 0 auto; padding: 26px 18px 70px; }

.phero { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-soft); margin-bottom: 24px; }
.phero .bg { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(58,40,26,0.72) 0%, rgba(58,40,26,0.35) 55%, rgba(163,86,58,0.25) 100%), url('images/cozy/warm-home.webp') center/cover no-repeat; }
.phero .inner { position: relative; padding: 34px 32px; color: #fff8ef; }
.phero h1 { color: #fff8ef; font-size: 1.8rem; margin-bottom: 6px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.phero p.sub { color: rgba(255,248,239,0.92); margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.phero .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; margin-top: 22px; }
.phero .mini { background: rgba(255,253,249,0.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); padding: 12px 14px; }
.phero .mini .l { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,248,239,0.8); font-weight: 600; }
.phero .mini .v { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #fff8ef; margin-top: 3px; }

.section-h { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); margin: 28px 0 14px; display: flex; align-items: center; gap: 9px; }
.section-h .count { font-size: 0.72rem; background: var(--clay-tint); color: var(--clay-dark); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-family: var(--font-body); }

/* notices */
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.notice.unread { border-left-color: var(--amber); background: linear-gradient(90deg, var(--clay-tint), var(--paper) 60%); }
.notice .n-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.notice h3 { font-size: 1.02rem; margin: 0; }
.notice .n-meta { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.notice .n-body { color: var(--ink-soft); font-size: 0.92rem; white-space: pre-wrap; }
.notice .n-from { font-size: 0.74rem; color: var(--clay-dark); font-weight: 600; margin-top: 8px; }

/* booking cards */
.bcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 18px; margin-bottom: 11px; box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bcard .dates { font-weight: 600; color: var(--ink); }
.bcard .meta { color: var(--muted); font-size: 0.84rem; margin-top: 3px; }
.bcard .rent { font-family: var(--font-head); font-weight: 600; color: var(--clay-dark); font-size: 1.05rem; }
.room-pill { display: inline-flex; padding: 3px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.room-1 { background: var(--clay-tint); color: var(--clay-dark); }
.room-2 { background: var(--sage-soft); color: #46543c; }

/* requests */
.req-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; box-shadow: var(--shadow-soft); transition: transform .15s var(--ease); }
.req-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.req-row .r-sub { font-weight: 600; color: var(--ink); }
.req-row .r-meta { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.bubble { max-width: 78%; padding: 12px 15px; border-radius: 16px; font-size: 0.92rem; white-space: pre-wrap; box-shadow: var(--shadow-soft); }
.bubble .b-who { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; opacity: .8; }
.bubble.from-tenant { align-self: flex-end; background: var(--clay); color: #fff; border-bottom-right-radius: 5px; }
.bubble.from-admin { align-self: flex-start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble .b-time { font-size: 0.68rem; opacity: .7; margin-top: 5px; }

.help-note { margin-top: 30px; padding: 15px 18px; background: var(--sage-soft); border-radius: var(--r-md); color: #46543c; font-size: 0.86rem; }
.empty-soft { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 0.92rem; }
.empty-soft i { font-size: 1.8rem; color: var(--clay-soft); display: block; margin-bottom: 8px; }
