/* JPages for Joomla 6 - Alfogon.com: the restaurant guide, in the green of the "Restaurantes" section */
.com-jpages {
    --jp-accent: #4f8a22; --jp-accent-dark: #3c6c18; --jp-soft: #eef6e6; --jp-soft2: #f6faf1;
    --jp-line: #e4e3df; --jp-text: #3d3c39; --jp-muted: #7a7468; --jp-panel: #f7f6f3; --jp-star: #f2a007;
    --jp-radius: 14px;
    color: var(--jp-text);
}
.com-jpages a { color: var(--jp-accent-dark); text-decoration: none; }
.com-jpages a:hover, .com-jpages a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.com-jpages .jp-ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.com-jpages h1.jp-title { font-size: 2.1rem; font-weight: 400; color: #2d2d2d; margin: .5rem 0 1rem; display: flex; align-items: center; gap: .5rem; }
.com-jpages .jp-intro { font-size: 1.05rem; color: #4a4a40; max-width: 60rem; }
.com-jpages .jp-empty { color: var(--jp-muted); font-style: italic; }
.com-jpages .jp-count { color: var(--jp-muted); margin: 1rem 0 .5rem; }
.com-jpages .jp-n { display: inline-block; min-width: 1.7em; padding: 0 .45em; border-radius: 1em; background: var(--jp-soft); color: var(--jp-accent-dark); font-size: .78em; font-weight: 700; text-align: center; line-height: 1.6; }
.com-jpages .jp-section { margin: 2rem 0; }
.com-jpages .jp-section__title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.55rem; color: var(--jp-accent-dark); margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.com-jpages .jp-section__title a { color: inherit; }
.com-jpages .jp-desc { line-height: 1.65; font-size: 1.02rem; }
.com-jpages .jp-desc img { max-width: 100%; height: auto; border-radius: 10px; }

/* buttons */
.com-jpages .jp-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid var(--jp-accent);
    background: var(--jp-accent); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.3; }
.com-jpages .jp-btn:hover, .com-jpages .jp-btn:focus-visible { background: var(--jp-accent-dark); border-color: var(--jp-accent-dark); color: #fff; text-decoration: none; }
.com-jpages .jp-btn--soft { background: var(--jp-soft); color: var(--jp-accent-dark); border-color: #cfe3bd; }
.com-jpages .jp-btn--soft:hover, .com-jpages .jp-btn--soft:focus-visible { background: #e1efd3; color: var(--jp-accent-dark); border-color: #b7d69c; }
.com-jpages .jp-btn--soft.is-on { background: #fde8ec; color: #be123c; border-color: #f8c4cf; }
.com-jpages .jp-btn--soft.is-on .jp-ico { fill: currentColor; }
.com-jpages .jp-btn--ghost { background: #fff; color: var(--jp-text); border-color: #d9d7d2; }
.com-jpages .jp-btn--ghost:hover, .com-jpages .jp-btn--ghost:focus-visible { background: #eeedea; color: #1f1f1d; border-color: #b8b5ae; }

/* search bar */
.com-jpages .jp-searchbar { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; max-width: 52rem; }
.com-jpages .jp-searchbar .form-control { flex: 2 1 16rem; border-radius: 10px; }
.com-jpages .jp-searchbar .form-select { flex: 1 1 10rem; border-radius: 10px; }
.com-jpages .jp-searchform .jp-searchbar { margin-bottom: .75rem; }
.com-jpages .jp-advanced { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); background: var(--jp-panel); padding: .6rem 1rem; max-width: 52rem; }
.com-jpages .jp-advanced summary { cursor: pointer; font-weight: 600; color: var(--jp-accent-dark); }
.com-jpages .jp-advanced__grid { display: grid; grid-template-columns: 1fr auto 2fr; gap: 1.5rem; padding: 1rem 0 .5rem; }
.com-jpages .jp-advanced fieldset { border: 0; margin: 0; padding: 0; }
.com-jpages .jp-advanced__fac { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .15rem .75rem; align-content: start; }
.com-jpages .jp-advanced__fac legend { grid-column: 1 / -1; }
.com-jpages .jp-check { display: flex; align-items: center; gap: .45rem; margin: .2rem 0; cursor: pointer; }
.com-jpages .jp-check img { border-radius: 8px; }

/* price, stars, badges */
.com-jpages .jp-price { font-weight: 700; color: var(--jp-accent-dark); letter-spacing: .05em; white-space: nowrap; }
.com-jpages .jp-price__off { color: #cfcac0; }
.com-jpages .jp-stars { position: relative; display: inline-block; width: 5.2em; height: 1em; vertical-align: -.1em; font-size: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 6 6.4.8-4.7 4.4 1.2 6.4L12 17.3l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='%23e4e1da'/%3E%3C/svg%3E") left center / 1.04em 1em repeat-x; }
.com-jpages .jp-stars__on { position: absolute; inset: 0 auto 0 0; overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 6 6.4.8-4.7 4.4 1.2 6.4L12 17.3l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='%23f2a007'/%3E%3C/svg%3E") left center / 1.04em 1em repeat-x; }
.com-jpages .jp-stars--sm { font-size: .82rem; }
.com-jpages .jp-stars--lg { font-size: 1.25rem; }
.com-jpages .jp-badge { position: absolute; top: .6rem; left: .6rem; padding: .2rem .6rem; border-radius: 1rem; background: #D54215; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.com-jpages .jp-badge--inline { position: static; }

/* chips, tags */
.com-jpages .jp-chips, .com-jpages .jp-tagcloud { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1rem 0; }
.com-jpages .jp-chips a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .85rem; border: 1px solid var(--jp-line); border-radius: 2rem; background: #fff; color: var(--jp-text); font-weight: 600; }
.com-jpages .jp-chips a:hover, .com-jpages .jp-chips a:focus-visible { border-color: var(--jp-accent); color: var(--jp-accent-dark); background: var(--jp-soft2); text-decoration: none; }
.com-jpages .jp-tagcloud a { display: inline-block; padding: .2rem .7rem; border-radius: 2rem; background: var(--jp-soft); color: var(--jp-accent-dark); font-size: calc(.85rem * var(--w, 1)); }
.com-jpages .jp-tagcloud a:hover { background: #e1efd3; text-decoration: none; }

/* cards of restaurants */
.com-jpages .jp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 1rem 0; }
.com-jpages .jp-cards--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.com-jpages .jp-card { display: flex; flex-direction: column; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.com-jpages .jp-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.com-jpages .jp-card__img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--jp-soft); overflow: hidden; }
.com-jpages .jp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.com-jpages .jp-card__img .jp-card__logo { object-fit: contain; padding: 1.25rem; background: #fff; }
.com-jpages .jp-card__body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.com-jpages .jp-card__kicker { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--jp-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.com-jpages .jp-card__title { font-size: 1.12rem; margin: 0; font-weight: 700; line-height: 1.3; }
.com-jpages .jp-card__title a { color: #2d2d2d; }
.com-jpages .jp-card__title a:hover { color: var(--jp-accent-dark); }
.com-jpages .jp-card__place { font-size: .9rem; color: var(--jp-muted); display: flex; align-items: center; gap: .3rem; }
.com-jpages .jp-card__rating { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--jp-muted); }
.com-jpages .jp-card__spec, .com-jpages .jp-card__excerpt { font-size: .9rem; margin: .2rem 0 0; color: #4a4a40; }
@media (prefers-reduced-motion: reduce) { .com-jpages .jp-card { transition: none; } .com-jpages .jp-card:hover { transform: none; } }

/* pagination (same logic as recipes and wines, in green) */
.com-jpages .jp-pagination { margin: 1.5rem 0; text-align: center; }
.com-jpages .jp-pagination .pagination { justify-content: center; --pagination-active-bg: var(--jp-accent); --pagination-active-border-color: var(--jp-accent); --pagination-color: var(--jp-accent-dark); }
.com-jpages .jp-pagination .page-item.active .page-link { background: var(--jp-accent-dark); border-color: var(--jp-accent-dark); color: #fff !important; font-weight: 700; }
.com-jpages .jp-pagination .counter { color: var(--jp-muted); font-size: .85rem; }

/* maps */
.com-jpages .jp-mapbox { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); background: #fff; margin: 1rem 0 1.5rem; overflow: hidden; }
.com-jpages .jp-mapbox > summary { cursor: pointer; padding: .7rem 1rem; display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--jp-accent-dark); background: var(--jp-soft2); list-style: none; }
.com-jpages .jp-mapbox > summary::-webkit-details-marker { display: none; }
.com-jpages .jp-mapbox > summary small { margin-left: auto; color: var(--jp-muted); font-weight: 400; }
.com-jpages .jp-mapbox[open] .jp-mapbox__show, .com-jpages .jp-mapbox:not([open]) .jp-mapbox__hide { display: none; }
.com-jpages .jp-map { width: 100%; z-index: 0; }
.com-jpages .jp-map--mini { height: 210px; border-radius: 10px; margin-top: .9rem; }
.jp-pin span { display: block; width: 28px; height: 28px; margin: 0 auto; border-radius: 50% 50% 50% 0; background: #4f8a22; border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.jp-popup .leaflet-popup-content { margin: .6rem .8rem; font: 14px/1.35 Arial, Helvetica, sans-serif; min-width: 160px; }
.jp-popup img { display: block; width: 100%; height: 90px; object-fit: cover; border-radius: 6px; margin-bottom: .4rem; }
.jp-popup a { color: #3c6c18; }

/* home page */
.com-jpages .jp-slider { position: relative; border-radius: var(--jp-radius); overflow: hidden; aspect-ratio: 21 / 8; min-height: 240px; background: #2d2d2d; margin: 0 0 1.5rem; }
.com-jpages .jp-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; display: flex; align-items: flex-end; color: #fff; }
.com-jpages .jp-slide.is-active { opacity: 1; z-index: 1; }
.com-jpages .jp-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 35, 10, .85), rgba(0, 0, 0, 0) 60%); }
.com-jpages .jp-slide:hover { text-decoration: none; }
.com-jpages .jp-slide__text { position: relative; padding: 1.25rem 1.5rem 2.2rem; display: flex; flex-direction: column; gap: .2rem; max-width: 46rem; }
.com-jpages .jp-slide__kicker { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; opacity: .95; }
.com-jpages .jp-slide__title { font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; line-height: 1.1; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.com-jpages .jp-slide__sub { font-size: .95rem; opacity: .95; }
.com-jpages .jp-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #2d2d2d; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.com-jpages .jp-slider__nav:hover, .com-jpages .jp-slider__nav:focus-visible { background: #fff; color: var(--jp-accent-dark); }
.com-jpages .jp-slider__nav--prev { left: .75rem; } .com-jpages .jp-slider__nav--next { right: .75rem; }
.com-jpages .jp-slider__dots { position: absolute; z-index: 2; bottom: .8rem; right: 1.25rem; display: flex; gap: .4rem; }
.com-jpages .jp-slider__dots button { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.com-jpages .jp-slider__dots button.is-active { background: #fff; }
.com-jpages .jp-home__grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; align-items: start; }
.com-jpages .jp-home__main .jp-section:first-child { margin-top: 0; }
.com-jpages .jp-home__side { display: grid; gap: 1.25rem; }
.com-jpages .jp-box { border: 1px solid var(--jp-line); border-top: 4px solid var(--jp-accent); border-radius: var(--jp-radius); background: linear-gradient(to bottom, var(--jp-soft2), #fff 4rem); padding: 1rem 1.15rem 1.1rem; }
.com-jpages .jp-box__title { margin: 0 0 .75rem; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jp-accent-dark); display: flex; align-items: center; gap: .4rem; }
.com-jpages .jp-box__title a { color: inherit; }
.com-jpages .jp-box--guide { border-top-color: #be123c; background: linear-gradient(to bottom, #fff1f3, #fff 4rem); }
.com-jpages .jp-box--guide .jp-box__title { color: #be123c; }
.com-jpages .jp-box--guide p { font-size: .92rem; }
.com-jpages .jp-toplist { margin: 0; padding-left: 1.3rem; }
.com-jpages .jp-toplist li { padding: .3rem 0; border-bottom: 1px dashed var(--jp-line); }
.com-jpages .jp-toplist li:last-child { border-bottom: 0; }
.com-jpages .jp-toplist a { font-weight: 700; color: #2d2d2d; }
.com-jpages .jp-toplist span { display: flex; align-items: center; gap: .4rem; }
.com-jpages .jp-toplist small { color: var(--jp-muted); }
.com-jpages .jp-minisurveys { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.com-jpages .jp-minisurveys li { display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; }
.com-jpages .jp-minisurveys a strong { color: #2d2d2d; }
.com-jpages .jp-minisurveys__meta { display: flex; align-items: center; gap: .4rem; color: var(--jp-muted); font-size: .85rem; flex-wrap: wrap; }
.com-jpages .jp-minisurveys__text { color: #4a4a40; }

/* types of cuisine */
.com-jpages .jp-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.com-jpages .jp-type { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); overflow: hidden; background: #fff; }
.com-jpages .jp-type__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; min-height: 7.5rem; padding: .8rem 1rem;
    background: var(--jp-accent) center / cover no-repeat; color: #fff; isolation: isolate; }
.com-jpages .jp-type__head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(25, 45, 10, .85), rgba(25, 45, 10, .1) 75%); }
.com-jpages .jp-type__head:hover { text-decoration: none; }
.com-jpages .jp-type__title { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.15; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.com-jpages .jp-type__head .jp-type__n { background: rgba(255, 255, 255, .92); color: var(--jp-accent-dark); border-radius: 1rem; padding: .1rem .55rem; font-weight: 700; font-size: .85rem; }
.com-jpages .jp-type__list { list-style: none; margin: 0; padding: .6rem 1rem .8rem; }
.com-jpages .jp-type__list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--jp-line); font-size: .95rem; }
.com-jpages .jp-type__list li:last-child { border-bottom: 0; }
.com-jpages .jp-type__list .jp-n { flex: none; align-self: center; }
.com-jpages .jp-type__list a { color: var(--jp-text); }
.com-jpages .jp-type__list a:hover { color: var(--jp-accent-dark); }

/* header of a type or a place */
.com-jpages .jp-hero { border-radius: var(--jp-radius); background: var(--jp-soft); padding: 1.5rem; margin: .5rem 0 1.25rem; display: flex; align-items: flex-end; min-height: 7rem; }
.com-jpages .jp-hero--img { min-height: 13rem; background-size: cover; background-position: center; position: relative; isolation: isolate; color: #fff; }
.com-jpages .jp-hero--img::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(to top, rgba(25, 45, 10, .85), rgba(0, 0, 0, .05) 70%); }
.com-jpages .jp-hero__text { display: flex; flex-direction: column; gap: .2rem; }
.com-jpages .jp-hero__kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--jp-accent-dark); }
.com-jpages .jp-hero--img .jp-hero__kicker { color: #fff; opacity: .95; }
.com-jpages h1.jp-hero__title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 2.3rem; line-height: 1.1; color: #2d2d2d; }
.com-jpages .jp-hero--img h1.jp-hero__title { color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.com-jpages .jp-hero__sub { color: var(--jp-muted); font-weight: 600; }
.com-jpages .jp-hero--img .jp-hero__sub { color: #fff; }

/* restaurant page */
.com-jpages .jp-rhead { display: flex; gap: 1.25rem; align-items: center; margin: .5rem 0 1rem; }
.com-jpages .jp-rhead__logo { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--jp-line); border-radius: 18px; background: #fff; padding: .4rem; flex: none; }
.com-jpages .jp-rhead__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.com-jpages h1.jp-rhead__title { font-size: 2.3rem; font-weight: 400; color: #2d2d2d; margin: .15rem 0 .25rem; line-height: 1.1; }
.com-jpages .jp-rhead__place { color: var(--jp-muted); display: flex; align-items: center; gap: .35rem; }
.com-jpages .jp-rhead__rating { display: inline-flex; align-items: center; gap: .45rem; margin-top: .35rem; color: var(--jp-text); }
.com-jpages .jp-rhead__rating strong { font-size: 1.1rem; }
.com-jpages .jp-rhead__rating span { color: var(--jp-muted); text-decoration: underline; text-underline-offset: .2em; }
.com-jpages .jp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: .75rem; background: var(--jp-panel); border: 1px solid var(--jp-line); border-radius: var(--jp-radius); }
.com-jpages .jp-actions__form { display: contents; }
.com-jpages .jp-gallery { display: grid; gap: .5rem; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 11rem 11rem; margin-bottom: 1.5rem; border-radius: var(--jp-radius); overflow: hidden; }
.com-jpages .jp-gallery__item { position: relative; display: block; overflow: hidden; background: var(--jp-soft); }
.com-jpages .jp-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.com-jpages .jp-gallery__item:hover img { transform: scale(1.04); }
.com-jpages .jp-gallery__item:first-child { grid-row: span 2; }
.com-jpages .jp-gallery__item.is-extra { display: none; }
.com-jpages .jp-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.6rem; font-weight: 700; }
.com-jpages .jp-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 22rem; }
.com-jpages .jp-gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 22rem; }
.com-jpages .jp-gallery--2 .jp-gallery__item:first-child { grid-row: auto; }
.com-jpages .jp-gallery--3 { grid-template-columns: 2fr 1fr; }
.com-jpages .jp-gallery--4 { grid-template-columns: 2fr 1fr 1fr; }
.com-jpages .jp-gallery--4 .jp-gallery__item:nth-child(4) { grid-column: span 2; }
.com-jpages .jp-rbody { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; }
.com-jpages .jp-rside { display: grid; gap: 1.25rem; position: sticky; top: 1rem; }
.com-jpages .jp-speciality { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 1.1rem; padding: .75rem 1rem; border-radius: 12px; background: #fff4e5; color: #8a4200; }
.com-jpages .jp-speciality span { text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; font-weight: 700; }
.com-jpages .jp-facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem 1rem; list-style: none; padding: 0; margin: 0; }
.com-jpages .jp-facilities li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; }
.com-jpages .jp-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.com-jpages .jp-contact li { display: flex; gap: .55rem; align-items: flex-start; overflow-wrap: anywhere; }
.com-jpages .jp-contact .jp-ico { color: var(--jp-accent); margin-top: .15em; }
.com-jpages .jp-directions { display: inline-block; margin-top: .5rem; font-weight: 600; font-size: .9rem; }
.com-jpages .jp-facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem .9rem; margin: 0; font-size: .93rem; }
.com-jpages .jp-facts dt { font-weight: 600; color: var(--jp-muted); }
.com-jpages .jp-facts dd { margin: 0; }
.com-jpages .jp-rmeta { display: flex; flex-direction: column; gap: .25rem; color: var(--jp-muted); font-size: .85rem; margin: 0; }

/* menu card */
.com-jpages .jp-menucard { display: grid; gap: 1.25rem; }
.com-jpages .jp-menucard__block { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); padding: 1rem 1.25rem; background: #fffdf8; }
.com-jpages .jp-menucard__title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.35rem; margin: 0 0 .5rem; color: #2d2d2d; display: flex; justify-content: space-between; gap: 1rem; }
.com-jpages .jp-menucard__sub { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--jp-accent-dark); margin: 1rem 0 .35rem; font-weight: 700; display: flex; justify-content: space-between; }
.com-jpages .jp-dishes { list-style: none; margin: 0; padding: 0; }
.com-jpages .jp-dish { padding: .35rem 0; }
.com-jpages .jp-dish__line { display: flex; align-items: baseline; gap: .4rem; }
.com-jpages .jp-dish__name { font-weight: 600; }
.com-jpages .jp-dish__dots { flex: 1; border-bottom: 2px dotted #d9d4c7; transform: translateY(-.25em); }
.com-jpages .jp-dish__price { font-weight: 700; color: var(--jp-accent-dark); white-space: nowrap; }
.com-jpages .jp-dish__desc { margin: .1rem 0 0; color: var(--jp-muted); font-size: .9rem; font-style: italic; }

/* opinions */
.com-jpages .jp-scores { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--jp-radius); background: var(--jp-soft2); border: 1px solid #dcebcd; margin-bottom: 1rem; }
.com-jpages .jp-scores__total { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 7rem; }
.com-jpages .jp-scores__total strong { font-size: 2.6rem; line-height: 1; color: #2d2d2d; }
.com-jpages .jp-scores__total span { color: var(--jp-muted); font-size: .85rem; }
.com-jpages .jp-scores__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.com-jpages .jp-scores__bars li { display: grid; grid-template-columns: 9rem 1fr 2.2rem; gap: .6rem; align-items: center; font-size: .9rem; }
.com-jpages .jp-bar { height: .55rem; border-radius: 1rem; background: #e4e1da; overflow: hidden; }
.com-jpages .jp-bar span { display: block; height: 100%; border-radius: inherit; background: var(--jp-star); }
.com-jpages .jp-reviews { list-style: none; margin: 0; padding: 0; }
.com-jpages .jp-review { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--jp-line); }
.com-jpages .jp-avatar { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #dff0fb; color: #1d5f8a; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.com-jpages .jp-review__body { flex: 1; min-width: 0; }
.com-jpages .jp-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.com-jpages .jp-review__head h3 { margin: 0; font-size: 1.08rem; font-weight: 700; }
.com-jpages .jp-review__meta { color: var(--jp-muted); font-size: .85rem; margin: .1rem 0 .4rem; }
.com-jpages .jp-review p { margin: 0 0 .4rem; line-height: 1.55; }
.com-jpages .jp-review__marks { display: flex; flex-wrap: wrap; gap: .3rem .9rem; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--jp-muted); }
.com-jpages .jp-review__marks b { color: var(--jp-text); }
.com-jpages .jp-formbox { margin-top: 1.5rem; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); padding: 1.1rem 1.25rem 1.25rem; background: #fff; scroll-margin-top: 1rem; }
.com-jpages .jp-formbox--booking { background: linear-gradient(to bottom, var(--jp-soft2), #fff 5rem); border-top: 4px solid var(--jp-accent); }
.com-jpages .jp-formbox__title { font-size: 1.25rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; color: #2d2d2d; }
.com-jpages .jp-formbox__help { color: var(--jp-muted); font-size: .92rem; }
.com-jpages .jp-form .form-label { font-weight: 600; margin: .6rem 0 .25rem; }
.com-jpages .jp-form .form-control { border-radius: 10px; }
.com-jpages .jp-form .jp-btn { margin-top: 1rem; }
.com-jpages .jp-form--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.com-jpages .jp-span2 { grid-column: span 2; } .com-jpages .jp-span3 { grid-column: 1 / -1; }
.com-jpages .jp-rate { border: 0; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem 1.5rem; }
.com-jpages .jp-rate__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.com-jpages .jp-rate__label { font-weight: 600; }
.com-jpages .jp-rate__stars { display: inline-flex; flex-direction: row-reverse; }
.com-jpages .jp-rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.com-jpages .jp-rate__stars label { font-size: 1.6rem; line-height: 1; padding: 0 .08rem; color: #e4e1da; cursor: pointer; }
.com-jpages .jp-rate__stars input:checked ~ label, .com-jpages .jp-rate__stars label:hover, .com-jpages .jp-rate__stars label:hover ~ label { color: var(--jp-star); }
.com-jpages .jp-rate__stars input:focus-visible + label { outline: 2px solid var(--jp-accent); outline-offset: 2px; border-radius: 4px; }

/* lightbox */
.jp-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.jp-lightbox::backdrop { background: rgba(15, 15, 12, .88); }
.jp-lightbox figure { margin: 0; text-align: center; }
.jp-lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; display: block; margin: 0 auto; }
.jp-lightbox figcaption { color: #fff; margin-top: .5rem; font: 15px Arial, Helvetica, sans-serif; }
.jp-lightbox__close, .jp-lightbox__nav { position: fixed; border: 0; border-radius: 50%; width: 2.8rem; height: 2.8rem; background: rgba(255, 255, 255, .92); color: #2d2d2d; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.jp-lightbox__close { top: 1rem; right: 1rem; }
.jp-lightbox__nav { top: 50%; transform: translateY(-50%); }
.jp-lightbox__nav--prev { left: 1rem; } .jp-lightbox__nav--next { right: 1rem; }
.jp-lightbox.is-single .jp-lightbox__nav { display: none; }
.jp-lightbox .jp-ico { width: 1.3rem; height: 1.3rem; }

/* surveys page, events, Mi Guía */
.com-jpages .jp-surveylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.com-jpages .jp-surveycard { display: grid; grid-template-columns: 9rem 1fr; gap: 1.1rem; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); overflow: hidden; background: #fff; }
.com-jpages .jp-surveycard__img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 8rem; }
.com-jpages .jp-surveycard__body { padding: .9rem 1rem .9rem 0; }
.com-jpages .jp-surveycard__rest { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.com-jpages .jp-surveycard__title { font-size: 1.2rem; margin: .15rem 0; }
.com-jpages .jp-surveycard__title a { color: #2d2d2d; }
.com-jpages .jp-surveycard__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--jp-muted); font-size: .85rem; }
.com-jpages .jp-surveycard p { margin: .4rem 0 0; }
.com-jpages .jp-evtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.com-jpages .jp-evtype { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); overflow: hidden; background: #fff; }
.com-jpages .jp-evtype__head { min-height: 8rem; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; background: #7c3aed center / cover; color: #fff; position: relative; isolation: isolate; }
.com-jpages .jp-evtype__head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .05) 75%); }
.com-jpages .jp-evtype__head h2 { color: #fff; margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.45rem; }
.com-jpages .jp-evtype__desc, .com-jpages .jp-evlist { padding: 0 1rem; }
.com-jpages .jp-evlist { list-style: none; margin: .75rem 0; display: grid; gap: .6rem; }
.com-jpages .jp-evlist--side { padding: 0; }
.com-jpages .jp-evdate { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: #7c3aed; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.com-jpages .jp-evrest { display: block; font-size: .9rem; }
.com-jpages .jp-evdesc { font-size: .9rem; color: #4a4a40; }
.com-jpages .jp-favs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9rem; }
.com-jpages .jp-fav { display: grid; grid-template-columns: 6rem 1fr auto; gap: .9rem; align-items: center; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); background: #fff; padding: .5rem; }
.com-jpages .jp-fav__img img { width: 6rem; height: 5rem; object-fit: cover; border-radius: 10px; display: block; }
.com-jpages .jp-fav__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.com-jpages .jp-fav__title { font-weight: 700; color: #2d2d2d; }
.com-jpages .jp-fav__meta, .com-jpages .jp-fav__phone { font-size: .85rem; color: var(--jp-muted); }
.com-jpages .jp-guidebook__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.com-jpages .jp-bookings { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.com-jpages .jp-booking { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .6rem .8rem; border: 1px solid var(--jp-line); border-radius: 10px; background: #fff; }
.com-jpages .jp-booking__date { font-weight: 700; }
.com-jpages .jp-booking__meta { color: var(--jp-muted); font-size: .85rem; }
.com-jpages .jp-status { margin-left: auto; padding: .1rem .55rem; border-radius: 1rem; font-size: .75rem; font-weight: 700; background: #fef3c7; color: #8a5a00; }
.com-jpages .jp-status--1 { background: #e6f4d7; color: #3c6c18; }
.com-jpages .jp-status--2 { background: #ffe4e6; color: #be123c; }

/* tablets and phones */
@media (max-width: 1199.98px) {
    .com-jpages .jp-home__grid { grid-template-columns: minmax(0, 1fr); }
    .com-jpages .jp-home__side { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .com-jpages .jp-rbody { grid-template-columns: minmax(0, 1fr) 18rem; gap: 1.5rem; }
}
@media (max-width: 991.98px) {
    .com-jpages .jp-rbody { grid-template-columns: minmax(0, 1fr); }
    .com-jpages .jp-rside { position: static; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .com-jpages .jp-advanced__grid { grid-template-columns: 1fr 1fr; }
    .com-jpages .jp-advanced__fac { grid-column: 1 / -1; }
    .com-jpages .jp-guidebook__cols { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 767.98px) {
    .com-jpages .jp-searchbar { flex-direction: column; }
    .com-jpages .jp-searchbar > *, .com-jpages .jp-searchbar .form-control, .com-jpages .jp-searchbar .form-select, .com-jpages .jp-searchbar input, .com-jpages .jp-searchbar select { flex: 0 0 auto !important; width: 100%; }
    .com-jpages .jp-slider { aspect-ratio: 4 / 3; }
    .com-jpages .jp-slide__title { font-size: 1.6rem; }
    .com-jpages h1.jp-rhead__title, .com-jpages h1.jp-hero__title { font-size: 1.75rem; }
    .com-jpages .jp-rhead { align-items: flex-start; }
    .com-jpages .jp-rhead__logo { width: 64px; height: 64px; border-radius: 14px; }
    .com-jpages .jp-gallery, .com-jpages .jp-gallery--2, .com-jpages .jp-gallery--3, .com-jpages .jp-gallery--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 13rem 7rem; }
    .com-jpages .jp-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
    .com-jpages .jp-gallery__item:nth-child(n+4) { display: none; }
    .com-jpages .jp-gallery--1 { grid-template-rows: 15rem; }
    .com-jpages .jp-gallery--2 { grid-template-rows: 13rem; }
    .com-jpages .jp-gallery--2 .jp-gallery__item:first-child { grid-column: auto; }
    .com-jpages .jp-scores { grid-template-columns: 1fr; }
    .com-jpages .jp-scores__bars li { grid-template-columns: 7.5rem 1fr 2rem; }
    .com-jpages .jp-form--grid { grid-template-columns: 1fr 1fr; }
    .com-jpages .jp-form--grid > div:first-child { grid-column: 1 / -1; }
    .com-jpages .jp-span2 { grid-column: 1 / -1; }
    .com-jpages .jp-hide-sm { display: none; }
    .com-jpages .jp-surveycard { grid-template-columns: 6rem 1fr; }
    .com-jpages .jp-advanced__grid { grid-template-columns: 1fr; }
    .com-jpages .jp-fav { grid-template-columns: 4.5rem 1fr auto; }
    .com-jpages .jp-fav__img img { width: 4.5rem; height: 4rem; }
}

/* print: the useful part only */
@media print {
    .com-jpages .jp-actions, .com-jpages .jp-formbox, .com-jpages .jp-mapbox, .com-jpages .jp-map, .com-jpages .jp-directions,
    .com-jpages .jp-alternatives, .com-jpages .jp-gallery__item:nth-child(n+2), .jp-lightbox { display: none !important; }
    .com-jpages .jp-rbody { grid-template-columns: 1fr 16rem; }
    .com-jpages .jp-rside { position: static; }
    .com-jpages .jp-gallery { grid-template-columns: 1fr; grid-template-rows: 14rem; }
}

/* The boxes of the side (My Guide, best rated, latest opinions) are modules since 6.1.0 */
.com-jpages .jp-home__grid--full { grid-template-columns: minmax(0, 1fr); }

/* Share: a small panel under the button (no browser pop-up) */
.jp-share { position: relative; display: inline-flex; }
.jp-share__panel { position: absolute; z-index: 1040; top: calc(100% + .5rem); right: 0; width: min(20rem, calc(100vw - 2rem)); display: block; padding: .9rem 1rem 1rem; background: #fff; color: var(--jp-text, #2d2d2d); border-radius: 14px; box-shadow: 0 12px 32px rgba(30, 20, 10, .18), 0 0 0 1px rgba(0, 0, 0, .05); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .16s ease, transform .16s ease; text-align: left; }
.jp-share__panel.is-up { top: auto; bottom: calc(100% + .5rem); transform-origin: bottom right; transform: translateY(6px) scale(.98); }
.jp-share__panel.is-open { opacity: 1; transform: none; }
.jp-share__panel::before { content: ""; position: absolute; top: -6px; right: 1.4rem; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(0, 0, 0, .05); }
.jp-share__panel.is-up::before { top: auto; bottom: -6px; box-shadow: 1px 1px 0 rgba(0, 0, 0, .05); }
.jp-share__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .95rem; margin-bottom: .75rem; }
.jp-share__close { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #8a877f; padding: 0 .2rem; cursor: pointer; border-radius: 6px; }
.jp-share__close:hover { color: #2d2d2d; background: #f3f1ed; }
.jp-share__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; margin-bottom: .85rem; }
.com-jpages .jp-share__item { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .35rem .1rem; border-radius: 10px; font-size: .7rem; color: #55524b; text-decoration: none; }
.com-jpages .jp-share__item:hover, .com-jpages .jp-share__item:focus-visible { background: #f6f4f0; color: #2d2d2d; text-decoration: none; }
.jp-share__ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: #fff; transition: transform .15s; }
.jp-share__item:hover .jp-share__ico { transform: scale(1.08); }
.jp-share__item--whatsapp .jp-share__ico { background: #25d366; }
.jp-share__item--facebook .jp-share__ico { background: #1877f2; }
.jp-share__item--x .jp-share__ico { background: #111; }
.jp-share__item--telegram .jp-share__ico { background: #229ed9; }
.jp-share__item--mail .jp-share__ico { background: var(--jp-accent, #2a7f8f); }
.jp-share__copy { display: flex; gap: .4rem; padding: .3rem; background: #f6f4f0; border-radius: 10px; }
.jp-share__copy input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: .8rem; color: #55524b; padding: .3rem .4rem; outline: none; }
.jp-share__copybtn { flex: none; border: 0; border-radius: 8px; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; background: var(--jp-accent, #2a7f8f); color: #fff; cursor: pointer; transition: background .15s; }
.jp-share__copybtn.is-done { background: #1f8f4e; }
@media print { .jp-share__panel { display: none !important; } }
