/* Professional Dark Theme with compact sliders and default cursors */
:root{
  --bg:#0e141b; --panel:#121923; --panel-2:#0f1720; --border:#1f2a37; --elev:0 6px 20px rgba(0,0,0,.25);
  --text:#e7edf5; --text-2:#c7d1dc; --muted:#98a6b7; --link:#8ab4f8; --chip-bg:#172230; --chip-br:#253246;
  --input-bg:#0b121a; --input-br:#223046; --focus:0 0 0 3px rgba(99, 102, 241, .35);
  --track:#0e1621; --track-br:#243140; --track-active:#3b82f6; --thumb:#cfe1ff; --thumb-br:#3b82f6;
  --accent:#8ab4f8;
}
*{ box-sizing:border-box; } html,body{ height:100%; }
body.theme-pro{ margin:0; background:var(--bg); color:var(--text); font:16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.container{ max-width:1220px; margin:0 auto; padding:0 16px; }
.site-header{ border-bottom:1px solid var(--border); background:var(--panel-2); position:sticky; top:0; z-index:10; box-shadow:var(--elev); }
.header-wrap{ display:flex; align-items:center; gap:16px; padding:12px 0; }
.brand{ font-size:18px; font-weight:700; margin:0; color:var(--text); letter-spacing:.2px; }
.searchbar{ display:flex; gap:8px; align-items:center; flex:1; }
.searchbar input[type="search"]{ flex:1; padding:11px 12px; border:1px solid var(--input-br); border-radius:10px; background:var(--input-bg); color:var(--text); }
.badge{ display:inline-block; padding:5px 8px; border:1px solid var(--border); border-radius:8px; background:var(--panel); color:var(--muted); font-size:12px; }


/* Main layout: filters + results */
.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  padding: 16px 0;
}


/* User: Actions via stylesheet */

/* If user, show the following classes */
.device-desktop.is-user.mode-marketing .user_show {
  display: block;
}
.device-mobile.is-user.mode-marketing .user_show {
  display: block;
}

/* If user, hide the following classes */
.device-desktop.is-user.mode-marketing .user_hide {
  display: none;
}
.device-mobile.is-user.mode-marketing .user_hide {
  display: none;
}

/* If user, enable the following classes */
.device-desktop.is-user.mode-marketing .user_enable {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}
.device-mobile.is-user.mode-marketing .user_enable {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}

/* If user, disable the following classes */
.device-desktop.is-user.mode-marketing .user_disable {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}
.device-mobile.is-user.mode-marketing .user_disable {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}


/* Guest: Actions via stylesheet */

/* If guest, show the following classes */
.device-desktop.is-guest.mode-marketing .guest_show {
  display: block;
}
.device-mobile.is-guest.mode-marketing .guest_show {
  display: block;
}

/* If guest, hide the following classes */
.device-desktop.is-guest.mode-marketing .guest_hide {
  display: none;
}
.device-mobile.is-guest.mode-marketing .guest_hide {
  display: none;
}

/* If guest, enable the following classes */
.device-desktop.is-guest.mode-marketing .guest_enable {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}
.device-mobile.is-guest.mode-marketing .guest_enable {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}

/* If guest, disable the following classes */
.device-desktop.is-guest.mode-marketing .guest_disable {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}
.device-mobile.is-guest.mode-marketing .guest_disable {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}


/* Desktop: show and hide classes */

/* If desktop, show the following classes */
.device-desktop.is-user.mode-marketing .desktop_show {
  display: block;
}
.device-desktop.is-guest.mode-marketing .desktop_show {
  display: block;
}

/* If desktop, hide the following classes */
.device-desktop.is-user.mode-marketing .desktop_hide {
  display: none;
}
.device-desktop.is-guest.mode-marketing .desktop_hide {
  display: none;
}


/* Mobile: show and hide classes */

/* If mobile, show the following classes */
.device-mobile.is-user.mode-marketing .mobile_show {
  display: block;
}
.device-mobile.is-guest.mode-marketing .mobile_show {
  display: block;
}

