/* ============================================================
   calendar-widget.css — Javni kalendar widget
   ============================================================ */

#calendarWidget {
  max-width: 860px;
  margin: 0 auto;
}

.cw-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ---- Kalendar ---- */
.cw-calendar {
  flex: 1 1 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 1.5rem;
}

.cw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cw-nav-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  color: #333;
}
.cw-nav-btn:hover {
  background: #67C8CA;
  border-color: #67C8CA;
  color: #fff;
}

.cw-month-label {
  font-weight: 700;
  font-size: 1rem;
  color: #1e2a35;
}

.cw-day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cw-day-name {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  color: #999;
  padding: .3rem 0;
}

.cw-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cw-loading {
  grid-column: span 7;
  text-align: center;
  padding: 2rem;
  color: #aaa;
  font-size: 1.5rem;
}

/* ---- Dan ---- */
.cw-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .12s;
  position: relative;
  min-height: 40px;
  border: 2px solid transparent;
}

.cw-day-num {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
}

.cw-day-price {
  font-size: .58rem;
  color: #67C8CA;
  margin-top: 1px;
  line-height: 1;
}

.cw-empty   { cursor: default; }
.cw-past    { opacity: .3; cursor: not-allowed; }

.cw-available {
  background: #f0fafa;
  color: #1e2a35;
}
.cw-available:hover {
  background: #67C8CA;
  color: #fff;
  border-color: #67C8CA;
}
.cw-available:hover .cw-day-price { color: #fff; }

.cw-booked {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cw-selected-in,
.cw-selected-out {
  background: #67C8CA !important;
  color: #fff !important;
  border-color: #4eb5b7 !important;
}
.cw-selected-in .cw-day-price,
.cw-selected-out .cw-day-price { color: #fff; }

.cw-in-range {
  background: #d4f0f1;
  color: #1e2a35;
  border-radius: 0;
}

/* ---- Legenda ---- */
.cw-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: .75rem;
  color: #666;
}

.cw-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.cw-dot-available { background: #67C8CA; }
.cw-dot-booked    { background: #ddd; }

/* ---- Panel (desno) ---- */
.cw-panel {
  flex: 0 1 240px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cw-dates {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cw-date-box {
  flex: 1;
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  border: 2px solid transparent;
}
.cw-date-box:hover   { background: #f0fafa; }
.cw-date-box.cw-active { border-color: #67C8CA; }

.cw-date-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  letter-spacing: .05em;
}

.cw-date-val {
  font-size: .85rem;
  font-weight: 600;
  color: #1e2a35;
  margin-top: 2px;
}

.cw-date-arrow {
  color: #ccc;
  font-size: 1rem;
}

/* ---- Price box ---- */
.cw-price-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 1.25rem;
  text-align: center;
}

.cw-price-nights {
  font-size: .8rem;
  color: #999;
  margin-bottom: .25rem;
}

.cw-price-total {
  font-size: 2rem;
  font-weight: 700;
  color: #1e2a35;
  line-height: 1;
}

.cw-price-avg {
  font-size: .8rem;
  color: #67C8CA;
  margin-top: .25rem;
}

/* ---- Alerts ---- */
.cw-alert {
  background: #fff8e1;
  color: #856404;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 500;
}

.cw-alert-danger {
  background: #ffe5e5;
  color: #c0392b;
}

/* ---- Instruction ---- */
.cw-instruction {
  font-size: .85rem;
  color: #999;
  text-align: center;
  min-height: 1.2em;
}

/* ---- Enquiry button ---- */
.cw-enquiry-btn {
  display: block;
  background: #67C8CA;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s;
}
.cw-enquiry-btn:hover {
  background: #4eb5b7;
  color: #fff;
}

/* ---- Perks ---- */
.cw-perks {
  font-size: .75rem;
  color: #67C8CA;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .cw-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .cw-panel {
    flex: 1 1 100%;
    width: 100%;
  }
  .cw-day {
    min-height: 34px;
  }
  .cw-day-num { font-size: .75rem; }
  .cw-day-price { display: none; }
}
