/* section padding controlled in simyak-theme.css (body.page-compatible-phones .scp-wrap) — bump v2 */
.scp-wrap {
  --scp-dark:   #222222;
  --scp-orange: #e41d56;
  --scp-border: #e5e7eb;
  --scp-light:  #f5f5f7;
  --scp-muted:  #475569;
  --scp-text:   #222222;
  --scp-white:  #ffffff;
  font-family: inherit;
  background: var(--scp-white);
  padding-block: 0 clamp(8px, 1vw, 16px);
}

/* ── Container ── */
.scp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ── Intro paragraph(s) ── */
.scp-intro {
  margin: 0 auto clamp(14px, 2vw, 20px);
  max-width: 58ch;
  text-align: center;
  color: var(--scp-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.55;
}
.scp-intro p { margin: 0 0 6px; }
.scp-intro p:last-child { margin: 0; }

/* ── Search — Hostelworld editorial: gray fill, icon left ── */
.scp-search-wrap {
  position: relative;
  margin: 0 0 28px;
  max-width: 520px;
}
.scp-search {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--scp-light);
  color: var(--scp-text);
  font-family: inherit;
  font-size: 0.97rem;
  outline: none;
  transition: border-color .2s, background-color .2s;
  box-sizing: border-box;
}
.scp-search:hover { background: #eef0f3; }
.scp-search:focus {
  background: var(--scp-white);
  border-color: var(--scp-dark);
}
.scp-search::placeholder { color: #5b6472; }
.scp-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scp-muted);
  pointer-events: none;
}
.scp-search:focus + .scp-search-icon { color: var(--scp-dark); }

/* ── Category Tabs — segmented pill (matches "Choose Your Destination") ── */
.scp-cats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 28px;
  padding: 4px;
  background: #F3F4F6;
  border: 0;
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
}
.scp-cat-btn {
  position: relative;
  padding: 8px 24px;
  background: transparent;
  border: 0;
  color: #6B7280;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.scp-cat-btn::after { content: none !important; display: none !important; }
.scp-cat-btn:not(.is-active):hover { color: #1F2937; }
.scp-cat-btn.is-active {
  background: var(--scp-orange);
  color: #ffffff;
}
.scp-cat-btn:focus-visible {
  outline: 2px solid var(--scp-orange);
  outline-offset: 2px;
}

/* Mobile — let the pill scroll if the three labels don't fit */
@media (max-width: 560px) {
  .scp-cats {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .scp-cats::-webkit-scrollbar { display: none; }
  .scp-cat-btn { flex: 1 0 auto; padding: 8px 18px; }
}

/* ── Brand Accordion — Hostelworld outlined cards ── */
.scp-brands {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scp-brand {
  background: var(--scp-white);
  border: 1.5px solid var(--scp-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .2s;
}
.scp-brand:hover { border-color: #cbd5e1; }
.scp-brand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 2.4vw, 28px);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.scp-brand-btn.is-open { background: transparent; }
.scp-brand:has(.is-open) { border-color: var(--scp-dark); }
.scp-brand-name {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 800;
  color: var(--scp-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.scp-brand-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scp-brand-count {
  font-size: 0.8rem;
  color: var(--scp-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Chevron toggle — rotates 180° when open */
.scp-brand-toggle {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--scp-dark);
  transition: transform .25s ease-out;
  flex-shrink: 0;
}
.scp-brand-btn.is-open .scp-brand-toggle { transform: rotate(180deg); }

.scp-brand-panel {
  display: none;
  padding: 8px clamp(20px, 2.4vw, 28px) 24px;
  columns: 3;
  column-gap: 32px;
}
.scp-brand-panel.is-open { display: block; }
.scp-device-item {
  font-size: 0.92rem;
  color: var(--scp-muted);
  line-height: 1.55;
  padding: 5px 0;
  break-inside: avoid;
  display: block;
}
.scp-device-item::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--scp-dark);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
}

/* ── No results ── */
.scp-no-results {
  text-align: center;
  padding: 48px 0;
  color: var(--scp-muted);
  font-size: 0.95rem;
  display: none;
}
.scp-no-results a { color: var(--scp-orange); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .scp-brand-panel { columns: 2; padding: 4px 16px 16px; column-gap: 20px; }
  .scp-brand-btn   { padding: 14px 16px; }
  .scp-cat-btn     { font-size: 0.92rem; }
}
@media (max-width: 480px) {
  .scp-brand-panel { columns: 1; }
  .scp-search      { height: 44px; padding: 0 16px 0 44px; font-size: 0.94rem; }
  .scp-search-icon { left: 14px; }
}

/* Inline <style> from source, static-ized */
body.page-compatible-phones .scp-wrap.scp-wrap { padding-block: 4px 6px !important; }
body.page-compatible-phones .smyk-page-hero { padding-bottom: 28px !important; }
body.page-compatible-phones .htc { padding-top: 22px !important; }

/* ── Hero line off + brand logos + category-tab icons ── */
/* This stylesheet loads only on Compatible Phones, so target the hero directly
   (the theme doesn't add a page-slug body class). */
.smyk-simple-hero { border-bottom: none !important; }

.scp-brand-lead { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.scp-brand-logo {
  width: 22px; height: 22px; flex: 0 0 auto;
  background: #4b5563;
  -webkit-mask: var(--scp-logo) center / contain no-repeat;
          mask: var(--scp-logo) center / contain no-repeat;
}
.scp-brand-btn:hover .scp-brand-logo,
.scp-brand-btn.is-open .scp-brand-logo { background: #e41d56; }

.scp-cat-btn  { display: inline-flex; align-items: center; gap: 8px; }
.scp-cat-ic   { display: inline-flex; align-items: center; }
.scp-cat-ic svg { width: 17px; height: 17px; }
