/* Daylight on the room guide, with a stationary plane for the controls. */
.hero {
  background:
    radial-gradient(ellipse at 78% 43%, #33515199, transparent 49%),
    linear-gradient(112deg, #142e34 15%, #193438 60%, #142e34);
}
.room-browser {
  --photo-x: 0px;
  --photo-y: 0px;
  --pitch: 0deg;
  --yaw: 0deg;
  --light-x: 72%;
  --light-y: 26%;
  background: linear-gradient(145deg, #536664, #30474a 33%, #283f42 75%);
  border-color: #82938b #4c6664 #344a4b #627975;
  box-shadow: inset 0 1px 0 #edf4d92b, 0 2px 3px #091a1b45, 0 16px 28px -18px #071516aa;
}
.room-browser::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px -4px -5px 6px;
  background: linear-gradient(130deg, #75827a, #495c57 65%, #53655e);
  border: 1px solid #9aab973f;
  border-radius: inherit;
  transform: rotate(.85deg);
  transform-origin: 45% 70%;
  box-shadow: 1px 8px 19px -7px #06161680;
  pointer-events: none;
}
.photo-frame {
  position: relative;
  background: #405552;
  box-shadow: 0 1px 0 #b4bca63b;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #fffae838, inset 0 -16px 22px -24px #1e211b;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), #fff3c00b, transparent 55%);
  pointer-events: none;
}
.room-tabs {
  background: linear-gradient(155deg, #fffdf6, #f2f0e6);
  box-shadow: 0 2px 2px #24281b26, 0 5px 12px #14231f26, inset 0 1px 0 #fff;
}
.room-note {
  background: linear-gradient(113deg, #fffdf8, #f8f6ee);
  border-color: #efeee5 #d8dacf #caccbf #e5e5da;
  box-shadow: 0 1px 0 #c9cbbf, 0 3px 4px #10242129, 0 15px 24px -10px #0c1d1bcc;
}
.photo-pin {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  width: 35px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7c6e48;
  background: linear-gradient(135deg, #fff7ce, #d8cc9b 39%, #c4b586 71%, #ebdeb4);
  border: 1px solid #e4dbb9;
  box-shadow: inset 0 1px 1px #ffffe0, inset -1px -2px 1px #8d805c, 0 1px 0 #7b745c, 1px 3px 5px #24302155;
  pointer-events: none;
}
.photo-pin::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid #97875880;
  box-shadow: 0 .7px 0 #fff9d7c4, inset 0 .7px 0 #fff9d7ab;
}
.photo-pin svg {
  width: 61%;
  height: 61%;
  filter: drop-shadow(0 .8px .1px #ffefbc);
}
.button.primary {
  box-shadow: inset 0 1px 0 #ffffed52, 0 2px 0 #70907955;
}
.estimate-card {
  background: radial-gradient(ellipse at 100% 0, #345249, transparent 65%), #173238;
  border: 1px solid #344e4c;
  box-shadow: inset 0 1px 0 #e4ecd81c, 0 4px 0 -2px #708374, 0 16px 27px -22px #233d36;
}
@media (min-width: 761px) {
  .room-tabs button {min-height: 35px;}
  .photo-frame {margin-bottom: 1px;}
}
@media (max-width: 760px) {
  .photo-pin {top: 13px; right: 13px; width: 28px;}
  .room-tabs button {min-height: 39px;}
  .room-browser::before {inset: 4px -2px -3px 5px; transform: rotate(.55deg);}
}
@media (max-width: 350px) {
  .photo-pin {display: none;}
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .photo-frame picture {
    transform: perspective(900px) translate3d(var(--photo-x), var(--photo-y), 0) rotateX(var(--pitch)) rotateY(var(--yaw)) scale(1.022);
    transition: transform 380ms cubic-bezier(.22,.65,.3,1);
  }
  .photo-pin svg {
    transform: translate(calc(var(--photo-x) * -.16), calc(var(--photo-y) * -.16));
    transition: transform 380ms ease-out;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .room-panel {--turn: 2.15deg; --hinge: 12%;}
  #panel-living {--turn: -2.15deg; --hinge: 88%;}
  .room-panel.shown .photo-frame img {
    transform-origin: var(--hinge) 50%;
    animation: room-light-in 480ms cubic-bezier(.22,.65,.3,1);
  }
  .room-panel.shown .room-note {
    animation: room-caption-in 300ms cubic-bezier(.22,.65,.3,1);
  }
  @keyframes room-light-in {
    from {opacity: .86; transform: perspective(950px) rotateY(var(--turn)) scale(1.035);}
    to {opacity: 1; transform: scale(1);}
  }
  @keyframes room-caption-in {
    from {transform: perspective(700px) translateY(2px) rotateX(-1deg);}
    to {transform: none;}
  }
}
