/* House of Light: one custom arrow, shared by every screen size. */
:root {
  --hol-arrow-bud: #F46D5E;
}

body[data-location=jurmala],
.restaurant-card[data-restaurant=jurmala] {
  --hol-arrow-bud: #08778F;
}

.arrow.hol-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 28px;
  margin: 0;
  color: inherit;
  font-size: 0;
  font-family: inherit;
  line-height: 0;
  letter-spacing: 0;
  vertical-align: middle;
  pointer-events: none;
}

.hol-arrow > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  transform-origin: 50% 50%;
}

.hol-arrow-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.hol-arrow-bud {
  fill: var(--hol-arrow-bud);
  stroke: none;
}

.hol-arrow--left > svg { transform: rotate(180deg); }
.hol-arrow--external > svg { transform: rotate(-45deg); }
.hol-arrow--down > svg { transform: rotate(90deg); }

/* Inline links use the same drawing at a quieter, fixed size. */
.contact-socials .hol-arrow,
.contact-details .hol-arrow,
.footer-main > div > a .hol-arrow,
.restaurant-links .hol-arrow,
.menu-source-link .hol-arrow,
.banquet-consent .hol-arrow,
.legal-content .hol-arrow,
.card-footer .hol-arrow {
  width: 25px;
  height: 23px;
}

.hol-news-link .hol-arrow { width: 30px; height: 27px; }
.menu-caption .hol-arrow { width: 29px; height: 26px; }
.wine-pages .arrow.hol-arrow { width: 27px; height: 24px; font-size: 0; }
.restaurant-home-link .hol-arrow { width: 28px; height: 25px; }

/* Override the previous mobile rules that hid the reservation arrows. */
.header-actions > .button .hol-arrow,
.restaurant-header-tools .button .hol-arrow {
  display: inline-flex;
  width: 24px;
  height: 23px;
}

.header-actions > .button,
.restaurant-header-tools .button { gap: 8px; }

.restaurant-header { flex-wrap: wrap; }
.restaurant-header-tools {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
  margin-left: auto;
}

.restaurant-home-link { flex-shrink: 0; }
.header-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }

/* Circular frames echo the restaurant seals; dimensions do not change on touch. */
.round-arrow,
.round-arrow:hover,
.gallery-item .expand {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
  font-size: 0;
  line-height: 0;
}

.round-arrow::before,
.gallery-item .expand::before,
.lightbox-prev::before,
.lightbox-next::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}

.gallery-item .expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.round-arrow .hol-arrow,
.gallery-item .expand .hol-arrow { width: 32px; height: 28px; }

.lightbox-prev,
.lightbox-next {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0;
  line-height: 0;
}

.lightbox-prev .hol-arrow,
.lightbox-next .hol-arrow { width: 34px; height: 29px; }

.hol-close {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: inherit;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.hol-close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.lightbox-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }

/* Keep the existing native disclosure behavior, replacing only its marker. */
.nav-drop > summary,
.source-content > summary { list-style: none; }
.nav-drop > summary::marker,
.source-content > summary::marker { content: ''; }
.nav-drop > summary::-webkit-details-marker,
.source-content > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: none; display: none; }
.source-content > summary { display: flex; align-items: center; gap: 18px; min-height: 44px; }
.source-content > summary .hol-arrow { margin-left: auto; }
.nav-drop > summary .hol-arrow--down { width: 25px; height: 24px; }
.nav-drop[open] > summary .hol-arrow--down > svg,
.source-content[open] > summary .hol-arrow--down > svg { transform: rotate(-90deg); }

/* Native select semantics stay intact; its closed-state icon matches the site. */
.banquet-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cg transform='translate(18 18) rotate(90) translate(-18 -12)'%3E%3Cpath d='M4 12h27m-7-7 7 7-7 7' fill='none' stroke='%232F4A2E' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4' cy='12' r='1.5' fill='%23F46D5E'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 28px 28px;
}

body[data-location=jurmala] .banquet-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cg transform='translate(18 18) rotate(90) translate(-18 -12)'%3E%3Cpath d='M4 12h27m-7-7 7 7-7 7' fill='none' stroke='%23123B4B' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4' cy='12' r='1.5' fill='%2308778F'/%3E%3C/g%3E%3C/svg%3E");
}

body[data-location=jurmala] .button.filled:not(.light),
.restaurant-card[data-restaurant=jurmala] .restaurant-reservation,
body[data-location=jurmala] .dark-section,
body[data-location=jurmala] .site-footer {
  --hol-arrow-bud: #123B4B;
}

.round-arrow:focus-visible,
.gallery-item:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible,
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.gallery-item:focus-visible .expand { box-shadow: 0 0 0 3px var(--paper); }
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible,
.lightbox-close:focus-visible { outline-color: var(--cream); }

@media (hover: hover) and (pointer: fine) {
  .hol-arrow > svg { transition: transform .2s ease; }
  .round-arrow,
  .gallery-item .expand,
  .lightbox-prev,
  .lightbox-next { transition: background .2s ease, color .2s ease, border-color .2s ease; }
  .round-arrow:hover,
  .gallery-item:hover .expand,
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
  }
  body[data-location=jurmala] .button.filled:hover {
    --hol-arrow-bud: #F5FCFD;
  }
  .button:hover .hol-arrow--right > svg,
  .hol-news-link:hover .hol-arrow--right > svg { transform: translateX(2px); }
  .button:hover .hol-arrow--external > svg,
  .hol-news-link:hover .hol-arrow--external > svg { transform: translate(1px, -1px) rotate(-45deg); }
}

@media (hover: none) {
  .gallery-item:hover img { transform: none; }
  .button:hover { transform: none; }
}

@media (max-width: 420px) {
  .restaurant-header { gap: 4px 12px; }
  .restaurant-header-tools { gap: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
  .hol-arrow > svg,
  .round-arrow,
  .gallery-item .expand,
  .lightbox-prev,
  .lightbox-next { transition: none; }
  .button:hover .hol-arrow--right > svg,
  .hol-news-link:hover .hol-arrow--right > svg { transform: none; }
  .button:hover .hol-arrow--external > svg,
  .hol-news-link:hover .hol-arrow--external > svg { transform: rotate(-45deg); }
}
