/* Consent UI for seaworld.gr. Acceptance and rejection are given equal weight. */
#seaworld-consent [hidden], .sw-map-placeholder[hidden], [data-sw-consent-open][hidden], [data-sw-map-allow][hidden] { display: none !important; }

.sw-consent-banner, .sw-consent-dialog, .sw-consent-storage-note { color: var(--ink); background: var(--foam); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: Arial, Helvetica, sans-serif; }

/* Centred card. inset + margin:auto with a content-sized height keeps it centred on any viewport.
   The page dimmer is the card's own spread shadow: a negative z-index pseudo-element would paint
   over the card's background instead of behind it. */
.sw-consent-banner { position: fixed; inset: 0; z-index: 1000; margin: auto; width: calc(100% - 40px); max-width: 560px; height: fit-content; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; border-radius: 4px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; box-shadow: var(--shadow), 0 0 0 100vmax rgba(5, 44, 61, 0.72); }
.sw-consent-label { display: block; color: var(--ocean); text-transform: uppercase; font-size: 0.86rem; font-weight: 900; margin-bottom: 12px; }
.sw-consent-banner h2 { color: var(--deep); font-size: clamp(1.65rem, 3.4vw, 2.05rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 14px; }
.sw-consent-banner p, .sw-consent-dialog p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--ink); }
.sw-consent-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.sw-consent-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; order: 2; }
.sw-consent-links a, .sw-consent-dialog a { color: var(--ocean); font-size: 0.86rem; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.sw-consent-links a:hover, .sw-consent-dialog a:hover { color: var(--deep); }

/* Reject and Accept are styled identically; Settings is the secondary action. */
.sw-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sw-consent-choice { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; text-align: center; padding: 12px 18px; border: 1px solid var(--deep); border-radius: 4px; background: var(--deep); color: var(--foam); font: 900 0.95rem/1.3 Arial, Helvetica, sans-serif; cursor: pointer; text-decoration: none; }
.sw-consent-choice:hover, .sw-consent-choice:focus { color: var(--foam); background: var(--ocean); border-color: var(--ocean); }
.sw-consent-actions .sw-consent-settings-link { grid-column: 1 / -1; grid-row: 2; min-height: 38px; padding: 8px 14px; color: var(--ocean); background: transparent; border-color: transparent; font-size: 0.86rem; text-decoration: underline; text-underline-offset: 4px; }
.sw-consent-actions .sw-consent-settings-link:hover, .sw-consent-actions .sw-consent-settings-link:focus { color: var(--deep); background: transparent; border-color: var(--line); text-decoration: none; }
#seaworld-consent button:focus-visible, #seaworld-consent a:focus-visible, #seaworld-consent input:focus-visible, .sw-map-placeholder button:focus-visible, .footer-consent-link:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }

.sw-consent-dialog { position: fixed; inset: 0; margin: auto; width: calc(100% - 32px); max-width: 600px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border-radius: 4px; }
.sw-consent-dialog::backdrop { background: rgba(5, 44, 61, 0.72); }
.sw-consent-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sw-consent-dialog-heading h2 { margin: 0; font-size: 1.65rem; line-height: 1.04; letter-spacing: -0.02em; color: var(--deep); }
.sw-consent-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; line-height: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--deep); cursor: pointer; }
.sw-consent-close:hover { color: var(--foam); background: var(--deep); border-color: var(--deep); }
.sw-consent-close svg { display: block; width: 24px; height: 24px; }
.sw-consent-category { border: 1px solid var(--line); border-radius: 4px; padding: 18px; margin-top: 18px; background: var(--mist); }
.sw-consent-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin: 0 0 10px; }
.sw-consent-category-heading h3, .sw-consent-category-heading > span:first-child { margin: 0; font-size: 1rem; color: var(--deep); font-weight: 900; }
.sw-consent-category-heading h3 + span { font-size: 0.7rem; font-weight: 400; color: var(--muted); }
.sw-consent-category-heading input { appearance: auto; accent-color: var(--ocean); width: 24px; height: 24px; flex: 0 0 24px; margin: 0; cursor: pointer; }
.sw-consent-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.sw-consent-save { grid-column: 1 / -1; }
.sw-consent-dialog .sw-consent-detail { font-size: 0.76rem; margin-top: 16px; color: var(--muted); }
.sw-consent-storage-note { position: fixed; z-index: 1001; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: 520px; width: calc(100% - 32px); padding: 12px 18px; border-radius: 4px; font-size: 0.82rem; }

/* Sits inside .seaworld-map, which is already position: relative. */
.sw-map-placeholder { position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; color: var(--ink); background: linear-gradient(180deg, #cfe7ee 0%, #b9dce7 100%); }
.sw-map-placeholder-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border: 1px solid rgba(7, 24, 35, 0.24); border-radius: 50%; color: var(--ocean); }
.sw-map-placeholder-icon svg { display: block; width: 28px; height: 28px; }
.sw-map-placeholder h2 { margin: 0 0 14px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: var(--deep); }
.sw-map-placeholder p { max-width: 560px; margin: 0; font-size: 0.88rem; line-height: 1.65; color: var(--muted); }
.sw-map-placeholder-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 14px; }
.sw-map-placeholder .sw-map-placeholder-note { font-size: 0.74rem; color: var(--muted); }

/* Footer entry point, styled to match the neighbouring legal links on the dark footer. */
.footer-consent-link { appearance: none; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, 0.82); font: 800 0.84rem/1.4 Arial, Helvetica, sans-serif; cursor: pointer; }
.footer-consent-link:hover, .footer-consent-link:focus { color: var(--foam); text-decoration: underline; text-underline-offset: 4px; }
.legal-consent-control .footer-consent-link { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 18px; border-radius: 4px; color: var(--foam); background: var(--reef); font-size: 1rem; font-weight: 900; text-decoration: none; }
.legal-consent-control .footer-consent-link:hover, .legal-consent-control .footer-consent-link:focus { color: var(--foam); background: var(--ocean); text-decoration: none; }

@media (max-width: 760px) {
  .sw-consent-banner { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 22px 20px; }
  .sw-consent-banner h2 { font-size: 1.25rem; }
  .sw-consent-dialog { padding: 20px; }
  .sw-consent-dialog-heading h2 { font-size: 1.3rem; }
  .sw-consent-category { padding: 14px; }
  .sw-map-placeholder { padding: 28px 18px; }
}

@media (prefers-reduced-motion: reduce) { #seaworld-consent * { scroll-behavior: auto; transition: none; } }
