/* ---------------------------------------------------
   AirRooms — configurator (test layout)
   --------------------------------------------------- */

.configurator {
  background: var(--color-green);
  color: #fff;
  padding: 40px 0 0;
}

.configurator-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 78px);
  padding-bottom: 8px;
}

.config-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.config-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.config-tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.config-tab.active {
  background: #fff;
  color: var(--color-green);
  font-weight: 700;
}

.config-size-readout {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.config-size-readout b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

.config-main {
  flex: 1;
  display: flex;
  gap: 56px;
  margin-top: 30px;
  align-items: stretch;
}

.config-options {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.config-panel { display: none; }
.config-panel.active { display: block; }

.config-cat-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  margin: 0;
}

.config-cat-hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 6px 0 0;
}

/* Cladding swatches (photo-backed) */

.swatch-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.cat-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cat-arrow:hover { background: rgba(255, 255, 255, 0.24); }

.swatch-row {
  display: flex;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.swatch-item {
  width: 112px;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.swatch-item .thumb {
  display: block;
  width: 100%;
  height: 88px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.swatch-item.selected .thumb {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--color-accent), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.swatch-item .name {
  font-size: 0.84rem;
  margin-top: 9px;
  font-weight: 500;
  display: block;
}

.swatch-item .price {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  display: block;
  margin-top: 2px;
}

.swatch-item.selected .price {
  color: #ffe4bd;
  font-weight: 600;
}

/* Doors / windows / roof (price-only option rows) */

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  color: #fff;
  text-align: left;
  width: 100%;
}

.option-row.selected {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.option-row .name { font-size: 0.92rem; }

.option-row .price {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.option-row.selected .price { color: #ffe4bd; font-weight: 600; }

/* Cost-only tags — toggleable interior selections (no visual change to main photo) */

.cost-only-block {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cost-only-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 10px;
}

.cost-only-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.8rem;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  cursor: pointer;
}

.tag b { color: #ffe4bd; font-weight: 600; }

.tag.selected {
  border-style: solid;
  border-color: var(--color-accent);
  background: rgba(185, 117, 47, 0.28);
  color: #fff;
}

.tag.selected b { color: #ffe4bd; }

/* Preview photo */

.config-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.config-photo-card {
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.config-photo-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.config-caption {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.config-caption b { color: #fff; }

/* Interior-selection thumbnail strip, under the main photo/caption */

.config-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.config-thumbs.is-empty { display: none; }

.config-thumb {
  width: 84px;
  text-align: left;
}

.config-thumb-img {
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.config-thumb-label {
  display: block;
  font-size: 0.7rem;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* Total bar */

.config-total-bar {
  margin-top: 30px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.config-total .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.config-total .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

/* ---------------- Mobile ---------------- */

@media (max-width: 860px) {
  .configurator-inner {
    min-height: auto;
    padding-bottom: 96px; /* room for the fixed total bar */
  }

  .config-main {
    flex-direction: column;
    gap: 26px;
    margin-top: 22px;
  }

  .config-preview { order: 1; }
  .config-options { flex: auto; order: 2; }

  .config-photo-card img { height: 210px; }

  .config-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .config-tab { flex: 0 0 auto; }

  .config-top { gap: 12px; }

  .swatch-item { width: 92px; }
  .swatch-item .thumb { height: 74px; }

  .config-thumb { width: 72px; }
  .config-thumb-img { height: 50px; }

  .config-total-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    padding: 14px 20px;
    background: var(--color-green);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
    z-index: 40;
  }

  .config-total .num { font-size: 1.5rem; }
}
