.local-hidden {
  display: none !important;
}

.local-feature-modal {
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
}

.local-feature-dialog {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: #1d1d1f;
}

.local-feature-dialog.local-video-dialog {
  width: min(1000px, 100%);
  overflow: hidden;
  background: #111;
}

.local-feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e6e6e6;
}

.local-video-dialog .local-feature-header {
  border-color: #333;
  color: #fff;
}

.local-feature-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.local-feature-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font:
    400 30px/1 Arial,
    sans-serif;
  cursor: pointer;
}

.local-feature-close:hover,
.local-feature-close:focus-visible {
  background: rgba(127, 127, 127, 0.16);
}

.local-feature-body {
  padding: 24px;
}

.local-video-dialog .local-feature-body {
  padding: 0;
}

.local-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.local-calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.local-calculator-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.local-calculator-field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  color: #222;
  background: #fff;
}

.local-calculator-field input:focus {
  border-color: #d90012;
  outline: 2px solid rgba(217, 0, 18, 0.15);
}

.local-calculator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid #d90012;
  background: #f5f5f5;
}

.local-result-item span,
.local-result-item strong {
  display: block;
}

.local-result-item span {
  color: #686868;
  font-size: 13px;
}

.local-result-item strong {
  margin-top: 2px;
  font-size: 19px;
}

.local-feature-note {
  margin: 14px 0 0;
  color: #686868;
  font-size: 12px;
}

.local-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
}

.local-pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #fff;
  color: #292929;
  cursor: pointer;
}

.local-pagination button[aria-current='page'] {
  border-color: #d90012;
  background: #d90012;
  color: #fff;
}

.local-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.local-result-status {
  margin: 10px 0 0;
  color: #6a6a6a;
  font-size: 13px;
}

.local-no-results {
  padding: 30px 16px;
  text-align: center;
  color: #686868;
}

#filtersModal.local-open {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.55);
}

#filtersModal.local-open .modal-dialog {
  transform: none;
}

#sort-method .dropdown-menu.local-open {
  display: block;
}

.video-wrapper.local-playing .video-overlay {
  display: none !important;
}

.video-wrapper.local-playing .video-placeholder {
  background: #000;
}

.local-calendar-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f6f6f6;
}

.local-calendar-detail span,
.local-calendar-detail strong {
  display: block;
}

.local-calendar-detail span {
  color: #707070;
  font-size: 12px;
}

.local-calendar-detail strong {
  margin-top: 3px;
  font-size: 14px;
}

#unlockForm .local-form-message {
  margin: 14px 0 0;
  font-size: 13px;
}

#unlockForm .local-form-message.is-error {
  color: #b00010;
}

body.local-dialog-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .local-feature-modal {
    padding: 12px;
  }

  .local-feature-dialog {
    max-height: calc(100vh - 24px);
  }

  .local-feature-header,
  .local-feature-body {
    padding: 18px;
  }

  .local-feature-title {
    font-size: 19px;
  }

  .local-calculator-fields,
  .local-calculator-results,
  .local-calendar-detail {
    grid-template-columns: 1fr;
  }

  .local-pagination {
    justify-content: center;
  }
}
