/* =========================
   YOUR BASE DESIGN (as-is)
   ========================= */
*{
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/* Banner styling */
.banner {
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url(../pics/background.jpg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 75px;
}

/* Navbar styling */
.navbar {
  width: 85%;
  margin-top: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.signature {
  width: 150px;
  cursor: pointer;
}
.navbar ul li {
  display: inline-block;
  margin: 0 20px;
  position: relative;
  list-style: none;
}
.navbar ul li a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
}
.navbar ul li::after {
  content: '';
  height: 3px;
  width: 0;
  background: #f06553;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: 0.4s;
}
.navbar ul li:hover::after { width: 100%; }

/* Content styling */
.content {
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 0 16px 60px;
}
.content h1 {
  font-size: 50px;
  margin-top: 50px;
}
.content p{
  margin: 20px 10px 36px;
  font-weight: 100;
  line-height: 1.8;
  justify-content: center;
}

/* =============== */
.sr-only{
  position:absolute !important;
  width:1px; height:1px; margin:-1px; padding:0; border:0; clip:rect(0 0 0 0); overflow:hidden;
}
.req{ color:#f06553; }

/* =========================
   REVIEWS MODULE (scoped)
   ========================= */
.reviews-wrap{
  width: min(980px, 92vw);
  margin: 0 auto;
  text-align: left;            /* content area stays centered overall */
}

/* Tabs */
.tabs{
  display: inline-flex;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.tab{
  appearance: none;
  border: 0;
  background: transparent;
  color: #d7d7d7;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .2px;
}
.tab.is-active{
  background: rgba(240,101,83,.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(240,101,83,.6);
}
.tab:focus-visible{ outline: 2px solid rgba(240,101,83,.65); outline-offset: 2px; }

/* Panels */
.tab-panel{
  margin-top: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 28px);
  display: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.tab-panel.is-active{ display: block; }

/* Controls (filters) */
.controls{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: end;
}
.control{
  display: grid; gap: 6px; min-width: 160px;
}
.control.grow{ flex: 1 1 260px; min-width: 200px; }
.control.search input{ width: 100%; }

label{ font-size: 14px; color: #d0d0d0; align-content: end;}
select, input[type="search"], input[type="text"], textarea{
  background: #252525;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
select:focus, input:focus, textarea:focus{
  border-color: rgba(240,101,83,.7);
  box-shadow: 0 0 0 3px rgba(240,101,83,.25);
}

/* Reviews list */
.reviews{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.review-card{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
}
.review-head{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}
.reviewer{ font-weight: 800; font-size: 1.05rem; }
.meta{ text-align: right; display: grid; gap: 2px; }
.stars-read{ letter-spacing: 2px; font-size: 1.1rem; }
.type-date{ color: #cfcfcf; font-size: .9rem; opacity: .9; }
.review-text{ margin: 8px 0 0; }

/* Empty state */
.empty{
  text-align: center;
  color: #ddd;
  padding: 22px 0 6px;
  opacity: .9;
}

/* Form */
form{ display: grid; gap: 16px; }
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; border: none;}
}
.field{ display: grid; gap: 6px; }
.field.checkbox{ display: flex; align-items: center; gap: 10px; }
.hint{ color: #d0d0d0; font-size: .9rem; opacity: .9; }
textarea{ resize: vertical; min-height: 120px; }

/* Stars (form) */
.stars{
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
  font-size: 1.6rem;
}
.stars input{
  appearance: none;
  width: 0; height: 0; position: absolute;
}
.stars label{
  cursor: pointer;
  transition: transform .06s ease;
  color: #545b6e;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.stars label:hover,
.stars label:focus{ transform: scale(1.05); }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label{ color: #ffcc55; }

.live{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .9rem; color: #d0d0d0; margin-top: 4px; }

/* Buttons */
.btn{
  appearance: none;
  border: 0;
  background: linear-gradient(180deg, #f06553, #d75546);
  color: white;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(240,101,83,.25);
  letter-spacing: .2px;
}
.btn:hover{ filter: brightness(1.05); }
.btn:focus-visible{ outline: 2px solid rgba(240,101,83,.65); outline-offset: 2px; }

/* Messages */
.form-msg{ margin: 4px 0 0; min-height: 1.2em; }
.form-msg.success{ color: #3ecf8e; }
.form-msg.error{ color: #ff8b8b; }
/* ===== Admin UI ===== */
.tabs-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-controls{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.admin-btn{
  padding: 8px 12px;
  font-weight: 800;
  border-radius: 10px;
  background: linear-gradient(180deg, #f06553, #d75546);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(240,101,83,.25);
}
.admin-btn.outline{
  background: transparent;
  border: 1px solid rgba(240,101,83,.6);
  color: #fff;
  box-shadow: none;
}
.admin-btn:hover{ filter: brightness(1.05); }
.admin-badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 204, 113, .15);
  border: 1px solid rgba(46, 204, 113, .55);
  color: #d9ffe9;
  font-size: .9rem;
}

/* Delete button inside each card (admin mode) */
.admin-row{
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.tiny-btn{
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.tiny-btn.danger{
  border-color: rgba(255, 107, 107, .5);
  background: rgba(255, 107, 107, .15);
}
.tiny-btn:hover{ filter: brightness(1.05); }
.site-footer{
  position: fixed;            /* stays at the bottom even when scrolling */
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom)); /* friendly on iPhone notch */
  color: #fff;
  font-size: 14px;
  letter-spacing: .3px;
  opacity: .85;
  padding: 6px 10px; /* subtle contrast on busy photos */
  backdrop-filter: blur(4px);
  z-index: 50;
}
/* Admin-only controls are hidden by default */
.admin-row { 
  display: none; 
}

/* When admin mode is active on the page, show them */
.admin-active .admin-row {
  display: flex;         /* or inline-flex / block, whatever fits your layout */
  gap: .5rem;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .banner{
    padding-top: calc(env(safe-area-inset-top) + 12px);
    padding-bottom: 18px;
  }
}
@media (max-width: 600px){
  .navbar{
    width: calc(100% - 32px);
    max-width: 420px;
    flex-wrap: wrap;    /* logo + menu can break line if needed */
    row-gap: 8px;
    justify-content: center;
  }
  .signature{
    width: clamp(120px, 28vw, 150px); /* scale logo slightly on small phones */
  }
  .navbar ul{
    display: flex;
    flex-wrap: wrap;    /* allow 2nd line for menu items */
    gap: 10px 14px;
    justify-content: center;
  }
  .navbar ul li{ margin: 0; } /* gap replaces li margins */
}
@media (max-width: 1100px) {
  :root { --bk-card-w: 320px; --bk-card-h: 440px; }
}

/* Phone sizing to match your narrow layout and avoid cramping */
@media (max-width: 480px) {
  :root{
    --bk-card-w: clamp(220px, 84vw, 300px);
    --bk-card-h: clamp(300px, 56vh, 410px); /* slightly shorter to avoid overlap on short screens */
    --bk-gap: 16px;
  }
  .bk-title{ font-size: 22px; margin-bottom: 16px; }
  .bk-price{ padding: 4px 8px; margin-bottom: 10px; }
  .bk-cta{ bottom: 14px; }
  .bk-btn{ width: 42px; height: 42px; font-size: 18px; }
  .bk-controls{ translate: -50% 10px; gap: 14px; }
  .bk-dot{ width: 10px; height: 10px; }
}