:root{
  --bg:#eef6ff;
  --card:#ffffff;
  --primary:#0b63b7;
  --primary-light:#2d8de0;
  --text:#123;
  --muted:#6f89a3;
  --border:#dcecff;
  --success:#2ea44f;

  --radius:18px;
  --shadow:0 10px 30px rgba(11,99,183,.08);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:
    linear-gradient(
      180deg,
      #f6fbff 0%,
      #e8f4ff 100%
    );

  color:var(--text);

  min-height:100vh;
}

.app{
  width:100%;
  max-width:960px;
  margin:auto;
  padding:18px;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

header h1{
  margin:0;
  font-size:1.4rem;
  color:var(--primary);
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}

.controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

button{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
}

button:hover{
  transform:translateY(-1px);
}

button:not(.ghost){
  background:linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );
  color:#fff;
}

button.ghost{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--border);
}

.list,
.route-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:18px;
}

.item,
.route-item{
  background:#fff;
  border-radius:16px;
  border:1px solid var(--border);
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.item{
  transition:.2s;
}

.item:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.info{
  flex:1;
}

.name{
  font-size:1rem;
  font-weight:800;
  color:var(--primary);
}

.addr{
  margin-top:4px;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.4;
}

.right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Toggle */

.switch{
  position:relative;
  width:54px;
  height:30px;
}

.switch input{
  display:none;
}

.slider{
  position:absolute;
  inset:0;
  background:#dbeeff;
  border-radius:999px;
  transition:.2s;
}

.slider:before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  transition:.2s;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}

.switch input:checked + .slider{
  background:var(--primary);
}

.switch input:checked + .slider:before{
  transform:translateX(24px);
}

/* Route */

.route-item{
  cursor:grab;
}

.drag{
  font-size:1.2rem;
  color:var(--primary);
}

.mode{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

#currentHotel{
  padding:18px;
  border-radius:18px;
  background:linear-gradient(
    180deg,
    #ffffff,
    #f4f9ff
  );

  border:1px solid var(--border);
}

.next-two{
  display:flex;
  gap:12px;
}

.next-card{
  flex:1;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}

.report{
  margin-top:14px;
  max-height:260px;
  overflow:auto;
  border-top:1px solid var(--border);
}

.report-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 4px;
  border-bottom:1px dashed #dde9f5;
}

.muted{
  color:var(--muted);
}

footer{
  text-align:center;
  margin-top:20px;
  color:var(--muted);
  font-size:.85rem;
}

/* Mobile */

@media(max-width:720px){

  .controls{
    flex-direction:column;
  }

  .next-two{
    flex-direction:column;
  }

  .item,
  .route-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .right{
    width:100%;
    justify-content:space-between;
  }

  button{
    width:100%;
  }
}
/* =========================
   V0.02
========================= */

.screen{
  display:none;
  animation:fade .25s ease;
}

.screen.active{
  display:block;
}

@keyframes fade{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.screen-title{
  margin-bottom:18px;
}

.screen-title h2{
  margin:0;
  font-size:1.25rem;
  color:var(--primary);
}

.screen-title p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.92rem;
}

.top-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}

.big-button{
  width:100%;
  padding:16px;
  font-size:1rem;
  border-radius:16px;
}

.hotel-counter{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:#f4f9ff;
  border:1px solid var(--border);
  color:var(--primary);
  font-weight:700;
}

.mode-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.mode-actions button{
  flex:1;
}

.maps-button{
  background:linear-gradient(
    135deg,
    #34a853,
    #4ecb71
  ) !important;
}

.check-group{

  display:flex;

  gap:12px;

  margin-top:12px;

}

.check-card{

  flex:1;

  display:flex;

  align-items:center;

  justify-content:center;

  gap:8px;

  padding:14px;

  border-radius:14px;

  background:#f5f7fb;

  border:1px solid #d9e2f0;

}

.check-card input{
  width:20px;
  height:20px;
}

