*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: #000000;
  color: #ffffff;
}

::-moz-selection {
  background: #000000;
  color: #ffffff;
}

a, button, .accordion-header, .btn-primary, .btn-ghost {
  -webkit-touch-callout: none;
  -webkit-text-decoration-skip: none;
  -webkit-appearance: none;
  text-decoration: none !important;
  color: #000 !important;
}

a:visited, a:active {
  color: #000 !important;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #ccc;
  border-radius: 4px;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  background: #ccc;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000; 
  cursor: pointer;
  margin-top: -6px; 
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    #000 0%,  
    #000 var(--value, 0%), 
    #ccc var(--value, 0%), 
    #ccc 100%
  );
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f7f7f9;
  color: #111;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  border-bottom: 1px solid #e2e2e7;
  background: #ffffffcc;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  padding-left: 20px;
  padding-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 100px;
  height: 100px;
}

.logo-text {
  font-weight: 700;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 12px;
}

.nav-link {
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
  background: #f2f2f7;
  border-color: #ddd;
  transform: translateY(-1px);
}

/* Hero */

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-hero-slot {
  padding: 12px;
  border-radius: 12px;
  min-height: 140px;
  background: #fafafa;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.sponsor-hero-link img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.hero-title,
.hero-tagline,
.hero-intro {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-title,
  .hero-tagline,
  .hero-intro {
    text-align: left;
  }
}

.hero-section {
  padding: 32px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr);
  gap: 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.accent {
  background: linear-gradient(90deg, #111, #555);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 16px;
  color: #555;
  font-size: 0.95rem;
}

.search-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.05);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea,
.form-row select {
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 0.95rem;
  outline: none;
  background: #fcfcff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
  background: #fff;
}

.radius-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#radiusInput {
  flex: 1;
}

#radiusValue {
  font-size: 0.85rem;
  min-width: 52px;
  text-align: right;
}

.form-row-actions {
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
}

.form-row-actions .btn-primary,
.form-row-actions .btn-ghost {
  flex: 1;
}

.helper-text {
  font-size: 0.75rem;
  color: #777;
  margin: 4px 0 0;
}

/* Buttons */

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #111, #333);
  color: #fff !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #000, #222);
}

.btn-ghost {
  border: 1px solid #ccc;
  background: #fff;
}

.btn-ghost:hover {
  background: #f4f4f7;
}

.full-width {
  width: 100%;
}

/* Hero sponsor */

.hero-sponsor {
  display: none;
}

.sponsor-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.05);
  padding: 12px;
  display: none;
}

.sponsor-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 6px;
}

.sponsor-placeholder {
  border-radius: 12px;
  border: 1px dashed #ccc;
  padding: 12px;
  text-align: center;
}

.sponsor-placeholder p {
  margin: 0;
}

.sponsor-small {
  font-size: 0.75rem;
  color: #777;
}

/* Sponsor strip */

.sponsor-strip {
  padding: 8px 0 4px;
}

.sponsor-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.sponsor-strip-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #999;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sponsor-logo-slot {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed #ccc;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.sponsor-logo-slot:hover {
  border-style: solid;
  border-color: #111;
  background: #f8f8fa;
}

/* Sections */

.page-section {
  padding: 24px 0 32px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.section-heading p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Results */

.results-section {
  padding: 12px 0 48px;
}

.results-empty {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #ddd;
  font-size: 0.9rem;
  color: #666;
}

.accordion-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4e4ea;
  overflow: hidden;
}

#rotatingWord {
  transition: opacity 0.3s ease-in-out;
  display: inline-block;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

.review-block {
  margin-top: 8px;
  margin-bottom: 4px;
}

.review-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.review-inner:hover {
  text-decoration: underline;
}

.review-stars {
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.review-text {
  opacity: 0.9;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  gap: 20px;
  border: 2px;
  flex-direction: row;
  max-width: 100% !important;
  width: 100% !important;
}

.accordion-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.accordion-meta {
  font-size: 0.8rem;
  color: #777;
  text-align: left;
}

.accordion-toggle-label {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.accordion-toggle-icon {
  font-size: 1.1rem;
}

.accordion-body {
  display: none;
  padding: 10px 12px 12px;
  border-top: 1px solid #eee;
  background: #fdfdff;
}

.accordion-body.open {
  display: block;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  font-size: 0.85rem;
}

.details-grid strong {
  font-weight: 600;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.shop-tag {
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ececf2;
}

.shop-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-small {
  font-size: 0.8rem;
  padding: 5px 9px;
}

.facade-thumb {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
}

/* Cards / generic */

.card {
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 45px rgba(0,0,0,0.05);
}

.narrow {
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  text-align: center;
}

.page-intro {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 10px 16px;
}

/* Status text */

.form-status {
  font-size: 0.85rem;
  margin-top: 8px;
}

.form-status.ok {
  color: #107c10;
}

.form-status.error {
  color: #b00020;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e2e2e7;
  padding: 24px 0;
  text-align: center;
}

.footer-inner {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-inner p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-small {
  margin-top: 4px;
}

/* Admin */

.admin-body {
  background: #f1f1f4;
}

.admin-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-column {
  min-height: 260px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.admin-item {
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 10px;
  font-size: 0.85rem;
  background: #fafafc;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-item-title {
  font-weight: 600;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.btn-tiny {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.75rem;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.btn-tiny.danger {
  border-color: #d33;
  color: #b00020;
}


.hidden {
  display: none !important;
}

.admin-list::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 6px;
}

.admin-list::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #e8e8ef;
}

.admin-list::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #bfbfcc;
  border-radius: 999px;
}

.admin-list::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #111;
}


.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.hero-left {
  text-align: center;
}

.hero-sponsor {
  display: block !important; 
  align-self: center;
  max-width: 260px;
}

.hero-sponsor .sponsor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.7;
  text-align: center;
}

.hero-sponsor img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.9rem;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #000;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.custom-checkbox::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg);
  transition: border-color 0.2s ease;
}

.checkbox-row input[type="checkbox"]:checked + .custom-checkbox {
  background: #000;
  border-color: #000;
}

.checkbox-row input[type="checkbox"]:checked + .custom-checkbox::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

.checkbox-row input[type="checkbox"]:active + .custom-checkbox {
  transform: scale(0.95);
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.shop-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #f2f2f2;
}

.shop-tag-category {
  background: #858585;
  color: #fff;
}

.facade-thumb {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #000; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.facade-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  background-color: #e9e9e9 !important;
}

/* Responsive */

@media (min-width: 768px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.2rem;
  }

    .hero-left {
    text-align: left;
  }

  .hero-sponsor {
    display: block;
    align-self: flex-start;
    justify-self: flex-end;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .form-row:nth-child(1),
  .form-grid .form-row:nth-child(4),
  .form-grid .form-row:nth-child(11),
  .form-grid .form-row:nth-child(12),
  .form-grid .form-row:nth-child(13) {
    grid-column: 1 / -1;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0,1.4fr);
  }

  .accordion-header {
    justify-content: space-between !important;
    gap: 12px;
  }

  @media (max-width: 1024px) {
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading h2 {
  text-align: center !important;
}

.section-heading p {
  text-align: center !important;
}
}


}
