/* {{calendar-looks}} on /products/property-management/#make-it-yours: six looks of the same kind of
   week. Shapes only. Only transform animates, nothing starts hidden, and reduced motion or Pause motion
   stills every board on its finished state. Mobile first: one board a row, two from 640px, three from
   1000px, so six fill the width with no gap at the end. */
.cal-looks { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-block: var(--s-4, 24px); }
@media (min-width: 640px) { .cal-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cal-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cal-look { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; min-width: 0; }
.cal-look__caption { font-size: 0.9375rem; color: var(--ink); }
.cal-look__caption strong { font-weight: 600; margin-right: 6px; }

/* The board. --cl-* are the look's own colours; each look below sets them. */
.cal-look__board {
  --cl-bg: var(--surface);
  --cl-head: var(--surface-2);
  --cl-line: var(--line);
  --cl-room: color-mix(in srgb, var(--muted) 35%, transparent);
  --cl-row-h: 22px;
  --cl-radius: 6px;
  --cl-strip-h: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 12px;
  border-radius: 16px;
  background: var(--cl-bg);
  border: 1px solid var(--cl-line);
  box-shadow: var(--shadow);
  /* Boards in a row share one height, so their names line up; the rows stretch to fill it. */
  display: flex;
  flex-direction: column;
}
.cal-look__head, .cal-look__row { display: grid; grid-template-columns: 18% minmax(0, 1fr); align-items: center; gap: 8px; }
.cal-look__head { padding-bottom: 8px; border-bottom: 1px solid var(--cl-line); }
.cal-look__corner { height: 8px; border-radius: 4px; background: var(--cl-room); }
.cal-look__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-look__day { height: 8px; border-radius: 4px; background: var(--cl-head); }
.cal-look__day--today { background: var(--accent); }
.cal-look__rows { display: grid; flex: 1; grid-auto-rows: 1fr; }
.cal-look__row { min-height: var(--cl-row-h); border-bottom: 1px solid color-mix(in srgb, var(--cl-line) 55%, transparent); }
.cal-look__row:last-child { border-bottom: 0; }
.cal-look__room { height: 7px; width: 80%; border-radius: 4px; background: var(--cl-room); }
.cal-look__track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 3px; align-items: center; }
.cal-look__strip { grid-row: 1; height: var(--cl-strip-h); border-radius: var(--cl-radius); transform-origin: left center; }
.cal-look__s0 { grid-column-start: 1; } .cal-look__s1 { grid-column-start: 2; } .cal-look__s2 { grid-column-start: 3; }
.cal-look__s3 { grid-column-start: 4; } .cal-look__s4 { grid-column-start: 5; } .cal-look__s5 { grid-column-start: 6; }
.cal-look__s6 { grid-column-start: 7; }
.cal-look__w1 { grid-column-end: span 1; } .cal-look__w2 { grid-column-end: span 2; } .cal-look__w3 { grid-column-end: span 3; }
.cal-look__w4 { grid-column-end: span 4; } .cal-look__w5 { grid-column-end: span 5; } .cal-look__w6 { grid-column-end: span 6; }
.cal-look__w7 { grid-column-end: span 7; }
/* The booking-site colours the app's own calendar uses: Booking.com, Agoda, Expedia, direct, phone. */
.cal-look__c1 { background: #3b6fd8; } .cal-look__c2 { background: #e0524f; } .cal-look__c3 { background: #f0a23b; }
.cal-look__c4 { background: #2bb3a3; } .cal-look__c5 { background: #8b7cf0; }

/* The today line that sweeps the week. The holder spans the board and is what moves, so a percentage
   of its own width is the whole board. */
.cal-look__sweep { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cal-look__line { position: absolute; top: 8px; bottom: 8px; left: 30%; width: 2px; border-radius: 2px; background: var(--accent); opacity: 0.55; }

/* ---- the six looks ---- */
/* Cosy: a few rooms, big friendly strips. */
.cal-look--cosy .cal-look__board { --cl-row-h: 46px; --cl-strip-h: 26px; --cl-radius: 14px; --cl-bg: color-mix(in srgb, #fff6ea 70%, var(--surface)); }
.cal-look--cosy .cal-look__strip { box-shadow: 0 2px 6px color-mix(in srgb, #000 12%, transparent); }
/* Standard: the board as it ships. */
.cal-look--standard .cal-look__board { --cl-row-h: 26px; --cl-strip-h: 14px; }
/* Classic: square strips and ruled columns, like a paper book. */
.cal-look--classic .cal-look__board { --cl-radius: 2px; --cl-bg: color-mix(in srgb, #f6f1e4 75%, var(--surface)); --cl-strip-h: 13px; }
.cal-look--classic .cal-look__track { background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), color-mix(in srgb, var(--cl-line) 90%, transparent) calc(100% / 7 - 1px) calc(100% / 7)); }
.cal-look--classic .cal-look__c1, .cal-look--classic .cal-look__c2, .cal-look--classic .cal-look__c3,
.cal-look--classic .cal-look__c4, .cal-look--classic .cal-look__c5 { filter: saturate(0.6); }
/* Night desk: dark whatever the site's theme, by choice - it is the look for the small hours. */
.cal-look--night .cal-look__board { --cl-bg: #141a2b; --cl-head: #2a3350; --cl-line: #2a3350; --cl-room: #3a4566; }
/* Glass: frosted, with colour showing through. */
.cal-look--glass .cal-look__board {
  --cl-bg: color-mix(in srgb, var(--surface) 55%, transparent);
  --cl-radius: 10px;
  background-image: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, #2bb3a3 22%, transparent), transparent 55%);
}
.cal-look--glass .cal-look__strip { opacity: 0.85; }
/* Busy house: many rooms, tight rows, thin strips. */
.cal-look--busy .cal-look__board { --cl-row-h: 11px; --cl-strip-h: 6px; --cl-radius: 3px; }
.cal-look--busy .cal-look__row { border-bottom-color: transparent; }

/* ---- motion: a slow float, strips settling, and the today line crossing the week ---- */
@media (prefers-reduced-motion: no-preference) {
  .cal-look__board { animation: cal-float 7s ease-in-out infinite; }
  .cal-look:nth-child(2n) .cal-look__board { animation-delay: -2.3s; }
  .cal-look:nth-child(3n) .cal-look__board { animation-delay: -4.6s; }
  .cal-look__strip { animation: cal-settle 4.8s ease-in-out infinite; }
  .cal-look__k1 { animation-delay: -1.2s; } .cal-look__k2 { animation-delay: -2.4s; } .cal-look__k3 { animation-delay: -3.6s; }
  .cal-look__sweep { animation: cal-sweep 9s linear infinite; }
}
@keyframes cal-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes cal-settle { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.94); } }
@keyframes cal-sweep { from { transform: translateX(-30%); } to { transform: translateX(70%); } }
html.motion-paused .cal-look__board,
html.motion-paused .cal-look__strip,
html.motion-paused .cal-look__sweep { animation: none; }
