/* ------------------------------ */
/* Theme variables (default = dark) */
/* ------------------------------ */

:root {
  /* Base surfaces */
  --bg: #0f0f0f;     /* default background for everything */
  --panel: #0f0f0f;  /* panels/cards/header match bg */
  --card: #181a1b;
  --tag: #717171; 

  /* Foreground */
  --text: #ffffff;
  --tagtext: rgba(255, 255, 255, 0.7);
  --money: #02cb81;
  --cardtext: #0f0f0f;
  --muted: rgba(255, 255, 255, 0.7);
  --link: skyblue;

  /* UI */
  --border: #3e3e3e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Inputs / hovers */
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.18);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --focus: rgb(0, 166, 255);

  /* Header */
  --header-height: 64px;
}

/* System theme override (light) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --panel: #f0f0f0;
    --card: #ffffff;
    --tag: #e2e2e2; 

    --text: #0f0f0f;
    --tagtext: rgba(15, 15, 15, 0.7);
    --money: #00A86B;
    --muted: rgba(15, 15, 15, 0.65);
    --link: blue;

    --border: rgba(15, 15, 15, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    --input-bg: rgba(0, 0, 0, 0.04);
    --input-border: rgba(0, 0, 0, 0.16);
    --hover-bg: rgba(0, 0, 0, 0.04);
    --focus: #00a7ff;
  }
}

/* ------------------------------ */
/* Existing CSS (updated to use vars) */
/* ------------------------------ */

* { box-sizing: border-box; }

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  background: var(--bg);
  min-height: 100vh; /* ensures it always fills the screen */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Fixed header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg);
  z-index: 1000;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 100px;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Left logo */
.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 100px;
  height: 100%;
}

.header-logo img {
  padding-top: 10px;
  height: 80%;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 2px 4px rgba(0,0,0,0.55))      /* dark depth */
    drop-shadow(0 0 6px rgba(255, 60, 0, 0.55))  /* red */
    drop-shadow(0 0 12px rgba(255, 140, 0, 0.45))/* orange */
    drop-shadow(0 0 18px rgba(255, 220, 0, 0.35));/* yellow */
}

.header-logo svg text {
    color: var(--text);
    fill: var(--text);
}

/* Middle search */
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-search input[type="search"] {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--input-border);
  border-radius: 999px 0 0 999px;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
}

.header-search input[type="search"]::placeholder {
  color: var(--muted);
}

.header-search input[type="search"]:focus {
  border-color: var(--focus);
}

/* Right link */
.header-link {
  text-decoration: none;
  color: inherit;
  padding: 8px 10px;
  border-radius: 10px;
}

 /* Hamburger hidden by default */
    .header-more {
      position: relative;
      display: none;
      margin-left: 10px;
    }

    .hamburger-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: 0;
      background: transparent;
      cursor: pointer;
      color: var(--text);
    }

    .hamburger-btn:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 2px;
    }

    .hamburger-menu {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      min-width: 180px;
      background: var(--card);
      color: var(--text);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
      padding: 8px;
      z-index: 50;
    }

    .hamburger-item {
      display: block;
      padding: 10px 12px;
      border-radius: 10px;
      color: inherit;
      text-decoration: none;
    }

    .hamburger-item:hover,
    .hamburger-item:focus-visible {
      background: rgba(255,255,255,0.10);
      outline: none;
    }



/* Filters sits next to the search; doesn't steal width from it */
.header-filters {
  position: relative;            /* anchor dropdown */
  display: flex;
  align-items: center;
  flex: 0 0 auto;                /* keep it tight */
}

.header-filters svg {
  color: var(--text);
  fill: var(--text);
}

/* Button matches your input styling */
.filters-btn {
  height: 36px;                  /* match search input height */
  padding: 0 12px;
  border: 1px solid var(--input-border);
  border-radius: 0 999px 999px 0;          /* match pill shape */
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filters-btn:hover {
  background: var(--hover-bg);
  border-color: var(--border);
}

/* Use your focus color if present */
.filters-btn:focus {
  outline: none;
  border-color: var(--focus);
}

/* Dropdown panel */
.filters-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--bg);         /* same as header background */
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 2000;                 /* above header z-index */
}

/* Content */
.filters-menu__content {
  padding: 12px;
  display: grid;
  gap: 10px;
}

/* Submenu shell */
.filters-submenu {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  overflow: hidden;
}