/* If mobile, hide the following classes */
.device-mobile.is-user.mode-marketing .mobile_hide {
  display: none;
}
.device-mobile.is-guest.mode-marketing .mobile_hide {
  display: none;
}



/* If desktop guest, show the following classes */
.device-desktop.is-guest.mode-marketing .dg_show {
  display: block;
}
/* If desktop guest, hide the following classes */
.device-desktop.is-guest.mode-marketing .dg_hide {
  display: none;
}

/* If desktop user, show the following classes */
.device-desktop.is-user.mode-results .du_show {
  display: block;
}
/* If desktop user, hide the following classes */
.device-desktop.is-user.mode-results .du_hide {
  display: none;
}


/* Mobile, Guest: hide show the following classes */
.device-mobile.is-guest.mode-marketing .mg_show {
  display: block;
}
/* Mobile, Guest: hide the following classes */
.device-mobile.is-guest.mode-marketing .mg_hide {
  display: none;
}

/* Mobile, User: show the following classes */
.device-mobile.is-user.mode-results .mu_show {
  display: block;
}
/* Mobile, User: hide the following classes */
.device-mobile.is-user.mode-results .mu_hide {
  display: none;
}


/* Info sections layout */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 24px;
}
.info-section--full .info-inner {
  max-width: 1200px;
}


.panel{ background:var(--panel); border:1px solid var(--border); border-radius:12px; box-shadow:var(--elev); }
.panel__head{ display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid var(--border); }
/*.filters{ padding: 0 14px 14px; } */
.filter-group{ margin-top:14px; }
.filter-hint{ margin:6px 0 0; font-size:12px; color:var(--muted); }
/*
.checkbox-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap:8px 12px; }
*/
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr; /* default: 1 column */
  gap: 8px 12px;
}
@media (min-width: 250px) {
  .checkbox-list {
    grid-template-columns: repeat(2, 1fr);  /* ≥350px: 2 columns */
  }
}
/*
.checkbox-list.double{ grid-template-columns: repeat(2, 1fr); }
*/
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.input{ width:100%; padding:9px 10px; border-radius:10px; border:1px solid var(--input-br); background:var(--input-bg); color:var(--text); }
.input:focus{ outline:none; box-shadow:var(--focus); border-color:#425b8a; }
.btn{ padding:8px 10px; border-radius:10px; border:1px solid var(--input-br); background:var(--input-bg); color:var(--text-2); }
.btn--link{ background:transparent; border:none; color:var(--muted); text-decoration:underline; padding:0; }
.results{ padding:12px; }
.results__summary{ padding:12px 14px; border-bottom:1px solid var(--border); color:var(--muted); }

/* Mobile-only results summary under the search bar */
/* Mobile summary (hidden by default) */
#results-summary-mobile { display: none; }

@media (max-width: 980px) {
  #results-summary-mobile[hidden] {
    display: none;
  }

  #results-summary-mobile:not([hidden]) {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
  }
}
.results__list{ list-style:none; margin:0; padding:0; }


/* Visitor marketing card in the results panel */
.results-marketing {
  margin: 16px 12px 12px;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--elev);
}

.results-marketing p {
  margin: 0;
}

/* Container that sits inside the results panel */
#marketing-message {
  margin: 0 0 1rem 0;
}

/* Default: never show mobile marketing on desktop or large screens */
#marketing-message-mobile {
  display: none;
}

/* Mobile-specific container with adjusted margins */
@media (max-width: 980px) {
  #marketing-message-mobile {
    margin: 0px 16px 16px;
  }

  /* Mobile: allow it to appear, but ONLY when JS removes [hidden] */
  #marketing-message-mobile[hidden] {
    display: none;
  }

  /* Mobile: allow it to appear, but ONLY when JS removes [hidden] */
  #marketing-message-mobile:not([hidden]) {
    display: block;
    margin: 12px 16px 16px; /* or whatever spacing you like */
  }
}



