<script>
(function(){
  const bar = document.getElementById('thl-searchbar');
  if(!bar) return;

  // ------------- (A) PEGAR ARRIBA AL SCROLL -------------
  const startY = bar.getBoundingClientRect().top + window.scrollY;

  function setBodyOffset(on){
    // evita salto de layout al fijar
    if(on){
      document.body.style.paddingTop = bar.offsetHeight + 'px';
    }else{
      document.body.style.paddingTop = '';
    }
  }

  function onScroll(){
    const stuck = window.scrollY > startY;
    bar.classList.toggle('thl-search-stuck', stuck);
    setBodyOffset(stuck);
  }
  window.addEventListener('scroll', onScroll, {passive:true});
  onScroll();

  // ------------- (B) ICONO CALENDARIO (si está dentro del componente) -------------
  function fixCalendarIcon(){
    const thr = bar.querySelector('thr-search-engine');
    if(!thr) return false;

    // Si hay shadow DOM
    const root = thr.shadowRoot;
    const scope = root || thr;

    // intentamos encontrar un icono típico (svg / i / button) cerca del campo de fechas
    const svg = scope.querySelector('svg') || scope.querySelector('i');
    const input = scope.querySelector('input');

    if(!input || !svg) return false;

    // dejamos hueco para el icono
    input.style.paddingRight = '34px';
    input.style.whiteSpace = 'nowrap';
    input.style.overflow = 'hidden';
    input.style.textOverflow = 'ellipsis';

    // colocamos el icono a la derecha, centrado vertical
    svg.style.position = 'absolute';
    svg.style.right = '10px';
    svg.style.top = '50%';
    svg.style.transform = 'translateY(-50%)';
    svg.style.pointerEvents = 'none';

    // aseguramos que el padre sea posicionable
    const parent = svg.parentElement;
    if(parent) parent.style.position = 'relative';

    return true;
  }

  // reintenta porque el widget renderiza tarde
  let tries = 0;
  const t = setInterval(()=>{
    tries++;
    if(fixCalendarIcon() || tries > 80) clearInterval(t);
  }, 250);
})();
</script><?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//campingriezu.es/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://campingriezu.es/post-sitemap.xml</loc>
		<lastmod>2025-04-09T07:17:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://campingriezu.es/page-sitemap.xml</loc>
		<lastmod>2026-03-05T09:10:06+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://campingriezu.es/category-sitemap.xml</loc>
		<lastmod>2025-04-09T07:17:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://campingriezu.es/post_tag-sitemap.xml</loc>
		<lastmod>2025-04-09T07:17:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://campingriezu.es/author-sitemap.xml</loc>
		<lastmod>2023-03-28T07:26:03+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->