/* ══════════════════════════════
   FEATURES / COMPONENT LIBRARY
   ══════════════════════════════ */

.features-page { background: #e8d9c0; min-height: 100vh; }

/* ── Hero ── */
.features-hero {
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 32px 0 28px;
  border-bottom: 1px solid rgba(255,117,32,.12);
  position: relative; overflow: hidden;
}
.features-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(8,4,1,.72) 0%,
    rgba(12,6,2,.58) 40%,
    rgba(20,10,3,.66) 100%);
  pointer-events: none;
}
.features-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,117,32,.4), transparent);
}
.features-hero .page {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px;
}
.fh-left { position: relative; z-index: 1; }
.fh-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,117,32,.1); border: 1px solid rgba(255,117,32,.25);
  color: #ffb830; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.fh-badge .material-icons-round { font-size: .8rem; }
.fh-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800;
  color: #f5ede0; letter-spacing: -.03em; line-height: 1.2;
  margin-bottom: 6px;
}
.fh-accent {
  background: linear-gradient(90deg, #ffb830, #ff7520);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fh-sub {
  font-size: .8rem; color: rgba(245,237,224,.7); line-height: 1.5; max-width: 420px;
}

/* ── Hero visual ── */
.fh-visual {
  display: none;
}
.fh-visual svg { width: 100%; height: auto; }
@keyframes fhv-blink { 0%,49%{ opacity:1 } 50%,100%{ opacity:0 } }
.fhv-cursor { animation: fhv-blink 1.1s step-end infinite; }
@keyframes fhv-float1 { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-5px) } }
@keyframes fhv-float2 { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-4px) } }
@keyframes fhv-float3 { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-6px) } }
@keyframes fhv-float4 { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-3px) } }
.fhv-b1 { animation: fhv-float1 3.4s ease-in-out infinite; }
.fhv-b2 { animation: fhv-float2 4.1s ease-in-out infinite .6s; }
.fhv-b3 { animation: fhv-float3 3.7s ease-in-out infinite 1.1s; }
.fhv-b4 { animation: fhv-float4 4.4s ease-in-out infinite .3s; }
@media (max-width: 860px) { .fh-visual { display: none; } }

/* ── Features list ── */
.features-list { padding: 36px 24px 72px; display: flex; flex-direction: column; gap: 20px; }

/* ── Component card ── */
.fc-card {
  background: #fff;
  border: 1.5px solid #e8d5be;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(180,80,0,.09), 0 1px 4px rgba(180,80,0,.06);
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}

