/* ==========================================================================
   My Unique Travel – theme tokens (the ONLY place brand colours are defined)
   Loaded before style.css on the website, admin panel and error pages.
   Settings → Appearance → Primary / Secondary colour override --brand-primary and
   --brand-primary-dark at runtime (inline <style> in the layouts).

   Logo colours (sampled from public/brand/logo.png):
     sun orange #EA6026 · black #1E1E1E · tagline grey #8A8A8A

   Contrast (WCAG AA, 4.5:1 for text):
     white on --brand-primary       3.4:1  → large graphics/icons only, never button text
     white on --brand-primary-dark  5.3:1  → all buttons / bars with white text
     --brand-primary-dark on --brand-primary-light 4.6:1 → chips, soft badges
     --brand-dark on --brand-primary-light 14.4:1
     --brand-muted on white 3.5:1 → decorative / large text only; body copy uses --brand-text-muted
   ========================================================================== */
:root {
  --brand-primary: #EA6026;
  --brand-primary-dark: #B8470F;
  --brand-primary-deep: color-mix(in srgb, var(--brand-primary-dark) 80%, #000);
  --brand-primary-light: #FDEBDD;
  --brand-dark: #1E1E1E;
  --brand-muted: #8A8A8A;
  --brand-text: #4D4D4D;
  --brand-text-muted: #666666;
  --brand-primary-on-dark: #F6A173; /* orange text/icons on --brand-dark: 8.2:1 */
  --brand-surface: #FAF6F3;
  --brand-border: #ECE6E2;
  --brand-ring: color-mix(in srgb, var(--brand-primary) 45%, transparent);

  /* Third-party brand colours that stay as they are */
  --whatsapp: #25D366;
  --whatsapp-dark: #137A3C;   /* white text on it: 5.4:1 */

  /* Aliases used across style.css / admin.css */
  --primary: var(--brand-primary);
  --primary-dark: var(--brand-primary-dark);
  --primary-deep: var(--brand-primary-deep);
  --primary-soft: var(--brand-primary-light);
  --dark: var(--brand-dark);
  --text: var(--brand-text);
  --muted: var(--brand-text-muted);
  --light: var(--brand-surface);
  --footer: var(--brand-dark);
  --border: var(--brand-border);
  --fallback: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 55%, var(--brand-dark) 100%);

  /* Bootstrap 5.3 variables, so stray .text-primary / .link / .form-check use the brand */
  --bs-primary: var(--brand-primary-dark);
  --bs-primary-rgb: 184, 71, 15;
  --bs-link-color: var(--brand-primary-dark);
  --bs-link-color-rgb: 184, 71, 15;
  --bs-link-hover-color: var(--brand-primary-deep);
  --bs-link-hover-color-rgb: 147, 56, 11;
  --bs-focus-ring-color: var(--brand-ring);
  --bs-primary-bg-subtle: var(--brand-primary-light);
  --bs-primary-text-emphasis: var(--brand-primary-dark);
  --bs-primary-border-subtle: color-mix(in srgb, var(--brand-primary) 35%, #fff);
}

/* Bootstrap components that hard-code their own blue */
.form-check-input:checked { background-color: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }
.form-check-input:focus, .form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .2rem var(--brand-ring); border-color: var(--brand-primary); }
.form-range::-webkit-slider-thumb { background-color: var(--brand-primary-dark); }
.form-range::-moz-range-thumb { background-color: var(--brand-primary-dark); }
.btn-primary {
  --bs-btn-bg: var(--brand-primary-dark); --bs-btn-border-color: var(--brand-primary-dark);
  --bs-btn-hover-bg: var(--brand-primary-deep); --bs-btn-hover-border-color: var(--brand-primary-deep);
  --bs-btn-active-bg: var(--brand-primary-deep); --bs-btn-active-border-color: var(--brand-primary-deep);
  --bs-btn-disabled-bg: var(--brand-primary-dark); --bs-btn-disabled-border-color: var(--brand-primary-dark);
  --bs-btn-focus-shadow-rgb: 234, 96, 38;
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-primary-dark); --bs-btn-border-color: var(--brand-primary-dark);
  --bs-btn-hover-bg: var(--brand-primary-dark); --bs-btn-hover-border-color: var(--brand-primary-dark);
  --bs-btn-active-bg: var(--brand-primary-deep); --bs-btn-active-border-color: var(--brand-primary-deep);
  --bs-btn-focus-shadow-rgb: 234, 96, 38;
}
.pagination {
  --bs-pagination-color: var(--brand-primary-dark);
  --bs-pagination-hover-color: var(--brand-primary-deep);
  --bs-pagination-focus-color: var(--brand-primary-deep);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem var(--brand-ring);
  --bs-pagination-active-bg: var(--brand-primary-dark);
  --bs-pagination-active-border-color: var(--brand-primary-dark);
}
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand-primary-dark); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--brand-primary-dark); }
.list-group { --bs-list-group-active-bg: var(--brand-primary-dark); --bs-list-group-active-border-color: var(--brand-primary-dark); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--brand-primary-dark); }
.accordion { --bs-accordion-active-bg: var(--brand-primary-light); --bs-accordion-active-color: var(--brand-dark); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--brand-ring); }
::selection { background: var(--brand-primary-light); color: var(--brand-dark); }

/* Photo Credits Badge Overlay */
.banner-photo-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  color: #f1f5f9;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-photo-credit a {
  color: #f8fafc;
  text-decoration: underline;
}
.banner-photo-credit a:hover {
  color: var(--brand-primary-light);
}

.gallery-photo-credit {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  color: #f1f5f9;
  font-size: 0.7rem;
  line-height: 1.2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 5;
  pointer-events: auto;
}
.gallery-photo-credit a {
  color: #f8fafc;
  text-decoration: underline;
}
.gallery-photo-credit a:hover {
  color: var(--brand-primary-light);
}

.footer-credit-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  transition: color 0.15s ease-in-out;
}
.footer-credit-link:hover {
  color: #ffffff;
}

