/* static/css/main.css — hand-written, no build step required */

/* ══════════════════════════════════════════════════════════════════════════
   1. FONTS
   ══════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'P22 Mackinac Pro';
  src: url('/static/fonts/P22MackinacPro-Book_25.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Questrial';
  src: url('/static/fonts/Questrial-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Larsseit';
  src: url('/static/fonts/larsseit_regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'sa';
  src: url('/static/fonts/sa.woff2') format('woff2'),
       url('/static/fonts/sa.woff')  format('woff'),
       url('/static/fonts/sa.ttf')   format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. DESIGN TOKENS
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --clr-marionberry:  #41047d;
  --clr-marion-hover: #7030a0;
  --clr-negroni:      #ffdbbd;
  --clr-red-perfume:  #f6b697;
  --clr-blurple:      #6963b4;

  /* Neutrals */
  --clr-shell:      #ebebeb;
  --clr-alto:       #dddddd;
  --clr-antracite:  #666666;
  --clr-slate:      #333333;
  --clr-icon-grey:  #919191;
  --clr-text-light: #aeaeae;

  /* Semi-transparent tints */
  --clr-shell-30:   rgba(235, 235, 235, 0.3);
  --clr-shell-50:   rgba(235, 235, 235, 0.5);
  --clr-error-bg:   rgba(255, 109, 109, 0.1);
  --clr-warning-bg: rgba(242, 170,  77, 0.1);

  /* Status */
  --clr-status-new:       #F2AA4D;
  --clr-status-responded: #006700;
  --clr-status-accepted:  #fe6672;
  --clr-status-approval:  #41047d;
  --clr-status-offer:     #47B5FF;
  --clr-status-progress:  #F97543;
  --clr-status-hold:      #9370DB;
  --clr-status-booked:    #70ba34;
  --clr-status-declined:  #000000;
  --clr-status-cancel:    #F24D4D;

  /* Semantic */
  --clr-success: #70ba34;
  --clr-info:    #47B5FF;
  --clr-warning: #F2AA4D;
  --clr-error:   #FF6D6D;
  --clr-alert:   #d40707;

  /* Typography */
  --font-display: "P22 Mackinac Pro", Georgia, serif;
  --font-sans:    Questrial, Larsseit, system-ui, sans-serif;
  --font-utility: Larsseit, Questrial, sans-serif;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-pill: 30px;

  /* Shadows */
  --shadow-card:     2px 2px 2px #dddddd;
  --shadow-dropdown: 2px 2px 5px rgba(0, 0, 0, 0.35);
  --shadow-focus:    0 0 5px 1px rgba(112, 48, 160, 1);
  --shadow-invalid:  0 0 7px 0 #FF6D6D;

  --transition: 200ms ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   3. RESET & BASE
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--clr-slate);
  background: #fff;
  line-height: 1.5;
}

h1 { font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: 0.5px; }
h2 { font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: 0.5px; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }

a {
  color: var(--clr-marionberry);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-marion-hover); }

img { max-width: 100%; height: auto; display: block; }

input, select, textarea, button { font-family: inherit; font-size: inherit; }

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--clr-marionberry);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. PAGE CHROME
   ══════════════════════════════════════════════════════════════════════════ */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--clr-shell);
  background: #fff;
  flex-shrink: 0;
}
.top-bar__logo img { height: 32px; display: block; }
.top-bar__nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.top-bar__nav a {
  display: block;
  padding: 8px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-antracite);
}
.top-bar__nav a:hover { color: var(--clr-marionberry); }

.content-row { display: flex; flex: 1; overflow: hidden; }

.left-panel {
  width: 288px;
  flex-shrink: 0;
  background: var(--clr-marionberry);
  color: var(--clr-negroni);
  overflow-y: auto;
  padding: 24px 16px;
}
.left-panel nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

.main-pane {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  max-width: 1280px;
}

