/* Oxnard Ocean Oasis — styles for the OwnerRez calendar template.
   Loaded only on page-calendar-ownerrez.php, so style.css stays untouched. */

/* The theme's repeat(7,1fr) lets the price text set a floor on column width,
   which pushes the grid past its container on phones. minmax(0,…) lifts it. */
.cal-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-cell {
  min-width: 0;
}
.cal-cell .p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Booked nights: wording on wide screens, struck-through price where space is tight. */
.cal-cell.blocked .p-price {
  display: none;
}

/* ---- Booking form ------------------------------------------------------- */
.ooo-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.ooo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ooo-field label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ooo-field .req {
  color: #b42b1a;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.ooo-field input,
.ooo-field select,
.ooo-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.35;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(44, 51, 56, .05);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ooo-field textarea {
  min-height: 116px;
  resize: vertical;
}
.ooo-field input:focus,
.ooo-field select:focus,
.ooo-field textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(169, 212, 229, .45);
}

.ooo-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ooo-consent input {
  margin-top: 4px;
  flex: 0 0 auto;
  width: auto;
}
.ooo-consent label {
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}
.ooo-consent label a {
  color: inherit;
  text-decoration: underline;
}

/* The required agreement is a term of the booking, so it reads a step louder. */
.ooo-consent--required label {
  font-size: .86rem;
  color: var(--ink);
}

/* Honeypot: off-screen for bots, invisible to everyone else. */
.ooo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ooo-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.ooo-submit .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 34px;
  border: 1.5px solid rgba(47, 122, 152, .18);
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 122, 152, .18);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.ooo-submit .btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(44, 51, 56, .16);
}
.ooo-submit .btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}
.ooo-note {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-soft);
  text-align: center;
}
.ooo-error {
  margin: 0;
  font-size: .9rem;
  color: #b42b1a;
  text-align: center;
}

#sumBreakdown {
  display: block;
  margin-bottom: 4px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .cal-cell.blocked .p-booked {
    display: none;
  }
  .cal-cell.blocked .p-price {
    display: inline;
    text-decoration: line-through;
  }
  .cal-cell {
    min-height: 56px;
    padding: 6px 2px;
  }
  .cal-cell .d {
    font-size: .85rem;
  }
  .cal-cell .p {
    font-size: .62rem;
  }
  .cal-grid {
    gap: 4px;
  }
  .ooo-field-row {
    grid-template-columns: 1fr;
  }
}
