/* Menú dinámico del footer de Marbella Builders.
   Escritorio: columna 1 = marca + botón de llamada | columnas 2-3 = buscador y selectores | columna 4 = contacto fijo,
   y debajo los resultados repartidos a todo el ancho de la web, con el texto completo (sin puntos suspensivos). */
.fv { display: contents; }
.fv-bar, .fv-results, .fv-contact-col { min-width: 0; }

@media (min-width: 1024px) {
  .footer-content > .footer-section:first-child { grid-column: 1; grid-row: 1; }
  .footer-content .fv-bar { grid-column: 2 / 4; grid-row: 1; }
  .footer-content > .fv-contact-col { grid-column: 4; grid-row: 1; }
  .footer-content .fv-results { grid-column: 1 / -1; grid-row: 2; }
  .footer-content { row-gap: 14px; margin-bottom: 1.4rem; }
}
@media (max-width: 1023px) {
  .footer-content .fv-bar, .footer-content .fv-results { grid-column: 1 / -1; }
}

.fv-bar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.fv-search { flex: 1 1 220px; max-width: 340px; }
.fv-search input { width: 100%; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(246,243,236,.25); background: rgba(255,255,255,.06); color: #f6f3ec; font: inherit; font-size: 1rem; }
.fv-search input::placeholder { color: #9fb0cf; }
.fv-search input:focus { outline: 2px solid #e8901a; outline-offset: 1px; }
.fv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fv-all { color: #e8901a; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.fv-all:hover { text-decoration: underline; }

.fv-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.fv-sep { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: #9fb0cf; margin: 0 2px 0 8px; padding-left: 10px; border-left: 1px solid rgba(246,243,236,.25); }
.fv-tab { cursor: pointer; border: 1px solid rgba(246,243,236,.25); background: transparent; color: #f6f3ec; font: inherit; font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 99px; line-height: 1.3; transition: background .2s, border-color .2s; }
.fv-tab span { display: inline-block; min-width: 1.4em; margin-left: 2px; padding: 0 5px; border-radius: 99px; background: rgba(246,243,236,.16); font-size: .68rem; text-align: center; }
.fv-tab:hover { border-color: #e8901a; }
.fv-tab.active { background: #e8901a; border-color: #e8901a; color: #fff; }
.fv-tab.active span { background: rgba(0,0,0,.2); }
.fv-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.fv-panel-title { display: none; font-weight: 700; color: #fff; margin: 0 0 6px; font-size: .88rem; }
.fv-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 22px; }
.fv-links li { margin: 0; min-width: 0; }
.fv-links li[hidden] { display: none; }
.fv-links a { display: block; color: #d1d5db; text-decoration: none; font-size: .87rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; transition: color .2s; }
.fv-links a::before { content: "›"; color: #e8901a; margin-right: 6px; font-weight: 700; }
.fv-links a:hover, .fv-links a:focus-visible { color: #fff; text-decoration: underline; }

/* Con JavaScript solo se ve el panel activo; sin JavaScript se ven todos, uno tras otro. */
.fv.fv-js .fv-panel { display: none; }
.fv.fv-js .fv-panel.active { display: block; }
.fv.fv-js.fv-searching .fv-panel { display: block; margin-bottom: 10px; }
.fv.fv-js.fv-searching .fv-panel.fv-nomatch { display: none; }
.fv.fv-js.fv-searching .fv-panel-title { display: block; }
.fv:not(.fv-js) .fv-tabs, .fv:not(.fv-js) .fv-search { display: none; }
.fv:not(.fv-js) .fv-panel { margin-bottom: 14px; }
.fv:not(.fv-js) .fv-panel-title { display: block; }
.fv-empty { color: #c9d3e6; font-size: .88rem; margin: 6px 0 0; }

/* Contacto compacto: con el botón «Llamar Ahora» y sin selector de idioma (el idioma se cambia en la cabecera) */
.fv-contact-col h4 { margin-bottom: .4rem; }
.fv-contact-col .contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: .3rem; font-size: .88rem; line-height: 1.3; }
.fv-contact-col .fv-call { margin-top: .5rem; padding: 7px 16px; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-content > .fv-bar { align-self: start; }

@media (max-width: 767px) {
  .fv-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .fv-tab, .fv-sep { white-space: nowrap; flex: 0 0 auto; }
  .fv-tab { min-height: 44px; }
  .fv-links { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