.current-hotel-name{
  font-size:1.3rem;
  font-weight:800;
  color:var(--primary);
}

.current-address{
  margin-top:6px;
  color:var(--muted);
  line-height:1.5;
}

/* =========================
   MOBILE DRAG
========================= */

.route-item.dragging-mobile{
  opacity:.5;
  transform:scale(.98);
}

.drag{
  cursor:grab;
  user-select:none;
  touch-action:none;

  padding:10px;

  border-radius:10px;

  background:#eef6ff;

  font-size:1.2rem;

  display:flex;
  align-items:center;
  justify-content:center;

  min-width:42px;
  min-height:42px;
}

.route-item.over{
  border:2px dashed var(--primary);
}
/* =========================
   MODAL
========================= */

.modal{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.45);

  display:none;

  align-items:center;
  justify-content:center;

  padding:20px;

  z-index:999;
}

.modal.active{
  display:flex;
}

.modal-content{
  width:100%;
  max-width:420px;

  background:#fff;

  border-radius:20px;

  padding:20px;

  display:flex;
  flex-direction:column;
  gap:12px;
}

.modal-content input{
  width:100%;

  padding:14px;

  border-radius:12px;

  border:1px solid var(--border);

  font-size:1rem;
}

.modal-actions{
  display:flex;
  gap:10px;
}

/* ===== RELATÓRIO ===== */

.report-header{
  padding:16px;
  background:#ffffff;
  border-bottom:1px solid #ddd;
  position:sticky;
  top:0;
  z-index:10;
}

.report-header h1{
  font-size:18px;
  font-weight:700;
  line-height:1.4;
}

.report-route-list{
  padding:16px;
}

.report-item{
  background:#fff;
  border-radius:14px;
  padding:14px;
  margin-bottom:16px;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.report-top-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:12px;
}

.report-order{
  font-weight:700;
  font-size:18px;
}

.report-hotel-name{
  font-weight:600;
  font-size:17px;
}

.report-time{
  width:100%;
  font-size:15px;
  color:#444;
}

.report-photos{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-top:8px;
}

.report-photo-box{
  min-width:110px;
}

.report-photo-box img{
  width:110px;
  height:110px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #ddd;
}

.report-photo-label{
  text-align:center;
  margin-top:6px;
  font-size:13px;
}

.report-bottom-actions{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.report-bottom-actions button{
  height:48px;
  border:none;
  border-radius:12px;
  font-size:16px;
  font-weight:700;
}

#map{

  width:100%;

  height:300px;

  border-radius:16px;

  margin:12px 0;

  overflow:hidden;

}

.delete-hotel{

  border:none;

  background:#ffebeb;

  color:#c62828;

  border-radius:8px;

  padding:6px 10px;

  cursor:pointer;

  font-size:16px;

}

.delete-hotel:active{

  transform:scale(0.95);

}

.photo-section{

  display:flex;

  flex-direction:column;

  gap:16px;

  margin-top:16px;

}

.photo-upload-group{

  display:flex;

  flex-direction:column;

  gap:8px;

}

.photo-preview{

  display:flex;

  gap:8px;

  flex-wrap:wrap;

}

.preview-thumb{

  width:70px;

  height:70px;

  object-fit:cover;

  border-radius:8px;

  border:1px solid #ccc;

}

.camera-button{

  width:56px;

  height:56px;

  border-radius:16px;

  display:flex;

  align-items:center;

  justify-content:center;

  background:#0b63b7;

  color:white;

  font-size:28px;

  cursor:pointer;

}

.report-photo-group{

  margin-top:12px;

}

.report-photo-list{

  display:flex;

  flex-wrap:wrap;

  gap:8px;

  margin-top:8px;

}

.report-photo-list img{

  width:90px;

  height:90px;

  object-fit:cover;

  border-radius:10px;

  border:1px solid #ddd;

}

.empty-photo{

  font-size:12px;

  color:#888;

}

.report-item{

  page-break-inside:avoid;

}