.lp-auto {
  margin: 12px auto;
  width: 100%;
  max-width: 1200px;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .lp-auto {
    margin: 10px auto;
  }
}
@media (max-width: 600px) {
  .lp-auto {
    margin: 6px auto;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #e89c0a;
  color: white;
  padding: 6px 10px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 10px;
  }
}

.lp-auto {
  margin-left: auto;
  margin-right: auto;
}

.lp-headerwrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-body);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

header {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.header {
  background: var(--color-bg-body);
  padding: 10px 0;
}

.header .lp-auto {
  margin-bottom: 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (max-width: 768px) {
  .header-wrapper {
    padding: 0 10px;
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .header-wrapper {
    padding: 0 10px;
    gap: 6px;
  }
}

.header-logo {
  flex-shrink: 0;
}
.header-logo a {
  display: block;
  text-decoration: none;
}
.header-logo a img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .header-logo a img {
    height: 32px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
@media (max-width: 600px) {
  .header-actions {
    gap: 6px;
  }
}

.header-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.header-buttons a,
.header-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 80px;
  height: 40px;
  line-height: 1;
}
.header-buttons a:hover,
.header-buttons button:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #e89c0a;
  color: #e89c0a;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-buttons a:focus-visible,
.header-buttons button:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.header-buttons a:active,
.header-buttons button:active {
  transform: translateY(0);
}

.lp-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--color-bg-body);
  border: 2px solid #e89c0a;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.lp-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}
.lp-button:hover {
  background: rgba(232, 156, 10, 0.1);
  border-color: #d08c09;
}
.lp-button:active {
  transform: scale(0.98);
}
.lp-button:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.lp-button.btn-primary {
  background: #e89c0a;
  color: white;
  border-color: #e89c0a;
}
.lp-button.btn-primary:hover {
  background: #c18208;
  border-color: #c18208;
}

@media (max-width: 600px) {
  .button-label {
    display: none;
  }
}

.message-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #c53030;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.theme-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e89c0a;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.2s ease;
}
.theme-toggle svg {
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}
.theme-toggle .icon-dark {
  opacity: 1;
}
.theme-toggle .icon-light {
  opacity: 0;
  position: absolute;
}
.theme-toggle:hover {
  transform: scale(1.1);
  background: #c18208;
}
.theme-toggle:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

[data-theme="dark"] .theme-toggle .icon-dark {
  opacity: 0;
}
[data-theme="dark"] .theme-toggle .icon-light {
  opacity: 1;
}

.lp-border-dark-color-outer {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}
@media (prefers-color-scheme: dark) {
  .lp-border-dark-color-outer {
    background: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
  }
}
.lp-border-dark-color-outer[data-theme="light"], html[data-theme="light"] .lp-border-dark-color-outer {
  background: #f8f9fa;
  border-top-color: #e5e7eb;
  border-bottom-color: #e5e7eb;
}
.lp-border-dark-color-outer[data-theme="dark"], html[data-theme="dark"] .lp-border-dark-color-outer {
  background: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.lp-grid-header-search-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.8fr 0.8fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.lp-grid-header-search-text,
.lp-grid-header-search-text-btn,
.lp-grid-header-search-zip,
.lp-grid-header-search-city,
.lp-grid-header-search-location-btn,
.lp-grid-header-search-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.lp-grid-header-search-text label,
.lp-grid-header-search-text-btn label,
.lp-grid-header-search-zip label,
.lp-grid-header-search-city label,
.lp-grid-header-search-location-btn label,
.lp-grid-header-search-btn label {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1;
  min-height: 18px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-body);
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: "liberation_sansregular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: all 0.2s ease;
  appearance: none;
  height: 44px;
  line-height: 1.4;
}
@media (prefers-color-scheme: light) {
  .form-control {
    background: #ffffff;
    border-color: #e5e7eb;
  }
}
@media (prefers-color-scheme: dark) {
  .form-control {
    background: #1a2332;
    border-color: #334155;
  }
}
html[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #e5e7eb;
}
html[data-theme="dark"] .form-control {
  background: #1a2332;
  border-color: #334155;
}
.form-control:focus {
  outline: none;
  border-color: #e89c0a;
  box-shadow: 0 0 0 3px rgba(232, 156, 10, 0.1);
}
.form-control::placeholder {
  color: var(--color-text-muted);
}

select.form-control {
  padding: 10px;
  padding-right: 36px;
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: "liberation_sansregular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  height: 44px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}
@media (prefers-color-scheme: light) {
  select.form-control {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
  }
}
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-color: #1a2332;
    border: 1px solid #334155;
  }
}
html[data-theme="light"] select.form-control {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}
html[data-theme="dark"] select.form-control {
  background-color: #1a2332;
  border: 1px solid #334155;
}
select.form-control option {
  background: var(--color-bg-body);
  color: var(--color-text-primary);
  padding: 6px;
}
@media (prefers-color-scheme: light) {
  select.form-control option {
    background: #ffffff;
    color: #1f2937;
  }
}
@media (prefers-color-scheme: dark) {
  select.form-control option {
    background: #1a2332;
    color: #f1f5f9;
  }
}
select.form-control optgroup {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: 700;
}
select.form-control:hover {
  border-color: #e89c0a;
}
select.form-control:focus {
  outline: none;
  border-color: #e89c0a;
  box-shadow: 0 0 0 3px rgba(232, 156, 10, 0.1);
}
select.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