/* Submenu button row */
.submenu-btn {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.submenu-btn:hover {
  background: var(--hover-bg);
}

.submenu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0); /* keeps layout stable if you swap to a focus ring later */
}

/* Caret (rotates when expanded) */
.submenu-caret {
  display: inline-block;
  transition: transform 160ms ease;
  color: var(--muted);
}

.submenu-btn[aria-expanded="true"] .submenu-caret {
  transform: rotate(180deg);
}

/* Panel area */
.submenu-panel {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Header row inside submenu */
.submenu-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.submenu-title {
  font-weight: 700;
}

/* Clear buttons */
.filters-clear-tags,
.filters-clear-sort {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 4px 6px;
  border-radius: 8px;
}

.filters-clear-tags:hover,
.filters-clear-sort:hover {
  background: var(--hover-bg);
  color: var(--text);
}

/* Tags list */
.filters-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px; /* keeps scrollbar from covering text */
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: var(--border) transparent;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: 0.95rem;
}

/* Hide native checkbox; style via .filter-check */
.filter-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  display: inline-block;
  flex: 0 0 16px;
  position: relative;
}

.filter-item input[type="checkbox"]:checked + .filter-check {
  border-color: var(--focus);
}

.filter-item input[type="checkbox"]:checked + .filter-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-name {
  line-height: 1.2;
}

/* Sort list */
.sort-list {
  display: grid;
  gap: 8px;
}

.sort-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: 0.95rem;
}

.sort-item input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--focus);
}

.sort-label {
  line-height: 1.2;
}



/* Ensure search input takes remaining space inside flex .header-search */
.header-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0; /* prevents overflow in flex layouts */
}

/* Dropdown title row (Tags + Clear button) */
.filters-menu__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.filters-clear {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.filters-clear:hover {
  color: var(--text);
}

/* Tag list */
.filters-list {
  display: grid;
  gap: 6px;
}

/* Each selectable row */
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.filter-item:hover {
  background: var(--hover-bg);
}

/* Hide native checkbox; we draw our own */
.filter-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Custom checkbox box */
.filter-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input-bg);
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

/* Checked state + checkmark */
.filter-item input[type="checkbox"]:checked + .filter-check {
  background: var(--text);
  border-color: var(--text);
}

.filter-item input[type="checkbox"]:checked + .filter-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: 2px solid var(--bg);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.filter-name {
  color: var(--text);
  font-size: 14px;
}

/* Prevent dropdown from going off-screen on narrow widths */
.filters-menu {
  max-width: min(320px, calc(100vw - 2rem));
}


/* Push page content below fixed header */
.site-main {
  padding-top: var(--header-height);
}


.no-results {
  text-align: center;
}


/* =========================================================
   CONTACT (shared + layout)
   ========================================================= */
.contact {
  text-align: center;
}

/* Contact actions (email + socials) */
.contact-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;

  /* desktop/tablet padding */
  padding: 50px;

  /* center each card within the grid */
  justify-items: center;
  align-items: center;
}

/* Existing header behavior you had */
@media (max-width: 720px) {
  .header-links { display: none; }
  .header-more { display: inline-block; }

  .header-inner {
    gap: 32px;
  }
}

/* Make the regular layout fit on mobile */
@media (max-width: 720px) {
  .contact-actions {
    padding: 16px; /* reduce side padding so nothing forces overflow */
  }
}

/* =========================================================
   CONTACT ACTION (regular)
   ========================================================= */
.contact-action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 10px;
  border-radius: 14px;
  background: var(--bg, #fff);
  text-decoration: none;
  color: var(--text, #111);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;

  /* width rules */
  width: 100%;
  max-width: 370px;

  justify-content: flex-start;
}

.contact-action:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.contact-action:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.contact-action:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 3px;
}

/* =========================================================
   CONTACT ACTION (small)
   ========================================================= */
.contact-action-small {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 10px;
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  color: var(--text, #111);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;

  width: 100%;
  max-width: 370px;

  justify-content: flex-start;
}

.contact-action-small:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.contact-action-small:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.contact-action-small:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 3px;
}

/* =========================================================
   ICONS (regular + small)
   ========================================================= */
.contact-action__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.05);
  flex: 0 0 auto;
}

.contact-action__icon svg {
  width: 50px;
  height: 50px;
  color: var(--text, #111);
}

.contact-action__icon-small {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.05);
  flex: 0 0 auto;
}

