/* ─── Slotify — Frontend ─── */

.dr-wrap {
  max-width: 760px;
  margin: 0 auto;
  font-family: inherit;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}
.dr-wrap *, .dr-wrap *::before, .dr-wrap *::after { box-sizing: border-box; }

/* Zakładki */
.dr-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dr-tab {
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #222;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dr-tab:hover { background: #f6f6f6; }
.dr-tab-active { border-bottom-color: #222; font-weight: 600; }
.dr-dot { display:inline-block; width:8px; height:8px; border-radius:50%; }

/* Galeria */
.dr-gallery { margin-bottom: 20px; }
.dr-gallery-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 8px; }
.dr-gallery-title { font-size: 16px; font-weight: 600; margin: 0; }
.dr-gallery-sub { font-size: 13px; color: #666; margin: 2px 0 0; }
.dr-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid #e4e4e4;
  background: #f0f0f0 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.dr-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.dr-thumb {
  background: #ddd center/cover no-repeat;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  aspect-ratio: 4/3;
  cursor: pointer;
  padding: 0;
  transition: opacity .15s;
}
.dr-thumb:hover { opacity: 1 !important; }

/* Nawigacja miesięcy */
.dr-month-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom: 8px; }
.dr-month-label { font-size: 16px; font-weight: 600; margin: 0; text-transform: capitalize; }
.dr-icon-btn {
  background: transparent; border: 1px solid #e4e4e4;
  padding: 4px 12px; border-radius: 6px;
  cursor: pointer; font-size: 18px; line-height: 1; color: #222;
}
.dr-icon-btn:hover { background: #f6f6f6; }

/* Dni tygodnia */
.dr-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Kalendarz */
.dr-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dr-cell-empty { height: 68px; }
.dr-cell {
  height: 68px;
  padding: 6px 7px 4px;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  overflow: hidden;
  transition: transform .1s;
}
.dr-cell-price {
  font-size: 10px;
  font-weight: 600;
  color: var(--green,#1e5f63);
  line-height: 1;
  white-space: nowrap;
  margin-top: 1px;
}
.dr-cell.dr-past .dr-cell-price,
.dr-cell.dr-blocked .dr-cell-price { display: none; }
.dr-cell.dr-free { background: #e7efe9; color: var(--green-dark,#123e42); }
.dr-cell.dr-free:hover { transform: scale(1.04); }
.dr-cell.dr-blocked {
  background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 5px, #e0e0e0 5px, #e0e0e0 10px);
  color: #888;
}
.dr-cell.dr-blocked::after { content:'🔒'; font-size: 10px; margin-left: 2px; }
.dr-cell.dr-past { opacity: 0.3; cursor: not-allowed; }
.dr-cell.dr-sel-edge { box-shadow: inset 0 0 0 2px var(--accent-dark,#a8813c); }

/* Legenda */
.dr-legend {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f6f6f6;
  border-radius: 8px;
}
.dr-legend-title {
  font-size: 11px; font-weight: 600; margin: 0 0 8px;
  color: #666; text-transform: uppercase; letter-spacing: 0.5px;
}
.dr-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
  font-size: 12px;
}
.dr-leg-item { display: flex; align-items: center; gap: 8px; }
.dr-leg-box {
  width: 28px; height: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
}
.dr-blocked-leg { background: repeating-linear-gradient(45deg,#f0f0f0,#f0f0f0 4px,#e0e0e0 4px,#e0e0e0 8px); color:#888; }
.dr-legend-note { font-size: 11px; color: #888; margin: 10px 0 0; }

/* Pasek info */
.dr-info {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--cream,#f6f6f6);
  border-radius: 8px;
  font-size: 13px;
  color: #444;
}
.dr-info-error { background: #FCEBEB !important; color: #791F1F; }

/* Formularz */
.dr-form {
  margin-top: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
}
.dr-form-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.dr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dr-form input[type=text], .dr-form input[type=email], .dr-form input[type=tel], .dr-form input[type=number], .dr-form select, .dr-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.dr-form textarea { margin-top: 10px; min-height: 60px; resize: vertical; }

/* Bez ostrej (żółtej) obwódki focusa z motywu — delikatny, ciemny wskaźnik tylko dla klawiatury */
.dr-wrap button:focus, .dr-wrap .dr-tab:focus, .dr-wrap select:focus, .dr-wrap .dr-cell:focus { outline: none; }
.dr-wrap button:focus-visible, .dr-wrap select:focus-visible, .dr-wrap input:focus-visible, .dr-wrap .dr-cell:focus-visible {
  outline: 2px solid rgba(34,34,34,.28);
  outline-offset: 2px;
}
.dr-form input:focus, .dr-form select:focus, .dr-form textarea:focus { border-color: #9a9a9a; }

/* Kontrolka „za dużo osób w domku" — stylowa notka */
.dr-osob-warn {
  margin-top: 10px;
  padding: 11px 14px;
  background: #FFF6E5;
  border: 1px solid #F0C674;
  border-left: 4px solid #E0A106;
  border-radius: 8px;
  color: #6f5200;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.dr-osob-warn::before { content: '⚠️'; flex: 0 0 auto; font-size: 15px; line-height: 1.3; }
.dr-osob-warn strong { color: #5a4200; }
.dr-input-bad { border-color: #E0A106 !important; background: #FFFCF5 !important; }

.dr-regulamin-box {
  margin-top: 14px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #f6f6f6;
}
.dr-regulamin-head {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e4;
  font-size: 13px;
  font-weight: 600;
}
.dr-regulamin-tresc {
  max-height: 340px;
  overflow-y: auto;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #444;
}
.dr-regulamin-tresc p { margin: 0 0 10px; }
.dr-regulamin-accept {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e4e4e4;
  background: #fff;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  cursor: pointer;
}
.dr-rodo {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: #666; margin-top: 10px;
}
.dr-small { font-size: 11px; color: #888; }
.dr-btn-submit {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #d6b074, var(--accent,#c8a15a));
  color: #2b2113;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.dr-btn-submit:not(:disabled):hover { background: var(--accent-dark,#a8813c); }
.dr-summary{background:#f8f5ef;border:1px solid #e0d5c0;border-radius:8px;padding:14px 18px;margin-top:12px;}
.dr-summary-title{font-weight:600;font-size:14px;margin:0 0 8px;color:#5a4a2e;}
.dr-summary table{width:100%;font-size:13px;border-collapse:collapse;}
.dr-summary td{padding:4px 0;vertical-align:top;}
.dr-summary td:first-child{font-weight:600;width:100px;color:#8a7a5a;}
.dr-spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(43,33,19,.3);border-top-color:#2b2113;border-radius:50%;animation:dr-spin .6s linear infinite;vertical-align:middle;margin-right:6px;}
@keyframes dr-spin{to{transform:rotate(360deg);}}
.dr-submit-hint { font-size: 11px; color: #888; text-align: center; margin: 6px 0 0; }

.dr-msg { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.dr-msg-error { background: #FCEBEB; color: #791F1F; }

/* Honeypot — niewidoczne pola pułapki dla botów */
.dr-hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Sukces */
.dr-success {
  margin-top: 16px;
  padding: 30px;
  background: #EAF7E1;
  border-radius: 12px;
  text-align: center;
}
.dr-success-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: var(--green,#1e5f63); color: #fff;
  border-radius: 50%;
  font-size: 32px; line-height: 56px;
}
.dr-success h3 { margin: 0 0 8px; color: #1B5E20; }

/* Popup */
.dr-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dr-popup-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
}
.dr-popup-close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; border: none;
  font-size: 24px; cursor: pointer; color: #888;
  line-height: 1;
}
.dr-popup-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: #FAEEDA;
  border-radius: 50%;
  font-size: 28px; line-height: 56px;
}
.dr-popup-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.dr-popup-msg { font-size: 13px; color: #555; line-height: 1.5; margin: 0 0 16px; white-space: pre-line; }
.dr-popup-call {
  display: block;
  padding: 12px;
  background: var(--accent,#c8a15a);
  color: #2b2113 !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.dr-popup-call:hover { background: var(--accent-dark,#a8813c); }

/* ─── Reset: brak natywnych/odziedziczonych obwódek przycisków widżetu ─── */
.dr-wrap button { -webkit-appearance: none; appearance: none; }

/* ─── KROK 1: liczba osób ─── */
.dr-people { margin-bottom: 16px; padding: 24px 24px; background: var(--cream,#f6f6f6); border-radius: 14px; border: 2px solid #e4e4e4; text-align: center; }
.dr-people-q { display:block; font-size: 18px; font-weight: 700; color:#222; margin: 0 0 16px; }
.dr-people-row { display:flex; align-items:center; gap: 12px; justify-content: center; }
.dr-people-step { width: 52px; height: 52px; flex: 0 0 auto; border: 1px solid #d4d4d4; background:#fff; border-radius: 10px; font-size: 26px; line-height: 1; color:#222; cursor: pointer; }
.dr-people-step:hover { background:#f0f0f0; }
.dr-people-row input { width: 100px; text-align:center; padding: 14px 12px; border: 2px solid #d4d4d4; border-radius: 10px; font-size: 22px; font-weight: 600; font-family: inherit; background:#fff; }
.dr-people-unit { font-size: 16px; color:#555; font-weight: 500; }
.dr-people-hint { font-size: 13px; color:#777; margin: 12px 0 0; }

/* ─── Kalendarz: dzień całkowicie zajęty ─── */
.dr-cell.dr-occupied { background:#f0eeee; color:#a59f9f; cursor: not-allowed; }
.dr-cell.dr-occupied:hover { transform: none; }
.dr-occupied-leg { background:#f0eeee; color:#a59f9f; }

/* ─── WYNIKI: wolne domki ─── */
.dr-results { margin-top: 14px; }
.dr-results-title { font-size: 14px; color:#333; margin: 0 0 10px; }
.dr-results-hint { font-size: 13px; color:#555; margin: 0; padding: 12px 14px; background:#FFF6E5; border:1px solid #F0C674; border-radius: 8px; }
.dr-results-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.dr-rcard { text-align: left; display:flex; flex-direction:column; gap:4px; padding: 14px 16px; background:#fff; border: 2px solid #e4e4e4; border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dr-rcard:hover { border-color:#bdbdbd; transform: translateY(-2px); box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.dr-rcard-on { border-color:var(--green,#1e5f63); box-shadow: 0 0 0 3px rgba(30,95,99,.14); }
.dr-rcard-dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.dr-rcard-name { font-size: 16px; font-weight: 700; color:#222; }
.dr-rcard-cap { font-size: 12px; color:#666; }
.dr-rcard-price { font-size: 15px; font-weight: 700; color:var(--green,#1e5f63); }
.dr-rcard-cta { margin-top: 6px; font-size: 12.5px; font-weight: 600; color:var(--green,#1e5f63); }
.dr-rcard-on .dr-rcard-cta::before { content: '✓ '; }
.dr-rcard-status { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.dr-st-free { color:var(--green,#1e5f63); }
.dr-st-small { color:#b07a00; }
.dr-st-busy { color:#b23b3b; }
.dr-rcard-off, .dr-rcard-wait { cursor: default; }
.dr-rcard-off:hover, .dr-rcard-wait:hover { transform:none; box-shadow:none; border-color:#e4e4e4; }
.dr-rcard-wait:hover { border-color:#bdbdbd; }
.dr-rcard-off { opacity:.62; border-style: dashed; }
.dr-rcard-off .dr-rcard-price { color:#9a9a9a; }
.dr-cta-muted { color:#999 !important; }
.dr-rcard-combo { border-color:#c8a15a; background: linear-gradient(180deg,#fffdf7,#fff); }
.dr-rcard-combo.dr-rcard-on { border-color:var(--green,#1e5f63); }
.dr-rcard-dots { display:inline-flex; gap:4px; align-items:center; }
.dr-combos-title { margin-top: 16px; }
.dr-combos-or { font-size: 12.5px; color:#777; margin: 12px 0 0; text-align:center; }
.dr-combos-or a { color:var(--green,#1e5f63); font-weight:600; white-space:nowrap; text-decoration:none; }

/* ─── WYNIKI: kontakt telefoniczny (brak miejsc) ─── */
.dr-phone-cta { text-align:center; padding: 26px 22px; background: linear-gradient(180deg,#FAEEDA,#fff); border: 1px solid #F0C674; border-radius: 14px; }
.dr-phone-ico { width:56px; height:56px; margin:0 auto 12px; background:#fff; border-radius:50%; font-size:28px; line-height:56px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
.dr-phone-title { font-size: 16px; font-weight: 700; color:#5a4200; margin: 0 0 6px; }
.dr-phone-sub { font-size: 13px; color:#6f5200; margin: 0 0 16px; line-height:1.5; }
.dr-phone-btn { display:inline-block; padding: 13px 26px; background:var(--accent,#c8a15a); color:#2b2113 !important; border-radius: 100px; text-decoration:none; font-weight:700; font-size: 16px; }
.dr-phone-btn:hover { background:var(--accent-dark,#a8813c); }
.dr-phone-mail { display:block; margin-top: 10px; color:#6f5200; font-size: 13px; text-decoration: underline; }

/* ─── Podsumowanie wybranego domku nad formularzem ─── */
.dr-form-chosen { font-size: 13px; color:#555; margin: 0 0 12px; padding: 8px 12px; background:#f6f6f6; border-radius: 8px; }

@media (max-width: 540px) {
  .dr-cell { height: 58px; font-size: 12px; }
  .dr-cell-price { font-size: 9px; }
  .dr-form-grid { grid-template-columns: 1fr; }
  .dr-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .dr-results-grid { grid-template-columns: 1fr; }
}
