/* HUNTER rezervācijas lapa — editorial stils, saskaņots ar main.css tokens */

.res-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 48px 0 80px;
  align-items: start;
}
@media (max-width: 1080px) {
  .res-shell {
    grid-template-columns: 1fr;
  }
}

.res-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.res-card + .res-card {
  margin-top: 20px;
}

.res-card-head {
  margin-bottom: 18px;
}
.res-card-head .lbl {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-2);
  font-weight: 600;
}
.res-card-head h2 {
  font-family: "Source Serif 4", serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 6px 0 4px;
  color: var(--text-strong);
  line-height: 1.15;
}
.res-card-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.res-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}
.res-row.full {
  grid-template-columns: 1fr;
}
@media (max-width: 720px) {
  .res-row {
    grid-template-columns: 1fr;
  }
}

.res-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-field label {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--text-muted);
}
.res-input,
.res-select,
.res-textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text-strong);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  box-sizing: border-box;
}
.res-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.res-input:focus,
.res-select:focus,
.res-textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.res-input.invalid,
.res-select.invalid,
.res-textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.label-invalid {
  color: #ef4444 !important;
}

.res-input[type="number"]::-webkit-outer-spin-button,
.res-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.res-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Datuma lauks */
.res-date-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.res-date-btn {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-strong);
  border-radius: 12px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.res-date-btn:hover {
  border-color: var(--violet);
  background: var(--violet-soft);
}

/* Toggle / checkbox kartes */
.res-check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.res-check-card:hover {
  border-color: var(--violet);
}
.res-check-card input {
  margin-top: 3px;
  accent-color: var(--violet);
}
.res-check-card .tc-title {
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 2px;
}
.res-check-card .tc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.res-check-card.is-on {
  border-color: var(--violet);
  background: var(--violet-soft);
}
.check-invalid {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Darbības */
.res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

/* Statusa ziņojums */
.res-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
}
.res-msg.is-on {
  display: block;
}
.res-msg.is-ok {
  border-color: rgba(37, 211, 102, 0.4);
  color: var(--text-strong);
}
.res-msg.is-err {
  border-color: #ef4444;
  color: #fecaca;
}

/* Sānu kolonna */
.res-aside {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.res-info {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.res-info h3 {
  font-family: "Source Serif 4", serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: var(--text-strong);
}
.res-info-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.92rem;
}
.res-info-line:last-child {
  border-bottom: 0;
}
.res-info-line .k {
  color: var(--text-muted);
  min-width: 110px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.res-info-line .v {
  color: var(--text-strong);
}

/* Kalkulatora ielādētais kopsavilkums */
.res-import {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.res-import .head {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-2);
  font-weight: 600;
  margin-bottom: 10px;
}
.res-import .body {
  white-space: pre-wrap;
  background: var(--bg-elev-2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  max-height: 360px;
  overflow: auto;
}
.res-import .body b {
  color: var(--violet-2);
  font-weight: 600;
}

/* Kalendāra modāls */
.res-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}
.res-cal {
  position: fixed;
  z-index: 999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 440px);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.res-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.res-cal-title {
  font-family: "Source Serif 4", serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-strong);
}
.res-cal-nav {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-strong);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
}
.res-cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.res-cal-nav:hover:not(:disabled) {
  border-color: var(--violet);
  color: var(--violet-2);
}

.res-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.res-cal-dayname {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 6px 0;
  font-weight: 600;
  text-transform: uppercase;
}
.res-cal-cell {
  text-align: center;
  padding: 10px 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-strong);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  transition:
    border-color 0.12s,
    background 0.12s;
}
.res-cal-cell:hover:not([aria-disabled="true"]) {
  border-color: var(--violet);
  background: var(--violet-soft);
}
.res-cal-cell[aria-disabled="true"] {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}
.res-cal-cell.is-today {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
}
.res-cal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* CTA poga (WhatsApp zaļa) */
.btn-wa {
  background: var(--success);
  color: #04230f;
  border: 1px solid var(--success);
  font-weight: 700;
}
.btn-wa:hover {
  background: #1fbf5a;
}