.contact-action__icon-small svg {
  width: 20px;
  height: 20px;
  color: var(--text, #111);
}

/* Icon variants (shared) */
.contact-action__icon--img {
  padding: 6px; /* gives the image some breathing room */
  background: rgba(0, 0, 0, 0.05);
}

.contact-action__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px; /* optional */
}

.contact-action__icon--fb {
  background: rgba(24, 119, 242, 0.12);
}

.contact-action__icon--fb svg {
  color: rgb(24, 119, 242);
}

/* =========================================================
   TEXT (shared + sizes)
   ========================================================= */
.contact-action__text {
  display: flex;
  flex-direction: column;

  /* critical: allows flex child text to shrink instead of forcing overflow */
  min-width: 0;
  flex: 1 1 auto;

  align-items: flex-start;
  text-align: left;
}

.contact-action__label {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.contact-action__label-small {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.contact-action__value {
  font-size: 1.2rem;
  opacity: 0.75;

  /* desktop behavior */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-action__value-small {
  font-size: 0.9rem;
  opacity: 0.75;

  /* desktop behavior */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: let long strings (emails/handles) break instead of overflowing */
@media (max-width: 720px) {
  .contact-action__label { font-size: 1.1rem; }
  .contact-action__value { font-size: 1rem; }

  .contact-action__value,
  .contact-action__value-small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Slightly smaller regular icon on phones */
  .contact-action__icon {
    width: 48px;
    height: 48px;
  }

  .contact-action__icon svg {
    width: 36px;
    height: 36px;
  }
}






/* Existing layout */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  row-gap: 3.5rem;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

/* Fix hover selector + use theme hover color */
.card:hover {
  background: var(--hover-bg);
}

.card:hover img{
  filter: brightness(0.7);
}

.card__media {
  aspect-ratio: 4 / 3;
  background: var(--hover-bg);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 0.9rem 0.9rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  margin: 0;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.card__price {
  color: var(--money);
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.75rem;
  background: var(--tag);
  /* border: 1px solid var(--border); */
  border-radius: 6px;
  color: var(--tagtext);
  padding: 3px 6px;
}

/* ------------------------------ */
/* Detail page layout             */
/* ------------------------------ */

.detail {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--card, rgba(255, 255, 255, 0.7));
  margin-bottom: 1rem;
}

.detail__back:hover {
  background: var(--hover-bg, rgba(0, 0, 0, 0.04));
}

/* Title centered and large at top */
.detail__meta {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.detail__title {
  margin: 0.25rem 0 0.75rem;
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Main two-column grid under title */
.detail__grid {
  display: grid;
  grid-template-columns: minmax(280px, 540px) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 18px;
  background: var(--card, rgba(255, 255, 255, 0.75));
}

@media (max-width: 900px) {
  .detail__grid {
    grid-template-columns: 1fr;
  }
}

/* Left: image card */
.detail__imageWrap {
  border-radius: 18px;
  background: var(--card, rgba(255, 255, 255, 0.75));
  overflow: hidden;
  padding: 12px;
}

.detail__imageLink {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.detail__image {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

/* Right: stacked sections */
.detail__side {
  display: grid;
  gap: 12px;
}

.detail__card {
  padding: 14px;
}

.detail__cardTitle {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}

.detail__price {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--money);
}

/* RACC */
.detail__RACC {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.detail__RACC a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.detail__RACC a:hover {
  opacity: 0.8;
}

/* Tags */
.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--tag);
  color: var(--tagtext);
  font-size: 0.9rem;
}

/* Notes section */
.detail__sectionTitle {
  margin: 0 0 8px;
  font-size: 1rem;
}

.detail__description {
  margin: 0;
  line-height: 1.55;
  opacity: 0.92;
}

/* ------------------------------ */
/* Click-to-zoom modal (no JS)    */
/* ------------------------------ */

.detail__modalToggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.detail__modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  cursor: zoom-out;
}

.detail__modalInner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  cursor: default;
  display: grid;
  place-items: center;
}

.detail__modalImg {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.detail__modalClose {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  pointer-events: none; /* close handled by clicking backdrop */
}

/* Toggle modal open */
.detail__modalToggle:checked + .detail__modal {
  display: flex;
}


.load-more-sentinel {
  height: 1px;
}


@media (max-width: 640px) {
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 32px;
  }

  .contact-action {
    padding: 20px 10px;
  }

  
  
}