.sf-opening:not([open]) { display: none; }
.sf-opening {
  width: min(600px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: #292b24;
  letter-spacing: 0;
}
.sf-opening__panel {
  max-height: calc(100dvh - 64px);
  padding: 10px;
  border: 2px solid #617c4e;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 20px 72px #15201340;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sf-opening::backdrop { background: #172017a8; }
html.sf-opening-visible { overflow: hidden; }
.sf-opening [hidden] { display: none !important; }
.sf-opening__gallery { position: relative; }
.sf-opening__slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #e7ebe3; }
.sf-opening__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0; pointer-events: none; }
.sf-opening__photo.is-active { opacity: 1; }
.sf-opening__gallery-controls { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; padding: 2px 4px; border: 1px solid #d8ddd3; border-radius: 8px; background: #fffdf9; box-shadow: 0 2px 8px #15201326; }
.sf-opening__gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #385c29; cursor: pointer; }
.sf-opening__gallery-controls button:hover { background: #edf1e8; }
.sf-opening__dot span { width: 8px; height: 8px; border: 1px solid #52614a; border-radius: 50%; background: transparent; }
.sf-opening__dot[aria-current="true"] span { background: #385c29; border-color: #385c29; box-shadow: 0 0 0 3px #e1e9db; }
.sf-opening__gallery-controls button:disabled { opacity: .4; cursor: default; }
.sf-opening__icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.sf-opening__close {
  position: absolute; z-index: 1; top: -18px; right: -12px; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 2px solid #617c4e;
  border-radius: 50%; background: #fffdf9; color: #263522;
  box-shadow: 0 4px 12px #15201326;
  font: 32px/1 sans-serif; cursor: pointer;
}
.sf-opening__content { padding: 24px 22px 20px; }
.sf-opening__brand { margin: 0 0 6px; color: #45653a; font-size: 14px; font-weight: 700; }
.sf-opening h2 { margin: 0; color: #263522; font-family: var(--font-display, Georgia, serif); font-size: 34px; line-height: 1.15; letter-spacing: 0; font-weight: 600; text-wrap: balance; }
.sf-opening__description { margin: 14px 0 16px; color: #54584e; font-size: 16px; line-height: 1.5; }
.sf-opening__address { padding: 0 0 0 14px; border-left: 3px solid #7d984e; font-size: 15px; font-style: normal; line-height: 1.6; }
.sf-opening__actions { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
.sf-opening__actions a { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 48px; padding: 10px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; }
.sf-opening__directions { color: #fff; background: #385c29; border: 1px solid #385c29; }
.sf-opening__directions:hover { background: #29451e; color: #fff; }
.sf-opening__close:hover { background: #edf1e8; }
.sf-opening :is(a, button):focus-visible { outline: 3px solid #405ac9; outline-offset: 3px; }
.sf-opening :is(a, button):active { opacity: .85; }
.sf-opening :is(h2, p, address, a) { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .sf-opening { width: 720px; }
  .sf-opening__content { padding: 26px 30px 24px; }
  .sf-opening h2 { font-size: 36px; }
}
@media (max-width: 480px) {
  .sf-opening__gallery-controls .sf-opening__dot { width: 32px; }
  .sf-opening__close { right: -8px; }
  .sf-opening__content { padding: 20px 10px 10px; }
  .sf-opening h2 { font-size: 28px; }
  .sf-opening__description { font-size: 15px; margin: 12px 0; }
  .sf-opening__address { font-size: 14px; }
  .sf-opening__actions { gap: 8px; margin-top: 18px; }
  .sf-opening__actions a { font-size: 14px; gap: 6px; }
}
@media (max-height: 700px) {
  .sf-opening__slides { max-height: 180px; }
  .sf-opening__content { padding-top: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sf-opening__photo { transition: opacity 180ms ease-out; }
  .sf-opening[open] { animation: sf-opening-enter 160ms ease-out; }
  @keyframes sf-opening-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
