/* /assets/css/app.css
   Minimal, clean UI: white background, near-black text, black buttons.
*/

:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #444444;
  --muted-2: #6b7280;

  --border: #e5e7eb;
  --border-2: #d1d5db;

  --primary: #111111;
  --primary-hover: #000000;
  --primary-contrast: #ffffff;

  --danger: #b91c1c;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 20px rgba(0,0,0,.08);

  --wrap: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.45;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

img{
  max-width:100%;
  height:auto;
  display:block;
}

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 16px;
}

/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--border);
}

.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}

.header__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}

.brand__logo{
  width:40px;
  height:40px;
  border-radius:10px;
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid var(--border);
  flex:0 0 auto;
}

.brand__title{
  font-weight:700;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.nav a:not(.btn):hover{
  background:#f5f5f5;
  text-decoration:none;
  border-radius:10px;
}

/* ===== Main ===== */
.layout-main{
  padding-top:18px;
  padding-bottom:36px;
}

/* ===== Footer ===== */
.footer{
  border-top:1px solid var(--border);
  background:#fff;
  padding:18px 0;
  color:var(--muted);
  font-size:14px;
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* ===== Cards ===== */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}

.card__pad{
  padding:16px;
}

.card__title{
  font-size:18px;
  font-weight:700;
  margin:0 0 8px;
}

.card__muted{
  color:var(--muted);
  margin:0;
}

/* ===== Layout helpers ===== */
.grid{
  display:grid;
  gap:14px;
}

.grid--2{
  grid-template-columns:1fr;
}

@media (min-width:980px){
  .grid--2{
    grid-template-columns:1.1fr .9fr;
  }
}

/* ===== Forms ===== */
.label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin:0 0 6px;
}

.input,
.select,
.textarea{
  width:100%;
  border:1px solid var(--border-2);
  border-radius:12px;
  padding:12px;
  font-size:16px;
  background:#fff;
  color:var(--text);
  outline:none;
}

.textarea{
  min-height:110px;
  resize:vertical;
}

.input:focus,
.select:focus,
.textarea:focus{
  border-color:#111;
  box-shadow:0 0 0 3px rgba(17,17,17,.12);
}

.help{
  margin:6px 0 0;
  font-size:13px;
  color:var(--muted-2);
}

/* ===== Buttons ===== */
.btn{
  appearance:none;
  border:1px solid var(--border-2);
  background:#fff;
  color:var(--text);
  padding:11px 14px;
  border-radius:12px;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
  text-decoration:none;
  white-space:nowrap;
}

.btn:hover{
  background:#f5f5f5;
  text-decoration:none;
}

.btn:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(17,17,17,.12);
}

.btn--primary{
  background:var(--primary);
  border-color:var(--primary);
  color:var(--primary-contrast);
}

.btn--primary:hover{
  background:var(--primary-hover);
  border-color:var(--primary-hover);
  color:var(--primary-contrast);
}

.btn--danger{
  background:var(--danger);
  border-color:var(--danger);
  color:#fff;
}

.btn--danger:hover{
  filter:brightness(.92);
}

.btn--block{
  width:100%;
}

.header .nav a.btn{
  text-decoration:none;
}

/* ===== Badges ===== */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fafafa;
  font-size:13px;
  color:var(--muted);
}

/* ===== Booking UI ===== */
.calendar{
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
}

.calendar__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-bottom:1px solid var(--border);
}

.calendar__grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:1px;
  background:var(--border);
}

.calendar__cell{
  background:#fff;
  min-height:78px;
  padding:10px;
}

.slots{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.slot{
  border:1px solid var(--border-2);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  background:#fff;
  font-weight:600;
}

.slot:hover{
  background:#f5f5f5;
}

.slot.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}

.slot.is-selected{
  border-color:#111;
  box-shadow:0 0 0 3px rgba(17,17,17,.10);
}

/* ===== Public booking hero full bleed ===== */
.bk-hero-full{
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  margin-top:-18px;
  margin-bottom:18px;
  min-height:360px;
  color:#fff;
  background-color:#111;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.bk-hero-full__overlay{
  min-height:360px;
  background:linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.52));
  display:flex;
  align-items:center;
}

.bk-hero-full__inner{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:42px 20px;
}

.bk-hero-full__content{
  max-width:760px;
}

.bk-hero-full__eyebrow{
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.82;
  margin-bottom:10px;
}

.bk-hero-full__title{
  margin:0;
  font-size:clamp(28px, 5vw, 46px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.03em;
}

.bk-hero-full__subtitle{
  margin:14px 0 0;
  max-width:720px;
  font-size:clamp(15px, 2vw, 18px);
  line-height:1.55;
  opacity:.94;
}

.bk-hero-full__meta{
  margin-top:12px;
  font-size:13px;
  line-height:1.6;
  opacity:.92;
}

.bk-hero-full__meta a{
  color:inherit;
  text-decoration:underline;
}

/* ===== Mobile navigation ===== */
.mobilebar{
  display:none;
}

.nav-mobile-show{
  display:none !important;
}

.nav-mobile-hide{
  display:inline-flex;
}

@media (max-width:720px){
  /* More real edge spacing on both sides */
  .wrap{
    padding:0 20px;
  }

  .header__row{
    gap:10px;
    padding:10px 0;
  }

  /* Remove fake huge left padding and use clean spacing */
  .brand{
    min-width:0;
    padding-left:0;
    padding-right:14px;
    gap:10px;
  }

  .brand__logo{
    width:32px;
    height:32px;
    margin-left:0;
    flex:0 0 auto;
  }

  .brand__title{
    font-size:15px;
    line-height:1.1;
  }

  /* Add real breathing room on the right for login/logout */
  .header__actions{
    gap:8px;
    margin-right:4px;
    padding-right:2px;
  }

  .header .nav{
    display:flex;
    align-items:center;
    gap:8px;
  }

  .header .nav .nav-mobile-hide{
    display:none !important;
  }

  .header .nav .nav-mobile-show{
    display:inline-flex !important;
    padding:9px 12px;
    font-size:14px;
  }

  .header__actions > .nav-mobile-show{
    display:inline-flex !important;
    padding:9px 12px;
    font-size:14px;
    margin-right:0;
  }

  /* Desktop footer hidden only on mobile */
  .footer{
    display:none;
  }

  .mobilebar{
    display:flex;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:999;
    gap:8px;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid var(--border);
    box-shadow:0 -8px 24px rgba(0,0,0,.05);
  }

  .mobilebar__item{
    flex:1 1 0;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 10px;
    border-radius:12px;
    border:1px solid var(--border-2);
    background:#fff;
    color:var(--text);
    text-decoration:none;
  }

  .mobilebar__item:hover{
    background:#f5f5f5;
    text-decoration:none;
  }

  .mobilebar__item.is-active{
    border-color:#111;
    box-shadow:0 0 0 2px rgba(17,17,17,.08);
  }

  .mobilebar__icon{
    display:none;
  }

  .mobilebar__label{
    font-size:13px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .bk-hero-full{
    min-height:280px;
    margin-top:-18px;
  }

  .bk-hero-full__overlay{
    min-height:280px;
  }

  .bk-hero-full__inner{
    padding:28px 18px;
  }

  .layout-main{
    padding-bottom:92px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}