.fc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ff7520, #ffb830);
  opacity: 0; transition: opacity .2s;
}
.fc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,184,48,.08), transparent 65%);
  pointer-events: none;
}
.fc-card:hover { box-shadow: 0 10px 36px rgba(180,80,0,.12), 0 2px 8px rgba(0,0,0,.06); border-color: #d9c0a8; }
.fc-card:hover::before { opacity: 1; }
.fc-card[data-open="true"]::before { opacity: 1; }
.fc-card[data-open="true"] { border-color: rgba(255,117,32,.3); box-shadow: 0 10px 36px rgba(180,80,0,.1); }

.fc-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  border-bottom: 1.5px solid transparent;
  width: 100%; background: none; border-left: none; border-right: none; border-top: none;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: background .15s;
  position: relative; z-index: 1;
}
.fc-card-header:hover { background: rgba(255,117,32,.04); }
.fc-card[data-open="true"] .fc-card-header { border-bottom-color: #eee4d8; }
.fc-card-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fc-chevron {
  font-size: 1.2rem !important; color: #c07040;
  transition: transform .3s ease;
  flex-shrink: 0;
  background: rgba(255,117,32,.08); border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
}
.fc-card-title-wrap { display: flex; align-items: center; gap: 16px; }
.fc-card-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #1a0e06; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 900; color: #ff7520; letter-spacing: 0;
}
.fc-card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,117,32,.15), rgba(255,184,48,.08));
  border: 1.5px solid rgba(255,117,32,.25);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.fc-card-icon .material-icons-round { font-size: 1.25rem; color: #ff7520; }
.fc-card-title { font-size: 1rem; font-weight: 800; color: #1a0e06; margin-bottom: 3px; }
.fc-card-desc  { font-size: .8rem; color: #7a5a42; line-height: 1.55; max-width: 500px; }

.fc-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.fc-tag .material-icons-round { font-size: .75rem; }
.fc-tag--interactive { background: rgba(255,117,32,.1); color: #c44a00; border: 1px solid rgba(255,117,32,.2); }

/* ── Demo area ── */
.fc-demo {
  padding: 24px; background: #faf3eb;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.fc-demo--collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ── What's included ── */
.fc-whats-included {
  background: rgba(255,255,255,.4);
  border: 1.5px solid #d4b48a;
  border-radius: 14px;
  padding: 22px 24px 20px;
  margin-top: 24px;
  margin-bottom: 0;
}
.fc-wi-title {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #b09070; margin-bottom: 16px;
}
.fc-wi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px;
}
.fc-wi-item {
  display: flex; align-items: flex-start; gap: 10px;
}
.fc-wi-item .material-icons-round {
  font-size: 1.1rem; color: #ff7520; flex-shrink: 0; margin-top: 1px;
}
.fc-wi-item strong { display: block; font-size: .8rem; color: #1a0e06; margin-bottom: 2px; }
.fc-wi-item p { font-size: .74rem; color: #8a6a50; line-height: 1.5; }

/* ── Filter tabs ── */
.gallery-filters {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.gf-btn {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid #c8a87a;
  background: #f0dfc0; color: #6a4a28; font-family: inherit;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.gf-btn:hover { border-color: rgba(255,117,32,.4); color: #c44a00; }
.gf-btn.active { background: #ff7520; border-color: #ff7520; color: #fff; }

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@keyframes gthumb-in {
  from { opacity:0; transform:scale(.96); }
  to   { opacity:1; transform:scale(1); }
}
.gallery-thumb {
  position: relative; border: none; padding: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden; background: #e8d5be;
  aspect-ratio: 4/3;
  animation: gthumb-in .3s ease both;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(26,14,6,.1), rgba(26,14,6,.6));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 10px 12px;
  opacity: 0; transition: opacity .22s;
}
.gallery-thumb:hover .gallery-thumb-overlay { opacity: 1; }
.gallery-thumb-overlay .material-icons-round { font-size: 1.4rem; color: #fff; position: absolute; top: 10px; right: 10px; }
.gto-title { font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ── Card footer ── */
.fc-card-footer {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 24px;
  font-size: .72rem; color: #8a6a50; font-weight: 500;
  background: rgba(255,117,32,.04);
  border-top: 1px solid #eee4d8;
}
.fc-card-footer .material-icons-round { font-size: .8rem; color: #d06020; }

/* ── Coming soon ── */
.fc-coming {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px;
  background: rgba(255,255,255,.25); border: 1.5px dashed #c8a87a;
  border-radius: 16px;
  font-size: .85rem; color: #7a5a38;
}
.fc-coming .material-icons-round { font-size: 1.5rem; color: #c8a87a; flex-shrink: 0; }

/* ══════════════════════════════
   LIGHTBOX
   ══════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,4,1,.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  gap: 0;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,.18); }
.lb-close .material-icons-round { font-size: 1.2rem; }

.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s; z-index: 2;
}
.lb-arrow:hover { background: rgba(255,117,32,.28); transform: translateY(-50%) scale(1.06); }
.lb-arrow .material-icons-round { font-size: 1.6rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  flex: 1; width: 100%; padding: 56px 80px 12px;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 200px);
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  transition: opacity .2s;
}

.lb-caption {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px; width: 100%;
  flex-shrink: 0;
}
.lb-caption-title { font-size: .88rem; font-weight: 700; color: #f5ede0; }
.lb-caption-loc {
  display: flex; align-items: center; gap: 4px;
  font-size: .75rem; color: rgba(255,255,255,.45);
}
.lb-caption-loc .material-icons-round { font-size: .85rem; }
.lb-counter {
  margin-left: auto;
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.4);
  font-family: 'Space Mono', monospace;
  background: rgba(255,255,255,.07); padding: 3px 10px; border-radius: 12px;
}

/* Thumbnail strip */
.lb-thumbs {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 24px 16px;
  overflow-x: auto; width: 100%; flex-shrink: 0;
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lbt {
  flex-shrink: 0; width: 56px; height: 40px;
  border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; cursor: pointer; background: none; padding: 0;
  opacity: .5; transition: opacity .15s, border-color .15s;
}
.lbt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbt:hover { opacity: .8; }
.lbt.active { border-color: #ff7520; opacity: 1; }

.lb-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,117,32,.2); border-top-color: #ff7520;
  animation: lb-spin .7s linear infinite; position: absolute;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════
   AUTOCOMPLETE
   ══════════════════════════════ */
.ac-demo { padding: 0 0 4px; }
.ac-hint { font-size: .78rem; color: #8a6a50; margin-bottom: 16px; }
.ac-hint em { color: #c44a00; font-style: normal; font-weight: 600; }

.ac-wrap { position: relative; max-width: 540px; }

.ac-input-wrap {
  display: flex; align-items: center;
  background: #fef5e4;
  border: 2px solid #c8a87a;
  border-radius: 14px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.ac-input-wrap:focus-within {
  border-color: #ff7520;
  box-shadow: 0 0 0 4px rgba(255,117,32,.1);
}
.ac-icon { font-size: 1.2rem !important; color: #b09070; flex-shrink: 0; }
.ac-input-wrap input {
  flex: 1; border: none; outline: none; background: none;
  padding: 14px 10px; font-family: inherit; font-size: .92rem; color: #1a0e06;
}
.ac-input-wrap input::placeholder { color: #b09070; }
.ac-clear {
  display: none; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #ede0cc; border: none; cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.ac-clear:hover { background: #dcc9ae; }
.ac-clear .material-icons-round { font-size: .9rem; color: #7a5a42; }

.ac-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fef5e4;
  border: 1.5px solid #c8a87a;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(180,80,0,.12);
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .2s ease, opacity .2s;
  z-index: 100;
}
.ac-dropdown.open { max-height: 340px; opacity: 1; overflow-y: auto; }

.ac-category {
  padding: 8px 14px 4px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #9a7040;
  background: #f5e4c0;
}
.ac-category:first-child { border-radius: 12px 12px 0 0; }

.ac-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; transition: background .1s;
}
.ac-item:hover, .ac-item.active { background: #f5e0b8; }
.ac-item-icon { font-size: 1rem !important; color: #b09070; flex-shrink: 0; }
.ac-item.active .ac-item-icon { color: #ff7520; }
.ac-item-label { font-size: .85rem; color: #1a0e06; }
.ac-item-label mark { background: rgba(255,117,32,.2); color: #c44a00; border-radius: 2px; padding: 0 1px; font-style: normal; }

/* ── Result count ── */
.ac-count {
  padding: 7px 14px 4px;
  font-size: .67rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #c07040;
  border-bottom: 1px solid #f0e4d4;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── No results ── */
.ac-no-results {
  padding: 20px 18px; text-align: center;
}
.ac-no-results .ac-nr-icon {
  font-size: 2rem !important; color: #dcc9ae; margin-bottom: 8px; display: block;
}
.ac-no-results p { font-size: .82rem; color: #8a6a50; margin-bottom: 12px; line-height: 1.5; }
.ac-no-results .ac-nr-suggestions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.ac-nr-chip {
  padding: 4px 12px; border-radius: 20px;
  background: #f0dfc0; border: 1.5px solid #c8a87a;
  font-size: .75rem; font-weight: 600; color: #6a4a28;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.ac-nr-chip:hover { background: #ff7520; border-color: #ff7520; color: #fff; }
.ac-no-results .ac-nr-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; color: #ff7520; font-weight: 600; text-decoration: none;
}
.ac-no-results .ac-nr-cta:hover { text-decoration: underline; }
.ac-no-results .ac-nr-cta .material-icons-round { font-size: .85rem; }

/* ── Recent searches & suggestions (shown when empty+focused) ── */
.ac-recents-header {
  padding: 8px 14px 4px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #9a7040;
  background: #f5e4c0;
  display: flex; align-items: center; justify-content: space-between;
}
.ac-recents-clear {
  font-size: .65rem; font-weight: 600; color: #c07040;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
  text-transform: none; letter-spacing: 0;
}
.ac-recents-clear:hover { color: #ff7520; }
.ac-recent-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 14px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; transition: background .1s;
}
.ac-recent-item:hover { background: #fdf0e0; }
.ac-recent-item .material-icons-round { font-size: 1rem !important; color: #c09070; flex-shrink: 0; }
.ac-recent-label { font-size: .85rem; color: #1a0e06; flex: 1; }
.ac-recent-cat { font-size: .68rem; color: #b09070; }

/* ── Suggestion chips (shown when empty+focused, no recents) ── */
.ac-suggestions {
  padding: 12px 14px;
}
.ac-suggestions-title {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #9a7040; margin-bottom: 10px;
  background: #f5e4c0; margin: -12px -14px 10px; padding: 8px 14px;
}
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  background: #f0dfc0; border: 1.5px solid #c8a87a;
  font-size: .78rem; font-weight: 600; color: #5a3a1e;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.ac-chip .material-icons-round { font-size: .85rem; color: #c07040; }
.ac-chip:hover { background: #ff7520; border-color: #ff7520; color: #fff; }
.ac-chip:hover .material-icons-round { color: #fff; }

@keyframes ac-sel-in {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.ac-selected {
  display: none;
  margin-top: 16px;
  background: #fff;
  border: 1.5px solid rgba(255,117,32,.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(180,80,0,.1);
  animation: ac-sel-in .22s ease both;
}
.ac-sel-top {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
}
.ac-sel-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,117,32,.15), rgba(255,184,48,.08));
  border: 1.5px solid rgba(255,117,32,.2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.ac-sel-icon .material-icons-round { font-size: 1.3rem; color: #ff7520; }
.ac-sel-body { flex: 1; min-width: 0; }
.ac-sel-label {
  font-size: 1rem; font-weight: 800; color: #1a0e06;
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-sel-cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 20px;
  background: rgba(255,117,32,.1); color: #c44a00; border: 1px solid rgba(255,117,32,.2);
}
.ac-sel-cat .material-icons-round { font-size: .7rem; }
.ac-sel-msg {
  padding: 0 20px 14px;
  font-size: .8rem; color: #7a5a42; line-height: 1.55;
}
.ac-sel-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  background: rgba(255,117,32,.04);
  border-top: 1px solid rgba(255,117,32,.12);
}
.ac-sel-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: #a08060;
}
.ac-sel-hint .material-icons-round { font-size: .9rem; color: #ff7520; }
.ac-sel-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ff7520; color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 7px 16px; border-radius: 8px;
  text-decoration: none; transition: background .15s, transform .15s;
  white-space: nowrap;
}
.ac-sel-cta:hover { background: #e05e10; transform: translateY(-1px); }
.ac-sel-cta .material-icons-round { font-size: .9rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .features-hero { padding: 24px 0 20px; }
  .fh-title { font-size: 1.3rem; }
  .features-list { padding: 24px 16px 48px; gap: 14px; }
  .fc-card-header { flex-direction: column; }
  .fc-wi-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lb-stage { padding: 56px 16px 12px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .fc-demo { padding: 16px; }
  .fc-card-footer { padding: 12px 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
