:root {
  --clariso-blue: #32627d;
  --clariso-blue-dark: #183e58;
  --clariso-navy: #0d2145;
  --clariso-yellow: #f1d43b;
  --clariso-sky: #6094c7;
  --clariso-green: #45a13a;
  --text-soft: #667085;
  --border: #dbe3e8;
  --surface: #ffffff;
  --page: #f6f8fa;
  --error: #a63030;
  --error-bg: #fff1f1;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--clariso-navy);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.login-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 12% 88%, rgba(96, 148, 199, .12), transparent 24rem),
    linear-gradient(135deg, #f8fafb 0%, #fff 58%, #f1f5f7 100%);
}

.site-header {
  min-height: 86px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--clariso-blue);
  color: #fff;
  box-shadow: 0 8px 28px rgba(13, 33, 69, .13);
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 136px;
  height: auto;
}

.language-nav { display: flex; align-items: center; gap: 5px; }
.language-nav a {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
}
.language-nav a:hover, .language-nav a:focus-visible { background: rgba(255,255,255,.12); color: #fff; outline: none; }
.language-nav a.active { background: #fff; color: var(--clariso-blue-dark); }

.login-main { display: grid; place-items: center; padding: 48px 20px; }
.login-card {
  position: relative;
  width: min(100%, 480px);
  padding: clamp(30px, 5vw, 48px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(219, 227, 232, .85);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(13, 33, 69, .12);
}
.card-accent { position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--clariso-yellow), var(--clariso-sky) 45%, var(--clariso-blue)); }
.eyebrow { margin: 0 0 10px; color: var(--clariso-blue); font-size: .82rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.65rem); line-height: 1.12; letter-spacing: -.035em; }
.intro { margin: 14px 0 30px; color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.alert { margin: -10px 0 24px; padding: 13px 15px; border: 1px solid #efc2c2; border-radius: 8px; background: var(--error-bg); color: var(--error); font-size: .92rem; line-height: 1.45; }
.login-form { display: grid; gap: 10px; }
.login-form > label { margin-top: 6px; font-size: .9rem; font-weight: 650; }
.login-form input[type="email"], .login-form input[type="password"], .login-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--clariso-navy);
  outline: none;
}
.login-form input:focus { border-color: var(--clariso-blue); box-shadow: 0 0 0 3px rgba(50, 98, 125, .13); }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-soft); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: #eef3f6; color: var(--clariso-blue-dark); outline: none; }
.password-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.submit-button { min-height: 54px; margin-top: 12px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 8px; background: var(--clariso-blue); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 9px 20px rgba(50, 98, 125, .22); transition: background .18s ease, transform .18s ease; }
.submit-button:hover { background: var(--clariso-blue-dark); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgba(96, 148, 199, .35); outline-offset: 3px; }
.submit-button span { font-size: 1.2rem; }
.forgot-help { margin-top: 22px; color: var(--text-soft); font-size: .9rem; }
.forgot-help summary { color: var(--clariso-blue-dark); font-weight: 650; cursor: pointer; }
.forgot-help p { margin: 9px 0 0; line-height: 1.5; }
.security-note { margin: 25px 0 0; padding-top: 20px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .82rem; }
.security-note span { color: var(--clariso-green); font-weight: 800; }
footer { padding: 20px; color: #7c8994; text-align: center; font-size: .8rem; }

.dashboard-page { background: var(--page); }
.portal-actions { display: flex; align-items: center; gap: 18px; }
.portal-actions form { margin: 0; }
.portal-nav { display: flex; align-items: center; gap: 4px; }
.portal-nav a { min-height: 44px; padding: 0 13px; display: grid; place-items: center; border-radius: 7px; color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 650; }
.portal-nav a:hover, .portal-nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }
.portal-nav a.active { background: rgba(255,255,255,.16); color: #fff; }
.portal-languages { gap: 1px; }
.portal-languages a { min-width: 34px; min-height: 36px; font-size: .72rem; }
.logout-button { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.65); border-radius: 7px; background: transparent; color: #fff; font-weight: 650; cursor: pointer; }
.logout-button:hover { background: #fff; color: var(--clariso-blue-dark); }
.dashboard-main { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 84px) 20px; }
.welcome-panel { padding: clamp(30px, 5vw, 56px); border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(13, 33, 69, .08); }
.welcome-panel p:last-child { max-width: 660px; margin: 18px 0 0; color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.summary-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.summary-card { min-height: 116px; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--clariso-navy); text-decoration: none; box-shadow: 0 10px 28px rgba(13, 33, 69, .05); transition: transform .18s ease, border-color .18s ease; }
.summary-card:hover { transform: translateY(-2px); border-color: #b6c9d4; }
.summary-card span { color: var(--text-soft); font-size: .9rem; font-weight: 650; }
.summary-card strong { font-size: 2.45rem; line-height: 1; }
.summary-card.current { border-top: 4px solid var(--clariso-green); }
.summary-card.upcoming { border-top: 4px solid var(--clariso-sky); }
.summary-card.past { border-top: 4px solid #aeb8c0; }
.properties-section { margin-top: 28px; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(13, 33, 69, .06); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.025em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--text-soft); line-height: 1.55; }
.property-grid { display: grid; gap: 14px; }
.property-card { min-height: 100px; padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 17px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.property-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: #edf4f7; color: var(--clariso-blue); }
.property-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.property-content h3 { margin: 0 0 7px; font-size: 1.08rem; }
.property-content p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.property-status { padding: 7px 10px; border-radius: 999px; background: #f0f2f4; color: #69727c; font-size: .78rem; font-weight: 700; }
.property-status.is-active { background: #edf8eb; color: #397f32; }
.empty-state { padding: 28px; border: 1px dashed #cbd7de; border-radius: 12px; background: #f9fbfc; color: var(--text-soft); text-align: center; line-height: 1.55; }

.booking-main, .booking-detail-main { max-width: 1260px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 12px; }
.page-heading > p:last-child { margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.6; }
.booking-tabs { width: fit-content; margin-bottom: 24px; padding: 5px; display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.booking-tabs a { min-height: 42px; padding: 0 18px; display: grid; place-items: center; border-radius: 7px; color: var(--text-soft); text-decoration: none; font-size: .9rem; font-weight: 700; }
.booking-tabs a:hover { background: #f0f4f6; color: var(--clariso-blue-dark); }
.booking-tabs a.active { background: var(--clariso-blue); color: #fff; }
.booking-empty { margin-top: 16px; background: #fff; }
.booking-list { display: grid; gap: 14px; }
.booking-card { padding: 22px; display: grid; grid-template-columns: minmax(190px, .85fr) minmax(230px, 1.35fr) minmax(235px, 1fr) auto; align-items: center; gap: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(13, 33, 69, .045); }
.booking-date { display: flex; align-items: center; gap: 9px; color: var(--clariso-navy); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.booking-date i { color: #9aa8b2; font-style: normal; }
.booking-status { width: fit-content; margin-bottom: 8px; padding: 5px 8px; display: inline-flex; border-radius: 999px; background: #f0f2f4; color: #64717b; font-size: .72rem; font-weight: 750; }
.booking-status.current { background: #edf8eb; color: #397f32; }
.booking-status.upcoming { background: #eaf3f8; color: var(--clariso-blue); }
.booking-labels { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.booking-labels .booking-status { margin-bottom: 0; }
.channel-badge { padding: 5px 8px; display: inline-flex; border: 1px solid #d9e1e6; border-radius: 999px; color: #536773; background: #fff; font-size: .72rem; font-weight: 700; }
.booking-primary h2 { margin: 0 0 6px; font-size: 1.05rem; }
.booking-primary p { margin: 0; color: var(--text-soft); font-size: .9rem; }
.booking-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.booking-meta div { min-width: 0; }
.booking-meta dt { margin-bottom: 5px; color: var(--text-soft); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.booking-meta dd { margin: 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 700; }
.booking-meta small { margin-top: 4px; display: block; color: var(--text-soft); font-size: .7rem; font-weight: 500; line-height: 1.35; }
.detail-link { min-height: 43px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--clariso-blue); border-radius: 8px; color: var(--clariso-blue); text-decoration: none; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.detail-link:hover { background: var(--clariso-blue); color: #fff; }

.back-link { display: inline-flex; margin-bottom: 25px; color: var(--clariso-blue); text-decoration: none; font-size: .9rem; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.detail-heading { margin-bottom: 24px; padding: clamp(26px, 4vw, 42px); display: flex; align-items: end; justify-content: space-between; gap: 28px; border-radius: 16px; background: var(--clariso-blue-dark); color: #fff; box-shadow: 0 18px 38px rgba(13, 33, 69, .14); }
.detail-heading .eyebrow { margin-top: 8px; color: rgba(255,255,255,.68); }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail-badges .booking-status { margin-bottom: 0; }
.detail-heading .channel-badge { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.1); color: #fff; }
.detail-heading h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.detail-heading > div > p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.76); }
.detail-total { text-align: right; white-space: nowrap; }
.detail-total span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.68); font-size: .8rem; font-weight: 650; }
.detail-total strong { font-size: clamp(1.5rem, 3vw, 2rem); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-panel { padding: clamp(23px, 3vw, 32px); border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.detail-panel h2, .owner-note h2 { margin: 0 0 22px; font-size: 1.2rem; }
.detail-list, .price-list { margin: 0; display: grid; }
.detail-list > div, .price-list > div { padding: 11px 0; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f2; }
.detail-list > div:first-child, .price-list > div:first-child { padding-top: 0; }
.detail-list > div:last-child, .price-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list dt, .price-list dt { color: var(--text-soft); font-size: .88rem; }
.detail-list dd, .price-list dd { margin: 0; text-align: right; font-size: .9rem; font-weight: 700; }
.detail-list dd a { color: var(--clariso-blue); }
.detail-list small { margin-top: 4px; display: block; color: var(--text-soft); font-size: .76rem; font-weight: 500; line-height: 1.4; }
.panel-empty { margin: 0; color: var(--text-soft); line-height: 1.6; }
.price-list .price-total { margin-top: 9px; padding: 15px 0; border-top: 2px solid var(--clariso-navy); border-bottom: 0; }
.price-list .price-total dt, .price-list .price-total dd { color: var(--clariso-navy); font-size: 1rem; font-weight: 800; }
.price-list .price-deduction dt, .price-list .price-deduction dd { color: var(--clariso-blue); }
.payout-panel { margin-top: 18px; padding: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; border: 1px solid #cfe0c9; border-radius: 14px; background: linear-gradient(135deg, #f4fbf2, #fff); box-shadow: 0 8px 26px rgba(45, 105, 38, .06); }
.payout-panel > div:last-child { padding-left: 36px; border-left: 1px solid #d7e6d2; }
.payout-panel .eyebrow { color: #397f32; }
.payout-panel > div > strong { display: block; color: #275f23; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.1; }
.payout-panel p { margin: 10px 0 0; color: var(--text-soft); font-size: .88rem; line-height: 1.5; }
.payout-timing > span { display: block; margin-bottom: 9px; color: var(--text-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.payout-timing > strong { display: block; color: var(--clariso-navy); font-size: 1.25rem; }
.owner-note { margin-top: 18px; padding: clamp(23px, 3vw, 32px); border-left: 5px solid var(--clariso-yellow); border-radius: 12px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.owner-note p { margin: 0; color: #485966; line-height: 1.65; }
.document-panel { margin-top: 18px; padding: clamp(23px, 3vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13, 33, 69, .045); }
.document-panel h2 { margin: 2px 0 7px; font-size: 1.2rem; }
.document-panel > div > p:last-child { margin: 0; color: var(--text-soft); line-height: 1.55; }
.document-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.document-button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--clariso-blue); border-radius: 8px; color: var(--clariso-blue); text-decoration: none; font-size: .85rem; font-weight: 750; white-space: nowrap; }
.document-button:hover { background: #edf4f7; }
.document-button.primary { background: var(--clariso-blue); color: #fff; }
.document-button.primary:hover { background: var(--clariso-blue-dark); }
.confirmation-main { max-width: 960px; }
.confirmation-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.confirmation-toolbar .back-link { margin-bottom: 0; }
.confirmation-paper { padding: clamp(24px, 5vw, 58px); overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 16px 45px rgba(13, 33, 69, .09); }
.confirmation-paper > html, .confirmation-paper head { display: none; }
.confirmation-paper body { margin: 0; }
.confirmation-paper .daily-net-page { margin-top: 60px; padding-top: 44px; border-top: 2px dashed #c8d4da; }

@media (max-width: 640px) {
  .site-header { min-height: 76px; padding-inline: 18px; }
  .brand-logo { width: 112px; }
  .language-nav { gap: 0; }
  .language-nav a { min-width: 36px; min-height: 40px; font-size: .78rem; }
  .login-main { align-items: start; padding: 28px 14px; }
  .login-card { border-radius: 12px; }
  .dashboard-header { flex-wrap: wrap; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .property-card { grid-template-columns: auto minmax(0, 1fr); }
  .property-status { grid-column: 2; justify-self: start; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 92px; }
  .booking-tabs { width: 100%; }
  .booking-tabs a { flex: 1; padding-inline: 10px; }
  .booking-card { grid-template-columns: 1fr; gap: 17px; }
  .booking-meta { grid-template-columns: repeat(2, 1fr); }
  .detail-link { width: 100%; }
  .detail-heading { align-items: start; flex-direction: column; }
  .detail-total { text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .payout-panel { grid-template-columns: 1fr; gap: 24px; }
  .payout-panel > div:last-child { padding: 24px 0 0; border-top: 1px solid #d7e6d2; border-left: 0; }
  .document-panel { align-items: stretch; flex-direction: column; }
  .document-actions, .document-button { width: 100%; }
  .confirmation-toolbar { align-items: stretch; flex-direction: column; }
  .portal-header { align-items: flex-start; flex-wrap: wrap; }
  .portal-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .portal-nav { order: 1; flex: 1; }
  .portal-languages { order: 3; width: 100%; }
  .portal-actions form { order: 2; margin-left: auto; }
}

@media (min-width: 641px) and (max-width: 1040px) {
  .portal-languages { display: none; }
  .booking-card { grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr) auto; }
  .booking-meta { grid-column: 1 / 3; }
}

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