.cma-widget{--cma-green:#aec36b;--cma-red:#df625b;--cma-grey:#f4f4f4;--cma-ink:#272727;font-family:inherit;color:var(--cma-ink);max-width:1600px;margin:25px auto 50px}.cma-widget *{box-sizing:border-box}.cma-title-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 26px;gap:15px}.cma-title-row h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(26px,2.4vw,42px);font-variant:small-caps;font-weight:400;color:#555;margin:0;letter-spacing:.015em}.cma-arrow{border:0;background:transparent;color:#646464;font:normal 52px/1 Georgia,serif;padding:0 12px;cursor:pointer}.cma-arrow:hover{color:#aec36b}.cma-layout{display:grid;grid-template-columns:minmax(300px,38%) minmax(0,1fr);gap:clamp(22px,5vw,85px);align-items:start}.cma-calendar{border:1px solid #e8e8e8;padding:12px;background:#fff}.cma-weekdays,.cma-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.cma-weekdays{margin-bottom:11px}.cma-weekdays span{font-weight:700;text-align:center;font-size:16px}.cma-day{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:var(--cma-green);border:0;border-radius:0;padding:0;color:#747474;font-weight:400;font-size:clamp(12px,1.1vw,17px);font-family:inherit;min-width:0}.cma-day.cma-booked{background:var(--cma-red)}.cma-day.cma-outside,.cma-day.cma-past{background:var(--cma-grey);color:#aaa}.cma-day:disabled{opacity:1;cursor:default}.cma-legend{display:flex;gap:20px;flex-wrap:wrap;margin:12px 2px 0;color:#666;font-size:12px}.cma-legend span{display:inline-flex;align-items:center;gap:7px}.cma-legend i{display:inline-block;width:12px;height:12px}.cma-legend-free{background:var(--cma-green)}.cma-legend-booked{background:var(--cma-red)}.cma-pricing{width:100%;border-collapse:collapse;table-layout:fixed;border:0!important;margin:0!important}.cma-pricing thead th{font-size:clamp(12px,1.15vw,18px);font-weight:700;color:#171717;text-align:left;border:0!important;border-bottom:1px solid #dedede!important;padding:0 8px 14px!important;background:transparent!important;vertical-align:bottom;line-height:1.15}.cma-pricing thead th:first-child,.cma-pricing tbody td:first-child{padding-left:0!important}.cma-pricing thead th strong{display:block;font-weight:700}.cma-pricing thead th small{display:block;font-size:.9em;font-weight:700;white-space:nowrap}.cma-pricing tbody tr:nth-child(even){background:#f7f7f7}.cma-pricing tbody td{text-align:left;vertical-align:middle;border:0!important;border-bottom:1px solid #dedede!important;padding:19px 8px!important;font-size:clamp(12px,1.05vw,17px);height:80px;background:transparent!important}.cma-pricing tbody tr:last-child td{border-bottom:0!important}.cma-pricing tbody strong{font-weight:700;white-space:nowrap;color:#131313}.cma-unavailable{color:#444}.cma-stay-date{display:block;font-size:11px;color:#888;margin-bottom:5px;white-space:nowrap}.cma-price-note{font-size:12px;color:#777;line-height:1.5;margin:10px 0 0}.cma-status{color:#555;font-size:13px;min-height:1em}.cma-admin-widget{max-width:1500px;margin:15px 0 25px}.cma-admin-widget .cma-day{cursor:pointer}.cma-admin-widget .cma-day:hover{outline:3px solid #404040;outline-offset:-4px}.cma-admin-hint{font-size:12px;color:#555}.cma-range{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0 12px}.cma-range label{display:flex;gap:7px;align-items:center}.cma-admin-table-scroll{overflow:auto;max-width:100%}.cma-admin-table{min-width:950px}.cma-admin-table th,.cma-admin-table td{vertical-align:middle!important}.cma-admin-table input[type=number]{width:100%;min-width:83px;max-width:150px}.cma-admin .cma-layout{grid-template-columns:minmax(290px,38%) minmax(0,1fr)}@media(max-width:1050px){.cma-layout,.cma-admin .cma-layout{grid-template-columns:1fr;gap:25px}.cma-calendar-wrap{max-width:580px}.cma-pricing thead th{font-size:13px}.cma-pricing tbody td{font-size:14px}.cma-day{font-size:15px}}@media(max-width:620px){.cma-widget{margin:15px auto 30px}.cma-title-row{margin-bottom:15px}.cma-title-row h2{font-size:28px}.cma-calendar{padding:7px}.cma-days,.cma-weekdays{gap:2px}.cma-pricing-wrap{width:100%;overflow:hidden}.cma-scroll{overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch}.cma-pricing{min-width:650px}.cma-pricing tbody td{padding:15px 8px!important;height:67px}.cma-legend{font-size:11px}}

.cma-shortcode-box{background:#fff;border:1px solid #dcdcde;border-left:4px solid #aec36b;padding:14px 20px;margin:20px 0 26px;max-width:920px}.cma-shortcode-box h2{margin:0 0 10px}.cma-shortcode-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.cma-shortcode-line code{display:inline-block;font-size:15px;padding:9px 12px;user-select:all}.cma-copy-feedback{color:#27652b}.cma-shortcode-box p:last-child{margin-bottom:0}

/* v1.2 compact front-end layout: preserve full-size admin editing controls */
@media (min-width: 1051px) {
  .cma-widget:not(.cma-admin-widget) { max-width: 1320px; width: 100%; margin-left: auto; margin-right: auto; }
  .cma-widget:not(.cma-admin-widget) .cma-layout { grid-template-columns: minmax(300px, 36%) minmax(0,1fr); gap: clamp(24px, 3vw, 46px); }
  .cma-widget:not(.cma-admin-widget) .cma-calendar { padding: 10px; }
  .cma-widget:not(.cma-admin-widget) .cma-weekdays { margin-bottom: 7px; }
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead th { font-size: clamp(12px, 1vw, 15px); padding-bottom: 12px !important; }
  .cma-widget:not(.cma-admin-widget) .cma-pricing tbody td { height: 70px; padding: 13px 6px !important; font-size: clamp(12px, .95vw, 15px); }
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead th { padding-left: 6px !important; padding-right: 6px !important; }
}

/* v1.3: keep historical prices visible but subdued; preserve true booked days. */
.cma-day.cma-past { opacity: .42; }
.cma-day.cma-past.cma-booked { background: var(--cma-red); }
.cma-day.cma-past.cma-free { background: var(--cma-green); }
.cma-pricing tbody td.cma-expired-stay { opacity: .40; }

/* v1.4: Match each booking-table row to the corresponding calendar week.
   Calendar and pricing have identical headers and vertical row pitch on desktop.
   Only the front-end is adjusted; the admin date picker remains unchanged. */
@media (min-width: 1051px) {
  .cma-widget:not(.cma-admin-widget) { --cma-align-header: 56px; --cma-align-row: 77px; }
  .cma-widget:not(.cma-admin-widget) .cma-calendar { padding: 10px; }
  .cma-widget:not(.cma-admin-widget) .cma-weekdays {
    height: var(--cma-align-header); margin: 0; align-items: start; padding-top: 4px;
  }
  .cma-widget:not(.cma-admin-widget) .cma-days { grid-auto-rows: calc(var(--cma-align-row) - 3px); gap: 3px; }
  .cma-widget:not(.cma-admin-widget) .cma-day { height: 100%; aspect-ratio: auto; }
  .cma-widget:not(.cma-admin-widget) .cma-pricing-wrap { padding-top: 11px; }
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead tr { height: var(--cma-align-header); }
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead th {
    height: var(--cma-align-header); padding-top: 0 !important; padding-bottom: 8px !important;
  }
  .cma-widget:not(.cma-admin-widget) .cma-pricing tbody tr { height: var(--cma-align-row); }
  .cma-widget:not(.cma-admin-widget) .cma-pricing tbody td {
    height: var(--cma-align-row); padding-top: 9px !important; padding-bottom: 9px !important;
  }
}

/* v1.5 — tighter title and vertical-centred month controls. */
.cma-widget:not(.cma-admin-widget) .cma-month { position:relative; }
.cma-widget:not(.cma-admin-widget) .cma-title-row {
  display:block;
  margin:0 0 12px;
  padding:0;
}
.cma-widget:not(.cma-admin-widget) .cma-title-row h2 {
  margin:0;
  padding:0;
  line-height:1.15;
}
.cma-widget:not(.cma-admin-widget) .cma-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  display:flex;
  justify-content:center;
  align-items:center;
  width:38px;
  height:64px;
  margin:0;
  padding:0;
  font-size:48px;
  line-height:1;
  background:rgba(255,255,255,.75);
  border:0;
  box-shadow:none;
  cursor:pointer;
}
.cma-widget:not(.cma-admin-widget) .cma-arrow[data-dir="-1"] { left:-45px; }
.cma-widget:not(.cma-admin-widget) .cma-arrow[data-dir="1"] { right:-45px; }
.cma-widget:not(.cma-admin-widget) .cma-layout {
  touch-action:pan-y;
  cursor:grab;
}
.cma-widget:not(.cma-admin-widget) .cma-layout.cma-dragging {
  cursor:grabbing;
  user-select:none;
  -webkit-user-select:none;
}
@media(max-width:1440px) {
  .cma-widget:not(.cma-admin-widget) { width:calc(100% - 70px); }
  .cma-widget:not(.cma-admin-widget) .cma-arrow[data-dir="-1"] { left:-36px; }
  .cma-widget:not(.cma-admin-widget) .cma-arrow[data-dir="1"] { right:-36px; }
}
@media(max-width:620px) {
  .cma-widget:not(.cma-admin-widget) { width:calc(100% - 36px); }
  .cma-widget:not(.cma-admin-widget) .cma-title-row { margin-bottom:10px; }
  .cma-widget:not(.cma-admin-widget) .cma-arrow { width:23px; height:48px; font-size:36px; }
  .cma-widget:not(.cma-admin-widget) .cma-arrow[data-dir="-1"] { left:-25px; }
  .cma-widget:not(.cma-admin-widget) .cma-arrow[data-dir="1"] { right:-25px; }
}


/* v1.6 – square calendar tiles; matching pricing rows size themselves to tiles. */
@media (min-width:1051px) {
  .cma-widget:not(.cma-admin-widget) .cma-days {
    grid-auto-rows: auto;
    gap: 3px;
  }
  .cma-widget:not(.cma-admin-widget) .cma-day {
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:1 / 1;
    align-self:start;
    padding:0;
  }
  .cma-widget:not(.cma-admin-widget) .cma-weekdays {
    height:44px;
    margin:0;
    padding-top:4px;
    align-items:start;
  }
  .cma-widget:not(.cma-admin-widget) .cma-pricing-wrap {padding-top:0;}
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead tr,
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead th {
    height:var(--cma-square-header,54px);
  }
  .cma-widget:not(.cma-admin-widget) .cma-pricing tbody tr,
  .cma-widget:not(.cma-admin-widget) .cma-pricing tbody td {
    height:var(--cma-square-pitch,61px);
  }
  .cma-widget:not(.cma-admin-widget) .cma-pricing tbody td {
    padding:5px 6px !important;
    line-height:1.3;
  }
  .cma-widget:not(.cma-admin-widget) .cma-pricing .cma-stay-date {
    margin-bottom:3px;
    font-size:10px;
  }
  .cma-widget:not(.cma-admin-widget) .cma-pricing thead th {padding-bottom:7px!important;}
}
