#fao-root
{
  margin: 30px 0 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111111;
  min-height: 427px;
  width: 100%;
  max-width: unset;
}

/* --- Month / Year dropdowns ------------------------------------------------ */
.fao-controls
{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.fao-controls select
{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 24px 6px 16px;
  border-radius: 999px;
  border: 1px solid #ded4c8;
  background: #f7f3ec;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

/* --- Grid wrapper ---------------------------------------------------------- */
.fao-grid-wrapper
{
  /* just a container; adjust spacing above/below if you like */
}

.fao-scroll
{
  overflow-x: auto;
  padding-bottom: 12px;
}

.fao-table
{
  width: 100%;
  /* grow with number of days */
}

/* --- Rows ------------------------------------------------------------------ */
.fao-header-row,
.fao-row
{
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  justify-content: space-between;
}

/* soft pill background behind the dots in each rental row */
.fao-row::before
{
  content: "";
  position: absolute;
  left: 120px;
  /* same as label width */
  right: 0;
  height: 28px;
  border-radius: 999px;
  background: #f4f6fb;
  z-index: 0;
}

/* label column (Wohnung 1, 2, …) */
.fao-label-cell
{
  flex: 0 0 120px;
  /* as requested */
  padding-right: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #111111;
  white-space: nowrap;
}

/* header row label (left cell on weekday row) */
.fao-header-row .fao-label-cell
{
  font-weight: 400;
  font-size: 12px;
  color: #888888;
}

/* weekday header cells & dot cells share same width so they align */
.fao-day-cell,
.fao-dot-cell
{
  flex: 0 0 36px;
  /* column width */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* above background pill */
}

/* weekday labels */
.fao-day-cell
{
  font-size: 12px;
  color: #555555;
}

/* the dot (background circle) */
.fao-dot
{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef3f8;
  /* free / default */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* day number inside the dot */
.fao-dot-number
{
  font-size: 11px;
  font-weight: 500;
  color: #555555;
}

/* booked days */
.fao-dot--booked
{
  background: #e6b09c;
  color: #fff;
}

/* extra tiny spacing between rows */
.fao-row + .fao-row
{
  margin-top: 4px;
}

#availability-hint
{
  text-align: right;
}

/* wrapper background (optional) */
.wp-block-table
{
  background: #f7f3ec;
  padding: 16px 0;
  max-width: 100% !important;
}

/* base table */
.wp-block-table table.has-fixed-layout
{
  width: 100%;
  border-collapse: collapse;
  border: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #1a1a1a;
}

/* all cells: only horizontal line */
.wp-block-table table.has-fixed-layout td
{
  padding: 14px 0;
  border-top: none;
  border-bottom: 1px solid #d0c6b9;
  /* horizontal lines */
  border-left: none;
  border-right: none;
  /* reset, we'll add the middle one below */
}

/* first row = header */
.wp-block-table table.has-fixed-layout tr:first-child td
{
  font-weight: 600;
  border-top: 1px solid #d0c6b9;
  /* top line of table */
}

/* LEFT column: left aligned + middle vertical line */
.wp-block-table table.has-fixed-layout td:first-child
{
  text-align: left;
  padding-right: 24px;
  border-right: 1px solid #d0c6b9;
  /* ONLY vertical border = middle line */
}

/* RIGHT column: centered, no outer border */
.wp-block-table table.has-fixed-layout td:last-child
{
  text-align: center;
  white-space: nowrap;
  border-right: none;
  /* no border on the far right */
}

#fao-season-table
{
  width: 100%;
  padding: 0;
  max-width: unset;
  overflow: scroll;
}

.fao-season-price-table
{
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  text-align: center;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}

.fao-season-price-table th,
.fao-season-price-table td
{
  padding: 16px 12px;
  border-right: 1px solid #ccc;
}

.fao-season-price-table th:last-child,
.fao-season-price-table td:last-child
{
  border-right: none;
}

.fao-season-price-table th
{
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}

.fao-season-price-table td
{
  font-size: 1.1rem;
}

/* ---------------------------------------------------------
   MOBILE season slider controls (only visible on mobile)
   --------------------------------------------------------- */
.fao-season-nav
{
  display: none;
  /* desktop hidden */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px auto 14px;
  max-width: 500px;
  padding: 8px 10px;
  border: 1px solid #ded4c8;
  background: #f7f3ec;
  border-radius: 999px;
}

.fao-season-nav button
{
  appearance: none;
  border: 1px solid #ded4c8;
  background: #ffffff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.fao-season-nav .fao-season-nav-label
{
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

/* Mobile table behavior */
@media (max-width: 768px)
{
  #fao-season-table
  {
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
  }

  .fao-season-nav
  {
    display: flex;
    /* mobile visible */
  }

  .fao-season-price-table
  {
    width: 100%;
    table-layout: fixed;
  }

  /* fallback without JS: show first 2 seasons only */
  .fao-season-price-table th:nth-child(n+4),
  .fao-season-price-table td:nth-child(n+4)
  {
    display: none;
  }

  .fao-season-price-table th,
  .fao-season-price-table td
  {
    padding: 12px 8px;
    font-size: 0.95rem;
  }

  .fao-season-price-table td:first-child,
  .fao-season-price-table th:first-child
  {
    font-weight: 600;
    text-align: left;
  }
}

/* ---------------------------------------------------------
   Calendar slider (week / bi-week)
   --------------------------------------------------------- */
.fao-calendar-nav
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 12px;
  max-width: 100%;
  border-radius: 999px;
  background: #f7f3ec;
  border: 1px solid #ded4c8;
}

.fao-calendar-nav button
{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #ded4c8;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.fao-calendar-nav-label
{
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* hide overflow columns */
.fao-table
{
  overflow: hidden;
}

/* next-month days */
.fao-dot--next-month
{
  background: #f0f0f0;
  opacity: 0.55;
}

.fao-dot-number--next-month
{
  color: #999;
}