/* home.css — buscador compacto, 3 columnas, feed centrado, imágenes uniformes, footer compacto */

/* ========== BUSCADOR COMPACTO ========== */
.search-compact {
  padding: 12px;
}
.search-compact .search-row{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:10px;
  align-items:center;
}
.search-compact .search-input{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border:1px solid var(--border);
  border-radius:12px; background:#fff;
}
.search-compact .search-input input{
  border:none; outline:none; width:100%;
}
.search-compact .search-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.filters-panel{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }

/* ========== GRID DE 3 COLUMNAS ========== */
.home-grid{
  display:grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px){
  .home-grid{ grid-template-columns: 1fr; }
  .side{ order: 2; }
  .feed{ order: 1; }
}

/* Lateral: tarjetas premium rotatorias */
.side .side-list{ display:grid; gap:10px; }
.side .side-item{
  display:grid; grid-template-columns: 72px 1fr; gap:10px; align-items:center;
}
.side .thumb{
  width:72px; height:72px;
  background:#eee center/cover no-repeat;
  border-radius:10px; border:1px solid var(--border);
}

/* ========== FEED CENTRADO ========== */
.feed{
  max-width: 1000px;
  margin: 0 auto; /* centra el feed en el contenedor central */
}
.catalog{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* Tarjeta del feed: imagen fija, cuerpo y acciones */
.card-feed{
  display:grid;
  grid-template-rows: 200px auto auto; /* imagen arriba con altura fija */
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.card-feed .media{
  background:#f3f4f6 center/cover no-repeat;
  width:100%; height:200px; /* TODAS iguales */
}
.card-feed .body{ padding:10px; }
.card-feed .body h3{ margin:0; }
.card-feed .meta{ color:#6b7280; font-size:.92rem; margin-top:4px; }
.card-feed .desc{ margin-top:6px; }
.card-feed .actions{
  display:flex; flex-wrap:wrap; gap:8px;
  padding:10px; border-top:1px solid var(--border);
}
.feed-more{ display:flex; justify-content:center; margin-top:10px; }

/* ========== CHIPS ========== */
.chips .chips-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ border:1px solid var(--border); padding:6px 10px; border-radius:999px; background:#fff; cursor:pointer; }
.chip.is-active{ background:#40E0D0; border-color:#40E0D0; color:#073b40; }

/* ========== ICONOS SOCIALES HEADER/FOOTER ========== */
.tm-icon img{ width:22px; height:22px; display:block; }

/* ========== FOOTER COMPACTO ========== */
.site-footer--compact{
  padding: 14px 0;
}
.footer-compact{
  display:grid; align-items:center; gap:10px;
  grid-template-columns: auto 1fr auto;
}
.footer-mini{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.footer-mini a{ color: var(--text); }
.footer-social{ display:flex; gap:10px; justify-content:flex-end; }
@media (max-width: 900px){
  .footer-compact{ grid-template-columns: 1fr; justify-items:center; }
  .footer-social{ justify-content:center; }
}
/* ====== BUSCADOR SUPER COMPACTO HORIZONTAL ====== */
.search-compact {
  max-width: 820px;
  margin: 0 auto 12px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.search-compact .search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* Entrada de texto principal */
.search-compact .search-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  flex: 1 1 150px;
}
.search-compact .search-input input {
  border: none;
  outline: none;
  height: 26px;
  font-size: 13px;
  width: 100%;
  background: transparent;
}

/* Filtros inline (país, categoría, provincia, ciudad) */
#filtersPanel {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 6px;
}
#filtersPanel select,
#filtersPanel input {
  height: 26px;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
}

/* Botones reducidos */
.search-compact .btn,
.search-compact .btn-outline,
.search-compact .btn-icon {
  padding: 4px 8px;
  height: 26px;
  font-size: 12px;
  line-height: 1;
  border-radius: 6px;
  white-space: nowrap;
}

/* En pantallas pequeñas, se apila ordenado */
@media (max-width: 720px) {
  .search-compact {
    max-width: 100%;
    padding: 6px;
  }
  .search-compact .search-row,
  #filtersPanel {
    flex-wrap: wrap;
    justify-content: center;
  }
  .search-compact .btn {
    width: auto;
  }
}
/* ====== EFECTO INTERACTIVO ELEGANTE PARA BUSCADOR ====== */

/* Contenedor: sombra leve */
.search-compact {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-compact:hover,
.search-compact:focus-within {
  border-color: #40E0D0;                     /* Turquesa TuyoMall */
  box-shadow: 0 0 6px rgba(64,224,208,0.25); /* Sombra suave */
}

/* Inputs y selects con borde turquesa al enfocar */
.search-compact input:focus,
.search-compact select:focus {
  outline: none;
  border-color: #40E0D0;
  box-shadow: 0 0 4px rgba(64,224,208,0.25);
  background: #ffffff;
}

/* Botones interactivos */
.search-compact .btn,
.search-compact .btn-outline,
.search-compact .btn-icon {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-compact .btn:hover,
.search-compact .btn:focus {
  background-color: #40E0D0;
  border-color: #40E0D0;
  color: #073b40; /* contraste oscuro */
}

.search-compact .btn-outline:hover,
.search-compact .btn-outline:focus {
  background-color: #40E0D0;
  color: #073b40;
  border-color: #40E0D0;
}

/* Ajuste fino en móvil: evita que el brillo se desborde */
@media (max-width: 720px) {
  .search-compact {
    box-shadow: none;
  }
  .search-compact:hover,
  .search-compact:focus-within {
    box-shadow: 0 0 4px rgba(64,224,208,0.2);
  }
}