select.form-control::-ms-expand {
  display: none;
}

@-moz-document url-prefix() {
  select.form-control {
    text-indent: 0.01px;
    text-overflow: '';
    padding-right: 36px;
  }
}
.lp-grid-header-search-btn .lp-button {
  width: 100%;
  height: 44px;
  justify-content: center;
  padding: 0 12px;
  margin-top: 22px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.lp-grid-header-search-btn .lp-button:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #e89c0a;
  color: #e89c0a;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.lp-grid-header-search-btn .lp-button:active {
  transform: translateY(0);
}
.lp-grid-header-search-btn .lp-button:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.lp-grid-header-search-btn .lp-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lp-grid-header-search-btn .lp-button.btn-primary {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
}
.lp-grid-header-search-btn .lp-button.btn-primary:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
}
@media (max-width: 600px) {
  .lp-grid-header-search-btn .lp-button {
    height: 40px;
    padding: 0 10px;
    margin-top: 18px;
  }
}

.flexSearch {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
@media (prefers-color-scheme: light) {
  .flexSearch {
    background: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  .flexSearch {
    background: #1a2332;
    border-color: #334155;
  }
}
html[data-theme="light"] .flexSearch {
  background: #ffffff;
  border-color: #e5e7eb;
}
html[data-theme="dark"] .flexSearch {
  background: #1a2332;
  border-color: #334155;
}
.flexSearch:not(:empty) {
  display: block;
}
.flexSearch li {
  padding: 6px 10px;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: background 0.2s ease;
}
@media (prefers-color-scheme: light) {
  .flexSearch li {
    color: #1f2937;
  }
  .flexSearch li:hover {
    background: #f5f5f5;
  }
  .flexSearch li:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
  }
}
@media (prefers-color-scheme: dark) {
  .flexSearch li {
    color: #f1f5f9;
  }
  .flexSearch li:hover {
    background: #0f172a;
  }
  .flexSearch li:not(:last-child) {
    border-bottom: 1px solid #334155;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}

.header-decoration {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.8;
  pointer-events: none;
}
.header-decoration img {
  max-height: 150px;
  width: auto;
}

.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.snowflake {
  position: fixed;
  top: -10vh;
  z-index: 1;
  user-select: none;
  cursor: default;
  animation: snowfall linear infinite;
  opacity: 0.8;
  font-size: 1em;
}
@keyframes snowfall {
  to {
    transform: translateY(100vh) translateX(100px);
  }
}
.header-user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 600px) {
  .header-user-nav {
    gap: 6px;
  }
}

.header-btn,
.header-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: auto;
  height: 40px;
  line-height: 1;
}
.header-btn:hover,
.header-nav-btn:hover {
  background: rgba(232, 156, 10, 0.05);
  border-color: #e89c0a;
  color: #e89c0a !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-btn:active,
.header-nav-btn:active {
  transform: translateY(0);
}
.header-btn:focus-visible,
.header-nav-btn:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.header-btn.has-badge,
.header-nav-btn.has-badge {
  position: relative;
}
@media (max-width: 600px) {
  .header-btn,
  .header-nav-btn {
    padding: 3px 10px;
    font-size: 12px;
    gap: 2px;
    height: 36px;
  }
}

.header-actions .lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: auto !important;
  height: 40px !important;
  width: auto !important;
  line-height: 1;
}
.header-actions .lp-button:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-actions .lp-button:active {
  transform: translateY(0);
}
.header-actions .lp-button:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.header-actions .lp-button.btn-primary {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
}
.header-actions .lp-button.btn-primary:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
}
@media (max-width: 600px) {
  .header-actions .lp-button {
    padding: 3px 10px;
    font-size: 12px;
    height: 36px !important;
  }
}

.lp-grid-header-search-btn .lp-button {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
  width: 100%;
  height: 44px;
  justify-content: center;
  padding: 0 12px;
  margin-top: 22px;
}
.lp-grid-header-search-btn .lp-button:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.lp-grid-header-search-btn .lp-button:active {
  transform: translateY(0);
}
.lp-grid-header-search-btn .lp-button:focus-visible {
  outline: 2px solid #e89c0a;
  outline-offset: 2px;
}
.lp-grid-header-search-btn .lp-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lp-grid-header-search-btn .lp-button.btn-primary {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
}
.lp-grid-header-search-btn .lp-button.btn-primary:hover {
  background: rgba(232, 156, 10, 0.05) !important;
  border-color: #e89c0a !important;
  color: #e89c0a !important;
}
@media (max-width: 600px) {
  .lp-grid-header-search-btn .lp-button {
    height: 40px;
    padding: 0 10px;
    margin-top: 18px;
  }
}
