/* Breeze Crew Hotels — shared styles. Mobile-first, clean, high-contrast. */
:root {
  --seafoam: #00b3a4;
  --seafoam-dark: #008a80;
  --navy: #0b2a4a;
  --navy-soft: #12395f;
  --ink: #0e1c2b;
  --muted: #6b7a8d;
  --line: #e3ebf2;
  --bg: #f4f8fb;
  --card: #ffffff;
  --amber: #f5a623;
  --red: #e5484d;
  --green: #17b26a;
  --shadow: 0 10px 30px rgba(11, 42, 74, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--seafoam-dark); }

/* Header */
.topbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--seafoam), #4fd1c5);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 179, 164, .4);
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.topbar p { margin: 2px 0 0; font-size: 12px; color: #a9c2da; }
.topbar .spacer { flex: 1; }

/* Layout */
.wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px 60px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.intro { color: var(--muted); font-size: 14px; margin: 0 0 4px; }

/* Form fields */
label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
label .req { color: var(--red); }
label .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
input[type=text], input[type=date], input[type=email], input[type=password], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px avoids iOS zoom-on-focus */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--seafoam); }
textarea { resize: vertical; min-height: 90px; }
/* iOS Safari gives date inputs a native intrinsic width that ignores width:100% and
   overflows past the other fields — normalize the appearance so it aligns. */
