/* TORAVANT / controls: champagne surfaces, precise edges, papaya accents. */
:root {
  --control-ease: cubic-bezier(.16, 1, .3, 1);
  --control-light: linear-gradient(135deg, #fffdf4 0%, #eae2d1 56%, #d9c8a9 100%);
  --control-dark: linear-gradient(140deg, #353c36, #1b211e 72%);
}

.button,
.header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  max-width: 100%;
  border: 1px solid #fff8e9b3;
  border-radius: 999px;
  background: var(--control-light);
  color: #22271f;
  box-shadow: inset 0 1px 0 #fffefa, inset 0 -2px 0 #74694a20, 0 7px 16px #0003, 0 1px 3px #0004;
  isolation: isolate;
  overflow: hidden;
}

.button {
  min-height: 60px;
  min-width: 252px;
  padding: 8px 9px 8px 25px;
  gap: 27px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

.button.button-light:hover {
  background: var(--control-light);
}

.button .button-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-size: inherit;
  line-height: 1.4;
}

.button .button-icon,
.header-cta .button-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #465044;
  border-radius: 50%;
  background: var(--control-dark);
  color: #f6ecda;
  box-shadow: inset 0 1px 0 #ffffff24, 0 2px 4px #17221b24;
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
}

.button:before,
.header-cta:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 15%, #fff9 45%, transparent 76%);
  transform: translateX(-120%);
}

.button:after,
.header-cta:after {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid #ffffff40;
  border-radius: inherit;
}

.closing .button {
  border-color: #475046;
  background: var(--control-dark);
  color: #f6f0e4;
  box-shadow: inset 0 1px 0 #c1cfb52e, inset 0 -2px 0 #070e0a55, 0 8px 18px #20271830;
}

