/* ============================================================
   WIDGET BOOKING CALCULATOR — integrado con paleta del sitio
   ============================================================ */

/* Contenedor principal del widget */
.widget-calculator {
  background: linear-gradient(135deg, rgba(26,26,46,0.04) 0%, rgba(200,169,110,0.08) 100%);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 4px 20px rgba(26,26,46,0.06);
}

.widget-calculator h4 {
  font-family: 'Cormorant', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1A1A2E;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  letter-spacing: 0.03em;
}

/* Fechas */
.bw-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1rem;
}

.bw-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bw-field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #a67c48;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bw-field input[type="date"] {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid rgba(200,169,110,0.4);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1A1A2E;
  transition: border-color 0.2s;
  width: 100%;
}
.bw-field input[type="date"]:focus {
  outline: none;
  border-color: #c8a96e;
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}

/* Huéspedes */
.bw-guests-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A1A2E;
  color: #F4F1EA;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.bw-guests-row-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}
.bw-guests-row-label strong {
  color: #C8A96E;
}

.bw-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bw-count-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(200,169,110,0.5);
  background: transparent;
  color: #C8A96E;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.bw-count-btn:hover {
  background: rgba(200,169,110,0.15);
  border-color: #C8A96E;
}
.bw-count-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 24px;
  text-align: center;
}

.bw-hint {
  font-size: 0.7rem;
  color: #aaa;
  margin: 0 0 1rem;
  padding-left: 2px;
}

/* Extras disponibles */
.bw-extras-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.bw-extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid rgba(200,169,110,0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bw-extra-item:has(input[value]:not([value="0"])) {
  border-color: #c8a96e;
}
.bw-extra-info h6 {
  margin: 0 0 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  color: #1A1A2E;
}
.bw-extra-info p {
  margin: 0;
  font-size: 0.7rem;
  color: #888;
}
.bw-extra-info .bw-extra-price {
  color: #a67c48;
  font-weight: 600;
}

/* Desglose de costos */
.bw-breakdown {
  background: #1A1A2E;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}
.bw-breakdown.bw-collapsed { 
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.bw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(244,241,234,0.75);
}
.bw-row span:last-child {
  font-weight: 600;
  color: #F4F1EA;
}
.bw-divider {
  border: none;
  border-top: 1px solid rgba(200,169,110,0.2);
  margin: 4px 0;
}
.bw-total {
  font-size: 1rem !important;
  color: #F4F1EA !important;
}
.bw-total span { font-weight: 700 !important; }
.bw-total span:last-child { color: #C8A96E !important; font-size: 1.1rem; }

.bw-deposit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-top: 4px;
}
.bw-deposit-row span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #C8A96E;
  font-weight: 600;
}
.bw-deposit-row span:last-child {
  font-size: 0.95rem;
  font-weight: 800;
  color: #C8A96E;
}

/* Btn reservar */
.btn-modal-book {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--secondary);
  border: 1px solid rgba(200, 169, 110, 0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-modal-book:hover:not(:disabled) {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.2);
}
.btn-modal-book:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

/* Payment Methods Grid */
.bw-payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.btn-modal-pay {
  padding: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-modal-pay.paypal {
  background: rgba(200, 169, 110, 0.05);
  color: #c49a50;
  border-color: rgba(200, 169, 110, 0.3);
}
.btn-modal-pay.paypal:hover:not(:disabled) {
  background: rgba(200, 169, 110, 0.15);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 169, 110, 0.2);
}

.btn-modal-pay.card {
  background: rgba(200, 169, 110, 0.05);
  color: #c49a50;
  border-color: rgba(200, 169, 110, 0.3);
}
.btn-modal-pay.card:hover:not(:disabled) {
  background: rgba(200, 169, 110, 0.15);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 169, 110, 0.2);
}

.btn-modal-pay:disabled {
  background: #eaeaea;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ============================================================
   ADMIN DYNAMIC EXTRAS BUILDER
   ============================================================ */
.admin-extras-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}

.admin-extra-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  background: #fafafa;
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 10px;
  padding: 12px;
  position: relative;
}

.admin-extra-row .drawer-field {
  flex: 1;
  min-width: 90px;
  margin-bottom: 0;
}

.admin-extra-row label {
  font-size: 0.62rem;
  color: #a67c48;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.admin-extra-row input {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  background: #fff;
  color: #1A1A2E;
  transition: border-color 0.2s;
}
.admin-extra-row input:focus {
  outline: none;
  border-color: #c8a96e;
}

.admin-extra-del {
  background: #fee2e2;
  color: #ef4444;
  border: 1.5px solid #fca5a5;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  align-self: flex-end;
  flex-shrink: 0;
}
.admin-extra-del:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.admin-btn-action {
  background: transparent;
  color: #c39a66;
  border: 1.5px dashed rgba(200,169,110,0.5);
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.admin-btn-action:hover {
  background: rgba(200,169,110,0.1);
  border-color: #c8a96e;
}

@media (max-width: 480px) {
  .bw-dates { grid-template-columns: 1fr; }
  .admin-extra-row .drawer-field { min-width: calc(50% - 8px); }
}