.page-footer {
  padding: 16px 40px;
  border-top: 1px solid var(--clr-shell);
  font-size: 12px;
  color: var(--clr-text-light);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   5. COMPONENTS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.yk-btn {
  display: inline-block;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--clr-red-perfume);
  border: 3px solid var(--clr-red-perfume);
  color: var(--clr-marionberry);
  padding: 10px 24px;
  letter-spacing: 0.2px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
}
.yk-btn:hover {
  background: var(--clr-marion-hover);
  border-color: var(--clr-marion-hover);
  color: #fff;
}
.yk-btn:disabled,
.yk-btn--disabled {
  background: var(--clr-shell);
  border-color: var(--clr-shell);
  color: var(--clr-text-light);
  cursor: default;
}
.yk-btn:disabled:hover,
.yk-btn--disabled:hover {
  background: var(--clr-shell);
  border-color: var(--clr-shell);
  color: var(--clr-text-light);
}
.yk-btn--secondary { background: #fff; }
.yk-btn--sm { padding: 6px 14px; font-size: 12px; }

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.yk-input {
  display: block;
  width: 100%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--clr-slate);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.yk-input:focus {
  border-color: var(--clr-marionberry);
  box-shadow: var(--shadow-focus);
}
.yk-input[aria-invalid="true"] {
  border-color: var(--clr-error);
  box-shadow: var(--shadow-invalid);
  background: rgba(255, 109, 109, 0.1);
}
select.yk-input { cursor: pointer; }

/* Panel — input-style border wrapping child elements */
.yk-panel {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: #fff;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */
.yk-label {
  display: block;
  font-size: 14px;
  color: var(--clr-slate);
  margin-bottom: 6px;
  padding: 0 4px;
}

/* ── Status pills ────────────────────────────────────────────────────────── */
.yk-status {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.yk-status--new,
.yk-status--pending    { background: var(--clr-status-new); }
.yk-status--responded  { background: var(--clr-status-responded); }
.yk-status--accepted   { background: var(--clr-status-accepted); }
.yk-status--approval   { background: var(--clr-status-approval); }
.yk-status--offer      { background: var(--clr-status-offer); }
.yk-status--progress   { background: var(--clr-status-progress); }
.yk-status--hold       { background: var(--clr-status-hold); }
.yk-status--booked     { background: var(--clr-status-booked); }
.yk-status--declined,
.yk-status--cancelled  { background: var(--clr-status-cancel); }

/* ── Eyebrow / display ───────────────────────────────────────────────────── */
.yk-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-antracite);
  font-family: var(--font-utility);
}
.yk-display {
  font-family: var(--font-display);
  color: var(--clr-marionberry);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ── Icon font ───────────────────────────────────────────────────────────── */
.sa-icon {
  font-family: 'sa';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

/* ── Alert boxes ─────────────────────────────────────────────────────────── */
.yk-alert {
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.yk-alert--error   { background: var(--clr-error-bg);   border: 1px solid var(--clr-error);   color: var(--clr-alert); }
.yk-alert--warning { background: var(--clr-warning-bg); border: 1px solid var(--clr-warning); color: var(--clr-slate); }
.yk-alert__title   { font-weight: 600; }
.yk-alert__body    { font-size: 13px; margin-top: 4px; }

/* ── Chips ───────────────────────────────────────────────────────────────── */
.yk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.yk-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--clr-shell);
  font-size: 12px;
  color: var(--clr-slate);
  border: 1px solid rgba(221, 221, 221, 0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   6. DATA DISPLAY — rental request detail page
   ══════════════════════════════════════════════════════════════════════════ */
.data-section { margin-bottom: 40px; }
.data-section__title {
  font-size: 18px;
  font-weight: 400;
  color: var(--clr-slate);
  border-bottom: 1px solid var(--clr-shell);
  padding-bottom: 8px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table td         { padding: 6px 0; vertical-align: top; }
.data-table .field-label { padding-right: 32px; width: 208px; }
.data-table .field-value { font-size: 13px; color: var(--clr-slate); }

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-heading__number { font-size: 36px; margin-top: 4px; }

.listing-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--clr-shell); }
.listing-table { min-width: 100%; font-size: 13px; border-collapse: collapse; }
.listing-table thead tr { background: var(--clr-shell-50); text-align: left; }
.listing-table thead th { padding: 10px 16px; }
.listing-table tbody tr { border-top: 1px solid var(--clr-shell); transition: background-color var(--transition); }
.listing-table tbody tr:hover { background: var(--clr-shell-30); }
.listing-table td { padding: 12px 16px; color: var(--clr-antracite); }
.listing-table .td-primary { color: var(--clr-slate); }

.text-success { color: var(--clr-success); font-weight: 600; }
.text-alert   { color: var(--clr-alert); }

/* ══════════════════════════════════════════════════════════════════════════
   7. SUBMISSION FORM
   ══════════════════════════════════════════════════════════════════════════ */
.submission-form { max-width: 700px; }

.form-block           { margin-bottom: 32px; }
.form-block:last-child { margin-bottom: 0; }

.section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.field-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-stack  { display: flex; flex-direction: column; gap: 12px; }

.radio-row         { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.radio-row__label  { width: 180px; flex-shrink: 0; font-size: 14px; color: var(--clr-slate); padding: 0 4px; }
.radio-row label   { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.book-as       { display: flex; gap: 32px; }
.book-as label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.terms-row       { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; cursor: pointer; }
.terms-row input { margin-top: 2px; flex-shrink: 0; }

.submit-row  { display: flex; justify-content: flex-end; margin-top: 16px; }
.form-error  { font-size: 12px; color: var(--clr-alert); text-align: right; margin-top: 8px; }

/* Price range slider */
.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--clr-text-light);
  margin-bottom: 4px;
}
.price-range-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.price-range-track {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background: var(--clr-shell);
  border-radius: 3px;
  pointer-events: none;
}
.price-range-fill {
  position: absolute;
  height: 100%;
  background: var(--clr-marionberry);
  border-radius: 3px;
}
.price-range-wrap input[type=range] {
  position: absolute;
  width: 100%;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 6px;
}
.price-range-wrap input[type=range]:focus { outline: none; }
.price-range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--clr-marionberry);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
}
.price-range-wrap input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--clr-marionberry);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: none;
}

/* Guest counters */
.guest-list  { display: flex; flex-direction: column; gap: 8px; }
.guest-row   { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.guest-counter { display: flex; align-items: center; gap: 8px; }
.guest-counter__btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--clr-marionberry);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition);
}
.guest-counter__btn:hover { background: var(--clr-marion-hover); }
.guest-counter__val {
  width: 28px;
  text-align: center;
  border: none;
  padding: 0;
  background: transparent;
  -moz-appearance: textfield;
}
.guest-counter__val::-webkit-outer-spin-button,
.guest-counter__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Amenity checkboxes */
.amenity-list       { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.amenity-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* Number input with suffix */
.input-suffixed      { position: relative; }
.input-suffixed .yk-input { padding-right: 40px; }
.input-suffix {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--clr-text-light);
  pointer-events: none;
}

/* Success panel */
.success-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--clr-shell);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.success-panel__icon  { font-size: 48px; color: var(--clr-success); margin-bottom: 16px; }
.success-panel__title { margin-bottom: 12px; }
.success-panel__body  { color: var(--clr-text-light); margin-bottom: 32px; }

/* ══════════════════════════════════════════════════════════════════════════
   8. UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-4   { margin-top: 16px; }