.closing .button:after { border-color: #ccd4ba12; }
.closing .button.button-light:hover { background: var(--control-dark); }
.closing .button:before { background: linear-gradient(110deg, transparent 15%, #dfbe8938 45%, transparent 76%); }
.closing .button .button-icon {
  border-color: #ffd2a1;
  background: linear-gradient(135deg, #ffd1a0, #f19a55 72%, #df7b32);
  color: #292a20;
  box-shadow: inset 0 1px 0 #fff0d7a0, 0 2px 4px #0003;
}

.header-cta {
  gap: 15px;
  min-height: 44px;
  padding: 5px 6px 5px 17px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .055em;
}

.header-cta .button-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 17px;
}

.filters {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  border: 1px solid #6e735551;
  border-radius: 999px;
  background: linear-gradient(135deg, #272d26, #181d18);
  box-shadow: inset 0 1px 2px #0005, 0 1px 0 #e5d8ac0c;
}

.filters button {
  position: relative;
  min-height: 44px;
  min-width: 0;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #b8c0b0;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .025em;
  white-space: nowrap;
}

.filters button.active {
  border-color: #fff4dca3;
  background: var(--control-light);
  color: #292c21;
  box-shadow: inset 0 1px 0 #fffff2, inset 0 -1px 0 #927a3d35, 0 3px 8px #0005;
}

.round-arrow,
.expand,
.dialog-close,
.menu-toggle {
  border: 1px solid #f5eed89c;
  background: var(--control-light);
  color: #252b22;
  box-shadow: inset 0 1px 0 #fff9edb3, 0 4px 12px #0003;
}

.round-arrow {
  top: 17px;
  right: 17px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.broker summary { grid-template-columns: 65px 1fr 280px 44px; }
.expand {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  justify-self: end;
  line-height: 1;
  border-color: #c3bdaa;
  background: linear-gradient(140deg, #fbf8ef, #ded9c9);
  box-shadow: inset 0 1px 0 #fff, 0 3px 7px #5b543611;
  font-size: 22px;
}

.broker[open] .expand {
  border-color: #364034;
  background: var(--control-dark);
  color: #f1b77e;
  box-shadow: inset 0 1px 0 #b8c1a62e, 0 3px 7px #2b332320;
}

.dialog-close {
  width: 44px;
  height: 44px;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  font-size: 29px;
  line-height: 1;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  padding: 10px;
  border-color: #73796266;
  border-radius: 50%;
  background: linear-gradient(135deg, #30372d, #1b201b);
  box-shadow: inset 0 1px 0 #e8d8b220, 0 3px 7px #0002;
}

.menu-toggle span {
  width: 18px;
  background: #e9deca;
}

body.motion-enabled .button,
body.motion-enabled .header-cta,
body.motion-enabled .filters button,
body.motion-enabled .expand,
body.motion-enabled .round-arrow,
body.motion-enabled .dialog-close,
body.motion-enabled .menu-toggle {
  transition: transform .4s var(--control-ease), box-shadow .4s var(--control-ease), border-color .3s, color .3s, background .3s !important;
}

body.motion-enabled .button > .button-label,
body.motion-enabled .button:hover > .button-label {
  transform: none;
}

body.motion-enabled .button > .button-icon,
body.motion-enabled .header-cta > .button-icon,
body.motion-enabled .menu-toggle span {
  transition: transform .45s var(--control-ease), background .3s, color .3s, border-color .3s !important;
}

body.motion-enabled .button:before,
body.motion-enabled .header-cta:before {
  transition: transform .85s var(--control-ease) !important;
}

.button:focus-visible,
.header-cta:focus-visible,
.filters button:focus-visible,
.dialog-close:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid #f5a76a;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  body.motion-enabled .button:hover,
  body.motion-enabled .header-cta:hover {
    border-color: #fff9e8;
    box-shadow: inset 0 1px 0 #fffff5, inset 0 -2px 0 #74694a20, 0 12px 23px #0004, 0 0 24px #ebbc7426;
  }
  body.motion-enabled .header-cta:hover { transform: translateY(-2px); }
  body.motion-enabled .button:hover:before,
  body.motion-enabled .header-cta:hover:before { transform: translateX(120%); }
  body.motion-enabled .button:hover > .button-icon,
  body.motion-enabled .header-cta:hover > .button-icon {
    transform: rotate(45deg);
    border-color: #f6b57b;
    background: #ed9d61;
    color: #24271e;
  }
  body.motion-enabled .closing .button:hover {
    border-color: #7d896f;
    background: var(--control-dark);
    box-shadow: inset 0 1px 0 #d8e6c32e, 0 12px 22px #20271840, 0 0 20px #fbefba24;
  }
  .filters button:not(.active):hover { background: #ffffff08; color: #f1e8d6; border-color: #c6b88c30; }
  body.motion-enabled .event-image:hover .round-arrow {
    background: linear-gradient(135deg, #ffd1a0, #f19a55);
    border-color: #ffdbb4;
    box-shadow: inset 0 1px 0 #fff2dd, 0 5px 15px #0004;
  }
  .broker summary:hover .expand { border-color: #a68b60; }
  body.motion-enabled .dialog-close:hover { transform: rotate(90deg); border-color: #fff7e6; }
  body.motion-enabled .menu-toggle:hover { background: #364031; border-color: #b8ab8766; }
}

body.motion-enabled .button:active,
body.motion-enabled .header-cta:active {
  transform: translateY(1px) scale(.985);
  box-shadow: inset 0 2px 5px #41351e25, 0 2px 4px #0002;
}
body.motion-enabled .filters button:active,
body.motion-enabled .dialog-close:active,
body.motion-enabled .menu-toggle:active { transform: scale(.96); }

@media (max-width: 1100px) {
  .broker summary { grid-template-columns: 40px 1fr 240px 44px; }
}

@media (max-width: 720px) {
  .button { min-height: 56px; min-width: 240px; padding: 7px 8px 7px 22px; gap: 20px; font-size: 11px; }
  .button .button-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; }
  .header-cta { gap: 10px; padding: 5px 6px 5px 13px; font-size: 10px; }
  .header-cta .button-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 16px; }
  .filters { gap: 2px; padding: 4px; }
  .filters button { padding: 10px 14px; font-size: 9px; letter-spacing: .01em; }
  .broker summary { grid-template-columns: 25px 1fr 40px; }
  .round-arrow { top: 13px; right: 13px; }
}

@media (max-width: 380px) {
  .site-header { gap: 9px; }
  .header-controls { gap: 6px; }
  .header-cta { gap: 7px; padding-left: 11px; font-size: 9px; letter-spacing: .015em; }
  .filters { width: 100%; }
  .filters button { flex: 1 1 auto; padding-right: 10px; padding-left: 10px; }
}
