/* Custom styles cleared for vanilla Bootstrap reset */
body {
  padding-bottom: 20px;
}

:root {
  --focus-ring-color: #0d6efd;
  --focus-ring-shadow: rgba(13, 110, 253, 0.35);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem var(--focus-ring-shadow);
}

.backoffice-quick-menu.sticky-top {
  top: 56px;
  z-index: 1020;
}

.backoffice-quick-menu .btn {
  white-space: nowrap;
}

.top-nav-item {
  position: relative;
}

.top-nav-item .nav-link {
  white-space: nowrap;
}

.top-nav-search-form {
  align-items: center;
}

.top-nav-search-input {
  height: 30px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.top-nav-search-button {
  min-width: 72px;
}

@media (min-width: 992px) {
  .auth-anon-link {
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.home-category-nav {
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  padding: 0.45rem 0;
}

.home-category-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-category-nav-list::-webkit-scrollbar {
  height: 6px;
}

.home-category-nav-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.home-category-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-category-nav-item {
  flex: 0 0 auto;
}

.home-category-nav-link:hover,
.home-category-nav-link:focus-visible {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #eef4ff;
}

.home-hero {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #0c1e33;
  box-shadow: 0 0.75rem 1.5rem rgba(12, 30, 51, 0.22);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
  background: linear-gradient(
    120deg,
    rgba(26, 57, 99, 0.12) 0%,
    rgba(33, 99, 160, 0.22) 38%,
    rgba(255, 179, 71, 0.2) 70%,
    rgba(18, 24, 38, 0.34) 100%
  );
  mix-blend-mode: screen;
  animation: homeHeroGradientShift 14s ease-in-out infinite alternate;
}

.home-hero-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  will-change: transform;
  transform-origin: center center;
  transform: scale(1.02);
  filter: saturate(1.04);
  animation: homeHeroZoom 18s ease-in-out infinite alternate;
}

.home-hero-glow {
  position: absolute;
  inset: -25% -15% auto;
  height: 85%;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
  background: radial-gradient(circle at 70% 25%, rgba(255, 210, 120, 0.26) 0%, rgba(255, 210, 120, 0) 62%);
  animation: homeHeroGlowPulse 8s ease-in-out infinite;
}

.home-hero-overlay {
  position: absolute;
  left: 1.75rem;
  bottom: 1.5rem;
  z-index: 2;
  max-width: min(65%, 760px);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.home-hero-title {
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.home-hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  font-weight: 500;
}

.home-hero-weather {
  font-size: 0.9rem;
  opacity: 0.95;
}

.home-hero-line {
  opacity: 0;
  transform: translateY(18px);
  animation: homeHeroTextIn 900ms cubic-bezier(0.2, 0.74, 0.27, 1) forwards;
}

.home-hero-line-1 {
  animation-delay: 120ms;
}

.home-hero-line-2 {
  animation-delay: 280ms;
}

.home-hero-line-3 {
  animation-delay: 440ms;
}

@keyframes homeHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeHeroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes homeHeroGlowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.85;
    transform: translate3d(-2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes homeHeroGradientShift {
  from {
    opacity: 0.55;
    transform: translateX(-2%);
  }

  to {
    opacity: 0.82;
    transform: translateX(2%);
  }
}

@media (max-width: 767.98px) {
  .home-hero-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .home-hero-image {
    animation-duration: 24s;
  }

  .home-hero-glow {
    animation-duration: 12s;
  }
}

@media (max-width: 575.98px) {
  .home-hero::before {
    animation: none;
    opacity: 0.62;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .home-hero-image,
  .home-hero-glow,
  .home-hero-line {
    animation: none !important;
    transform: none !important;
  }

  .home-hero-line {
    opacity: 1;
  }
}

.banner-slot {
  width: 100%;
}

.banner-slot__card {
  width: 100%;
}

.banner-slot__image {
  width: 100%;
  object-fit: cover;
}

.banner-slot__adsense-unit-wrapper,
.banner-slot__adsense-anchor {
  width: 100%;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

.banner-slot__adsense-unit-wrapper {
  border: 1px solid #e9ecef;
  padding: 0.25rem;
}

.banner-slot__adsense-unit {
  width: 100%;
}

.banner-slot__adsense-anchor {
  border: 1px dashed #ced4da;
}

.banner-slot__placeholder {
  width: 100%;
  border: 1px dashed #ced4da;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
  color: #6c757d;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.banner-slot--hero .banner-slot__placeholder {
  min-height: 300px;
}

.banner-slot--hero .banner-slot__adsense-unit-wrapper,
.banner-slot--hero .banner-slot__adsense-anchor {
  min-height: 300px;
}

.banner-slot--hero .banner-slot__image {
  max-height: 320px;
}

.banner-slot--side .banner-slot__placeholder {
  min-height: 260px;
}

.banner-slot--side .banner-slot__adsense-unit-wrapper,
.banner-slot--side .banner-slot__adsense-anchor {
  min-height: 260px;
}

.banner-slot--side .banner-slot__image {
  max-height: 280px;
}

.banner-slot--mid .banner-slot__placeholder {
  min-height: 180px;
}

.banner-slot--mid .banner-slot__adsense-unit-wrapper,
.banner-slot--mid .banner-slot__adsense-anchor {
  min-height: 180px;
}

.banner-slot--mid .banner-slot__image {
  max-height: 220px;
}

.banner-slot--standard .banner-slot__placeholder {
  min-height: 140px;
}

.banner-slot--standard .banner-slot__adsense-unit-wrapper,
.banner-slot--standard .banner-slot__adsense-anchor {
  min-height: 140px;
}

.banner-slot--standard .banner-slot__image {
  max-height: 180px;
}

.social-share {
  border-color: #dee2e6 !important;
  background-color: #f8f9fa;
}

.social-share .social-share-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.social-share .social-share-feedback {
  min-height: 1.25rem;
}

@media (max-width: 575.98px) {
  .social-share .social-share-buttons .btn {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

.identity-external-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.identity-external-panel {
  padding: 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06);
}

.identity-external-auth {
  margin-bottom: 1rem;
}

.identity-external-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.identity-external-title {
  margin-bottom: 0.35rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
}

.identity-external-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
}

.identity-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.identity-divider::before,
.identity-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(209, 213, 219, 0), rgba(209, 213, 219, 1));
}

.identity-divider::after {
  background: linear-gradient(90deg, rgba(209, 213, 219, 1), rgba(209, 213, 219, 0));
}

.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid #d8e0ee;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0.75rem 1.5rem rgba(37, 99, 235, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.google-auth-button:hover {
  border-color: #bfd2ff;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1rem 2rem rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.google-auth-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.google-auth-button__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.google-auth-button__icon--fallback {
  background: #eaf2ff;
  color: #2563eb;
  font-size: 1rem;
}

.google-auth-button__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.google-auth-button--placeholder {
  cursor: default;
  pointer-events: none;
}

.google-identity-widget {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.google-identity-widget.is-busy {
  opacity: 0.74;
}

.google-identity-widget.is-busy .google-identity-button,
.google-identity-widget.is-busy .google-identity-placeholder {
  pointer-events: none;
}

.google-identity-placeholder {
  transition: opacity 180ms ease;
}

.google-identity-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-identity-button > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.identity-external-error {
  padding: 0.8rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.95rem;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .identity-external-panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .google-auth-button {
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
  }

  .google-identity-widget {
    gap: 0.7rem;
  }
}