/* Typography */
/* ahm */
.results-marketing-title {
  margin: 0 0 0.35rem;
  font-size:18px;
  /*font-size: 1.05rem;*/
  font-weight: 600;
  color: var(--text);
}

.results-marketing-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
}

.results-marketing-list {
  list-style: none;
  margin-top: 6px;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
}

.results-marketing-list li {
  position: relative;
  padding-left: 22px;
}

.results-marketing-list li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  left: 4px;
  top: 0.6em;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.results-marketing-list strong {
  color: var(--text-strong);
  font-weight: 600;
}

/*

.results-marketing-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.results-marketing-list li {
  margin: 0.2rem 0;
}
*/

/* Slightly denser bullets when used in “short” / compact copy */
.results-marketing-list--compact {
  font-size: 0.85rem;
}

.results-marketing-subtitle {
  margin: 0.5rem 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Make the marketing hero pop more on wide desktops */
@media (min-width: 1200px) {
  .results-marketing {
    font-size: 0.98rem;
  }
  .results-marketing-title {
    font-size: 1.2rem;
  }
  .results-marketing-lead {
    font-size: 1rem;
  }
}

/* Desktop layout: a bit more air + support the long 2-column variant */
@media (min-width: 980px) {
  /* Slightly richer spacing + subtle shadow on desktop */
  .results-marketing {
    margin-bottom: 1rem;
    box-shadow: var(--elev);
  }

  
  /* Long variant: two-column layout when you have more copy */
  .results-marketing--long {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    column-gap: 2rem;
    align-items: flex-start;
  }

  .results-marketing-aside {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
  }
}

/* Small tweak for phones so it sits nicely above the info sections */
@media (max-width: 980px) {
  .results-marketing {
    margin-top: 8px;
  }
}


.pager{ display:flex; gap:10px; align-items:center; padding:12px; justify-content:center; }

/* Hide pager when we’re in the visitor marketing state */
.results--marketing-active .pager{
  display:none;
}

.active-chips{ display:flex; gap:8px; flex-wrap:wrap; min-height:28px; }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1px solid var(--chip-br); border-radius:999px; background:var(--chip-bg); color:var(--text-2); font-size:12px; }
.result{ display:grid; grid-template-columns: 200px 1fr; gap:16px; align-items:stretch; padding:14px; border-bottom:1px solid var(--border); }
.result .thumb-link{ display:block; }
.result .thumb{ width:100%; height:130px; object-fit:cover; border-radius:10px; border:1px solid var(--border); background:var(--panel-2); }
@media (max-width: 700px){ .result{ grid-template-columns: 1fr; }.result .thumb{ height:180px; } }
.result .content{ display:flex; flex-direction:column; min-height:130px; gap:8px; }
.result header.title-row{ display:flex; gap:12px; align-items:flex-start; justify-content:space-between; }
.result header.title-row .title{ font-weight:700; text-decoration:none; color:var(--link); }
.result header.title-row .title:hover{ text-decoration:underline; }
.result header.title-row .pubdate{ margin-left:16px; white-space:nowrap; opacity:0.9; font-size:0.92rem; color:var(--text-2); }
.result .snippet{ margin-top:2px; font-size:0.98rem; color:var(--text-2); background:transparent; padding:0; }
.meta-row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; color:var(--muted); }
.meta-row.secondary{ justify-content:flex-start; }
.meta-row.split{ justify-content:space-between; }
.meta-left,.meta-right{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.badge-pill{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1px solid var(--chip-br); border-radius:999px; background:var(--chip-bg); color:var(--text-2); font-size:12px; }
/* Price dual-handle slider */
.dual-slider{ user-select:none; }
.dual-track{ position:relative; height:8px; border-radius:999px; background:var(--track); border:1px solid var(--track-br); }
.dual-range{ position:absolute; height:8px; border-radius:999px; background:var(--track-active); top:0; left:0; width:100px; }
.dual-thumb{ position:absolute; top:50%; transform:translate(-50%, -50%); width:18px; height:18px; border-radius:50%; border:2px solid var(--thumb-br); background:var(--thumb); }
.dual-thumb:focus{ outline: none; box-shadow:var(--focus); }
.range-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; color:var(--text-2); }
.range-row .strong{ font-weight:700; color:var(--text); }
/* Compact sliders for bed/bath mins + tick labels */
.mini-slider{ display:flex; align-items:center; gap:8px; }
.mini-range{ -webkit-appearance:none; appearance:none; width:100%; height:6px; background:var(--track); border:1px solid var(--track-br); border-radius:999px; }
.mini-range::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:14px; height:14px; border-radius:50%; background:var(--thumb); border:2px solid var(--thumb-br); }
.mini-range::-moz-range-thumb{ width:14px; height:14px; border-radius:50%; background:var(--thumb); border:2px solid var(--thumb-br); }
.mini-readout{ min-width:32px; text-align:right; color:var(--text-2); font-weight:700; }
.tick-labels{ display:grid; grid-template-columns: repeat(6, 1fr); margin-top:6px; color:var(--muted); font-size:12px; }
.tick-labels.halves{ grid-template-columns: repeat(11, 1fr); }
/* Contact row */
.contact-row{ margin-top:2px; }
.contact-label{ font-weight:700; color:var(--accent); margin-right:6px; }
.badge-icon{ position:relative; padding-left:26px; }
.badge-icon::before{
  content:""; position:absolute; left:6px; top:50%; width:14px; height:14px; transform:translateY(-50%);
  background-color:#94a3b8; -webkit-mask-repeat:no-repeat; -webkit-mask-size:14px 14px; mask-repeat:no-repeat; mask-size:14px 14px;
}
.badge-icon.phone::before{ -webkit-mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"%23000\"><path d=\"M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.25 1.01l-2.2 2.2z\"/></svg>'); mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.25 1.01l-2.2 2.2z\"/></svg>'); }
.badge-icon.user::before{ -webkit-mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"%23000\"><path d=\"M12 12a5 5 0 100-10 5 5 0 000 10zm-7 9a7 7 0 1114 0H5z\"/></svg>'); mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 12a5 5 0 100-10 5 5 0 000 10zm-7 9a7 7 0 1114 0H5z\"/></svg>'); }
.site-footer{ border-top:1px solid var(--border); padding:12px 0; margin-top:16px; color:var(--muted); }

.user-row { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.status-badge { padding: 4px 8px; border-radius: 4px; font-weight: 600; }

/* Place status badge beside nav, before spacer */
.status-badge{
  padding:3px 10px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
  border:1px solid transparent;
}

.status-minted { background: #d2f4d2; color: #154e15; }
.status-authorized { background: #d2f4d2; color: #154e15; }
.status-registered { background: #fde2e2; color: #7a1717; }
.status-unknown { background: #eee; color: #333; }


.action-btn {
  border-radius: 999px;
  border: 1px solid #10b981;
  background-color: #047857;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: #ecfdf5;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}

.action-btn-accent {
  border-color: #f97316;
  background-color: #ea580c;
  color: #fff7ed;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.action-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* === Added for price inputs, chip layout, and integer tick labels === */
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-group .label { display:block; font-size:12px; color: var(--muted); margin-bottom:4px; }
.input { width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:6px; background: var(--input-bg); color: var(--text); }
.meta-row.badges-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px; }
.badge-pill { display:inline-flex; align-items:center; padding:4px 19px; border-radius:999px; background: var(--chip-bg); color: var(--chip-fg); border:1px solid var(--chip-border); line-height:1.2; }
.badge-link { text-decoration:none; }
.contact-url { color:#0b6cff; } /* higher contrast */
.badge-icon.phone::before { content:"📞"; }
.badge-icon.user::before  { content:"👤"; }
.tick-labels.integers { display:flex; justify-content:space-between; gap:0.5rem; font-size:11px; color:var(--muted); }
.tick-labels.integers span { display:block; text-align:center; flex:1; }
.badge-pill.chip-source, .badge-pill.chip-contact { cursor:pointer; }
.badge-pill.chip-source:hover, .badge-pill.chip-contact:hover { filter:brightness(1.05); }
.badge-pill.chip-source:active, .badge-pill.chip-contact:active { transform:translateY(1px); }


/* Make Operations checkboxes stay on one line */
#ops-panel.checkbox-list{
  display:flex !important;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
  grid-template-columns:none; /* override grid */
}
#ops-panel.checkbox-list label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin: auto;
  min-width:100px;
  white-space:nowrap;         /* prevent wrap of each item */
}
/* Mobile: allow horizontal scroll rather than wrapping */
@media (max-width:640px){
  #ops-panel.checkbox-list{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  #ops-panel.checkbox-list label{ flex:0 0 auto; }
}


/* Replace the previous "Language switcher" styles with the block below */
/* tighten abbreviation–flag spacing + ensure mobile-friendly menu */
/* === Language menu: fix bullets, link color, spacing, mobile === */
/* --- Fix dropdown anchor & placement (replace previous .lang-menu position rules) --- */
/* tighten abbreviation–flag spacing + ensure mobile-friendly menu */

/* container + button */
.lang-switch { margin-left:auto; position:relative; }
.lang-btn {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: 12px;

  min-width: 60px;   /* or whatever size you want */
  /*min-height: 32px;   optional */
}
.lang-current { font-weight:600; }

/* dropdown */
.lang-menu{
  position:absolute; right:0; top:110%;
  background:var(--panel-2); border:1px solid var(--border);
  border-radius:12px; min-width:80px; box-shadow:var(--elev);
  margin:8px 0 0 0; padding:6px 0;
  list-style:none;            /* ❌ remove bullets */
}
.lang-menu[hidden]{ display:none; }
.lang-menu li{ list-style:none; }

/* links: readable, non-blue, professional */
.lang-menu a,
.lang-menu a:link,
.lang-menu a:visited{
  display:flex; justify-content:space-between; align-items:center; gap:.5rem;
  padding:.55rem .75rem; border-radius:10px;
  color:var(--text-1);        /* ✅ use theme color, not UA blue */
  text-decoration:none;       /* ✅ remove underline */
}
.lang-menu a:hover,
.lang-menu a:focus{
  background:var(--chip-bg);
  color:var(--text-1);
  outline:none;
}

/* === CasaBuena: Mobile header layout to show Source beneath Date === */
.source-inline{ display:none; }
@media (max-width: 700px){
  .result header.title-row{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "title pubdate"
      "title source";
    align-items:start;
    gap:4px 12px;
  }
  .result header.title-row .title{ grid-area:title; }
  .result header.title-row .pubdate{ grid-area:pubdate; }
  .result header.title-row .source-inline{ grid-area:source; display:block; }
  .meta-row.split .meta-right{ display:none; }
}
/* -------------------------------------------------------------------------- */
/* Hero-style search layout and navigation                                    */
/* -------------------------------------------------------------------------- */

.page-main{
  padding-bottom:32px;
}

.hero{
  border-bottom:1px solid var(--border);
  padding:24px 0 16px;
  background:var(--bg);
}

.hero-wrap{
  display:flex;
  align-items:center;
  gap:32px;
}

.hero-title{
  font-size:24px;
  margin:0 0 8px;
}

.hero-subtitle{
  margin:0;
  font-size:14px;
  color:var(--muted);
  max-width:420px;
}

.hero-search{
  flex:1;
  max-width:640px;
}

.hero-search .searchbar{
  margin-top:8px;
}

.hero-hint{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

.main-nav{
  display:flex;
  gap:16px;
  align-items:center;
  font-size:14px;
}

.nav-link{
  color:var(--muted);
  text-decoration:none;
  padding:4px 0;
}

.nav-link:hover,
.nav-link:focus-visible{
  color:var(--text);
}

.user-meta{
  display:flex;
  align-items:center;
  gap:8px;
}

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

.footer-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  font-size:12px;
  color:var(--muted);
}

.info-section{
  border-top:1px solid var(--border);
  padding:0px 0;
  margin-top:6px;
  margin-bottom: 4px;
  background:var(--panel-2);
}

.info-section--alt{
  background:var(--panel);
}

.info-inner{
  max-width:960px;
  margin:0 auto;
  padding:0px 0;
}

.info-title{
  font-size:18px;
  margin:0 0 8px;
}

.info-text{
  margin:0;
  font-size:14px;
  color:var(--muted);
}


.search-layout{
  margin-top:16px;
}

/* Responsive tweaks */
@media (max-width: 980px){
  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-wrap{
    flex-direction:column;
    align-items:stretch;
    gap:5px;
  }
  .hero-subtitle{
    max-width:none;
  }
  .hero-search{
    max-width:none;
  }
  .main-nav{
    display:none; /* keep header clean on small screens; can replace with menu later */
  }
}

/* -------------------------------------------------------------------------- */
/* Header layout refinements                                                  */
/* -------------------------------------------------------------------------- */

.header-wrap{
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 0;
}

.header-wrap .spacer{
  flex:1;
}

.user-meta{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Auth status colours tuned for dark theme */
.status-minted,
.status-authorized{
  background:rgba(16,185,129,0.16);
  color:#6ee7b7;
  border-color:rgba(45,212,191,0.7);
}

.status-registered{
  background:rgba(248,113,113,0.12);
  color:#fecaca;
  border-color:rgba(248,113,113,0.8);
}

.status-unknown{
  background:rgba(148,163,184,0.16);
  color:#e5e7eb;
  border-color:rgba(148,163,184,0.7);
}

/* Logout button: more neutral dark style */
.action-btn-accent{
  border-color:#4b5563;
  background:#111827;
  color:var(--text-2);
  white-space:nowrap;   /* prevent “Log” / “In” wrapping */
}

.action-btn-accent:hover:not(:disabled){
  background:#1f2937;
}

/* Subscription countdown timer */
.subscription-timer{
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  border:1px solid rgba(55,65,81,.6);
  background:rgba(15,23,42,.85);
  color:#e5e7eb;
}

.subscription-timer--green{
  border-color:rgba(34,197,94,.7);
  color:#bbf7d0;
}

.subscription-timer--yellow{
  border-color:rgba(250,204,21,.7);
  color:#fef9c3;
}

.subscription-timer--red{
  border-color:rgba(248,113,113,.8);
  color:#fecaca;
}

/* Hero search: align language selector to the right of search bar on wide screens */
.searchbar-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.searchbar-row .searchbar{
  flex:1;
}

.searchbar-row .lang-switch{
  position:relative;
}

/* Language dropdown tweaks when inside hero */
.lang-switch{
  margin:0;
}

/* Filters panel: typography & spacing tweaks */
.filters{
  padding:4px 16px 16px;
  font-size:13px;
}

.panel__head h2{
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.filter-group{
  margin-top:16px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(15,23,42,0.9);
}

.filter-group:last-of-type{
  border-bottom:none;
}

.filter-title{
  margin:0, auto;
/*  margin:0 0 6px; */
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}

.checkbox-list label{
  font-size:13px;
}

/* Price inputs styled for dark theme */
.price-range{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.price-inputs{
  display:flex;
  gap:8px;
}

.price-inputs label{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:11px;
  color:var(--muted);
}

.price-inputs .label{
  text-transform:uppercase;
  letter-spacing:.08em;
}

#min-price,
#max-price{
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid var(--input-br);
  background:var(--input-bg);
  color:var(--text);
  font-size:13px;
}

#min-price::placeholder,
#max-price::placeholder{
  color:var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Currency filter dropdown */
/* -------------------------------------------------------------------------- */

/* Match the dark input styling used by the Min/Max price fields */
.currency-select{
width:100%;
padding:8px 10px;
border-radius:8px;
border:1px solid var(--input-br);
background:var(--input-bg);
color:var(--text);
font-size:13px;
}


/* Consistent focus ring with other inputs */
.currency-select:focus{
outline:none;
box-shadow:var(--focus);
}


/* If the language module is missing currency config, we disable the control */
.currency-select:disabled{
opacity:0.6;
cursor:not-allowed;
}


/* Keep dropdown aligned with the rest of the filter controls */
.currency-select-wrap{
width:100%;
}

/* Better use of wide screens */
@media (min-width: 1280px){
  .container{
    max-width:1360px;
  }
  .layout.search-layout{
    grid-template-columns:380px minmax(0,1fr);
    gap:20px;
  }
}

/* Mobile tweaks */
/* Mobile tweaks */
@media (max-width: 980px){
  .searchbar-row{
    flex-direction:row;       /* keep EN next to Search */
    align-items:center;      /* vertically center language menu */
    gap:8px;
  }

  .searchbar-row .searchbar{
    flex:1;                   /* search input + button take most space */
  }

  .searchbar-row .lang-switch{
    align-self:center;       /* center relative to search bar */
  }
}

/* Additional mobile styling for marketing block */
@media (max-width: 980px){
    .results--marketing-active .panel.results {
      border: none;
      background: transparent;
      box-shadow: none;
      border-radius: 0;
    }
    .results--marketing-active .results__summary {
      border-bottom: none;
    }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: minmax(0,1fr);
    padding: 0px 0; /* ahm */
/*  gap: 5px;
    margin-top: 0;
    margin-bottom: 0;*/
  }
/*
  .checkbox-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap:8px 4px; }
*/
  /* On smaller screens, stack the info cards vertically */
  .info-grid {
    grid-template-columns: minmax(0,1fr);
  }

  /* Place status badge beside nav, before spacer */
  .status-badge{
    padding: 0 5px 0 5px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 5;
    /* 
    margin-top: 0;
    margin-bottom: 0;*/
  }
  
  header.panel__head {
    padding:0px 0px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .container{
    margin-top: 5px;
    padding:0 0px;
  }

  .search-layout{
    margin-top: 0;
    padding:0 0px;
  }

  .filters {
    padding:4px 5px 5px;
    /*padding:4px 16px 16px;
    margin-top: 0;
    margin-bottom: 0;*/
  }

  /* Slightly richer spacing + subtle shadow on desktop */
  .results-marketing {
    padding: 0px 4px;
    margin: 6px 4px 6px;
    box-shadow: var(--elev);
  }
  
  /*
  .filter-group {
    padding:0px 0px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .filter-title {
    padding:0px 0px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .h2 {
    padding:0px 0px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .container{
    margin-top: 0;
    margin-bottom: 0;
    padding:0 0px;
  }

  .search-layout{
    margin-top: 0;
    margin-bottom: 0;
    padding:0 0px;
  }
  */

  .layout.search-layout .panel.filters { order: 1; }
  .layout.search-layout .panel.results { order: 2; }

  .page-main .search-layout { order: 1; }
  .page-main .info-grid { order: 2; }
  .page-main .info-section { order: 3; }


  /* Hide the environment badge on mobile to save space */
  #env-badge {
    display: none;
  }
    
  /* Hide the environment badge on mobile to save space */
  #subscription-timer {
    display: none;
  }

  /* Hide the environment badge on mobile to save space */
  #user-name {
    display: none;
  }
}

.section-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  padding: 5px 18px 5px;
  box-shadow: var(--shadow-soft);
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-intro span {
  white-space: nowrap;
}

.section-bullets {
  list-style: none;
  margin-top: 6px;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
}

.section-bullets li {
  position: relative;
  padding-left: 22px;
}

.section-bullets li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  left: 4px;
  top: 0.6em;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-bullets strong {
  color: var(--text-strong);
  font-weight: 600;
}

.about-paragraph {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-top: 10px;
}

.about-paragraph strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 650;
  color: var(--text-strong);
  margin-bottom: 2px;
}