/* © 2026 Michele Puddu Pizzorno. All rights reserved - proprietary licence, see LICENSE.txt. */
/* RYE Camps. Override the variables in your theme, e.g. .rye-camps { --rye-accent: #b4003c; } */
.rye-camps {
  --rye-accent: #003f87;
  --rye-accent-contrast: #fff;
  --rye-text: inherit;
  --rye-muted: #5a6577;
  --rye-bg: #fff;
  --rye-border: #d9dfe8;
  --rye-radius: 10px;
  --rye-gap: 1.25rem;
  --rye-cols: 3;
  color: var(--rye-text);
}
.rye-camps--cols-1 { --rye-cols: 1; } .rye-camps--cols-2 { --rye-cols: 2; }
.rye-camps--cols-3 { --rye-cols: 3; } .rye-camps--cols-4 { --rye-cols: 4; }
.rye-camps__grid { display: grid; gap: var(--rye-gap); grid-template-columns: repeat(var(--rye-cols), minmax(0, 1fr)); }
@media (max-width: 900px) { .rye-camps__grid { grid-template-columns: repeat(min(var(--rye-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 560px) { .rye-camps__grid { grid-template-columns: minmax(0, 1fr); } }
.rye-camps__card { background: var(--rye-bg); border: 1px solid var(--rye-border); border-radius: var(--rye-radius); overflow: hidden; display: flex; flex-direction: column; }
.rye-camps__cover img { display: block; width: 100%; height: 11rem; object-fit: cover; }
.rye-camps__single .rye-camps__cover img { height: auto; max-height: 24rem; border-radius: var(--rye-radius); }
.rye-camps__body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.rye-camps__title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.rye-camps__title a { color: inherit; }
.rye-camps__meta, .rye-camps__types, .rye-camps__groups, .rye-camps__docs, .rye-camps__list { list-style: none; margin: 0; padding: 0; }
.rye-camps__meta { display: grid; gap: .15rem; color: var(--rye-muted); font-size: .92rem; }
.rye-camps__types { display: flex; flex-wrap: wrap; gap: .35rem; }
.rye-camps__type { border: 1px solid var(--rye-border); border-radius: 999px; padding: .05rem .6rem; font-size: .8rem; color: var(--rye-muted); }
.rye-camps__desc { margin: 0; font-size: .92rem; }
.rye-camps__actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; }
.rye-camps__btn { display: inline-block; background: var(--rye-accent); color: var(--rye-accent-contrast); padding: .45rem .9rem; border-radius: 6px; text-decoration: none; font-size: .92rem; }
.rye-camps__btn:hover, .rye-camps__btn:focus { filter: brightness(1.12); color: var(--rye-accent-contrast); }
.rye-camps__btn--ghost { background: transparent; color: var(--rye-accent); border: 1px solid var(--rye-accent); }
.rye-camps__btn--ghost:hover, .rye-camps__btn--ghost:focus { color: var(--rye-accent); }
.rye-camps a:focus-visible, .rye-camps summary:focus-visible, .rye-camps button:focus-visible { outline: 3px solid var(--rye-accent); outline-offset: 2px; }
.rye-camps__notice { padding: .75rem 1rem; border: 1px solid var(--rye-border); border-radius: var(--rye-radius); color: var(--rye-muted); }
.rye-camps__more { color: var(--rye-muted); font-size: .9rem; }
.rye-camps__details { margin-top: .5rem; } .rye-camps__details summary { cursor: pointer; color: var(--rye-accent); }
.rye-camps__item { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rye-border); align-items: baseline; }
.rye-camps__item .rye-camps__title { font-size: 1rem; flex: 1 1 14rem; }
.rye-camps__item > span:not(.rye-camps__title) { color: var(--rye-muted); font-size: .92rem; }
.rye-camps__tablewrap { overflow-x: auto; }
.rye-camps__table { width: 100%; border-collapse: collapse; }
.rye-camps__table th, .rye-camps__table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rye-border); vertical-align: top; }
.rye-camps__facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 1rem 0; }
.rye-camps__facts dt { font-weight: 600; } .rye-camps__facts dd { margin: 0; }
.rye-camps__h { margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.rye-camps__gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.rye-camps__gallery img { width: 100%; height: 7rem; object-fit: cover; border-radius: 6px; display: block; }
.rye-camps__caption { display: block; font-size: .8rem; color: var(--rye-muted); }
.rye-camps__lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.rye-camps__lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.rye-camps__lightbox figure { margin: 0; text-align: center; color: #fff; }
.rye-camps__lightbox img { max-width: 92vw; max-height: 80vh; display: block; margin: 0 auto; }
.rye-camps__lightbox button { background: #fff; color: #111; border: 0; border-radius: 6px; padding: .5rem .9rem; margin: .6rem .3rem 0; cursor: pointer; font-size: 1rem; }
.rye-camps .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* [rye_camps_search] */
.rye-camps__searchform { display: grid; gap: .9rem; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--rye-border); border-radius: var(--rye-radius); background: var(--rye-bg); }
.rye-camps__fields { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: end; }
.rye-camps__field { display: flex; flex-direction: column; gap: .25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.rye-camps__help { font-size: .78rem; opacity: .75; }
.rye-camps__field--q { grid-column: 1 / -1; }
.rye-camps__field label, .rye-camps__field legend { font-size: .85rem; font-weight: 600; padding: 0; }
.rye-camps__field--range { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .5rem; align-items: center; }
.rye-camps__field--range legend { grid-column: 1 / -1; float: left; width: 100%; }
.rye-camps__field--range legend + label { clear: left; }
.rye-camps__sub { font-weight: 400 !important; color: var(--rye-muted); }
.rye-camps__field input[type="search"], .rye-camps__field input[type="date"], .rye-camps__field input[type="number"], .rye-camps__field select {
  width: 100%; box-sizing: border-box; padding: .45rem .6rem; border: 1px solid var(--rye-border); border-radius: 6px; background: var(--rye-bg); color: inherit; font: inherit; min-height: 2.4rem; }
.rye-camps__field--check { align-self: center; }
.rye-camps__field--check label { display: flex; gap: .4rem; align-items: center; font-weight: 400; }
.rye-camps__formactions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.rye-camps__formactions .rye-camps__btn { border: 0; cursor: pointer; font: inherit; font-size: .92rem; }
.rye-camps__reset { color: var(--rye-accent); font-size: .92rem; }
.rye-camps__reset[hidden], .rye-camps__loadmore[hidden] { display: none; }
.rye-camps__status { margin: 0 0 .75rem; color: var(--rye-muted); font-size: .92rem; min-height: 1.4em; }
.rye-camps__results { transition: opacity .15s; }
.rye-camps.is-loading .rye-camps__results { opacity: .5; }
.rye-camps__loadmore { margin: 1rem 0 0; text-align: center; }
.rye-camps__grid > [tabindex="-1"]:focus, .rye-camps__list > [tabindex="-1"]:focus, .rye-camps__table [tabindex="-1"]:focus { outline: 3px solid var(--rye-accent); outline-offset: 2px; }
@media (max-width: 560px) { .rye-camps__fields { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rye-camps__results { transition: none; } }
.rye-camps__back { margin: 0 0 1rem; }
.rye-camps__back--bottom { margin: 1.5rem 0 0; }