input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* Ratings overview pie */
.ratingcard { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.pie { width: 128px; height: 128px; border-radius: 50%; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pielegend { font-size: 14px; color: var(--ink); }
.pietitle { font-weight: 800; margin-bottom: 8px; }
.pierow { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.pierow b { min-width: 18px; text-align: right; }
.pierow.clickable { cursor: pointer; border-radius: 7px; padding: 3px 6px; margin-left: -6px; transition: background .12s; }
.pierow.clickable:hover { background: #eef3f8; }
.pierow.active { background: #e9f5f3; font-weight: 700; }
.pietip { color: #97a4b1; font-size: 11px; font-weight: 500; }
.pieclear { cursor: pointer; color: #0b2a4a; font-size: 12px; font-weight: 700; margin-top: 10px; text-decoration: underline; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
/* Explicit margins (not flex `gap`) — some mobile browsers don't apply gap here. */
.cityrow { display: flex; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.cityrow:first-of-type { border-top: 0; }
.cityrow .dot { margin-right: 12px; }
.cityrow b { min-width: 42px; margin-right: 8px; font-weight: 800; letter-spacing: .5px; }
.cityname { flex: 1; color: #56677a; }
.cityavg { font-weight: 800; margin-left: 14px; }
.cityn { color: #97a4b1; font-size: 12px; min-width: 34px; text-align: right; margin-left: 12px; }

/* Hotel autocomplete dropdown */
.acfield { position: relative; }
.sugbox {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 30; overflow: hidden; display: none;
}
.sugbox.on { display: block; }
.sugitem { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.sugitem:last-child { border-bottom: none; }
.sugitem:hover, .sugitem:active, .sugitem.active { background: #dff5f2; border-left-color: var(--seafoam); }
.sugitem .m { font-weight: 700; font-size: 15px; color: var(--ink); }
.sugitem .s { color: var(--muted); font-size: 12px; margin-top: 1px; }

/* Star rating */
.stars { display: flex; gap: 6px; }
.stars button {
  background: none; border: none; cursor: pointer;
  font-size: 34px; line-height: 1; color: #d7e0ea; padding: 0;
  transition: transform .08s;
}
.stars button.on { color: var(--amber); }
.stars button:active { transform: scale(1.15); }

/* Schema-driven sections + compact controls */
.secnote { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.section { margin-top: 22px; }
.section h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--seafoam-dark); margin: 0 0 12px; padding-bottom: 6px;
  border-bottom: 1.5px solid var(--line);
}
.fld { margin-bottom: 15px; }
.fld:last-child { margin-bottom: 0; }
.fq { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.fld input[type=text] { font-size: 16px; }
.pillset { display: flex; flex-wrap: wrap; gap: 7px; }
.pillset button {
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .1s, border-color .1s;
}
.pillset button.on { background: var(--seafoam); border-color: var(--seafoam); color: #fff; }
.stars.mini button { font-size: 27px; }

/* Category rows */
.cats { display: grid; gap: 10px; margin-top: 6px; }
.catrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catrow .name { font-weight: 600; font-size: 14px; }
.ministars button { font-size: 24px; }

/* Change toggle */
.toggle { display: flex; gap: 10px; margin-top: 6px; }
.toggle button {
  flex: 1; font: inherit; font-weight: 700; font-size: 15px;
  padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.toggle button.yes.on { background: var(--red); border-color: var(--red); color: #fff; }
.toggle button.no.on  { background: var(--green); border-color: var(--green); color: #fff; }

/* Severity picker */
.sevrow { display: flex; gap: 8px; margin-top: 6px; }
.sevrow button {
  flex: 1; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 4px;
  border-radius: 12px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.sevrow button[data-lvl=low].on  { background: var(--green); border-color: var(--green); color: #fff; }
.sevrow button[data-lvl=med].on  { background: var(--amber); border-color: var(--amber); color: #fff; }
.sevrow button[data-lvl=high].on { background: #f5721a; border-color: #f5721a; color: #fff; }
.sevrow button[data-lvl=crit].on { background: var(--red); border-color: var(--red); color: #fff; }

/* Action-taken checkboxes */
.checks { display: grid; gap: 8px; margin-top: 6px; }
.check {
  display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0;
}
.check input { width: 21px; height: 21px; accent-color: var(--seafoam); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--seafoam); background: #f0fbfa; }

/* Photos */
.photobtns { display: flex; flex-wrap: wrap; gap: 8px; }
.photobtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-width: 140px;
  border: 1.5px dashed var(--seafoam); color: var(--seafoam-dark);
  background: #f0fbfa; border-radius: 12px; padding: 12px 16px;
  font-weight: 700; cursor: pointer; font-size: 15px; text-align: center;
}
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  background: rgba(14,28,43,.75); color: #fff; border: none; border-radius: 50%;
  font-size: 13px; cursor: pointer; display: grid; place-items: center;
}

/* Submit */
.submit {
  width: 100%; font: inherit; font-weight: 800; font-size: 17px;
  color: #fff; background: linear-gradient(135deg, var(--seafoam), var(--seafoam-dark));
  border: none; border-radius: 14px; padding: 16px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 179, 164, .35); margin-top: 22px;
}
.submit:disabled { opacity: .6; cursor: default; }

.note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.adminlink { text-align: center; margin-top: 26px; }
.adminlink a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.adminlink a:hover { color: var(--seafoam-dark); }
.banner { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; margin-bottom: 14px; display: none; }
.banner.err { background: #fdecec; color: #b42318; display: block; }
.banner.ok  { background: #e7f8ef; color: #067647; display: block; }

/* Success screen */
.done { text-align: center; padding: 40px 20px; }
.done .big { font-size: 54px; }
.done h2 { margin: 10px 0 6px; }
.done p { color: var(--muted); margin: 0 0 20px; }
.linkbtn { background: none; border: none; color: var(--seafoam-dark); font-weight: 800; font-size: 15px; cursor: pointer; }

/* Password field with show/hide eye */
.pwwrap { position: relative; }
.pwwrap input { padding-right: 46px; }
.pwwrap .eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 19px;
  padding: 6px 8px; line-height: 1; opacity: .85;
}
.pwwrap .eye:active { opacity: 1; }

/* ── Admin dashboard ── */
.adminbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pill { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.searchbox { flex: 1; min-width: 160px; }
.hotel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.hotel .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hotel .hname { font-weight: 800; font-size: 17px; }
.hotel .citycode { display: inline-block; background: var(--seafoam); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; padding: 2px 9px; border-radius: 7px; vertical-align: middle; margin-left: 4px; }
.hotel .hloc { color: var(--muted); font-size: 13px; }
.comment .meta.contact { color: var(--seafoam-dark); font-weight: 600; }
.hotel .score { text-align: right; }
.hotel .score .num { font-size: 26px; font-weight: 900; }
.hotel .score .of { color: var(--muted); font-size: 12px; }
.metrics { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.metric { font-size: 13px; }
.metric b { display: block; font-size: 20px; font-weight: 800; }
.metric.change b { color: var(--red); }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.bad { background: #fdecec; color: #b42318; }
.chip.warn { background: #fff4e5; color: #b54708; }
.chip.ok { background: #e7f8ef; color: #067647; }
.comment { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; font-size: 14px; }
.comment .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.allphotos {
  margin-top: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--seafoam); color: var(--seafoam-dark); background: #f0fbfa;
  border-radius: 12px; padding: 10px 16px;
}
.allphotos:disabled { opacity: .6; cursor: default; }
.adminrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adminrow:last-child { border-bottom: none; }
.adminrow .rm { background: none; border: 1.5px solid var(--line); color: var(--red); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.adminrow .rm:hover { background: #fdecec; border-color: var(--red); }
.adminrow .tag { background: #eef4ff; color: var(--navy); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.signin { text-align: center; padding: 60px 20px; }
.gbtn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 20px; cursor: pointer;
}
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; place-items: center; z-index: 100; }
.lightbox.on { display: grid; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
