/* Center everything, mobile-first */
.auth-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bs-body-bg, #f8f9fa);
}

/* Keep it nicely sized and centered */
.auth-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Smaller logo on mobile */
.auth-page .centered-logo {
  width: clamp(84px, 16vw, 128px);
  height: auto;
}

/* Rounded, pretty card */
.auth-card {
  border-radius: 2rem;
  overflow: hidden;
  container-type: inline-size;
  container-name: auth;
}

.auth-card .card-body { border-radius: inherit; }

/* Container-query polish */
@container auth (max-width: 360px) {
  .auth-card .card-body { padding: 1rem 1.25rem; }
  .auth-card .form-control-lg { font-size: 0.95rem; }
  .auth-card .btn { padding-block: .7rem; }
}

@container auth (min-width: 420px) {
  .auth-card .card-body { padding: 1.5rem 1.75rem; }
}

@container auth (min-width: 560px) {
  .auth-card .card-body { padding: 2rem 2.25rem; }
  .auth-card .h4, .auth-card h1, .auth-card .card-title { font-size: 1.35rem; }
}

/* Desktop: slightly smaller inputs */
@media (min-width: 992px) {
  .auth-card .form-control-lg {
    font-size: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}

/* Password eye button */
.password-field { position: relative; }
.password-field .form-control { padding-right: 2.25rem; }

.password-field .password-reveal-btn {
  position: absolute;
  right: .625rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: .25rem;
  line-height: 1;
  background: transparent;
  color: #9aa0a6;
  cursor: pointer;
  transition: color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.password-field .password-reveal-btn:hover,
.password-field .password-reveal-btn:focus,
.password-field .password-reveal-btn:focus-visible,
.password-field .password-reveal-btn:active {
  color: #6c757d;
  outline: none;
  box-shadow: none;
  border-radius: .375rem;
}

.password-field .password-reveal-btn[aria-pressed="true"] {
  color: #343a40;
}
/* ============================================
   Account Settings (scoped)
   ============================================ */

.account-settings {
  /* Tweak these two to change display size */
  --logo-w: 240px;
  --logo-h: 120px;
}

/* Layout around the logo area */
.account-settings .business-logo-wrapper-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* change to center if you want */
}

/* Fixed-size wrapper so the image can be width:100% without blur */
.account-settings .business-logo-wrapper {
  position: relative;
  width: var(--logo-w);
  min-height: var(--logo-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Final logo image (we render a large/medium src but constrain via CSS) */
.account-settings .logo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .5rem;
  /* Avoid CSS scaling tricks that cause blur */
  transform: none !important;
  /* Mild sharpening hint in some browsers (safe no-op in others) */
  image-rendering: -webkit-optimize-contrast;
}

/* "Processing..." placeholder sized to the same box to avoid layout jump */
.account-settings .logo-skeleton {
  width: var(--logo-w);
  height: var(--logo-h);
  background: #f8f9fa;
  border: 1px dashed #cbd5e1;
  border-radius: .5rem;
  color: #6c757d;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-settings .processing-text {
  animation: account-settings-pulse 1.5s infinite;
}

@keyframes account-settings-pulse {
  0% { opacity: 1 }
  50% { opacity: .5 }
  100% { opacity: 1 }
}

/* Three-dots button */
.account-settings .logo-three-dots {
  position: absolute;
  top: 8px !important;
  right: 8px !important;
  cursor: pointer;
  background: rgba(255, 255, 255, .85);
  border-radius: 9999px;
  padding: 4px 6px;
  line-height: 10px;
  z-index: 5;
  user-select: none;
}

/* Delete dropdown */
.account-settings .logo-delete-option {
  position: absolute;
  top: 40px !important;
  right: 8px !important;
  z-index: 10;
}

.account-settings .logo-delete-option .btn {
  padding: .25rem .5rem;
}

/* Fade-out for inline messages (e.g., "Logo deleted") */
.account-settings .logo-delete-message-fade-out {
  opacity: 1;
  transition: opacity 2s ease-out;
}
.account-settings .logo-delete-message-fade-out.fade-out-complete {
  opacity: 0;
}

/* ---------- Optional small-screen tweak ---------- */
@media (max-width: 480px) {
  .account-settings {
    --logo-w: 200px;
    --logo-h: 100px;
  }
}
/* Main Button Styling */
.btn {
  background-color: #6d8c91; /* Base teal color */
  color: #ffffff; /* White text for readability */
  border: none; /* Remove border for a clean look */
  border-radius: 6px; /* Rounded corners for a modern feel */
  padding: 10px 20px; /* Extra padding for a more substantial look */
  font-weight: 600; /* Slightly bold font for readability */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  transition: all 0.3s ease; /* Smooth transition on hover */
}

/* Hover and Active Styles */
.btn:hover, .btn:focus, .btn:active {
  background-color: #3c727e; /* Darker teal for hover/focus */
  color: #ffffff; /* Keep text white */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15); /* Increase shadow on hover */
  transform: translateY(-1px); /* Slight lift effect */
}

/* Secondary Button Styling */
.btn-secondary {
  background-color: #f39e1d; /* Orange color for secondary buttons */
  color: #ffffff; /* White text */
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background-color: #355d65; /* Darker shade for hover/focus */
  color: #ffffff; /* White text */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15); /* Slightly raised shadow */
  transform: translateY(-1px); /* Lift effect */
}

/* Special Button Styling for New Gallery Button */
.btn-primary {
  background-color: #3c727e; /* Darker teal for prominence */
  color: #ffffff; /* White text */
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #355d65; /* Even darker teal for hover */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow for hover */
  transform: translateY(-1px); /* Lift effect */
}

/* Align buttons in the center for gallery action buttons */
.text-center .btn {
  margin: 5px; /* Space between buttons */
}

.centered-logo {
  padding-top: 10px;
  max-width: 300px; /* Limit the width of the logo */
  width: 100%; /* Make it responsive */
  height: auto; /* Maintain aspect ratio */
  margin: 0 auto; /* Center the image */
  display: block; /* Ensure proper block-level alignment */
}
/* Page container */
.archived-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Header: small back button on the left, title centered */
.archived-header {
  position: relative;
  margin-bottom: 8px;
}
.archived-header .back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.archived-title {
  margin: 0;
  text-align: center;
  color: #3c727e;
  font-weight: 800;
  font-size: 1.85rem;
}

/* Summary line (plain text, no chip) */
.archive-summary {
  text-align: center;
  color: #6c757d;
  margin: 10px 0 18px;
}

/* Center the list on the page */
.archived-list {
  max-width: 720px;
  margin: 0 auto;
}

/* Light polish for items */
.archived-item {
  padding: 12px 16px;
  transition: background .15s ease;
}
.archived-item:hover {
  background: #ffffff;
}

/* Small screens */
@media (max-width: 576px) {
  .archived-title { font-size: 1.5rem; }
  .archived-list { max-width: 100%; }
}

.storage-cap-banner {
  background: #f1f3f5;   /* light grey */
  color: #000;           /* black text */
  border: 1px solid #e1e3e6;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: .5rem;
}
.storage-cap-banner strong {
  font-weight: 600;
}
.storage-cap-banner__content {
  display: inline-block;
}
.photo-session-link,
.photo-session-link:visited {
  color: #6c757d;
  text-decoration: none;
  transition: color .15s ease-in-out;
}

.photo-session-link:hover,
.photo-session-link:focus {
  color: #adb5bd;
  text-decoration: none;
}

.photo-session-link:active {
  color: #495057;       
}
:root {
  --primary: #3c727e;
  --primary-light: #5f99a3;
  --bg: #f9f9f9;
  --text: #333;
  --shadow: rgba(0, 0, 0, 0.1);
  --font: "Inter", sans-serif;
}

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
}

.booking-details-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.session-details-card {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 4px 12px var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}
.session-details-card .card-header {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 1rem 1.5rem;
}
.session-details-card .card-body {
  padding: 1.5rem;
}
.session-details-card .card-body p {
  margin-bottom: .75rem;
  font-size: 1rem;
}

.addon-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.addon-package-card {
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.addon-package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px var(--shadow);
}
.addon-package-card .card-body {
  padding: 1rem;
}

.session-location-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.session-location-nav input[type="radio"] {
  display: none;
}
.session-location-nav label {
  display: inline-block;
  padding: .5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 2rem;
  color: var(--primary);
  cursor: pointer;
  transition: all .2s;
}
.session-location-nav input[type="radio"]:checked + label {
  background: var(--primary);
  color: #fff;
}
.session-location-nav label:hover {
  background: var(--primary-light);
  color: #fff;
}

.calendar-container {
  text-align: center;
  margin-bottom: 2rem;
}
.calendar-container .flatpickr-calendar {
  display: inline-block;
  box-shadow: 0 4px 12px var(--shadow);
  border-radius: .5rem;
}

.time-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px,1fr));
  gap: .5rem;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}
.time-slot-option {
  padding: .75rem;
  border-radius: .5rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  box-shadow: 0 1px 4px var(--shadow);
}
.time-slot-option:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}
.time-slot-option.selected {
  background: var(--primary);
  color: #fff;
}

#selected-timeslot-display {
  font-size: 1.1rem;
  text-align: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.btn-proceed {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 3rem;
  background: var(--primary);
  border: none;
  padding: .75rem 2rem;
  font-size: 1rem;
  border-radius: .5rem;
  color: #fff;
  transition: background .2s;
}
.btn-proceed:hover {
  background: var(--primary-light);
}

.public-view-header-logo__img{
  max-height: 125px;
  width: auto !important;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

@media (max-width:480px){
  .public-view-header-logo__img{ max-height:70px; }
}
/* ===== Booking Page Settings – FULL CSS (scoped) ===== */

/* Existing modal styles (kept) */
.booking_page_thumbnail_modal { background-color: #95c6cd; color: #ffffff; }
.location-details-modal .modal-content { background-color: #95c6cd; }
.booking_page_thumbnail_modal .modal-header,
.booking_page_thumbnail_modal .modal-body { border-color: #454d55; }

.selected-thumbnail { border: 3px solid #007bff; }
.img-thumbnail:hover { border: 2px solid #007bff; cursor: pointer; }
.img-thumbnail.selected-thumbnail { border: 2px solid #28a745; }
.img-thumbnail.selected-thumbnail:hover { border: 2px solid #ff0000; }

/* ===== Polished / compact UI (scoped to .booking-settings) ===== */
.booking-settings .card-body { padding: 12px 14px; }
.booking-settings .card + .card { margin-top: .75rem !important; }

.booking-settings .card-title { font-weight: 600; }
.booking-settings .card .form-text { margin-top: .25rem; }

/* Slightly smaller controls for modern density */
.booking-settings .form-control,
.booking-settings .form-select{
  min-height: 38px;
  padding-top: .45rem;
  padding-bottom: .45rem;
  font-size: .95rem;
}

/* ---------- Header layout ---------- */
.booking-settings .header-row{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;     /* push items to edges */
}
.booking-settings .header-row .link-intro{
  flex: 0 1 360px;
  min-width: 240px;
}
.booking-settings .header-row .booking-link{
  flex: 0 1 760px;
  max-width: 760px;
  min-width: 420px;
  margin-left: auto;                  /* anchor the block to the right on desktop */
  text-align: right;
}
.booking-settings .booking-link .form-label,
.booking-settings .booking-link .link-help{
  text-align: right;
}

/* --- Booking link group (desktop/tablet) --- */
.booking-settings .booking-link .link-help { margin-top: .35rem; }

.booking-settings .link-field{
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: clamp(420px, 60vw, 760px);   /* responsive width with cap */
  max-width: 100%;
  margin-left: auto;                  /* keep the input group itself flush right */
}

.booking-settings .link-field .form-control{
  flex: 1 1 auto;
  min-width: 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: .9rem;
}

/* Make the appended buttons feel like part of the field (desktop/tablet) */
.booking-settings .link-field .btn{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}
.booking-settings .link-field .btn + .btn{
  margin-left: -1px;
}

/* Primary action (Save) — tasteful size */
.booking-settings .booking-save-btn{
  padding-block: .55rem;
  font-size: .95rem;
  border-radius: .5rem;
}

/* Category row hover polish */
.booking-settings .category-row{
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.booking-settings .category-row:hover{
  border-color: #dfe3e6;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  background-color: #fcfcfd;
}
.booking-settings .thumbnail-picker-button:disabled,
.booking-settings .category-row input[type="checkbox"]:not(:checked) ~ .thumbnail-picker-button{
  pointer-events: none;
  opacity: .5;
}

/* ===== Mobile (≤576px) ===== */
@media (max-width: 576px){
  .booking-settings .card { border-radius: 12px; }
  .booking-settings .card-body { padding: 12px; }

  /* Put link section on its own line, centered */
  .booking-settings .header-row .link-intro,
  .booking-settings .header-row .booking-link{
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    text-align: center;               /* center the label & help */
  }

  /* Stack input on top; buttons below, centered */
  .booking-settings .link-field{
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap !important;       /* override .flex-nowrap on the element */
    justify-content: center;          /* center the wrapped row */
    gap: 8px 10px;                    /* nice spacing when wrapped */
  }

  /* Force the input to occupy the full first row */
  .booking-settings .link-field > .form-control{
    flex: 0 0 100% !important;        /* make it its own line */
    min-width: 0;
    text-align: center;               /* centered URL value */
    border-radius: .5rem;             /* rounded input on phones */
  }

  /* Buttons become rounded “pills” on their own row */
  .booking-settings .link-field > .btn{
    flex: 0 0 auto;
    border-radius: 9999px !important; /* pill look */
    margin: 0;                        /* reset desktop collapse trick */
    padding-inline: 18px;
  }
  .booking-settings .link-field > .btn + .btn{
    margin-left: 0;                   /* no negative margin on mobile */
  }

  .booking-settings .row.g-3 > [class*="col-"]{ width: 100%; }

  .booking-settings .category-row { padding: .6rem .7rem; }
  .booking-settings .thumbnail-picker-button { white-space: nowrap; }
}

/* ===== Tablet (577–768px) ===== */
@media (min-width: 577px) and (max-width: 768px){
  .booking-settings .card-body { padding: 16px; }
}

/* ===== Focus a11y ===== */
.booking-settings .form-control:focus,
.booking-settings .form-select:focus,
.booking-settings .btn:focus,
.booking-settings .form-check-input:focus{
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.25);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  .booking-settings *{ transition: none !important; animation: none !important; }
}
/* --------------------------------------------------------------- *
 * Booking Page — Font Scoping
 * --------------------------------------------------------------- */
.booking-page-root,
.booking-page-root *{
  font-family: var(--booking-page-font, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif) !important;
}
.use-system-font,
.use-system-font *,
.booking-page-root .modal,
.booking-page-root .modal *,
.booking-page-root .orbit-footer,
.booking-page-root .orbit-footer *,
.booking-page-root .gc-card,
.booking-page-root .gc-card *{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* --------------------------------------------------------------- *
 * Captions (categories + minis)
 * --------------------------------------------------------------- */
.booking-page-session-category .name-box,
.booking-page-session-category .session-category-name,
.booking-page-session-category .mini-session-name{
  color:#1f2937 !important;
  font-weight:600 !important;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:#fff !important;
}

/* --------------------------------------------------------------- *
 * Card container
 * --------------------------------------------------------------- */
.booking-page-session-category{
  position:relative;
  width:100%;
  border:1px solid #e5e7eb;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  text-align:center;
  overflow:hidden;
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  margin-bottom:1.5rem;
  border-radius:10px;
}
.booking-page-session-category:hover{
  border-color:#d1d5db;
  box-shadow:0 6px 18px rgba(17,24,39,.08);
  transform:translateY(-1px);
}

/* Media (image/placeholder) */
.booking-page-session-category img{
  width:100%;
  height:300px;
  object-fit:cover;
  transition:transform .25s ease, opacity .25s ease;
  border-radius:10px 10px 0 0;
}
.booking-page-session-category:hover img{ transform:scale(1.01); opacity:.98; }
.booking-page-session-category .placeholder{
  width:100%;
  height:300px;
  background:#fafafa;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  padding:0;
  cursor:default !important;
  border-radius:10px 10px 0 0;
}

/* Title bar */
.booking-page-session-category .name-box{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:.5rem .75rem;
  font-size:clamp(1rem, 2.2vw, 1.25rem);
}
/* Only draw divider when title follows media */
.booking-page-session-category img + .name-box,
.booking-page-session-category .placeholder + .name-box{
  border-top:1px solid #eef2f7;
}

/* Smaller/wrapped titles */
.booking-page-session-category .name-box,
.booking-page-session-category .placeholder .name-box,
.booking-page-session-category .session-category-name,
.booking-page-session-category .mini-session-name{
  line-height:1.25 !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
  hyphens:auto !important;
}
.booking-page-session-category .mini-session-name{
  font-size:clamp(.98rem, 1.6vw, 1.15rem) !important;
  padding:.55rem .7rem !important;
}

/* Clickable media+title; meta lives outside the link */
.booking-page-session-category a{
  text-decoration:none;
  display:block;
}

/* --------------------------------------------------------------- *
 * Mini card meta (spots + dates)
 * --------------------------------------------------------------- */
.mini-card-meta{
  display:grid;
  gap:.45rem;
  padding:.7rem .85rem .9rem;
  margin-top:.25rem;
  border-top:1px solid #eef2f7;
  background:#fff;
  text-align:center;
}

/* Neutral badges */
.mini-badge{
  display:inline-block;
  font-size:.8rem;
  line-height:1;
  padding:.45rem .65rem;
  border-radius:.65rem;
  font-weight:600;
  letter-spacing:.02em;
  white-space:nowrap;
}
.mini-badge--ok{
  color:#1e3a8a;
  background:#eef2ff;
  border:1px solid #e0e7ff;
}
.mini-badge--none{
  color:#475569;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
}
.mini-dates{
  font-size:.85rem;
  color:#64748b;
  line-height:1.2;
}
.mini-dates .mini-more{ color:#475569; font-weight:600; }

/* --------------------------------------------------------------- *
 * Gift Certificates
 * --------------------------------------------------------------- */
.gc-card-link{ text-decoration:none; display:block; }
.gc-card{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  height:160px;
  color:#111827;
  background:linear-gradient(180deg, rgba(0,0,0,.015), rgba(0,0,0,0)), #f8f6f1;
  border:1px solid #e6e1d5;
  box-shadow:0 8px 18px rgba(17,24,39,.08);
  padding:16px 16px 14px 16px;
}
.gc-card::before{
  content:"";
  position:absolute; inset:10px;
  border-radius:10px;
  border:1px dashed #d8d2c4;
  pointer-events:none;
}
.gc-card::after{
  content:"";
  position:absolute; inset:0;
  border-radius:12px;
  background:repeating-linear-gradient(45deg, rgba(0,0,0,.012) 0 10px, rgba(0,0,0,0) 10px 20px);
  opacity:.35; mix-blend-mode:multiply; pointer-events:none;
}
.gc-card svg.gc-art{ display:none !important; }
.gc-meta{ display:flex; align-items:center; gap:.6rem; font-size:.9rem; opacity:.95; }
.gc-meta span:first-child{ text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:#374151; }
.gc-meta .dot{ width:4px; height:4px; border-radius:50%; background:rgba(17,24,39,.35); }
.gc-amount{ margin-top:.25rem; font-size:clamp(1.35rem, 2.8vw, 1.8rem); font-weight:800; letter-spacing:.2px; color:#111827; }
.gc-brand{
  position:absolute; right:14px; bottom:10px;
  display:inline-flex; align-items:center; gap:.45rem;
  font-weight:600; font-size:.9rem; color:#374151; max-width:70%;
}
.gc-brand img{ height:18px; width:18px; object-fit:cover; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.05); }
.gc-card:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(17,24,39,.10); transition:.18s ease; }

/* --------------------------------------------------------------- *
 * Pay chooser
 * --------------------------------------------------------------- */
.pay-chooser{ margin-top:1rem; }
.pay-chooser .pay-title{
  text-transform:uppercase; font-weight:700; letter-spacing:.08em; color:#6c757d;
  font-size:.9rem; margin-bottom:.5rem; text-align:center;
}
.pay-chooser .pay-row{ display:flex; justify-content:center; align-items:center; gap:.75rem; flex-wrap:wrap; }
.pay-chooser .btn-pay{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.6rem .9rem; border-radius:.8rem; background:#fff;
  border:1px solid rgba(0,0,0,.12); box-shadow:0 .2rem .6rem rgba(0,0,0,.05);
  transition:transform .06s ease, box-shadow .12s ease;
}
.pay-chooser .btn-pay:hover{ transform:translateY(-1px); box-shadow:0 .3rem .8rem rgba(0,0,0,.08); }
.pay-chooser .btn-pay:active{ transform:translateY(0); }
.pay-chooser .btn-pay img{ height:22px; width:auto; display:block; }

/* --------------------------------------------------------------- *
 * Keep spacing + center rows
 * --------------------------------------------------------------- */
.booking-page-root .row.g-4{           /* ensure gutters even if custom CSS elsewhere */
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* --------------------------------------------------------------- *
 * Misc / Responsive
 * --------------------------------------------------------------- */
.public-view-header-logo__img{ max-height:125px; width:auto !important; height:auto; object-fit:contain; display:inline-block; }
@media (max-width:480px){ .public-view-header-logo__img{ max-height:70px; } }

/* Keep spacing across breakpoints */
@media (max-width:575.98px){ .booking-page-session-category{ max-width:100%; } }
/* REMOVED min-width:400px to stop overflow that collapsed gutters */
/* @media (min-width:576px){ .booking-page-session-category{ min-width:400px; } } */
@media (min-width:768px){ .booking-page-session-category{ margin-bottom:1.5rem; } }
@media (min-width:992px){
  .booking-page-session-category{ margin-bottom:2rem; }
  /* removed: .col-lg-3 { margin-left:150px; } */
}

/* --------------------------------------------------------------- *
 * Modal media fallback (SAFE on mobile)
 * --------------------------------------------------------------- */
@media (max-width:767px){
  .modal-body img{ max-width:100%; height:auto; }
  .modal-body .carousel-item img{ max-width:100% !important; height:auto !important; object-fit:contain !important; }
  .modal-body .pay-chooser img{ width:auto !important; height:14px !important; max-height:14px !important; }
}

/* --------------------------------------------------------------- *
 * Neutralize badges tone (unchanged)
 * --------------------------------------------------------------- */
.booking-page-root .mini-badge--ok,
.booking-page-root .mini-badge--none{
  color:#475569 !important;
  background:#f1f5f9 !important;
  border:1px solid #e2e8f0 !important;
}
.booking-page-root .mini-badge--ok b,
.booking-page-root .mini-badge--none b{
  font-weight:700;
}

/* Mobile-only: slightly larger pay buttons/logos */
@media (max-width: 575.98px) {
  .booking-page-root .pay-chooser .pay-row { gap: .4rem !important; }
  .booking-page-root .pay-chooser .btn-pay {
    padding: .3rem .6rem !important;
    border-radius: .55rem !important;
    font-size: .8rem !important;
    line-height: 1 !important;
  }
  .booking-page-root .pay-chooser .btn-pay img,
  .modal-body .pay-chooser img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
  }
}

/* Keep Bootstrap gutters and center rows */
.booking-page-root .row.g-4{
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Fixed card column width from sm+ so cards look like before */
@media (min-width: 576px){
  .booking-card-col{
    flex: 0 0 auto;     /* don't stretch to the full row width */
    width: 400px;       /* match your original visual width */
    max-width: 100%;    /* safety */
  }
}

/* app/assets/stylesheets/booking-page.css (or equivalent) */
.gc-description p {
  margin-bottom: 0.25rem;
}
.gc-description a {
  text-decoration: underline;
}
.booking-complete {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.booking-complete__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #6d8c91;
}

.booking-complete__message {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #555;
}

.booking-complete__button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #3c727e;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.booking-complete__button:hover {
  background-color: #2b525b;
}
/* --- Action buttons container --- */
.calendar-actions { container-type: inline-size; }
.calendar-actions .actions-wrap .btn {
  border-radius: .75rem;
  padding: .6rem 1rem;
}
@container (max-width: 520px) {
  .calendar-actions .actions-wrap .btn { flex: 1 1 48%; }
}

/* --- FullCalendar responsive header --- */
.fc .fc-toolbar.fc-header-toolbar { gap: .5rem; }

/* On phones: stack chunks into rows so view buttons are always visible */
@media (max-width: 576px) {
  .fc .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  /* Title centered on its own row, a bit smaller */
  .fc .fc-toolbar-title {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
  }
  /* Put the view buttons on their own full-width row and center them */
  .fc .fc-toolbar-chunk:last-child {
    justify-content: center;
  }
  /* Make FC buttons more compact on small screens */
  .fc .fc-button {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.2;
  }
}

/* --- Modals: always closable, mobile friendly --- */
.modal-content { border-radius: 1rem; }
.modal-header.sticky-top { top: 0; z-index: 1056; } /* keep close button visible */

/* When content overflows, let the body scroll (Bootstrap handles most) */
.modal-dialog.modal-dialog-scrollable .modal-content { max-height: 100vh; }

/* Optional: make inner lists/cards in timeoff block match Orbit color */
.timeoff-block {
  background-color: #6d8c91; /* Orbit color */
  border: none;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.timeoff-block .card-body {
  padding: 10px;
  background-color: #6d8c91;
  border-radius: 8px;
}
.timeoff-block .card-title,
.timeoff-block .card-text { color: #ffffff; }
.timeoff-block .btn-light {
  background-color: #ffffff;
  color: #6d8c91;
  border: none;
  border-radius: 4px;
}
.timeoff-block .btn-light:hover { background-color: #e0e0e0; }

/* Availability block styling you already had */
.availability-block-added {
  background-color: #6d8c91;
  padding: 10px;
  border-radius: 5px;
}
.availability-block-added input,
.availability-block-added label,
.availability-block-added button {
  background-color: transparent;
}

/* Make FullCalendar expand instead of scroll on phones */
@media (max-width: 576px) {
  #calendar,
  #calendar .fc,
  #calendar .fc-view-harness,
  #calendar .fc-scrollgrid,
  #calendar .fc-scroller {
    height: auto !important;
  }
  /* Disable internal scrollbars */
  #calendar .fc-scroller {
    overflow: visible !important;
  }
  /* FC6 sometimes uses a "liquid" absolute scroller for timeGrid */
  #calendar .fc-scroller-liquid-absolute {
    position: static !important;
    inset: auto !important;
  }
}

/* Make FullCalendar read a bit larger on desktop */
@media (min-width: 992px) {
  /* Overall type scale */
  #calendar .fc { font-size: 16px; }             /* base up from ~14px */
  #calendar .fc-toolbar-title { font-size: 1.75rem; }

  /* Month header row (Sun/Mon/…) */
  #calendar .fc-col-header-cell-cushion {
    padding: .75rem 0;
    font-weight: 600;
  }

  /* Day cells */
  #calendar .fc-daygrid-day { min-height: 9.5rem; }  /* taller tiles */
  #calendar .fc-daygrid-day-number { font-size: .95rem; }
  #calendar .fc-daygrid-day-frame { padding: 8px 6px; }

  /* Events in month view */
  #calendar .fc-daygrid-event {
    padding: 4px 6px;
    border-radius: .5rem;
  }
  #calendar .fc-daygrid-day-events { margin-top: 6px; }

  /* Toolbar buttons a touch larger */
  #calendar .fc .fc-button {
    padding: .4rem .75rem;
    font-size: .95rem;
    border-radius: .5rem;
  }
}
/* Client-info section header */
.card-header.client-info-header {
  background-color: #3c727e;
  color: #ffffff;
}

:root { --orbit-brand: #3c727e; --orbit-brand-rgb: 60, 114, 126; }
.pac-container {
  z-index: 9999 !important;
}

/* same look & feel as gallery search */
.client-search {
  --search-accent: #3c727e;             /* border color */
  --search-ring: rgba(60,114,126,.35);  /* outer glow */
  max-width: 420px;
  margin: 0 auto;
}

/* pill shape */
.client-search .input-group { border-radius: 9999px; }
.client-search .input-group-text,
.client-search .form-control { border-radius: 9999px; }

/* seamless join between icon + input */
.client-search .input-group-text { background:#fff; border-right:0; }
.client-search .form-control { border-left:0; }

/* kill Bootstrap blue and use our accent */
.client-search .form-control:focus,
.client-search .form-control:focus-visible {
  border-color: var(--search-accent) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* one outer ring around the whole group */
.client-search .input-group:focus-within {
  box-shadow: 0 0 0 .2rem var(--search-ring);
}

/* match borders when focused */
.client-search .input-group:focus-within .input-group-text,
.client-search .input-group:focus-within .form-control {
  border-color: var(--search-accent) !important;
}

/* ============================
   CLIENT STATUS INDICATOR
   ============================ */

/* Base dot (used in dropdown menu) */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

/* Larger dot beside "Status:" */
.status-dot-lg {
  width: 14px;
  height: 14px;
}

/* Dot Colors */
.status-red {
  background: #dc3545;
}
.status-yellow {
  background: #ffc107;
}
.status-green {
  background: #28a745;
}
.status-none {
  background: #ced4da;
}

/* Backgroundless caret button (modern minimal look) */
.status-caret-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}
.status-caret-btn:hover {
  opacity: 0.85;
}
.status-caret-btn:focus {
  outline: none;
  box-shadow: none;
}

/* Caret icon: black, subtle, slightly smaller */
.status-caret-btn .bi {
  color: #000;
  font-size: 0.9rem; /* slightly smaller than Bootstrap default */
  transition: transform 0.2s ease;
}

/* Rotate caret when open */
.status-caret-btn[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

/* ============================
   AUTOSAVE NOTES UI
   ============================ */

/* Status row (spinner + text) */
.client-notes-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Spinner */
.client-notes-status .spinner-border {
  width: 0.9rem;
  height: 0.9rem;
  border-width: 0.15em;
}

/* Saved / Saving / Error text styles */
.client-notes-status .text-muted {
  color: #6c757d !important;
}
.client-notes-status .text-danger {
  color: #dc3545 !important;
}

/* ============================
   CARD REFINEMENTS
   ============================ */

.card-header small.text-muted {
  font-size: 0.8rem;
}

/* Smooth transitions for text color and spinner visibility */
[data-client-notes-target="statusText"] {
  transition: color 0.25s ease, opacity 0.25s ease;
}
.spinner-border.d-none {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.spinner-border:not(.d-none) {
  opacity: 1;
}

/* ============================
   CLIENT LIST TABLE REFINEMENTS
   ============================ */

/* Slightly tighter table spacing */
.table td,
.table th {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  vertical-align: middle;
}

/* Name cell with inline color dot */
.client-name-cell {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Status dot for table list */
.status-dot-table {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Colors */
.status-red {
  background: #dc3545;
}
.status-yellow {
  background: #ffc107;
}
.status-green {
  background: #28a745;
}
.status-none {
  background: #ced4da;
}

/* Tighten button spacing */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
}
/* ===== Orbit Confirm Page (scoped) ===== */

.confirm-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bs-body-bg, #f8f9fa);
}

.confirm-box {
  width: 100%;
  max-width: 520px;      /* comfy width for this screen only */
  margin: 0 auto;
}

.confirm-logo {
  width: clamp(96px, 18vw, 140px);
  height: auto;
}

.confirm-card {
  border-radius: 2rem;
  overflow: hidden;
  container-type: inline-size; /* enables container queries */
  container-name: confirm;
}

.confirm-card .card-body { border-radius: inherit; }

/* Subtle round badge with Orbit-ish cyan tint */
.confirm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(60,114,126,.08);
  color: var(--bs-primary, #0d6efd);
}

/* Container-query padding tweaks (scoped to this card only) */
@container confirm (max-width: 420px) {
  .confirm-card .card-body { padding: 1rem 1.25rem; }
  .confirm-card .btn { padding-block: .7rem; }
}

@container confirm (min-width: 421px) and (max-width: 639px) {
  .confirm-card .card-body { padding: 1.5rem 1.75rem; }
}

@container confirm (min-width: 640px) {
  .confirm-card .card-body { padding: 2rem 2.25rem; }
  .confirm-card .h4, .confirm-card h1, .confirm-card .card-title { font-size: 1.35rem; }
}
.contract-templates-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Title Styling */
.contract-templates-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.btn-add-contract-template {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #3c727e;
  border-color: #3c727e;
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-add-contract-template:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
}

/* Ensure modal content is not centered by parent container */
.modal-content {
  text-align: left; /* Override inherited text alignment */
  margin: 0 auto; /* Keep it centered within the modal dialog */
}

.contract-template-list {
  padding: 0;
  list-style: none;
}

.contract-template-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contract-template-item-card:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.contract-template-info {
  max-width: 70%;
}
.contract-template-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #3c727e;
}

.btn-group-actions {
  display: flex;
  gap: 0.5rem;
}
.edit-contract-template-btn,
.delete-contract-template-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.edit-contract-template-btn {
  border-color: #3c727e;
  color: #3c727e;
}

.delete-contract-template-btn {
  border-color: #f39e1d;
  color: #f39e1d;
}

.edit-contract-template-btn:hover {
  background-color: #3c727e;
  color: white;
}

.delete-contract-template-btn:hover {
  background-color: #f39e1d;
  color: white;
}

.contract-template-modal-header {
  background-color: #6d8c91;
  color: white;
}
.contract-template-modal-body {
  background-color: #f8f9fa;
  padding: 1.5rem;
  text-align: left; /* Prevent centering */
}
.contract-template-modal-title {
  font-weight: bold;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Center Navbar Links */
  #custom-navbar .navbar-nav {
    text-align: center;
  }

  /* Full-Width Location Item Card for Mobile */
  .contract-template-item-card {
    flex-direction: column;
    text-align: center;
  }

  /* Full-Width Buttons */
  .btn-group-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-actions .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  /* Smaller Add Location Button for Mobile */
  .btn-add-contract-template {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3c727e;
    color: white;
  }
}

@media (max-width: 576px) {
  /* Padding Adjustment for Small Screens */
  .contract-templates-container {
    padding: 1rem;
  }

  /* Adjusted Font Sizes for Small Screens */
  .contract-template-name {
    font-size: 1rem;
  }

}

/* Contract Templates — solid brand fills like Session Categories */
.contract-template-item-card .btn-group-actions .btn.edit-contract-template-btn,
.contract-template-item-card .btn-group-actions .btn.delete-contract-template-btn {
  font-weight: 600;
  border-width: 1px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem; /* keeps alignment with your .btn-group-actions .btn rule */
}

/* Edit = brand teal */
.contract-template-item-card .btn-group-actions .btn.edit-contract-template-btn {
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: #fff !important;
}
.contract-template-item-card .btn-group-actions .btn.edit-contract-template-btn:hover {
  background-color: #2e5b69 !important;
  border-color: #2e5b69 !important;
  color: #fff !important;
}

/* Delete = brand orange */
.contract-template-item-card .btn-group-actions .btn.delete-contract-template-btn {
  background-color: #f39e1d !important;
  border-color: #f39e1d !important;
  color: #fff !important;
}
.contract-template-item-card .btn-group-actions .btn.delete-contract-template-btn:hover {
  background-color: #d68717 !important;
  border-color: #d68717 !important;
  color: #fff !important;
}
:root{
  --brand-color: #25c3a7;
  --brand-color-rgb: 37,195,167;
}

/* Dropdown */
.earnings-range-menu { max-height: 420px; overflow: auto; }
.dropdown-menu .active { font-weight: 600; }

/* KPI row — responsive grid that stacks at small widths.
   No horizontal scroll. Always readable. */
.earnings-cards{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)); /* desktop: one row */
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 1200px){ .earnings-cards{ grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px) { .earnings-cards{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .earnings-cards{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .earnings-cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .earnings-cards{ grid-template-columns: 1fr; } }

.earnings-card{
  background:#fff!important;
  color:#111827!important;
  border:1px solid #e9ecef!important;
  border-radius:16px;
  padding: clamp(10px, 1.6vw, 16px);
  box-shadow:0 1px 6px rgba(0,0,0,.05);
  min-width: 0; /* allow shrink */
}

.kpi-label{
  margin:0 0 6px 0;
  font-weight:600;
  line-height:1.2;
  color:#6c757d!important;
  /* allow up to 2 lines so full text is readable when stacked */
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(12px, 1.6vw, 14px);
}

/* Short/extra-short switches by viewport (not per-card) to stay readable on tiny screens */
.kpi-label .label-full{ display:inline }
.kpi-label .label-short,
.kpi-label .label-xshort{ display:none }

@media (max-width: 480px){
  .kpi-label .label-full{ display:none }
  .kpi-label .label-short{ display:inline }
}
@media (max-width: 360px){
  .kpi-label .label-short{ display:none }
  .kpi-label .label-xshort{ display:inline }
}

.earnings-card .value{
  font-weight:700;
  line-height:1.1;
  color:#111827!important;
  font-size: clamp(14px, 2.8vw, 21px);
}

/* ================= Chart ================= */
.chart-card { height: auto; } /* wrapper controls height */
.chart-card .card-body{
  position: relative;
  height: auto;
  padding: 12px 16px 28px 16px; /* keep axes/fill away from edge */
  overflow: visible;
}

/* The wrapper owns the height. Chart.js renders crisp at DPR. */
.chart-area{
  position: relative;
  width: 100%;
  height: 320px; /* desktop/default height */
}

/* Canvas simply fills its container — no fixed px height on canvas */
canvas[data-earnings-target="chart"]{
  width: 100% !important;
  height: 100% !important;
  display: block;
  image-rendering: auto;
}

/* Chart-only filter buttons */
.chart-kind .btn.active,
.chart-kind .btn:hover{
  border-color: var(--brand-color);
  color: #0b5349;
  background: rgba(var(--brand-color-rgb), .18);
}

/* ============ Outstanding list & accordion ============ */
.outstanding-row { border-bottom:1px dashed #e5e7eb; padding:8px 0; }
.badge-kind { font-size:.7rem; background:#f1f5f9; color:#334155; border-radius:9999px; padding:2px 8px; }

.earnings-accordion .accordion-button:not(.collapsed){
  background-color: rgba(var(--brand-color-rgb), 0.18) !important;
  color: inherit !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}
.earnings-accordion .accordion-button:focus{
  box-shadow: 0 0 0 .2rem rgba(var(--brand-color-rgb), .25) !important;
}

/* Force light look even in dark mode */
@media (prefers-color-scheme: dark){
  .earnings-card, .earnings-card h6, .earnings-card .value {
    background:#fff!important; color:#111827!important; border-color:#e9ecef!important;
  }
}

/* --- Mobile fixes (≤576px) — keep desktop unchanged --- */
@media (max-width: 576px) {
  /* Let the filter pills wrap neatly instead of overflowing/cropping */
  .chart-card .card-body .chart-kind {
    display: flex;          /* overrides .btn-group inline-flex */
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  /* Make buttons fill two columns */
  .chart-card .card-body .chart-kind .btn {
    flex: 1 1 calc(50% - 6px);
  }
  /* Center the group so the first pill (Total) isn’t clipped */
  .chart-card .card-body > .d-flex {
    justify-content: center !important;
  }

  /* Set the chart height via the wrapper for crisp rendering */
  .chart-area { height: 260px; }
}

/* Ultra-narrow phones: stack pills one per row + smaller chart */
@media (max-width: 360px) {
  .chart-card .card-body .chart-kind .btn { flex: 1 1 100%; }
  .chart-area { height: 220px; }
}
/* ========================
   Email Templates (unified)
   ======================== */

/* Page container */
.email-templates-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;              /* keep content left by default */
}

/* Title (centered as requested) */
.email-templates-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;            /* ⬅️ center the "Email Templates" heading */
}

/* Center the "Add Gallery Delivery Template" button while keeping .btn-sm sizing */
.email-templates-container .btn-add-email-template,
.email-templates-container button[data-bs-target="#addEmailTemplateModal"] {
  display: block;            /* allows margin auto centering */
  margin: 0 auto 1rem;       /* center horizontally */
  width: max-content;        /* shrink to content so .btn-sm size is respected */
  background-color: #3c727e; /* brand color */
  border-color: #3c727e;
  color: #fff;
}

.email-templates-container .btn-add-email-template:hover,
.email-templates-container button[data-bs-target="#addEmailTemplateModal"]:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
  color: #fff;
}



/* Ensure modals aren’t centered by container */
.modal-content {
  text-align: left;
  margin: 0 auto;
}

.email-template-list {
  padding: 0;
  list-style: none;
}

/* ===== Cards =====
   Two-column grid so actions stay on the right even on mobile. */
.email-template-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;

  display: grid;
  grid-template-columns: 1fr auto;  /* name/info | actions */
  align-items: center;               /* vertical centering */
  gap: .25rem 1rem;

  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: left;
}
.email-template-item-card:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0,0,0,.15);
}

/* Normalize any inline align-items overrides from markup */
@media (max-width: 9999px) {
  .email-template-item-card { align-items: center !important; }
}

/* Left column */
.email-template-info {
  max-width: 100%;
  min-width: 0;
}
.email-template-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3c727e;
  margin: 0;
}

/* Right column (actions) */
.btn-group-actions,
.email-template-item-card > .d-flex {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;      /* ⬅️ push to right edge */
}

/* Buttons */
.edit-email-template-btn,
.delete-email-template-btn,
.email-template-item-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  .email-templates-container { padding: 1rem; }
  .email-template-item-card { gap: .25rem .75rem; }
  .email-template-name { font-size: 1rem; }

  /* If actions wrap on very narrow phones, keep them right-aligned */
  .btn-group-actions,
  .email-template-item-card > .d-flex {
    flex-wrap: wrap;
    row-gap: .5rem;
    justify-content: flex-end;
  }
}

/* (Optional) If your navbar CSS was centering items globally */
@media (max-width: 768px) {
  #custom-navbar .navbar-nav { text-align: center; }
}

/* ========================
   Brand colors for buttons
   ======================== */
:root{
  --brand-teal:        #3c727e;
  --brand-teal-dark:   #2e5b69;
  --brand-orange:      #f39e1d;
  --brand-orange-dark: #d18412;
}

/* “Edit” = teal solid */
.btn-info,
.btn-info:focus {
  background-color: var(--brand-teal) !important;
  border-color:     var(--brand-teal) !important;
  color: #fff !important;
}
.btn-info:hover,
.btn-info:active {
  background-color: var(--brand-teal-dark) !important;
  border-color:     var(--brand-teal-dark) !important;
  color: #fff !important;
}

/* “Delete” = orange solid */
.btn-danger,
.btn-danger:focus {
  background-color: var(--brand-orange) !important;
  border-color:     var(--brand-orange) !important;
  color: #fff !important;
}
.btn-danger:hover,
.btn-danger:active {
  background-color: var(--brand-orange-dark) !important;
  border-color:     var(--brand-orange-dark) !important;
  color: #fff !important;
}

/* If the “Add …” button is using outline-primary elsewhere, keep it teal */
.email-templates-container .btn-outline-primary,
.session-categories-container .btn-outline-primary {
  background-color: var(--brand-teal) !important;
  border-color:     var(--brand-teal) !important;
  color: #fff !important;
}
.email-templates-container .btn-outline-primary:hover,
.session-categories-container .btn-outline-primary:hover {
  background-color: var(--brand-teal-dark) !important;
  border-color:     var(--brand-teal-dark) !important;
  color: #fff !important;
}

/* Force the heading to center even inside a flex row */
.email-templates-title {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: fit-content; /* keeps the block tight so auto margins can center it */
}

/* Make sure Bootstrap's .d-flex can't override our grid */
.email-template-item-card {
  display: grid !important;          /* <- key fix */
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .25rem 1rem;
}

/* Keep the "Edit" button(s) pinned to the right */
.btn-group-actions {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-self: end;                 /* <- pins to right grid column */
}

/* Remove the normalize that was fighting your inline align-items */
@media (max-width: 9999px) {
  /* DELETE any rule like this if you have it:
     .email-template-item-card { align-items: center !important; }
  */
}

@media (max-width: 768px) {
  .btn-group-actions {
    flex-wrap: wrap;
    row-gap: .5rem;
    justify-content: flex-end;
    justify-self: end;               /* keep right on wrap */
  }
}
/* Match Sign In logo sizing */
.auth-page .centered-logo {
  width: clamp(96px, 18vw, 140px);
  height: auto;
}

/* Give the outer card the same rounded look and enable container queries */
.auth-card {
  border-radius: 2rem;
  overflow: hidden;
  container-type: inline-size;   /* enables container queries below */
  container-name: auth;
}

/* Inherit rounding inside the card body */
.auth-card .card-body {
  border-radius: inherit;
}

/* Page layout helpers (same feel as Sign In) */
.auth-page {
  padding-block: 1.25rem;
}
@media (min-height: 640px) {
  .auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}

/* --- Container query-driven refinements (match sign-in.css) --- */
@container auth (max-width: 360px) {
  .auth-card .card-body { padding: 1rem 1.25rem; }
  .auth-card .form-control { font-size: 0.95rem; }
  .auth-card .btn { padding-block: .7rem; }
}

@container auth (min-width: 420px) {
  .auth-card .card-body { padding: 1.5rem 1.75rem; }
}

@container auth (min-width: 560px) {
  .auth-card .card-body { padding: 2rem 2.25rem; }
  .auth-card .card-title,
  .auth-card .h4,
  .auth-card h1 { font-size: 1.35rem; }
}

/* Keep controls comfy on phones, tidy on large screens */
@media (min-width: 992px) {
  .auth-card .form-control {
    font-size: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}

/* Optional: make the “Sign up / Log in” CTA buttons consistent */
.auth-card .btn-outline-primary.btn-sm.w-100 {
  padding-block: .6rem;
  border-radius: .75rem;
}
/* ===== Gallery Analytics modal styles ===== */

/* Make Copy Link look like outline-secondary (same as "View Photos")
   and prevent odd active/pressed colors */
.btn-copy-link.btn-outline-secondary {
  /* Use brand secondary if you expose one, else Bootstrap secondary */
  --_btn: var(--brand-secondary, var(--bs-secondary));

  /* Keep outline vibe; tweak hover/active subtly */
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--_btn);
  --bs-btn-color: var(--_btn);

  /* Light tint on hover/active instead of theme "warning" yellow, etc. */
  --bs-btn-hover-bg: rgba(108, 117, 125, .08);
  --bs-btn-hover-border-color: var(--_btn);
  --bs-btn-hover-color: var(--_btn);

  --bs-btn-active-bg: rgba(108, 117, 125, .12);
  --bs-btn-active-border-color: var(--_btn);
  --bs-btn-active-color: var(--_btn);

  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-copy-link.btn-outline-secondary:focus,
.btn-copy-link.btn-outline-secondary:active {
  box-shadow: none !important;
}

/* Compact scroll box for long filename lists under "View Photos"
   Targeted so it only affects the filenames container. */
.download-filenames-scroll {
  /* ~3 list-group rows tall (adjust to taste) */
  max-height: 7.25rem; /* ~116px */
  overflow-y: auto;
  overflow-x: hidden;

  border: var(--bs-border-width, 1px) solid var(--bs-border-color, #dee2e6);
  border-radius: .5rem;
  background: var(--bs-body-bg, #fff);
}

/* Keep list items tidy inside the scroll box */
.download-filenames-scroll .list-group-item {
  border-left: 0;
  border-right: 0;
  padding: .5rem .75rem;
}
.gallery-archive-notice {
  display: inline-block;
  background-color: #dc3545; /* Bootstrap danger color for red background */
  color: #fff; /* White text */
  padding: 0.5rem 1rem; /* Padding for better spacing */
  font-size: 16px; /* Font size */
  border-radius: 0.25rem; /* Rounded corners */
  margin-top: 0.5rem; /* Space above the notice */
}

.galleries-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Adjust the gap between the boxes */
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-box {
  width: 250px;
  height: 250px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  overflow: hidden; /* Ensures that the image fits within the rounded corners */
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the box and maintains aspect ratio */
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Initially transparent */
  transition: background 0.3s ease; /* Smooth transition */
}

.gallery-box:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.2); /* Slightly darker overlay on hover */
}

.gallery-name-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* Darker background for readability */
  color: #fff;
  text-align: center;
  padding: 5px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box; /* Ensures padding doesn't affect the width */
}

.gallery-box:hover {
  background-color: #e0e0e0;
}




.gallery-name {
  width: 100%; /* Take up the full width of the box */
  color: #333; /* Darker color for the text to stand out on white */
  text-align: center;
  padding: 10px 0;
  font-size: 16px; /* Adjusted text size for better visibility */
  position: absolute;
  bottom: 0;
  left: 0;
}

.gallery-menu-three-dots {
  font-size: 15px; /* Adjusted to match album dots size */
  line-height: 8px;
  text-align: center;
  color: black; /* Default color for the dots */
  border-radius: 50%;
  padding: 4px; /* Adjust padding for a more compact appearance */
  transition: color 0.3s ease;
  opacity: 0; /* Initially hidden */
  position: absolute;
  visibility: hidden;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

/* Change dots color to teal and make them visible when hovering over the gallery-box */
.gallery-item:hover .gallery-menu-three-dots {
  color: #4ec8e4; /* Teal color */
  opacity: 1; /* Show on hover */
  visibility: visible;
}

/* Optional: Change background color and text color on hover over the dots themselves */
.gallery-menu-three-dots:hover {
  color: #4ec8e4; /* Ensure the teal color remains on hover */
}


/* Style for the gallery delete menu */
.gallery-menu-delete {
  border-radius: 5px;
  font-size: 14px;
  background-color: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
  z-index: 100;
  padding: 6px 10px;
  position: absolute;
  right: 0;
  top: 20px;
}

.gallery-name-style {
  text-align: center;
}

.set-focal-point-btn {
  display: none; /* Hide the button initially */
  background-color: rgba(0, 0, 0, 0.6); /* Optional: Semi-transparent background */
  color: white;
  padding: 4px; /* Reduced padding for a smaller button */
  font-size: 12px; /* Smaller font size */
  width: 50%; /* Set width to 50% of the container */
  left: 50%; /* Position button's left side at the center of the container */
  transform: translateX(50%); /* Shift the button left by 50% of its own width to center it */
  text-align: center;
  z-index: 10; /* Ensure it's above the image */
  cursor: pointer;
  border-radius: 5px; /* Optional: Rounded corners */
  border: none; /* Remove outline */
}

.cover-photo-wrapper-container:hover .set-focal-point-btn {
  display: block; /* Show the button when the container is hovered */
}

/* Custom color variables */
.gallery-search {
  --search-accent: #3c727e;              /* border color */
  --search-ring: rgba(60,114,126,0.35);  /* outer glow */
}

/* keep it short + centered */
.gallery-search { max-width: 420px; margin: 0 auto; }

/* pill look */
.gallery-search .input-group { border-radius: 9999px; }
.gallery-search .input-group-text,
.gallery-search .form-control { border-radius: 9999px; }

/* seamless join */
.gallery-search .input-group-text { background:#fff; border-right:0; }
.gallery-search .form-control { border-left:0; }

/* nuke Bootstrap’s blue focus on the input itself */
.gallery-search .form-control:focus,
.gallery-search .form-control:focus-visible {
  border-color: var(--search-accent) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* one ring to rule them all (around icon + input) */
.gallery-search .input-group:focus-within {
  box-shadow: 0 0 0 .2rem var(--search-ring);
}

/* match borders when focused */
.gallery-search .input-group:focus-within .input-group-text,
.gallery-search .input-group:focus-within .form-control {
  border-color: var(--search-accent) !important;
}
.card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #f8f9fa;
  font-weight: bold;
}

.card-body {
  background-color: #fff;
}

.price-sheets-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Title Styling */
.price-sheets-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.btn-add-price-sheet {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #3c727e;
  border-color: #3c727e;
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-add-price-sheet:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
}

/* Ensure modal content is not centered by parent container */
.modal-content {
  text-align: left; /* Override inherited text alignment */
  margin: 0 auto; /* Keep it centered within the modal dialog */
}

.price-sheet-list {
  padding: 0;
  list-style: none;
}

.price-sheet-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-sheet-item-card:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.price-sheet-info {
  max-width: 70%;
}
.price-sheet-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #3c727e;
}

.btn-group-actions {
  display: flex;
  gap: 0.5rem;
}
.view-price-sheet-btn,
.delete-price-sheet-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.view-price-sheet-btn {
  border-color: #3c727e;
  color: #3c727e;
}

.delete-price-sheet-btn {
  border-color: #f39e1d;
  color: #f39e1d;
}

.view-price-sheet-btn:hover {
  background-color: #3c727e;
  color: white;
}

.delete-price-sheet-btn:hover {
  background-color: #f39e1d;
  color: white;
}

.price-sheet-modal-header {
  background-color: #6d8c91;
  color: white;
}
.price-sheet-modal-body {
  background-color: #f8f9fa;
  padding: 1.5rem;
  text-align: left; /* Prevent centering */
}
.price-sheet-modal-title {
  font-weight: bold;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Center Navbar Links */
  #custom-navbar .navbar-nav {
    text-align: center;
  }

  /* Full-Width Location Item Card for Mobile */
  .price-sheet-item-card {
    flex-direction: column;
    text-align: center;
  }

  /* Full-Width Buttons */
  .btn-group-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-actions .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .btn-add-price-sheet {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3c727e;
    color: white;
  }
}

@media (max-width: 576px) {
  /* Padding Adjustment for Small Screens */
  .price-sheets-container {
    padding: 1rem;
  }

  /* Adjusted Font Sizes for Small Screens */
  .price-sheet-name {
    font-size: 1rem;
  }

}

/* Ensure text is centered inside the buttons */
.btn-group-actions .btn {
  display: inline-flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  padding: 0.5rem 1rem; /* Ensure consistent padding */
  text-align: center; /* Center text */
}
/* Smaller switch */
.form-switch.form-switch-sm .form-check-input{
  width:2.1rem;height:1.1rem;margin-top:.15rem;background-size:1rem 1rem;
}
.form-switch.form-switch-sm .form-check-label,
.form-switch.form-switch-sm .form-check-label span{font-size:.875rem;line-height:1.1rem}

/* Cards */
.card.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}

/* Option rows divider */
.list-group-item + .list-group-item{border-top:1px solid rgba(0,0,0,.05)}
.gc-form .form-label { margin-bottom: .25rem; }
.gc-form .input-group-text { padding-top: .25rem; padding-bottom: .25rem; }
/* app/assets/stylesheets/internal-locations.css */

/* ---- Theme tokens ---- */
:root{
  --orbit-primary: #3c727e;
  --orbit-ink:     #1f2937;
  --orbit-muted:   #6b7280;
  --orbit-line:    #e5e7eb;
  --loc-gap:       clamp(6px, 0.6vw, 12px);
}

/* Page width like public */
.location-page{ max-width: 960px; }

/* Header */
.loc-header{ margin-bottom:.5rem; }
.loc-title{
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height:1.2;
  margin:0 0 .25rem;
  color: var(--orbit-ink);
}
.loc-type-badge{
  background: rgba(60,114,126,.12);
  color: var(--orbit-primary);
  border: 1px solid rgba(60,114,126,.28);
}

/* ===== Flickity hero (same behavior as public, only special-case 2 images) ===== */
.loc-hero-flickity{ display:block !important; } /* defense vs stray sheets */

.loc-hero-carousel{
  width:100vw;
  margin-left:calc(50% - 50vw);
  overflow:visible;
}

/* viewport height (don’t rely on image load) */
.loc-hero-flickity .flickity-viewport{
  height: clamp(260px, 45vw, 520px) !important;
}
.loc-hero-flickity .flickity-slider{ height:100%; }

/* base cell */
.loc-hero-carousel .carousel-cell{
  display:block;
  height:100%;
  margin-right: var(--loc-gap);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}

/* width logic — ONLY change when exactly two photos */
.loc-hero-flickity[data-count="2"] .carousel-cell{
  /* half screen each, minus half the gap so total never exceeds 100vw */
  width: calc(50vw - (var(--loc-gap) / 2));
  max-width: none;
}

/* Default widths for 1 or 3+ photos (unchanged) */
.loc-hero-flickity:not([data-count]) .carousel-cell,
.loc-hero-flickity[data-count="1"] .carousel-cell,
.loc-hero-flickity[data-count="3"] .carousel-cell,
.loc-hero-flickity[data-count="4"] .carousel-cell,
.loc-hero-flickity[data-count="5"] .carousel-cell,
.loc-hero-flickity[data-count="6"] .carousel-cell{
  width: 33.333vw;
  max-width:760px;
}

/* images fill the cell area */
.loc-hero-img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Fallback (before Flickity initializes) — still swipeable */
.loc-hero-carousel:not(.flickity-enabled){
  display:grid;
  grid-auto-flow:column;
  gap: var(--loc-gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}
.loc-hero-carousel:not(.flickity-enabled) .carousel-cell{
  height: clamp(260px, 45vw, 520px);
  scroll-snap-align:center;
}

/* Fallback sizing by count */
.loc-hero-flickity[data-count="2"] .loc-hero-carousel:not(.flickity-enabled){
  grid-auto-columns: calc(50vw - (var(--loc-gap) / 2));
}
/* Default fallback width for 1 or 3+ (unchanged) */
.loc-hero-flickity:not([data-count]) .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="1"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="3"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="4"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="5"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="6"] .loc-hero-carousel:not(.flickity-enabled){
  grid-auto-columns:33.333vw;
}

/* Mobile tweaks */
@media (max-width:576px){
  .loc-hero-carousel:not(.flickity-enabled){ grid-auto-columns:100vw; }
  .loc-hero-carousel .carousel-cell{
    margin-right: clamp(4px, 1.5vw, 8px);
    border-radius:10px;
  }
}

/* Cards */
.loc-card { border-radius: 1rem; }
.loc-card .card-body{ padding: 1rem 1.1rem; }
@media (min-width: 576px){
  .loc-card .card-body{ padding: 1.25rem 1.5rem; }
}

/* Key-value layout (Address, Details) */
.loc-kv{ display:flex; flex-direction:column; gap:.75rem; }
.loc-kv-row{
  display:grid; grid-template-columns: 140px 1fr;
  gap: 1rem; align-items:start; padding:.25rem 0;
  border-bottom: 1px dashed var(--orbit-line);
}
.loc-kv-row:last-child{ border-bottom:none; }
.loc-kv-row dt{ margin:0; color:var(--orbit-muted); font-weight:600; font-size:.95rem; }
.loc-kv-row dd{ margin:0; }
.loc-body{ color: var(--orbit-ink); }

/* Map */
.loc-map{
  height: clamp(260px, 42vh, 420px);
  border-radius: .75rem;
  overflow: hidden;
  background: #f5f7f8;
}

/* Small screen tweaks */
@media (max-width: 576px){
  .loc-kv-row{ grid-template-columns: 110px 1fr; gap:.75rem; }
}

/* Just in case you add BS carousel controls later */
.loc-hero-flickity .carousel-control-prev-icon,
.loc-hero-flickity .carousel-control-next-icon{
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* Align Back button + header with the card content rail */
.loc-rail { padding-left: 1.1rem; padding-right: 1.1rem; }
@media (min-width: 576px){
  .loc-rail { padding-left: 1.5rem; padding-right: 1.5rem; }
}
/* Ensure the video player is properly displayed */
.video-js {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
}

/* Adjust modal body padding */
#videoModal .modal-body {
  padding: 0;
}

/* Ensure the close button is visible on the video */
#videoModal .btn-close {
  z-index: 10;
}


.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-three-dots {
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 15px;
  line-height: 8px;
  text-align: center;
  color: #4ec8e4;
  border-radius: 50%;
  padding: 4px;
  transition: opacity 0.3s ease;
  opacity: 0; /* Initially hidden */
  position: absolute;
  visibility: hidden;
}

.video-thumbnail-wrapper:hover .video-three-dots {
  opacity: 1; /* Show on hover */
  visibility: visible;
}

.video-options-menu {
  top: 40px; /* Adjust this value to control distance from the three dots */
  right: 5px;
  background-color: #4ec8e4;
  color: white;
  border-radius: 5px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 5px 0;
  position: absolute;
}

.video-options-menu a {
  font-size: 14px;
  padding: 6px 10px;
  color: white;
  text-decoration: none;
  background-color: #4ec8e4;
}

.video-options-menu a:hover {
  background-color: #6c757d;
}

.play-icon-overlay {
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ========== Layout & page chrome ========== */
.gallery-internal-view {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.gallery-name-style {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-align: left; /* keep title left */
}

/* ✅ Center the top action buttons */
.gallery-internal-view-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px 0;
  flex-wrap: wrap;
}

.btn-sm { padding: 4px 8px; }

/* Two-column app layout */
.gallery-layout {
  display: grid;
  grid-template-columns: 320px 1fr; /* left sidebar, right content */
  gap: 24px;
  align-items: start;
}

.gallery-sidebar {
  position: sticky;
  top: 70px;
}

/* ========== Cover photo ========== */
.cover-photo-wrapper-container {
  transform: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 280px;
  width: 100%;
  max-width: 280px;
  background-color: #f0f0f0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.gallery-internal-view-cover-photo-placeholder {
  font-size: 18px;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.cover-img-thumbnail {
  width: 100%;
  max-width: 280px;
  height: 100%;
  object-fit: contain;
  border: none;
  box-shadow: none;
  cursor: default;
  transition: none;
}

.cover-photo-remove-btn {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  text-align: center;
}
.cover-photo-wrapper-container:hover .cover-photo-remove-btn {
  background-color: #c82333;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}
.cover-photo-remove-btn:focus {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.5);
}

/* ========== Pixieset-style album list (left) ========== */
.album-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.album-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.album-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.album-link:hover { background: #f7f7f7; }
.album-link.is-active { background: #eefbff; border-color: #4ec8e4; }
.album-name.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-count.badge { background: #ececec !important; color: #333 !important; }
.album-row .dropdown { margin-left: 2px; }

/* ✅ Favorites CTA above Albums — no special rounding; matches other buttons */
.favorites-cta { /* space helper only */ }
.favorites-cta .btn {
  /* no custom radius or padding so it looks like other .btn-outline-secondary.btn-sm */
}

/* ========== Right content: videos + photos grid ========== */
.gallery-internal-view-photos { margin-top: 0; }

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .5rem 0;
}

.gallery-internal-view-photos .photos,
.gallery-internal-view-photos .videos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start; /* left aligned */
}

/* photo/video tile wrapper */
.album-photo-wrapper-container {
  transform: none; /* avoid subpixel blur */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow .2s ease;
  height: 200px;
  width: 100%;
  max-width: 200px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: visible;
}

/* ✅ Hard reset any external blur/filters */
.gallery-internal-view img,
.gallery-internal-view .album-photo-wrapper-container,
.gallery-internal-view .album-img-thumbnail {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  image-rendering: auto;
}

.album-img-thumbnail {
  width: 100%;
  max-width: 200px;
  height: 100%;
  object-fit: contain;
  border: none;
  box-shadow: none;
  cursor: default;
}
.album-photo-wrapper-container:hover { box-shadow: 0 1px 8px rgba(0,0,0,.08); cursor: pointer; }

/* ✅ Processing placeholder (like original) */
.placeholder-box {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.album-photo-processing-text {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  letter-spacing: .2px;
  animation: pulse 1.5s infinite;
  user-select: none;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* three-dots over tiles */
.album-photo-three-dots {
  top: 5px; right: 5px;
  cursor: pointer; font-size: 15px; line-height: 8px; text-align: center; color: black;
  border-radius: 50%; padding: 4px; transition: color .3s ease;
  opacity: 0; position: absolute; visibility: hidden;
}
.album-photo-wrapper-container:hover .album-photo-three-dots {
  color: #4ec8e4; opacity: 1; visibility: visible;
}

/* contextual menu */
.album-photo-delete-menu {
  position: absolute; top: 22%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 5px; background: #4ec8e4; color: white; border: none; cursor: pointer;
  text-align: center; z-index: 100; white-space: nowrap; padding: 3px 0;
  display: flex; flex-direction: column;
}
.album-photo-delete-menu a {
  display: block; font-size: 14px; padding: 6px 10px; color: white; background: #4ec8e4; text-decoration: none; margin-bottom: 0;
}
.album-photo-delete-menu a.btn-outline-danger,
.album-photo-delete-menu a.btn-outline-secondary { border: none; }
.album-photo-delete-menu a.btn-outline-danger:hover,
.album-photo-delete-menu a.btn-outline-secondary:hover { background: #6c757d; }

/* video tile chrome */
.video-thumbnail-wrapper { position: relative; }
.play-icon-overlay { pointer-events: none; }

/* modal image constraints */
.focal-point-preview-wrapper {
  position: relative; display: flex; justify-content: center; align-items: center;
  overflow: hidden; width: 100%; max-height: 80vh;
}
.cover-image-preview { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .album-photo-wrapper-container .album-photo-three-dots,
  .cover-photo-wrapper-container .cover-photo-remove-btn,
  .gallery-menu-three-dots,
  .set-focal-point-btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }

  .cover-photo-wrapper-container .cover-photo-remove-btn,
  .set-focal-point-btn {
    display: block !important;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    cursor: pointer;
  }

  .album-photo-wrapper-container .album-photo-three-dots,
  .gallery-container .gallery-menu-three-dots {
    color: #4ec8e4;
  }
}

/* ---------------------------
   Mobile-only polish (≤768px)
   --------------------------- */
@media (max-width: 768px) {
  .gallery-layout { display: block; }
  .gallery-sidebar { position: static; margin-bottom: 16px; }
  .gallery-internal-view { padding: 15px; }
  .gallery-name-style { font-size: 1.5rem; }

  .gallery-internal-view-controls .btn { margin-bottom: 10px; }

  .gallery-internal-view-photos .row {
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px;
  }
  .gallery-internal-view-photos .col-6 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    box-sizing: border-box;
  }

  /* 👇 Key mobile centering fix for finished images */
  .album-photo-wrapper-container {
    height: 200px;                /* keep tile size consistent */
    display: flex;
    align-items: center;          /* vertical centering */
    justify-content: center;      /* horizontal centering */
  }
  .album-photo-wrapper-container img {
    display: block;
    width: 100%;
    max-height: 100%;             /* let image grow up to tile height */
    height: auto;                 /* maintain aspect */
    object-fit: contain;
    object-position: center;      /* avoid top bias on some browsers */
    align-self: center;
  }

  /* keep the menu dots visible on mobile */
  .album-photo-wrapper-container .album-photo-three-dots {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    color: #4ec8e4;
  }

  /* 1) Name: tighten spacing & prevent overflow */
  .gallery-internal-view .gallery-name-style {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 6px 0 10px;
    word-break: break-word;
  }

  /* 2) Photo Session block: neat stacked card */
  .gallery-internal-view .associated-photo-session {
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fafafa;
    margin-bottom: 12px;
  }
  .gallery-internal-view .associated-photo-session .d-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .gallery-internal-view .associated-photo-session .btn,
  .gallery-internal-view .custom-associated-photo-session-btn {
    width: 100%;
  }
  .gallery-internal-view .associated-photo-session .w-100.small {
    margin-top: 4px !important;
  }

  /* 3) Action buttons: tidy two-column grid */
  .gallery-internal-view .gallery-internal-view-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 14px;
  }
  .gallery-internal-view .gallery-internal-view-controls .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
  }

  /* 4) Cover photo: center block */
  .gallery-internal-view .cover-photo-wrapper-container {
    margin-left: auto;
    margin-right: auto;
  }
}

/* GLightbox fix */
.gslide-media { position: relative !important; }

/* analytics table minor polish */
.gallery-analytics-table .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,.05); }
.gallery-analytics-table th,
.gallery-analytics-table td { padding: 1rem; }

/* Hard reset: never blur anything inside the internal editor’s right pane */
.gallery-internal-view .gallery-content,
.gallery-internal-view .gallery-photos-section,
.gallery-internal-view #photos_frame,
.gallery-internal-view .album-item,
.gallery-internal-view .album-item .photos,
.gallery-internal-view .album-item .videos {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

/* If any of these “lock/preview” classes leak into internal, neutralize them */
.gallery-internal-view .blurred,
.gallery-internal-view .download-locked,
.gallery-internal-view .locked,
.gallery-internal-view .watermark-preview,
.gallery-internal-view .apply-blur {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

/* ==== FOCAL POINT FIXES ==== */
.focal-point-preview-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-height: 80vh;
}
#coverPhotoPreview {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
#focalPointIndicator {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(0, 0, 0, 0.5);
  position: absolute;
  display: none;
  z-index: 10;
  pointer-events: auto;
  cursor: grab;
  transform: translate(-50%, -50%);
}
#focalPointIndicator:active { cursor: grabbing; }
.set-focal-point-btn { z-index: 11; }

/* Album list highlight: very light tint of #355d65 */
.album-link:hover {
  background: rgba(53, 93, 101, 0.04); /* subtle hover */
}
.album-link.is-active {
  background: rgba(53, 93, 101, 0.10);
  border-color: rgba(53, 93, 101, 0.35);
}
.album-link:focus-visible {
  outline: 2px solid rgba(53, 93, 101, 0.35);
  outline-offset: 2px;
  border-color: rgba(53, 93, 101, 0.35);
}

/* Compact, centered, subtle (transparent) brand-orange chip */
.gallery-archive-banner {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 9999px;
  background-color: rgba(243, 158, 29, 0.12);
  border: 1px solid rgba(243, 158, 29, 0.35);
  color: #7a4a0b;
  font-weight: 600;
  font-size: .9rem;
  margin: 0 0 10px 0;
}
.gallery-archive-banner .bi {
  font-size: 1rem;
  color: #d68717;
}

.storage-cap-banner {
  background: #f1f3f5;   /* light grey */
  color: #000;           /* black text */
  border: 1px solid #e1e3e6;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: .5rem;
}
.storage-cap-banner strong {
  font-weight: 600;
}
.storage-cap-banner__content {
  display: inline-block;
}

/* Orbit brand-orange button */
.btn-orbit {
  background-color: #f39e1d;
  border-color: #f39e1d;
  color: #fff;
}

.btn-orbit:hover,
.btn-orbit:focus {
  background-color: #e38c06; /* slightly darker on hover/focus */
  border-color: #e38c06;
  color: #fff;
}

.btn-orbit:active {
  background-color: #cf7f05; /* pressed */
  border-color: #cf7f05;
  color: #fff;
}

.btn-orbit:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(243, 158, 29, 0.35);
}

.btn-orbit:disabled,
.btn-orbit.disabled {
  background-color: #f39e1d;
  border-color: #f39e1d;
  color: #fff;
  opacity: .65;
}

/* Universal safeguard: center both placeholders and images inside tiles */
.album-photo-wrapper-container > img,
.album-photo-wrapper-container > .placeholder-box {
  align-self: center;
  justify-self: center;
}

/* Mobile: force the cover box to center even if Bootstrap adds me-4, ms-*, etc. */
@media (max-width: 768px) {
  /* Center the frame content */
  turbo-frame#cover_photo,
  #cover_photo {
    display: block;
    width: 100%;
  }

  /* Hard override any margin utilities (me-4, ms-*, etc.) that Turbo/partials add */
  #cover_photo .cover-photo-wrapper-container {
    max-width: 280px;                 /* keep your designed size */
    width: 100%;
    margin-left: auto !important;     /* override me-4, ms-*, etc. */
    margin-right: auto !important;    /* override me-4, ms-*, etc. */
    margin-inline: auto !important;   /* logical alias: future-proof */
    float: none !important;           /* in case any float sneaks in */
  }

  /* If only the placeholder renders inside the wrapper, keep it centered inside */
  #cover_photo .gallery-internal-view-cover-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}
/* Locations Container */
.locations-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Title Styling */
.locations-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Add Location Button */
.btn-add-location {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #3c727e;
  border-color: #3c727e;
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-add-location:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
}

/* Location List Styling */
.location-list {
  padding: 0;
  list-style: none;
}

/* Location Item Card */
.location-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; /* give breathing room between info and actions */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.location-item-card:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Location Info Styling */
.location-info {
  flex: 1 1 auto;   /* take available space */
  min-width: 0;     /* allow text truncation */
  max-width: 100%;
}
.location-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #3c727e;
  margin-bottom: .25rem;
}
.location-address {
  font-size: 0.9rem;
  color: #6d8c91;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* prevent pushing buttons */
}

/* Button Group Styling */
.btn-group-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;     /* do not shrink */
  white-space: nowrap;/* keep labels on one line */
}
.btn-group-actions .btn {
  flex: 0 0 auto;     /* each button keeps its width */
  white-space: nowrap;/* no wrap inside buttons */
}

/* Base Button Sizing */
.edit-location-btn,
.view-details-btn,
.delete-location-btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  line-height: 1.2;
}

/* Brand Button Colors */
.edit-location-btn,
.view-details-btn,
.delete-location-btn {
  background-color: #3c727e; /* brand color */
  border-color: #3c727e;
  color: #fff !important;
  font-weight: 600;
}

/* Distinct delete warning color */
.delete-location-btn {
  background-color: #f39e1d;
  border-color: #f39e1d;
}

/* Hover effects */
.edit-location-btn:hover,
.view-details-btn:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
  color: #fff !important;
}
.delete-location-btn:hover {
  background-color: #d68717;
  border-color: #d68717;
  color: #fff !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #custom-navbar .navbar-nav { text-align: center; }

  .location-item-card {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .btn-group-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-actions .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .btn-add-location {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3c727e;
    color: white;
  }
}

@media (max-width: 576px) {
  .locations-container { padding: 1rem; }
  .location-info { max-width: 100%; }
  .location-name { font-size: 1rem; }
  .location-address { font-size: 0.85rem; }
}
.grid-template-columns {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
/* Navbar Background */
#custom-navbar {
  background-color: #343436 !important; /* Dark background */
  position: relative;
  z-index: 1050;
}

/* Dropdown menu styling */
#custom-navbar .dropdown-menu {
  position: absolute;
  z-index: 1051;
  top: 100%;
}

/* Navbar Brand Link */
#custom-navbar .navbar-brand {
  color: #a4cbd0 !important;
  padding: 0;
  display: flex;
  align-items: center;
}
#custom-navbar .navbar-brand:hover { color: #6d8c91 !important; }

/* Primary Navbar Links */
#custom-navbar .navbar-nav .nav-link {
  color: #a4cbd0 !important;
  transition: color .3s;
}
#custom-navbar .navbar-nav .nav-link:hover { color: #6d8c91 !important; }

/* Secondary Text */
#custom-navbar .navbar-text { color: #a4cbd0 !important; }

/* Sign-Out Link */
#custom-navbar .nav-link.text-danger { color: #f39e1d !important; }
#custom-navbar .nav-link.text-danger:hover { color: #6d8c91 !important; }

/* Navbar Logo */
.navbar-brand-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  padding: 0;
  display: inline-block;
}

/* =========================
   Animated Hamburger (→ X)
   ========================= */

/* Remove Bootstrap’s default icon & border */
#custom-navbar .navbar-toggler {
  --toggler-line: #f39e1d;   /* bar color */
  --bar-w: 22px;             /* line length */
  --bar-h: 2px;              /* line thickness */
  --bar-gap: 5px;            /* space between lines */
  --anim: 180ms cubic-bezier(.4,0,.2,1);

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  padding: 8px;
  width: auto;
  height: auto;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bar-gap);
}

#custom-navbar .navbar-toggler-icon {
  background-image: none !important;
  background-color: transparent !important;
}

/* The three bars */
#custom-navbar .navbar-toggler .toggler-bar {
  display: block;
  width: var(--bar-w);
  height: var(--bar-h);
  background: var(--toggler-line);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform var(--anim),
    opacity var(--anim),
    background-color var(--anim);
}

/* Hover/active feedback */
#custom-navbar .navbar-toggler:hover .toggler-bar { opacity: .9; }
#custom-navbar .navbar-toggler:active .toggler-bar { opacity: .75; }
#custom-navbar .navbar-toggler:focus,
#custom-navbar .navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none !important;
}

/* When menu is OPEN → make an “X”
   Bootstrap sets aria-expanded="true" on the button */
#custom-navbar .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(calc(var(--bar-h) + var(--bar-gap))) rotate(45deg);
}
#custom-navbar .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
}
#custom-navbar .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(calc(-1 * (var(--bar-h) + var(--bar-gap)))) rotate(-45deg);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #custom-navbar .navbar-toggler .toggler-bar { transition: none; }
}

/* Slightly larger bars on ultra-narrow phones */
@media (max-width: 360px) {
  #custom-navbar .navbar-toggler { --bar-w: 24px; }
}

/* =========================
   Desktop-only fixes
   ========================= */

/* Hide the hamburger ≥992px (desktop/tablet landscape) */
@media (min-width: 992px) {
  #custom-navbar .navbar-toggler { display: none !important; }
}

/* Make sure the nav stays visible on desktop even if it was collapsed on mobile */
@media (min-width: 992px) {
  #navbarNavCentered { display: flex !important; }
}
/* app/assets/stylesheets/newsletters.css */

/* ============================================================
   Orbit brand tokens (newsletter UI)
   ============================================================ */
:root {
  --orbit-orange: #D18412;             /* user requested */
  --orbit-orange-rgb: 209, 132, 18;    /* for rgba() */
}

/* ============================================================
   Base preview shell (shared for all themes)
   ============================================================ */
.newsletter-preview-shell {
  padding: 16px;
  border-radius: 0.5rem;
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Links & headings in preview */
.newsletter-preview-shell h1,
.newsletter-preview-shell h2,
.newsletter-preview-shell h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.newsletter-preview-shell p {
  margin-bottom: 0.75rem;
}

.newsletter-preview-shell a {
  text-decoration: underline;
}

/* Orbit (light) theme */
.newsletter-theme-orbit {
  background-color: #ffffff;
  color: #111827;
}

.newsletter-theme-orbit a {
  color: #2563eb;
}

/* Warm theme */
.newsletter-theme-warm {
  background-color: #fff7ed;
  color: #1f2937;
}

.newsletter-theme-warm a {
  color: #b45309;
}

/* Dark theme */
.newsletter-theme-dark {
  background-color: #111827;
  color: #e5e7eb;
}

.newsletter-theme-dark a {
  color: #93c5fd;
}

/* Optional: images in preview */
.newsletter-preview-shell img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}

/* Make the Quill editor inside the newsletter modal taller */
[data-controller~="newsletter-editor"] .ql-container {
  min-height: 320px;
}

/* Keep images inside the editor sane-sized too */
[data-controller~="newsletter-editor"] .ql-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}

/* --- Floating resize overlay (EDITOR ONLY) --- */

.nl-img-overlay {
  position: fixed;
  pointer-events: none; /* handles/delete will re-enable pointer events */
  z-index: 9999;
  border: 1px solid rgba(var(--orbit-orange-rgb), 0.5);
  box-sizing: border-box;
}

/* generic handle (small circle) */
.nl-img-overlay .nl-img-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 2px solid var(--orbit-orange);
  box-sizing: border-box;
  z-index: 20;
  pointer-events: auto;
}

/* top-left corner */
.nl-img-overlay .nl-img-handle-tl {
  top: -6px;
  left: -6px;
  cursor: nwse-resize;
}

/* top-right corner */
.nl-img-overlay .nl-img-handle-tr {
  top: -6px;
  right: -6px;
  cursor: nesw-resize;
}

/* bottom-left corner */
.nl-img-overlay .nl-img-handle-bl {
  bottom: -6px;
  left: -6px;
  cursor: nesw-resize;
}

/* bottom-right corner */
.nl-img-overlay .nl-img-handle-br {
  bottom: -6px;
  right: -6px;
  cursor: nwse-resize;
}

/* --- Delete pill on overlay --- */

.nl-img-overlay .nl-img-delete {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background-color: #111827;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  pointer-events: auto;
}

/* hover state */
.nl-img-overlay .nl-img-delete:hover {
  background-color: #4b5563;
}

/* --- Session link toolbar button --- */

.ql-toolbar .ql-formats button.ql-sessionLink {
  width: auto;
  min-width: 90px;
  padding: 0 8px;
}

.ql-toolbar .ql-formats button.ql-sessionLink::before {
  content: "Session link";
  font-size: 12px;
}

/* --- Session dropdown menu --- */

.newsletter-session-menu {
  position: fixed;
  z-index: 9999; /* sit above modal content/backdrop */
  background-color: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  padding: 4px 0;
  min-width: 220px;
  max-width: 320px;
  max-height: 260px;
  overflow-y: auto;
}

.newsletter-session-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #111827;
  cursor: pointer;
}

.newsletter-session-menu-item:hover {
  background-color: #eff6ff;
}

/* --- “Button” style for special CTA links in editor + preview --- */
/* ✅ New system uses nl_cta=1; keep nl_session=1 for backward compatibility */

.ql-editor a[href*="nl_cta=1"],
.newsletter-preview-shell a[href*="nl_cta=1"],
.ql-editor a[href*="nl_session=1"],
.newsletter-preview-shell a[href*="nl_session=1"],
.ql-editor a[href*="nl_booking=1"],
.newsletter-preview-shell a[href*="nl_booking=1"] {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: var(--orbit-orange);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-decoration: none !important;
}

/* Remove old pencil hint so it doesn't affect sizing */
.ql-editor a[href*="nl_cta=1"]::after,
.newsletter-preview-shell a[href*="nl_cta=1"]::after,
.ql-editor a[href*="nl_session=1"]::after,
.newsletter-preview-shell a[href*="nl_session=1"]::after,
.ql-editor a[href*="nl_booking=1"]::after,
.newsletter-preview-shell a[href*="nl_booking=1"]::after {
  content: "";
}

/* keep underline off for any children as well */
.ql-editor a[href*="nl_cta=1"] *,
.newsletter-preview-shell a[href*="nl_cta=1"] *,
.ql-editor a[href*="nl_session=1"] *,
.newsletter-preview-shell a[href*="nl_session=1"] *,
.ql-editor a[href*="nl_booking=1"] *,
.newsletter-preview-shell a[href*="nl_booking=1"] * {
  text-decoration: none !important;
}

/* Mobile newsletter cards */
.newsletters-mobile-card .text-truncate {
  max-width: 100%;
}

.newsletters-mobile-meta > div {
  padding: 2px 0;
}

.newsletters-mobile-card .min-w-0 {
  min-width: 0; /* enables truncation properly in flex */
}

/* --- Booking page link toolbar button (next to Session link) --- */

.ql-toolbar .ql-formats button.ql-bookingPageLink {
  width: auto;
  min-width: 110px;
  padding: 0 8px;
}

.ql-toolbar .ql-formats button.ql-bookingPageLink::before {
  content: "Booking page";
  font-size: 12px;
}

/* (Optional) make both custom buttons feel consistent */
.ql-toolbar .ql-formats button.ql-sessionLink,
.ql-toolbar .ql-formats button.ql-bookingPageLink {
  height: 24px;
  line-height: 24px;
}

/* Linen theme (soft ivory) */
.newsletter-theme-linen {
  background-color: #fffaf3;
  color: #1f2937;
}

.newsletter-theme-linen a {
  color: #1d4ed8;
}

/* Sage theme (soft green) */
.newsletter-theme-sage {
  background-color: #f2f7f4;
  color: #1f2937;
}

.newsletter-theme-sage a {
  color: #0f766e;
}

/* Blush theme (soft pink) */
.newsletter-theme-blush {
  background-color: #fff1f5;
  color: #1f2937;
}

.newsletter-theme-blush a {
  color: #be123c;
}

/* ============================================================
   ✅ Orbit status pills (list + analytics)
   We override Bootstrap bg-* classes ONLY when the element
   is a newsletter pill, so we don’t affect the rest of the app.
   ============================================================ */

/* Table/list status pills */
.nl-list .status-pill.bg-primary,
.nl-list .status-pill.bg-info,
.nl-list .status-pill.bg-warning {
  background-color: var(--orbit-orange) !important;
  color: #ffffff !important;
}

/* (optional) ensure icon stays readable */
.nl-list .status-pill.bg-primary i,
.nl-list .status-pill.bg-info i,
.nl-list .status-pill.bg-warning i {
  color: #ffffff !important;
}

/* Analytics pills */
.nl-analytics .badge.pill.bg-primary,
.nl-analytics .badge.pill.bg-info,
.nl-analytics .badge.pill.bg-warning {
  background-color: var(--orbit-orange) !important;
  color: #ffffff !important;
}

.nl-analytics .badge.pill.bg-primary i,
.nl-analytics .badge.pill.bg-info i,
.nl-analytics .badge.pill.bg-warning i {
  color: #ffffff !important;
}
.packages-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.packages-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.btn-add-package {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #3c727e;
  border-color: #3c727e;
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-add-package:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
}

.modal-content {
  text-align: left; /* Override inherited text alignment */
  margin: 0 auto; /* Keep it centered within the modal dialog */
}

.package-list {
  padding: 0;
  list-style: none;
}

.package-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.package-item-card:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.package-info {
  max-width: 70%;
}
.package-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #3c727e;
}

.btn-group-actions {
  display: flex;
  gap: 0.5rem;
}
.edit-package-btn,
.delete-package-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.edit-package-btn {
  border-color: #3c727e;
  color: #3c727e;
}

.delete-package-btn {
  border-color: #f39e1d;
  color: #f39e1d;
}

.edit-package-btn:hover {
  background-color: #3c727e;
  color: white;
}

.delete-package-btn:hover {
  background-color: #f39e1d;
  color: white;
}

.package-modal-header {
  background-color: #6d8c91;
  color: white;
}
.package-modal-body {
  background-color: #f8f9fa;
  padding: 1.5rem;
  text-align: left; /* Prevent centering */
}
.package-modal-title {
  font-weight: bold;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Center Navbar Links */
  #custom-navbar .navbar-nav {
    text-align: center;
  }

  .package-item-card {
    flex-direction: column;
    text-align: center;
  }

  /* Full-Width Buttons */
  .btn-group-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-actions .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .btn-add-package {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3c727e;
    color: white;
  }
}

@media (max-width: 576px) {
  /* Padding Adjustment for Small Screens */
  .packages-container {
    padding: 1rem;
  }

  /* Adjusted Font Sizes for Small Screens */
  .package-name {
    font-size: 1rem;
  }

}

/* PACKAGES — force solid brand fills like Session Categories */
.package-item-card .btn-group-actions .btn.edit-package-btn {
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: #fff !important;
  font-weight: 600;
}
.package-item-card .btn-group-actions .btn.edit-package-btn:hover {
  background-color: #2e5b69 !important;
  border-color: #2e5b69 !important;
  color: #fff !important;
}

.package-item-card .btn-group-actions .btn.delete-package-btn {
  background-color: #f39e1d !important;
  border-color: #f39e1d !important;
  color: #fff !important;
  font-weight: 600;
}
.package-item-card .btn-group-actions .btn.delete-package-btn:hover {
  background-color: #d68717 !important;
  border-color: #d68717 !important;
  color: #fff !important;
}
/* Password Reset Sent — matches Forgot Password / Sign In visuals */

/* Logo sizing (same as Sign In) */
.auth-page .centered-logo {
  width: clamp(96px, 18vw, 140px);
  height: auto;
}

/* Card shape & container queries */
.auth-card {
  border-radius: 2rem;
  overflow: hidden;
  container-type: inline-size;   /* enables container queries below */
  container-name: auth;
}
.auth-card .card-body {
  border-radius: inherit;
}

/* Page layout helpers (same rhythm as your forgot-password page) */
.auth-page {
  padding-block: 1.25rem;
}
@media (min-height: 640px) {
  .auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}

/* Container query-driven refinements (mirror your other auth pages) */
@container auth (max-width: 360px) {
  .auth-card .card-body { padding: 1rem 1.25rem; }
  .auth-card .btn { padding-block: .7rem; }
}
@container auth (min-width: 420px) {
  .auth-card .card-body { padding: 1.5rem 1.75rem; }
}
@container auth (min-width: 560px) {
  .auth-card .card-body { padding: 2rem 2.25rem; }
  .auth-card .card-title,
  .auth-card .h4,
  .auth-card h1 { font-size: 1.35rem; }
}

/* Comfortable control sizing on large screens */
@media (min-width: 992px) {
  .auth-card .btn {
    font-size: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}

/* Professional, neutral confirmation (not blue) */
.status-callout {
  background: #f8f9fa;           /* light neutral */
  border: 1px solid #e9ecef;     /* subtle border */
  color: #343a40;                /* readable neutral text */
  border-radius: .75rem;
  padding: 1rem 1.125rem;
  line-height: 1.5;
  font-size: 1rem;
}

/* Button polish */
.d-grid .btn {
  border-radius: .75rem;
}

/* Subtle link styling for the “Try a different email” link */
.link-secondary {
  color: #6c757d;
  text-decoration: none;
}
.link-secondary:hover,
.link-secondary:focus {
  color: #5a636b;
  text-decoration: underline;
}

/* Optional: lists look tidy inside the small helper block */
.text-muted.small ul {
  margin: 0;
  padding-left: 1.1rem; /* modest indent for bullets if you ever switch from list-unstyled */
}
/* ===== Payment Settings (scoped) ===== */
.payment-settings {}

/* Header that holds the logo */
.payment-settings .provider-header{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f5;
  min-height: 0 !important;
  height: 64px;            /* cap header height on desktop */
  overflow: hidden;        /* prevent tall content from expanding */
}

/* 🔒 FORCE a fixed-width badge so global rules can't inflate it */
.payment-settings .provider-header img.brand{
  display: inline-block !important;
  width: 160px !important;      /* desktop cap */
  max-width: 160px !important;
  height: auto !important;      /* keep aspect ratio */
  object-fit: contain !important;
  line-height: 0;
}

/* Buttons */
.payment-settings .card-body .btn{ white-space: nowrap; }

/* Currency/Sales Tax tiny nicety */
.payment-settings #sales_tax_rate{ text-align: right; }

/* ===== Mobile only ===== */
@media (max-width: 576px){
  .payment-settings .provider-header{
    padding: 8px 10px;
    gap: 8px;
    height: 50px;          /* shorter header on phones */
  }
  /* Smaller badges on phones */
  .payment-settings .provider-header img.brand{
    width: 120px !important;     /* phone cap */
    max-width: 120px !important;
    height: auto !important;
  }
}

/* Ultra-narrow phones */
@media (max-width: 360px){
  .payment-settings .provider-header{
    height: 46px;          /* extra-compact on very small screens */
  }
  .payment-settings .provider-header img.brand{
    width: 100px !important;
    max-width: 100px !important;
  }
}
/* payments.css */

/* 1) Page title */
.container.mt-5 > h2.mb-4 {
  color: #3c727e;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* 2) Cards overall */
.card.mb-4 {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 1.5rem !important;
}

/* 3) Card headers override inline styling */
.card.mb-4 .card-header {
  background-color: #3c727e !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1rem 1.25rem;
}
.card.mb-4 .card-header .card-title {
  margin: 0;
  font-size: 1.25rem;
}

/* 4) Card bodies */
.card.mb-4 .card-body {
  padding: 1.25rem;
  color: #444;
  font-size: 1rem;
}
.card.mb-4 .card-body p {
  margin: 0.75rem 0;
}
.card.mb-4 .card-body hr {
  border-color: #eee;
  margin: 1rem 0;
}

/* 5) Button container adjustments */
.d-flex.flex-column.align-items-center.mb-4 {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  gap: 0.75rem;
  margin-bottom: 1.5rem !important;
}

/* 6) Stripe button */
.btn-primary {
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background-color: #2e5a60 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* 7) PayPal container */
.paypal-button-container {
  width: 100%;
  max-width: 300px;
}

/* 8) Bypass button */
.btn-secondary {
  background: transparent !important;
  border: 2px solid #3c727e !important;
  color: #3c727e !important;
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background-color: #3c727e !important;
  color: #fff !important;
}

/* 9) Responsive tweaks */
@media (max-width: 576px) {
  .container.mt-5 {
    padding: 0 1rem;
  }
  .card.mb-4 {
    margin-bottom: 1rem !important;
  }
  .d-flex.flex-column.align-items-center.mb-4 .btn-primary,
  .d-flex.flex-column.align-items-center.mb-4 .btn-secondary,
  .paypal-button-container {
    width: 100% !important;
  }
}

.public-view-header-logo__img{
  max-height: 125px;
  width: auto !important;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

@media (max-width:480px){
  .public-view-header-logo__img{ max-height:70px; }
}
/* ============================
   Download Status (brand UI)
   ============================ */
:root {
  --brand-color: #3c727e; /* already in your file */
}

/* Page + title */
.download-status-page { font-family: var(--gallery-font, Arial); }
.download-status-page .ds-title {
  font-family: var(--gallery-font, Arial);
  font-weight: 600;
  letter-spacing: .01em;
  color: #111827;
  /* Smaller, responsive, balanced with cards/buttons */
  font-size: clamp(1.125rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

/* Header logo area (above title) */
.public-view-header-logo {
  font-family: var(--gallery-font, Arial);
}
.public-view-header-logo__img {
  max-height: 48px;               /* tidy size */
  width: auto;
  object-fit: contain;
  /*filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.2));*/
}

/* Card shell */
.status-card {
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: #111827;
  margin: 0 auto;
}

/* Top accent by state */
.status-card--processing { border-top: 4px solid var(--brand-color); }
.status-card--success    { border-top: 4px solid var(--brand-color); }
.status-card--error      { border-top: 4px solid #dc3545; }

/* Icon chip */
.status-icon {
  width: 56px; height: 56px;
  margin: 0 auto .75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-color) 14%, transparent);
  color: var(--brand-color);
  font-size: 26px;
}
.status-icon--success { background: color-mix(in srgb, var(--brand-color) 18%, transparent); }
.status-icon--error   { background: rgba(220,53,69,.12); color: #dc3545; }

/* Text */
.status-lead {
  font-family: var(--gallery-font, Arial);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0;
}
.status-sub {
  font-size: .95rem;
  color: #6b7280;
  margin: 0;
}

/* Brand loader (spinner ring) */
@keyframes ds-spin { to { transform: rotate(360deg); } }
.brand-loader {
  width: 38px; height: 38px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand-color) 22%, transparent);
  border-top-color: var(--brand-color);
  animation: ds-spin 900ms linear infinite;
}

/* Buttons */
.brand-btn {
  font-family: var(--gallery-font, Arial);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem;
  border-radius: 9999px;
  padding: .6rem 1rem;           /* slightly tighter */
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  font-size: .98rem;
}

.brand-btn--primary {
  color: #fff !important;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--brand-color) 92%, #ffffff 8%),
              var(--brand-color));
  border-color: color-mix(in srgb, var(--brand-color) 85%, #000 15%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-color) 28%, transparent),
              inset 0 1px rgba(255,255,255,.25);
}
.brand-btn--primary:hover,
.brand-btn--primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-color) 32%, transparent),
              inset 0 1px rgba(255,255,255,.3);
}

.brand-btn--ghost {
  color: var(--brand-color);
  background: #fff;
  border-color: color-mix(in srgb, var(--brand-color) 35%, #000 0%);
}
.brand-btn--ghost:hover,
.brand-btn--ghost:focus {
  background: color-mix(in srgb, var(--brand-color) 6%, #fff);
}

/* Brand link */
.brand-link {
  color: var(--brand-color);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-color) 40%, transparent);
}
.brand-link:hover { border-bottom-color: currentColor; }
.badge.bg-info.text-dark {
  background-color: #3c727e !important;   /* new teal-green background  */
  border-color:     #3c727e !important;   /* keep border same colour   */
  color: #fff !important;                 /* white text                */
}

/* Photo session title links: light gray -> darker on hover */
.photo-session-link,
.photo-session-link:visited {
  color: #6c757d;              /* light-ish gray */
  text-decoration: none;       /* keep clean like your existing class */
  transition: color .15s ease-in-out;
}

.photo-session-link:hover,
.photo-session-link:focus {
  color: #adb5bd;              /* darker gray on hover/focus */
  text-decoration: none;
}

.photo-session-link:active {
  color: #495057;              /* darkest while clicking */
}

/* Brand tokens (if you already have these elsewhere, you can remove duplicates) */
:root{
  --orbit-primary: #3c727e;        /* teal */
  --orbit-primary-rgb: 60,114,126;
  --orbit-accent: #f39e1d;         /* orange */
  --orbit-accent-rgb: 243,158,29;
  --orbit-line: #e5e7eb;
}

/* ===== Filter chips (unchecked = teal w/ white text) ===== */
.container[data-controller="photo-session-filters"]
.btn-check:not(:checked) + .btn.rounded-pill{
  background-color: var(--orbit-primary) !important;
  border-color: rgba(255,255,255,.16) !important; /* subtle edge on teal */
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}

.container[data-controller="photo-session-filters"]
.btn-check:not(:checked) + .btn.rounded-pill:hover{
  filter: brightness(1.04);
}

/* Checked = Orbit orange (your existing rule, but scoped + a tiny polish) */
.container[data-controller="photo-session-filters"]
.btn-check:checked + .btn.rounded-pill{
  background-color: var(--orbit-accent) !important;
  border-color: var(--orbit-accent) !important;
  color: #fff !important;
  box-shadow: 0 0 0 .2rem rgba(var(--orbit-accent-rgb), .22) !important;
}

.container[data-controller="photo-session-filters"]
.btn-check:focus-visible + .btn.rounded-pill{
  box-shadow:
    0 0 0 .2rem rgba(var(--orbit-primary-rgb), .28),
    0 0 0 .35rem rgba(var(--orbit-accent-rgb), .18) !important;
}

/* ===== Cleaner search bar ===== */
.container[data-controller="photo-session-filters"] .input-group{
  border: 1px solid var(--orbit-line);
  border-radius: 999px;
  overflow: hidden;                 /* makes the whole group a clean pill */
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.container[data-controller="photo-session-filters"] .input-group .input-group-text{
  border: 0;
  background: transparent;
  color: var(--orbit-muted, #6b7280);
  padding-left: .9rem;
  padding-right: .6rem;
}

.container[data-controller="photo-session-filters"] .input-group .form-control{
  border: 0;
  box-shadow: none !important;
  padding-left: .25rem;
}

.container[data-controller="photo-session-filters"] .input-group .form-control::placeholder{
  color: #9ca3af;
}

.container[data-controller="photo-session-filters"] .input-group:focus-within{
  border-color: rgba(var(--orbit-primary-rgb), .55);
  box-shadow: 0 0 0 .2rem rgba(var(--orbit-primary-rgb), .18);
}

/* Make Clear feel lighter / cleaner */
.container[data-controller="photo-session-filters"] .input-group .btn{
  border: 0;
  background: transparent;
  color: #6b7280;
  padding-left: .9rem;
  padding-right: .95rem;
}
.container[data-controller="photo-session-filters"] .input-group .btn:hover{
  background: rgba(var(--orbit-primary-rgb), .08);
  color: var(--orbit-primary);
}
/* ===== Brand ===== */
:root {
  --brand-primary: #3c727e;
}

/* Brand-colored session status pill (top-of-page) */
.badge-status {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

/* Subtle polish */
.card.border-0.shadow-sm { border-radius: .75rem; }
.sun-icon { width: 18px; height: 18px; vertical-align: text-bottom; opacity: .9; }

/* ===== Timeslot status chips — single source of truth =====
   We support both:
   1) Server-rendered:   <span class="status badge rounded-pill timeslot-badge" data-status="...">
   2) Live updates that toggle Bootstrap classes: text-bg-*, bg-*, badge-*
*/

/* Base badge look */
.badge.rounded-pill.timeslot-badge,
.badge.rounded-pill[data-timeslot-badge] {
  padding: .25rem .6rem;
  line-height: 1;
  font-weight: 500;
  border: 0;
}

/* ---------- BOOKED ---------- */
.badge.rounded-pill.timeslot-badge[data-status="booked"],
.badge.rounded-pill[data-timeslot-badge][data-status="booked"],
.badge.rounded-pill.text-bg-danger,
.badge.rounded-pill.bg-danger,
.badge.rounded-pill.badge-danger,
.badge.rounded-pill.bg-danger-subtle {
  background-color: #f8d7da !important;
  color: #842029 !important;
}

/* ---------- BOOKING IN PROGRESS ---------- */
.badge.rounded-pill.timeslot-badge[data-status="booking_in_progress"],
.badge.rounded-pill[data-timeslot-badge][data-status="booking_in_progress"],
.badge.rounded-pill.text-bg-warning,
.badge.rounded-pill.bg-warning,
.badge.rounded-pill.badge-warning,
.badge.rounded-pill.bg-warning-subtle {
  background-color: #fff3cd !important;
  color: #664d03 !important;
}

/* ---------- AVAILABLE ---------- */
.badge.rounded-pill.timeslot-badge[data-status="available"],
.badge.rounded-pill[data-timeslot-badge][data-status="available"],
.badge.rounded-pill.text-bg-success,
.badge.rounded-pill.bg-success,
.badge.rounded-pill.badge-success,
.badge.rounded-pill.bg-success-subtle {
  background-color: #d1e7dd !important;
  color: #0f5132 !important;
}

/* Normalize legacy "text-dark" that might be added alongside warning */
.badge.rounded-pill.text-dark { color: inherit !important; }

/* Ultra-mobile responsiveness */
@media (max-width: 576px) {
  .container { padding-left: .75rem; padding-right: .75rem; }
  .card-body { padding: 1rem; }
  .list-group-item { padding: .75rem .75rem; }
  .sun-icon { width: 16px; height: 16px; }
  .h3 { font-size: 1.25rem; }
  .btn-sm { padding: .25rem .5rem; font-size: .825rem; }
  .fw-semibold { font-weight: 600; }
  .small.text-muted { font-size: .85rem; }
}

/* Brand badge helpers */
.badge-brand {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}
.badge-brand-subtle {
  background-color: rgba(60, 114, 126, .12) !important;   /* light teal wash */
  color: var(--brand-primary) !important;
  border: 1px solid rgba(60, 114, 126, .28) !important;
}

/* Center the Edit/Delete/Archive row on phones when it wraps below the title */
@media (max-width: 576px) {
  .session-summary-header {
    justify-content: flex-start !important; /* keep title left */
    gap: .5rem 1rem;                        /* tidy wrap gaps */
  }

  .session-summary-header .session-actions {
    width: 100%;
    display: flex;
    justify-content: center;  /* <-- center the actions row */
    gap: .5rem;
    margin-top: .25rem;
  }
}

/* Inline grid of attached/staged thumbs (same size as placeholder) */
.ps-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-thumb,
.photo-tile {
  position: relative;
  width: var(--ps-thumb-w, 180px);
  aspect-ratio: var(--ps-thumb-ratio, 4/5);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.ps-thumb img,
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls: keep corners distinct so hover targets never overlap */
.ps-thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(255,255,255,.95);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ps-thumb-choose {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(255,255,255,.95);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

/* Selected-as-thumbnail highlight */
.photo-tile.is-thumb {
  outline: 3px solid #0d6efd;
  outline-offset: -3px;
}

/* Processing placeholder (EDIT path) */
.ps-processing-surface {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.02) 0px,
    rgba(0,0,0,0.02) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 1px dashed #cbd5e1;
}

.ps-processing-label {
  font-weight: 600;
  color: #6b7280;
  animation: psPulse 1.4s ease-in-out infinite;
}

@keyframes psPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* Proper z-index stacking for nested modals (child above parent) */
.modal.modal-child { z-index: 1060; }                /* default modal is 1055 */

/* Send Session modal status line */
#sendSessionModal .session-status {
  font-size: .95rem;
  font-weight: 600;
}
#sendSessionModal .session-status.ok {
  color: #198754; /* bootstrap success */
}
#sendSessionModal .session-status.err {
  color: #dc3545; /* bootstrap danger */
}

/* ===================================================================== */
/* Waitlist modal: make it full-viewport on phones and prevent cropping  */
/* ===================================================================== */

/* Remove Bootstrap's max-height clamp when .modal-dialog-scrollable is present */
#waitlistModal .modal-dialog-scrollable .modal-body{
  max-height: none !important;
  overflow: auto !important;
}

/* Full mobile treatment */
@media (max-width: 576px) {
  /* Full-bleed, full-height dialog (regardless of .modal-lg / -centered / -scrollable) */
  #waitlistModal .modal-dialog{
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100%;
  }
  #waitlistModal .modal-dialog.modal-dialog-scrollable{
    height: 100%;
  }

  /* Make the whole content fill the viewport */
  #waitlistModal .modal-content{
    height: 100%;
    border-radius: 0.75rem 0.75rem 0 0; /* keep nice rounded top */
    display: flex;
    flex-direction: column;
  }

  /* Keep header visible; body will scroll under it if needed */
  #waitlistModal .modal-header{
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bs-body-bg);
  }

  /* Scroll the body only (iOS momentum scrolling enabled) */
  #waitlistModal .modal-body{
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none !important;
    padding-bottom: .5rem;
  }
}

/* Make the waitlist modal use the full viewport on phones (legacy helper kept) */
@media (max-width: 576px) {
  #waitlistModal .waitlist-modal-dialog {
    margin: 0 !important;    /* remove default 0.5rem margins */
    max-width: none !important;
    width: 100% !important;
  }
  #waitlistModal .modal-content {
    border-radius: 0.75rem;   /* keep some rounding; use 0 for square edges */
  }
}

/* Segmented control styles removed (no longer used) */

/* Select tiles (smaller footprint) */
.select-tile {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  cursor: pointer;
  background: var(--bs-body-bg, #fff);
}

.select-tile .tile-body {
  display: block;
  padding: .6rem .75rem; /* smaller than before */
  height: 100%;
}

.select-tile .tile-title {
  font-weight: 600;
  font-size: .95rem; /* smaller */
  line-height: 1.1;
}

.select-tile .badge {
  font-size: .7rem; /* smaller */
}

.select-tile .tile-caption {
  font-size: .75rem; /* smaller */
  margin-top: .25rem;
  line-height: 1.1;
}

/* Checked state (via :has() for modern browsers) */
.select-tile:has(input[type="checkbox"]:checked) {
  border-color: var(--bs-primary);
  background: rgba(13,110,253,.04);
  box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
}

/* Visual states for browsers without :has() (toggled by JS) */
.select-tile.is-selected {
  border-color: var(--bs-primary);
  background: rgba(13,110,253,.04);
  box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
}
.select-tile.is-disabled {
  opacity: .6;
}

/* Focus-visible state when keyboard toggling */
.select-tile input[type="checkbox"]:focus-visible + .tile-body {
  outline: 3px solid rgba(13,110,253,.35);
  outline-offset: 2px;
}

/* Hide native checkbox but keep accessibility */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* Ensure the header card can "escape" and sit above following cards */
.session-summary-card,
.session-summary-card > .card-body {
  position: relative;         /* create a local stacking context */
  overflow: visible !important; /* allow the dropdown to render outside */
}

#customer-selection-field .inline-client-group > .btn {
  white-space: nowrap;              /* don’t wrap the label */
}
#customer-selection-field .inline-client-create-btn {
  display: flex;                    /* center + sign vertically */
  align-items: center;
  gap: .25rem;
  padding-inline: .75rem;
}
#customer-selection-field .inline-client-create-btn .plus {
  font-weight: 700;
  line-height: 1;
}
/* Scoped styles for the price sheet container */
.price-sheet-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.price-sheet-title {
  font-size: 2rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

/* Price sheet card styles - Force override Bootstrap */
.price-sheet-container .price-sheet-card {
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  overflow: hidden;
  background-color: #ffffff !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-sheet-container .price-sheet-card:hover {
  background-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Force card header styling */
.price-sheet-container .price-sheet-card .card-header {
  background-color: #f8f9fa !important;
  color: #3c727e !important;
  font-weight: bold;
  font-size: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

/* Product text styling */
.price-sheet-container .price-sheet-product {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #3c727e !important;
}

.price-sheet-container .price-sheet-product strong {
  color: #3c727e !important;
}

.price-sheet-container .price-sheet-product span {
  color: #3c727e !important;
}

/* Card body styles */
.price-sheet-container .price-sheet-card .card-body {
  background-color: #ffffff !important;
  padding: 1rem;
  color: #333 !important;
  border: none !important;
}

/* Button styling - Force override */
.price-sheet-container .btn {
  font-size: 0.9rem;
}

/* Make outline-primary buttons filled with brand color */
.price-sheet-container .btn-outline-primary {
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: white !important;
  transition: all 0.3s ease;
}

.price-sheet-container .btn-outline-primary:hover {
  background-color: #2e5b69 !important;
  color: white !important;
  border-color: #2e5b69 !important;
}

.price-sheet-container .btn-primary {
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: white !important;
}

.price-sheet-container .btn-primary:hover {
  background-color: #2e5b69 !important;
  border-color: #2e5b69 !important;
}

.price-sheet-container .btn-secondary {
  background-color: #e9ecef !important;
  border-color: #ccc !important;
  color: #333 !important;
}

.price-sheet-container .btn-secondary:hover {
  background-color: #d6d6d6 !important;
  border-color: #aaa !important;
}

/* Back button specific styling - filled brand color */
.price-sheet-container .price-sheet-back-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: white !important;
}

.price-sheet-container .price-sheet-back-btn:hover {
  background-color: #2e5b69 !important;
  color: white !important;
  border-color: #2e5b69 !important;
}

/* Form Inputs */
.price-sheet-container form .form-control {
  border-radius: 5px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  background-color: #ffffff !important;
  color: #333 !important;
}

/* Form Labels */
.price-sheet-container .form-label {
  color: #3c727e !important;
  font-weight: 600;
}

/* Error Message */
.price-sheet-container .text-danger {
  font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .price-sheet-container {
    padding: 1rem;
  }

  .price-sheet-title {
    font-size: 1.5rem;
  }

  .price-sheet-container .price-sheet-card .card-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .price-sheet-container .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .price-sheet-title {
    font-size: 1.25rem;
  }

  .price-sheet-container .price-sheet-card {
    border-radius: 5px !important;
  }

  .price-sheet-container {
    padding: 1rem;
  }
}
/*public-gallery.css

/* ────────────────────────────────────────────────────────────── */
/* 1.  Global resets & variables                                 */
/* ────────────────────────────────────────────────────────────── */
:root {
  --preview-offset: 0px;            /* will become 48 px in preview */
  --star-font-size: 1.3rem;         /* star icon size */
  --star-hit-size: 42px;            /* star click-target box */
  --select-size: calc(var(--star-font-size) + 2px); /* select circle ≈ star size */
  --brand-color: #3c727e;           /* BRAND COLOR for notices/banners */
  --mobile-gap: .18rem;             /* gap between tiles on phones */
}

html.public-gallery body,
body.public-gallery {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow-x: hidden;
}

/* Cyan “Gallery Preview” strip (only in preview mode) */
.preview-notice {
  margin: 0 !important;
  --preview-offset: 48px;
}

/* Shared hero typography */
.hero-typography {
  font-family: var(--gallery-font, Arial);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* Brand name at very top of hero */
.brand-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  text-align: center;
  font-size: clamp(16px, 1.6vw, 22px);
  color: #fff !important; /* ensure exact white like gallery title */
}
@media (max-width: 576px) { .brand-banner { top: 12px; } }

/* Also ensure global UI elements use the gallery font */
body.public-gallery .btn,
body.public-gallery .alert,
body.public-gallery .modal-title,
body.public-gallery .form-label {
  font-family: var(--gallery-font, Arial) !important;
}

/* ────────────────────────────────────────────────────────────── */
/* 2.  Hero (cover-photo block or placeholder)                   */
/* ────────────────────────────────────────────────────────────── */
.cover-photo,
.cover-photo > .position-relative {
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}
@supports not (height: 100dvh) {
  .cover-photo,
  .cover-photo > .position-relative { min-height: 100vh; }
}
.cover-photo .cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-notice + .cover-photo,
.preview-notice + .cover-photo > .position-relative { min-height: calc(100dvh - 48px); }
@supports not (height: 100dvh) {
  .preview-notice + .cover-photo,
  .preview-notice + .cover-photo > .position-relative { min-height: calc(100vh - 48px); }
}

/* ================== MOBILE HERO FIXES (phones only) ===================== */
@media (max-width: 576px) {
  .cover-photo,
  .cover-photo > .position-relative {
    min-height: calc(100svh - var(--preview-offset));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
  }
  .cover-photo .cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cover-photo .cover-content,
  .cover-photo .gallery-name,
  .cover-photo .view-gallery-button {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    text-align: center !important;
  }
  .cover-photo .cover-content {
    display: grid;
    gap: .75rem;
    padding: 0 16px;
    z-index: 2;
  }
  .cover-photo::before,
  .cover-photo::after,
  .cover-photo > .position-relative::before,
  .cover-photo > .position-relative::after {
    content: none !important;
    display: none !important;
  }
  .cover-photo + * { margin-top: .5rem !important; }
}

/* ────────────────────────────────────────────────────────────── */
/* 2a.  View Gallery CTA — GLASS look, but NOT pill              */
/* ────────────────────────────────────────────────────────────── */
.view-gallery-btn {
  font-family: var(--gallery-font, Arial);
  color: #fff !important;
  background: linear-gradient(to bottom, rgba(255,255,255,.20), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: .375rem;
  padding: .6rem 1.25rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.2);
  transition: transform .08s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.view-gallery-btn:hover,
.view-gallery-btn:focus {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.25);
}
.view-gallery-btn:active {
  transform: translateY(0);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 4px 18px rgba(0,0,0,.25) inset;
}
.view-gallery-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

/* ────────────────────────────────────────────────────────────── */
/* 2b.  Upgrade Gallery CTA — original WHITE glass, rectangular  */
/* ────────────────────────────────────────────────────────────── */
.upgrade-gallery-btn {
  font-family: var(--gallery-font, Arial);
  color: #1f2937 !important;
  background: linear-gradient(to bottom, rgba(255,255,255,.96), rgba(255,255,255,.90));
  border: 1px solid rgba(0,0,0,.14);
  border-radius: .375rem;
  padding: .55rem 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(17,24,39,.08);
  transition: transform .08s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.upgrade-gallery-btn:hover,
.upgrade-gallery-btn:focus {
  background: #fff;
  border-color: rgba(0,0,0,.20);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17,24,39,.12);
}
.upgrade-gallery-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.08);
}
.upgrade-gallery-btn:focus-visible {
  outline: 3px solid rgba(0,0,0,.18);
  outline-offset: 3px;
}

/* ────────────────────────────────────────────────────────────── */
/* 3.  Masonry grid (albums)                                     */
/* ────────────────────────────────────────────────────────────── */
.masonry-grid {
  column-count: 4;
  column-gap: 0.2em;
  margin: 0;
  padding: 0;
}
.masonry-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0.08rem;
  vertical-align: top;
  position: relative;
  line-height: 0;
}

/* Tight wrapper so overlays anchor to the actual image bounds */
.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

/* Desktop/tablet column counts */
@media (max-width: 1200px) { .masonry-grid { column-count: 3; } }
@media (max-width: 900px)  { .masonry-grid { column-count: 2; } }

/* ================== MOBILE GRID FIXES (phones only) ===================== */
@media (max-width: 576px) {
  .masonry-grid  { column-count: 2; column-gap: var(--mobile-gap) !important; }
  .masonry-item  { margin: 0 0 var(--mobile-gap) 0 !important; }

  /* Kill any theme borders/padding/shadows that create a “white border” */
  .album-photos .masonry-item,
  .album-photos .photo-tile,
  .album-photos .photo-tile > a[data-glightbox="true"],
  .album-photos .watermark-preview-container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
  }

  /* Clip rounded corners on the WRAPPER (prevents white halo around img) */
  .album-photos .photo-tile {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Image fills wrapper; let wrapper handle rounding */
  .album-photos .photo-tile img,
  .album-photos .watermark-preview-container img {
    border-radius: 0 !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* ────────────────────────────────────────────────────────────── */
/* 4.  Album / watermark / misc                                  */
/* ────────────────────────────────────────────────────────────── */
.album-buttons .btn.active { background: #0d6efd; color: #fff; }

.watermark-layer,
.watermark-tiled-layer { z-index: 1; }
.watermark-tiled-layer {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cover-content               { z-index: 2; }
.gallery-name,
.view-gallery-button         { z-index: 3; }

.vertical-image,
.horizontal-image { width: 100%; max-height: 100vh; object-fit: cover; }

/* “Previously Downloaded” — pill anchored INSIDE each image */
.watermark-preview-container .downloaded-label,
.downloaded-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.68);
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 9999px;
  text-align: center;
  z-index: 14;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  display: inline-block;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

body.public-gallery .watermark-preview-container {
  position: relative !important;
  display: inline-block !important;
  vertical-align: top;
  line-height: 0;
}

/* Mobile: fill available width with safe insets, no translate */
@media (max-width: 640px) {
  .watermark-preview-container .downloaded-label,
  .downloaded-label {
    left: 8px;
    right: 8px;
    transform: none;
    max-width: none;
    padding: .35rem .5rem;
    font-size: clamp(12px, 2.8vw, 14px);
  }
}

/* Download button – icon only, subtle hover, tighter spacing */
.album-content .text-center.my-4 {
  margin-top: .75rem !important;
  margin-bottom: .75rem !important;
}

/* Keep the download button gray (never white) across all states */
.gallery-download-btn,
.gallery-download-btn:hover,
.gallery-download-btn:active,
.gallery-download-btn:focus,
.gallery-download-btn:focus-visible {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  line-height: 1;
  box-shadow: none !important;
  transform: none !important;
  outline: none;
  color: #6c757d !important;
}
.gallery-download-btn:hover,
.gallery-download-btn:focus,
.gallery-download-btn:active,
.gallery-download-btn.show,
.gallery-download-btn[aria-expanded="true"] {
  color: #343a40 !important;
}
.gallery-download-icon {
  font-size: 2rem;
  color: currentColor;
  transition: color .15s ease-in-out;
}
.gallery-download-btn:focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────── */
/* 5.  Video thumbnails & misc                                   */
/* ────────────────────────────────────────────────────────────── */
.video-thumbnail-wrapper { position: relative; width: 100%; overflow: hidden; }
.video-thumbnail-container img.video-thumbnail {
  width: 100%; height: auto; display: block;
}
.download-icon {
  position: absolute; top: 10px; right: 10px;
  color: #fff; font-size: 1.5rem; opacity: .8;
  z-index: 2; transition: opacity .2s;
}
.video-thumbnail-wrapper:hover .download-icon { opacity: 1; }
.play-icon-overlay { pointer-events: none; }
.subtle-divider    { border: none; border-top: 1px solid #ddd; width: 80%; margin: 0 auto; opacity: .6; }
.video-item        { flex: 1 1 250px; max-width: 300px; margin: 10px; }

/* Make sure photo select control is always visible on very small screens */
@media (max-width: 768px) {
  .photo-select,
  .photo-select-checkbox { display: block !important; }
}

/* place in public-gallery.css or any global file that loads after Bootstrap */
.notice:empty,
.alert:empty { display: none; }

/* Preview strip uses brand color (only for PREVIEW banner) */
.preview-notice.alert-info {
  background-color: var(--brand-color) !important;
  border-color:   var(--brand-color) !important;
  color: #fff !important;
}

/* ────────────────────────────────────────────────────────────── */
/* 6.  Favorite + Select (dynamic star placement)                 */
/* ────────────────────────────────────────────────────────────── */
.favorite-toggle {
  position: absolute;
  bottom: 12px;
  right: 6px;
  z-index: 12;
  display: grid;
  align-items: center;
  justify-items: end;
  padding-right: 2px;
  width: var(--star-hit-size);
  height: var(--star-hit-size);
  padding-left: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  cursor: pointer;
  transition: opacity .15s ease-in-out, right .15s ease-in-out;
  opacity: 0;
  pointer-events: none;
}
.photo-tile:hover .favorite-toggle,
.masonry-item:hover .favorite-toggle { opacity: 1; pointer-events: auto; }
.favorite-toggle.is-favorited { opacity: 1; pointer-events: auto; }
.photo-tile:has(.photo-select):hover .favorite-toggle,
.photo-tile:has(.select-input:checked) .favorite-toggle {
  right: calc(6px + var(--select-size) + 2px);
}
@media (max-width: 768px) {
  .photo-tile:has(.photo-select) .favorite-toggle {
    right: calc(6px + var(--select-size) + 2px);
  }
}
.favorite-toggle i { grid-area: 1 / 1; font-size: var(--star-font-size); line-height: 1; }
.favorite-toggle .bi-star-fill { color: rgba(0,0,0,.55); z-index: 1; }
.favorite-toggle .bi-star      { color: #fff; z-index: 2; text-shadow: 0 0 2px rgba(0,0,0,.50), 0 0 6px rgba(0,0,0,.25); }
.favorite-toggle.is-favorited .bi-star-fill { color: #fff; z-index: 1; text-shadow: none; }
.favorite-toggle.is-favorited .bi-star      { display: inline; color: #000; z-index: 2; text-shadow: none; }
.favorite-toggle:hover .bi-star,
.favorite-toggle:hover .bi-star-fill { filter: brightness(1.05); }
.favorite-toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

/* === Select (download) pill ==================================== */
.photo-select {
  z-index: 13;
  position: absolute;
  bottom: calc(12px + (var(--star-hit-size) - var(--select-size)) / 2);
  right: 6px;
  line-height: 1;
  display: none;
}
.masonry-item:hover .photo-select,
.photo-tile:hover .photo-select { display: block; }
.photo-select:has(.select-input:checked) { display: block !important; }
.masonry-item:hover .photo-select-checkbox,
.photo-tile:hover .photo-select-checkbox { display: block; }

.select-input.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.select-pill {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--select-size);
  height: var(--select-size);
  cursor: pointer;
  border-radius: 9999px;
  background: rgba(0,0,0,.55);
  border: 2px solid #fff;
  color: inherit;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, transform .1s ease-in-out;
}
.select-pill .bi,
.select-pill .bi-circle,
.select-pill .bi-check-circle-fill { display: none !important; }
.select-pill:hover,
.select-pill:focus-visible { background: rgba(0,0,0,.65); border-color: #fff; }
.select-input:checked + .select-pill { background: rgba(0,0,0,.78); border-color: rgba(255,255,255,.95); }
.select-pill::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: calc(var(--select-size) * .42);
  height: calc(var(--select-size) * .22);
  border: calc(var(--select-size) * .10) solid #fff;
  border-top: 0;
  border-right: 0;
  transform: translate(-50%, -58%) rotate(-45deg);
  display: none;
}
.select-input:checked + .select-pill::after { display: block; }
.select-pill:active { transform: scale(0.97); }

/* ===== GLightbox: full-page pure white, no glow, above navbar ===== */

/* Put the overlay on TOP of any fixed headers */
.glightbox .goverlay,
.glightbox-container { z-index: 999999 !important; }

/* Make the overlay full-bleed solid white */
.glightbox .goverlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #fff !important;       /* no transparency */
  opacity: 1 !important;              /* ignore theme opacity */
}

/* Some themes also color inner wrappers — force them white too */
.glightbox-container,
.glightbox-container .gcontainer,
.glightbox-container .gslider,
.glightbox-container .ginner-container,
.glightbox-container .gslide,
.glightbox-container .gslide-media {
  background: #fff !important;
  box-shadow: none !important;
  filter: none !important;
  border: 0 !important;
}

/* Kill any drop-shadows / glows on the image itself */
.glightbox .gslide-media img,
.glightbox .gslide-image img,
.glightbox .ginner-container img,
.glightbox .gslide-media video,
.glightbox .gslide-media iframe {
  box-shadow: none !important;
  filter: none !important;
  background: transparent !important;
  border: 0 !important;
}

/* Controls readable on white, no shadow halo */
.glightbox .gclose,
.glightbox .gnext,
.glightbox .gprev {
  color: #111 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,0.7) !important;
  border-radius: 999px !important;
}
.glightbox .gclose:hover,
.glightbox .gnext:hover,
.glightbox .gprev:hover { background: rgba(0,0,0,0.06) !important; }

/* Captions/titles dark on white */
.glightbox .gdesc-inner,
.glightbox .gslide-title,
.glightbox .gslide-description,
.glightbox .gcounter {
  color: #111 !important;
  text-shadow: none !important;
}

/* If the “clean” theme adds a panel bg, override it */
.glightbox-clean .gslide-inner-content { background: #fff !important; }

/* Belt & suspenders: when body is in GB open state, keep backdrop white */
html.glightbox-open,
body.glightbox-open { background: #fff !important; }
/* app/assets/stylesheets/public-locations-show.css */
:root{
  --orbit-primary: #3c727e;
  --orbit-ink:     #1f2937;
  --orbit-muted:   #6b7280;
  --orbit-line:    #e5e7eb;
  --loc-gap: clamp(6px, 0.6vw, 12px);
}

/* page scaffold */
.location-page{ max-width: 960px; }

/* header */
.loc-header{ margin-bottom:.5rem; }
.loc-title{
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height:1.2;
  margin:0 0 .4rem;
  color: var(--orbit-ink);
}
.loc-type-badge{
  background: rgba(60,114,126,.12);
  color: var(--orbit-primary);
  border: 1px solid rgba(60,114,126,.28);
}

/* ===== Flickity full-bleed hero ===== */
.loc-hero-flickity{ display:block !important; } /* defense vs stray sheets */
.loc-hero-carousel{
  width:100vw;
  margin-left:calc(50% - 50vw);
  overflow:visible;
}

/* Make sure the viewport has a height without relying on image load */
.loc-hero-flickity .flickity-viewport{
  height: clamp(260px, 45vw, 520px) !important;
}
.loc-hero-flickity .flickity-slider{ height:100%; }

/* Base cell styling (default 33.333vw for 1 or 3+ images) */
.carousel-cell{
  display:block;
  height:100%;
  margin-right: var(--loc-gap);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}

/* Width logic: ONLY change when there are exactly two photos */
.loc-hero-flickity[data-count="2"] .carousel-cell{
  /* two-up: 50vw each minus half the gap so the total never exceeds 100vw */
  width: calc(50vw - (var(--loc-gap) / 2));
  max-width: none;
}

/* Default width for 1 or 3+ (unchanged from previous) */
.loc-hero-flickity:not([data-count]) .carousel-cell,
.loc-hero-flickity[data-count="1"] .carousel-cell,
.loc-hero-flickity[data-count="3"] .carousel-cell,
.loc-hero-flickity[data-count="4"] .carousel-cell,
.loc-hero-flickity[data-count="5"] .carousel-cell,
.loc-hero-flickity[data-count="6"] .carousel-cell{
  width: 33.333vw;
  max-width:760px;
}

/* Images fill the cell area */
.loc-hero-img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Fallback (before Flickity initializes) — still swipeable */
.loc-hero-carousel:not(.flickity-enabled){
  display:grid;
  grid-auto-flow:column;
  gap: var(--loc-gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}
.loc-hero-carousel:not(.flickity-enabled) .carousel-cell{
  height: clamp(260px, 45vw, 520px);
  scroll-snap-align:center;
}

/* Fallback sizing by count */
.loc-hero-flickity[data-count="2"] .loc-hero-carousel:not(.flickity-enabled){
  grid-auto-columns: calc(50vw - (var(--loc-gap) / 2));
}
/* Default fallback width for 1 or 3+ (unchanged) */
.loc-hero-flickity:not([data-count]) .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="1"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="3"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="4"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="5"] .loc-hero-carousel:not(.flickity-enabled),
.loc-hero-flickity[data-count="6"] .loc-hero-carousel:not(.flickity-enabled){
  grid-auto-columns:33.333vw;
}

/* Mobile: show one-per-view when JS hasn’t booted yet */
@media (max-width:576px){
  .loc-hero-carousel:not(.flickity-enabled){ grid-auto-columns:100vw; }
  .carousel-cell{ margin-right: clamp(4px, 1.5vw, 8px); border-radius:10px; }
}

/* cards */
.loc-card { border-radius: 1rem; }
.loc-card .card-body{ padding: 1rem 1.1rem; }
@media (min-width: 576px){
  .loc-card .card-body{ padding: 1.25rem 1.5rem; }
}

/* key-value details */
.loc-kv{ display:flex; flex-direction:column; gap:.75rem; }
.loc-kv-row{
  display:grid; grid-template-columns: 140px 1fr;
  gap: 1rem; align-items:start;
  padding: .25rem 0;
  border-bottom: 1px dashed var(--orbit-line);
}
.loc-kv-row:last-child{ border-bottom:none; }
.loc-kv-row dt{
  margin:0; color: var(--orbit-muted);
  font-weight:600; font-size:.95rem;
}
.loc-kv-row dd{ margin:0; }
.loc-body{ color: var(--orbit-ink); }

/* map */
.loc-map{
  height: clamp(260px, 42vh, 420px);
  border-radius: .75rem;
  overflow: hidden;
  background: #f5f7f8;
}

/* nav */
.loc-nav{ display:flex; justify-content:center; }
.loc-nav .btn{ min-width: 220px; }

/* small-screen love */
@media (max-width: 576px){
  .loc-kv-row{ grid-template-columns: 110px 1fr; gap:.75rem; }
  .loc-nav .btn{ width:100%; }
}

/* just in case */
.loc-hero-flickity .carousel-control-prev-icon,
.loc-hero-flickity .carousel-control-next-icon{
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
/* Session Category hero — Flickity-only, GLightbox removed */

.sc-title{ font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.2; }

/* Full-bleed container */
.sc-hero-flickity { margin-bottom: 1rem; }
.sc-hero-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: visible;
}

/* Give Flickity a fixed viewport height (we use setGallerySize:false) */
.sc-hero-flickity .flickity-viewport {
  height: clamp(260px, 45vw, 520px) !important;
}
.sc-hero-flickity .flickity-slider { height: 100%; }

/* Cells (3-up desktop) */
.sc-hero-carousel .carousel-cell{
  display:block;
  width:33.333vw;
  max-width:760px;
  height:100%;
  margin-right:10px;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.sc-hero-img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Subtle emphasis on selected cell */
.sc-hero-carousel .carousel-cell.is-selected{
  transform:scale(1.02);
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}

/* Fallback layout if Flickity hasn't initialized yet (still side-by-side) */
.sc-hero-carousel:not(.flickity-enabled){
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:33.333vw;
  gap:10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}
.sc-hero-carousel:not(.flickity-enabled) .carousel-cell{
  height:clamp(260px, 45vw, 520px);
  scroll-snap-align:center;
}

/* 1–2 images */
.sc-hero-flickity[data-count="1"] .sc-hero-carousel:not(.flickity-enabled){ grid-auto-columns:100vw; }
.sc-hero-flickity[data-count="2"] .sc-hero-carousel:not(.flickity-enabled){ grid-auto-columns:50vw; }
.sc-hero-flickity[data-count="1"] .sc-hero-carousel .carousel-cell{ width:100vw; margin-right:0; }
.sc-hero-flickity[data-count="2"] .sc-hero-carousel .carousel-cell{ width:50vw; }

/* Mobile: single full-bleed */
@media (max-width:576px){
  .sc-hero-carousel:not(.flickity-enabled){ grid-auto-columns:100vw; }
  .sc-hero-carousel .carousel-cell{
    width:100vw;
    margin-right:6px;
    height:clamp(220px, 55vw, 420px);
    border-radius:6px;
  }
}
/* ======= Public-facing style with full-bleed media and timeslot-like tasks ======= */
:root{
  /* Brand palette */
  --orbit-accent:        #f39e1d;                 /* orange */
  --orbit-teal-400:      #6d8c91;                 /* muted teal */
  --orbit-teal-500:      #3c727e;                 /* primary teal */
  --orbit-teal-600:      #355d65;                 /* deeper teal */
  --orbit-ink-800:       #343436;                 /* near-black */

  /* Existing tokens aligned to brand */
  --orbit-primary:       var(--orbit-teal-500);
  --orbit-primary-600:   var(--orbit-teal-600);
  --orbit-ink:           #1f2937;
  --orbit-muted:         #6b7280;
  --orbit-line:          #e5e7eb;

  /* Subtle accents for selection */
  --ring-accent:         rgba(243,158,29,.30);    /* orange ring */
  --ring-accent-soft:    rgba(243,158,29,.18);
  --tint-accent:         rgba(243,158,29,.10);    /* warm tint overlay */
  --border-accent:       rgba(243,158,29,.42);

  --ring-teal:           rgba(109,140,145,.22);   /* teal ring (hover/focus) */
  --border-teal:         rgba(109,140,145,.35);

  /* CTA color (fallback + modern) */
  --orbit-book-cta: #5a8f97; /* ~20% lighter than #3c727e (fallback) */
  --orbit-book-cta: color-mix(in srgb, var(--orbit-primary) 82%, white);
}

/* Header logo */
.public-view-header-logo__img{
  max-height: 125px;
  width: auto !important;
  height: auto;
  object-fit: contain;
  display: inline-block;
}
@media (max-width:480px){ .public-view-header-logo__img{ max-height:70px; } }

/* ======= Title (no chips) ======= */
.ps-title{
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.2;
  color: var(--orbit-ink);
}

/* ======= Full-bleed media (legacy hooks kept) ======= */
.ps-fullbleed-media{ margin-bottom: 1rem; }
.ps-media-wrap{ height: min(72vh, 820px); position: relative; }
.ps-media-img{ object-fit: cover; }

/* Subtle shadow for controls so they’re visible on bright photos */
.carousel-control-prev, .carousel-control-next{
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* ======= Sections & copy ======= */
.ps-section{ padding: 1.25rem 0; border-top: 1px solid var(--orbit-line); }
.ps-section:first-of-type{ border-top:none; }
.ps-h2{ font-size: 1.1rem; margin: 0 0 .75rem; color: var(--orbit-ink); }
.ps-text{ color: var(--orbit-muted); }

/* ======= Key-Value detail list ======= */
.ps-kv{ display:flex; flex-direction:column; gap:.4rem; }
.ps-kv-compact{ gap:.25rem; }
.ps-kv-row{
  display:flex; gap:1rem; align-items:flex-start;
  padding:.25rem 0; border-bottom:1px dashed var(--orbit-line);
}
.ps-kv-row:last-child{ border-bottom:none; }
.ps-kv-row dt{ width: 130px; min-width:130px; color: var(--orbit-muted); font-weight:600; font-size:.92rem; margin:0; }
.ps-kv-row dd{ margin:0; }

/* ======= Packages (light cards) ======= */
.ps-package{
  border:1px solid var(--orbit-line);
  border-radius: .75rem;
  padding: .9rem;
  background: #fff;
}
.ps-package-title{ font-size:1rem; margin:0; color:var(--orbit-ink); }
.ps-price{
  font-weight:700; font-size:.9rem;
  background:#eef5f6; color: var(--orbit-primary);
  padding:.15rem .45rem; border-radius:.4rem;
}

/* ======= Availability ======= */
.ps-date-block{ padding: .9rem 0; }
.ps-date-block + .ps-date-block{ border-top:1px solid var(--orbit-line); }
.ps-date-heading{ font-weight:700; margin-bottom:.5rem; color: var(--orbit-ink); }

/* Timeslot buttons — modern, subtle, brand-aligned */
.timeslot-button{
  position: relative;
  display:inline-flex; align-items:center; justify-content:center;
  width:100%;
  padding:.62rem .72rem;
  font-size:.95rem; font-weight:600; letter-spacing:.01em;
  color:#fff;
  background-color: var(--orbit-primary);             /* #3c727e */
  border: 1px solid rgba(255,255,255,.12);
  border-radius:.65rem;
  cursor:pointer;
  outline: none;
  transition:
    background-color .16s ease,
    box-shadow .16s ease,
    transform .06s ease,
    filter .16s ease,
    border-color .16s ease;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.timeslot-button:hover{
  filter: brightness(1.04);
  border-color: var(--border-teal);
  box-shadow: 0 0 0 2px var(--ring-teal);
}
.timeslot-button:active{ transform: translateY(1px); }

/* Selected — clear but not loud */
.timeslot-button.selected{
  filter: brightness(1.055);
  border-color: var(--border-accent);             /* orange border (soft) */
  box-shadow:
    0 0 0 2px var(--ring-accent),                 /* orange ring */
    0 1px 0 rgba(255,255,255,.06) inset;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(80% 120% at 50% -20%, var(--tint-accent), rgba(243,158,29,0) 60%);
}

/* Keyboard focus ring — slightly stronger teal for accessibility */
.timeslot-button:focus-visible{
  box-shadow: 0 0 0 2px var(--ring-teal), 0 0 0 4px var(--ring-accent-soft);
  border-color: var(--border-teal);
}

/* Sticky BOOK CTA (centered, no jitter on submit) — supports Stimulus v3 + legacy */
button[data-timeslot-status-target="bookButton"],
button[data-target="timeslot_status.bookButton"]{
  position: fixed;
  bottom: 20px;
  left: 0; right: 0;
  margin: 0 auto;
  z-index: 1000;
  display: none;
  min-width: 200px;
  max-width: min(260px, 92vw);
  height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--orbit-primary);
  border: none;
  border-radius: .8rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease, background-color .16s ease;
  transform: translateY(0); /* prevent slide/jitter on submit */
}
button[data-timeslot-status-target="bookButton"]:hover,
button[data-target="timeslot_status.bookButton"]:hover{
  background-color: var(--orbit-primary-600); /* #355d65 */
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

/* ======= Motion preferences ======= */
@media (prefers-reduced-motion: reduce){
  .timeslot-button,
  button[data-timeslot-status-target="bookButton"],
  button[data-target="timeslot_status.bookButton"]{
    transition: none !important;
  }
}

/* ======= Responsive ======= */
@media (max-width: 992px){
  .ps-kv-row dt{ width:110px; min-width:110px; }
  .timeslot-button{ font-size:.9rem; padding:.54rem .6rem; }
}
@media (max-width: 576px){
  .ps-kv-row dt{ width:100px; min-width:100px; }
  .timeslot-button{ font-size:.88rem; padding:.48rem .55rem; }
}

/* =================== FLICKITY HERO (full-bleed + 2-image ONLY) =================== */
:root{ --ps-gap: clamp(6px, 0.6vw, 12px); }

/* keep it visible even if other sheets say otherwise */
.ps-hero-flickity{ display:block !important; }

.ps-hero-carousel{
  width:100vw;
  margin-left:calc(50% - 50vw);
  overflow:visible;
}

/* viewport height when setGallerySize:false */
.ps-hero-flickity .flickity-viewport{
  height: clamp(260px, 45vw, 520px) !important;
}
.ps-hero-flickity .flickity-slider{ height: 100%; }

/* --- Base cell (default sizing = 33.333vw like before) --- */
.ps-hero-carousel .carousel-cell{
  display:block;
  width:33.333vw;              /* default (single & 3+ keep this) */
  max-width:760px;
  height:100%;
  margin-right: var(--ps-gap);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}

/* --- Special case: exactly TWO photos only --- */
.ps-hero-flickity[data-count="2"] .carousel-cell{
  width: calc(50vw - (var(--ps-gap) / 2));
  max-width: none;
}

/* image fills cell */
.ps-hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Fallback (before Flickity initializes) — still swipeable */
.ps-hero-carousel:not(.flickity-enabled){
  display:grid;
  grid-auto-flow:column;
  gap: var(--ps-gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}
.ps-hero-carousel:not(.flickity-enabled) .carousel-cell{
  height: clamp(260px, 45vw, 520px);
  scroll-snap-align:center;
  /* grid item width defaults to the item’s own width (33.333vw base) */
}

/* Fallback tweak ONLY for two photos */
.ps-hero-flickity[data-count="2"] .ps-hero-carousel:not(.flickity-enabled){
  grid-auto-columns: calc(50vw - (var(--ps-gap) / 2));
}

/* Mobile: single full-bleed when JS hasn't booted yet */
@media (max-width:576px){
  .ps-hero-carousel:not(.flickity-enabled){ grid-auto-columns:100vw; }
  .ps-hero-carousel .carousel-cell{
    margin-right: clamp(4px, 1.5vw, 8px);
    border-radius:10px;
  }
}

/* Re-theme the sticky BOOK button only (kept at end to win conflicts) */
button[data-timeslot-status-target="bookButton"],
button[data-target="timeslot_status.bookButton"]{
  background-color: var(--orbit-book-cta) !important;
  border: none !important;
  color: #fff;
}
button[data-timeslot-status-target="bookButton"]:hover,
button[data-target="timeslot_status.bookButton"]:hover{
  background-color: var(--orbit-primary) !important; /* the normal teal */
}
button[data-timeslot-status-target="bookButton"]:active,
button[data-target="timeslot_status.bookButton"]:active{
  background-color: var(--orbit-primary-600) !important; /* a hair darker */
}

/* Waitlist date button selected state — exact brand orange */
.wl-date-btn[aria-pressed="true"],
.wl-date-btn.wl-selected {
  background-color: #e38c06 !important;
  border-color: #e38c06 !important;
  color: #fff !important;               /* strong contrast on orange */
  box-shadow: 0 0 0 .2rem rgba(227, 140, 6, .35);
}

/* (optional) nicer hover/transition */
.wl-date-btn {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.public-view-header-logo__img{
  max-height: 125px;
  width: auto !important;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

@media (max-width:480px){
  .public-view-header-logo__img{ max-height:70px; }
}
/* app/assets/stylesheets/questionnaire-instances.css */

.questionnaire-page{
  max-width: 980px;
}

/* Modern “sheet” container */
.qa-shell{
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  overflow: hidden;
}

/* Header */
.qa-header{
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.qa-subtitle{
  font-size: .85rem;
  color: var(--bs-secondary-color);
}

/* Body */
.qa-body{
  padding: .25rem 0;
}

/* Rows: compact, divider-based */
.qa-row{
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.qa-row:last-child{
  border-bottom: 0;
}

.qa-row-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.qa-kicker{
  font-size: .75rem;
  color: var(--bs-secondary-color);
  margin-bottom: .1rem;
}

.qa-qtext{
  font-size: .98rem;
  line-height: 1.25;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ✅ Answer display: match Bootstrap "sm" input sizing (less left inset, shorter height) */
.qa-answer{
  margin-top: .35rem;
  display: block;
  width: 100%;

  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;

  /* Like .form-control-sm (tighter than before) */
  padding: .25rem .5rem;

  font-size: .875rem;
  line-height: 1.25;

  text-align: left !important;
  text-indent: 0 !important;

  /* prevents weird "indent" from leading whitespace */
  white-space: pre-line;

  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Status: subtle, modern */
.qa-status{
  font-size: .78rem;
  padding: .2rem .45rem;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  background: transparent;
  white-space: nowrap;
}

/* ✅ Edit input: same sizing as display answer */
.qa-input{
  margin-top: .35rem;
  border-radius: 12px;

  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.25;

  resize: none;      /* autosize via JS */
  min-height: 0;     /* don't force tall */
}

/* Ensure no global rules bleed in */
.q-answer-display,
.q-answer-input{
  text-align: left !important;
}

/* Swap display/textarea */
.qa-row[data-editing="true"] .q-answer-display { display: none; }
.qa-row[data-editing="true"] .q-answer-input   { display: block !important; }

/* Status states */
.qa-status[data-state="saving"]{
  color: var(--bs-warning-text-emphasis);
  border-color: var(--bs-warning-border-subtle);
  background: var(--bs-warning-bg-subtle);
}

.qa-status[data-state="saved"]{
  color: var(--bs-success-text-emphasis);
  border-color: var(--bs-success-border-subtle);
  background: var(--bs-success-bg-subtle);
}

.qa-status[data-state="error"]{
  color: var(--bs-danger-text-emphasis);
  border-color: var(--bs-danger-border-subtle);
  background: var(--bs-danger-bg-subtle);
}
.questionnaire-templates-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Title Styling */
.questionnaire-templates-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Add Location Button */
.btn-add-questionnaire-template {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #3c727e;
  border-color: #3c727e;
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-add-questionnaire-template:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
}

/* Ensure modal content is not centered by parent container */
.modal-content {
  text-align: left; /* Override inherited text alignment */
  margin: 0 auto; /* Keep it centered within the modal dialog */
}

.questionnaire-template-list {
  padding: 0;
  list-style: none;
}

.questionnaire-template-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.questionnaire-template-item-card:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.questionnaire-template-info {
  max-width: 70%;
}
.questionnaire-template-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #3c727e;
}

.btn-group-actions {
  display: flex;
  gap: 0.5rem;
}
.edit-questionnaire-template-btn,
.delete-questionnaire-template-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.edit-questionnaire-template-btn {
  border-color: #3c727e;
  color: #3c727e;
}

.delete-questionnaire-template-btn {
  border-color: #f39e1d;
  color: #f39e1d;
}

.edit-questionnaire-template-btn:hover {
  background-color: #3c727e;
  color: white;
}

.delete-questionnaire-template-btn:hover {
  background-color: #f39e1d;
  color: white;
}

.questionnaire-template-modal-header {
  background-color: #6d8c91;
  color: white;
}
.questionnaire-template-modal-body {
  background-color: #f8f9fa;
  padding: 1.5rem;
  text-align: left; /* Prevent centering */
}
.questionnaire-template-modal-title {
  font-weight: bold;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Center Navbar Links */
  #custom-navbar .navbar-nav {
    text-align: center;
  }

  /* Full-Width Location Item Card for Mobile */
  .questionnaire-template-item-card {
    flex-direction: column;
    text-align: center;
  }

  /* Full-Width Buttons */
  .btn-group-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-actions .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  /* Smaller Add Location Button for Mobile */
  .btn-add-questionnaire-template {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3c727e;
    color: white;
  }
}

@media (max-width: 576px) {
  /* Padding Adjustment for Small Screens */
  .questionnaire-templates-container {
    padding: 1rem;
  }

  /* Adjusted Font Sizes for Small Screens */
  .questionnaire-template-name {
    font-size: 1rem;
  }

}

/* Questionnaire Templates — solid brand fills like Session Categories */
.questionnaire-template-item-card .btn-group-actions .btn.edit-questionnaire-template-btn,
.questionnaire-template-item-card .btn-group-actions .btn.delete-questionnaire-template-btn {
  font-weight: 600;
  border-width: 1px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Edit = brand teal */
.questionnaire-template-item-card .btn-group-actions .btn.edit-questionnaire-template-btn {
  background-color: #3c727e !important;
  border-color: #3c727e !important;
  color: #fff !important;
}
.questionnaire-template-item-card .btn-group-actions .btn.edit-questionnaire-template-btn:hover {
  background-color: #2e5b69 !important;
  border-color: #2e5b69 !important;
  color: #fff !important;
}

/* Delete = brand orange */
.questionnaire-template-item-card .btn-group-actions .btn.delete-questionnaire-template-btn {
  background-color: #f39e1d !important;
  border-color: #f39e1d !important;
  color: #fff !important;
}
.questionnaire-template-item-card .btn-group-actions .btn.delete-questionnaire-template-btn:hover {
  background-color: #d68717 !important;
  border-color: #d68717 !important;
  color: #fff !important;
}
/* Match the sign-in / forgot-password look & feel */
.auth-page .centered-logo { width: clamp(96px, 18vw, 140px); height: auto; }

/* Round the outer card and ensure inner edges clip to the curve */
.auth-card {
  border-radius: 2rem;
  overflow: hidden;

  /* Enable container queries on the card */
  container-type: inline-size;
  container-name: auth;
}

/* Give the inner white area the same curve */
.auth-card .card-body { border-radius: inherit; }

/* --- Container query-driven refinements --- */
@container auth (max-width: 360px) {
  .auth-card .card-body { padding: 1rem 1.25rem; }
  .auth-card .form-control-lg { font-size: 0.95rem; }
  .auth-card .btn { padding-block: .7rem; }
}

@container auth (min-width: 420px) {
  .auth-card .card-body { padding: 1.5rem 1.75rem; }
}

@container auth (min-width: 560px) {
  .auth-card .card-body { padding: 2rem 2.25rem; }
  .auth-card .h4, .auth-card h1, .auth-card .card-title { font-size: 1.35rem; }
}

/* Keep inputs comfortably large on phones,
   but tone them down a bit on big screens (viewport fallback/tweak) */
@media (min-width: 992px) {
  .auth-card .form-control-lg {
    font-size: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}
/* Locations Container */
.session-categories-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Title Styling */
.session-categories-title {
  font-size: 1.75rem;
  color: #3c727e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Add Location Button */
.btn-add-session-category {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #3c727e;
  border-color: #3c727e;
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-add-session-category:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
}

/* Ensure modal content is not centered by parent container */
.modal-content {
  text-align: left; /* Override inherited text alignment */
  margin: 0 auto; /* Keep it centered within the modal dialog */
}

.session-category-list {
  padding: 0;
  list-style: none;
}

.session-category-item-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.session-category-item-card:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.session-category-info {
  max-width: 70%;
}
.session-category-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #3c727e;
}

.btn-group-actions {
  display: flex;
  gap: 0.5rem;
}
.edit-session-category-btn,
.delete-session-category-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.edit-session-category-btn {
  border-color: #3c727e;
  color: #3c727e;
}

.delete-session-category-btn {
  border-color: #f39e1d;
  color: #f39e1d;
}

.edit-session-category-btn:hover {
  background-color: #3c727e;
  color: white;
}

.delete-session-category-btn:hover {
  background-color: #f39e1d;
  color: white;
}

.session-category-modal-header {
  background-color: #6d8c91;
  color: white;
}
.session-category-modal-body {
  background-color: #f8f9fa;
  padding: 1.5rem;
  text-align: left; /* Prevent centering */
}
.session-category-modal-title {
  font-weight: bold;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Center Navbar Links */
  #custom-navbar .navbar-nav {
    text-align: center;
  }

  /* Full-Width Location Item Card for Mobile */
  .session-category-item-card {
    flex-direction: column;
    text-align: center;
  }

  /* Full-Width Buttons */
  .btn-group-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-group-actions .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  /* Smaller Add Location Button for Mobile */
  .btn-add-session-category {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3c727e;
    color: white;
  }
}

@media (max-width: 576px) {
  /* Padding Adjustment for Small Screens */
  .session-categories-container {
    padding: 1rem;
  }

  /* Adjusted Font Sizes for Small Screens */
  .session-category-name {
    font-size: 1rem;
  }

}

/* ACTION BUTTONS — match Locations style */
.session-category-item-card .btn.edit-session-category-btn,
.session-category-item-card .btn.delete-session-category-btn {
  font-weight: 600;
  border-width: 1px;
}

/* Edit = brand teal, solid fill */
.edit-session-category-btn {
  background-color: #3c727e;
  border-color: #3c727e;
  color: #fff !important;
}
.edit-session-category-btn:hover {
  background-color: #2e5b69;
  border-color: #2e5b69;
  color: #fff !important;
}

/* Delete = brand orange, solid fill */
.delete-session-category-btn {
  background-color: #f39e1d;
  border-color: #f39e1d;
  color: #fff !important;
}
.delete-session-category-btn:hover {
  background-color: #d68717;
  border-color: #d68717;
  color: #fff !important;
}
/* app/assets/stylesheets/set-session-dates.css */

/* ===== Brand ===== */
:root { --brand-primary: #3c727e; }

/* ===== Tiny sun icon (hard clamp) ===== */
.sun-icon {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  vertical-align: text-bottom;
  object-fit: contain;
  margin-left: .25rem;
}

/* Failsafe: if class gets dropped or another rule wins, catch by filename */
img[src*="sun_icon"] {
  width: 20px !important;
  height: 20px !important;
  display: inline-block !important;
  object-fit: contain;
}

/* Top status pill */
.badge-status { background-color: var(--brand-primary) !important; color: #fff !important; }

/* Subtle card polish */
.card.border-0.shadow-sm { border-radius: .75rem; }

/* ===== Timeslot status chips ===== */
.badge.rounded-pill.timeslot-badge,
.badge.rounded-pill[data-timeslot-badge] {
  padding: .25rem .6rem;
  line-height: 1;
  font-weight: 500;
  border: 0;
}
.badge.rounded-pill.timeslot-badge[data-status="booked"],
.badge.rounded-pill[data-timeslot-badge][data-status="booked"],
.badge.rounded-pill.text-bg-danger,
.badge.rounded-pill.bg-danger,
.badge.rounded-pill.badge-danger,
.badge.rounded-pill.bg-danger-subtle { background-color: #f8d7da !important; color: #842029 !important; }
.badge.rounded-pill.timeslot-badge[data-status="booking_in_progress"],
.badge.rounded-pill[data-timeslot-badge][data-status="booking_in_progress"],
.badge.rounded-pill.text-bg-warning,
.badge.rounded-pill.bg-warning,
.badge.rounded-pill.badge-warning,
.badge.rounded-pill.bg-warning-subtle { background-color: #fff3cd !important; color: #664d03 !important; }
.badge.rounded-pill.timeslot-badge[data-status="available"],
.badge.rounded-pill[data-timeslot-badge][data-status="available"],
.badge.rounded-pill.text-bg-success,
.badge.rounded-pill.bg-success,
.badge.rounded-pill.badge-success,
.badge.rounded-pill.bg-success-subtle { background-color: #d1e7dd !important; color: #0f5132 !important; }

.badge.rounded-pill.text-dark { color: inherit !important; }

/* ===== Modal polishing (prevents skew, always closable) ===== */
.modal-content { border-radius: 1rem; }
.modal-header.sticky-top { top: 0; z-index: 1056; }
.modal-dialog.modal-dialog-scrollable .modal-content { max-height: 100vh; }

/* Prevent inputs from overflowing in tight screens */
.modal .form-control,
.modal .form-select { min-width: 0; }

/* Make modal layouts adapt to their own width */
.modal-dialog { container-type: inline-size; }
@container (max-width: 420px) {
  .modal .modal-body { padding: 1rem 1rem; }
  .modal .btn { padding-block: .6rem; }
}

/* ===== Mobile-friendly spacing ===== */
@media (max-width: 576px) {
  .container { padding-left: .75rem; padding-right: .75rem; }
  .card-body { padding: 1rem; }
  .list-group-item { padding: .75rem .75rem; }
  .h3 { font-size: 1.25rem; }
  .btn-sm { padding: .25rem .5rem; font-size: .825rem; }
  .fw-semibold { font-weight: 600; }
  .small.text-muted { font-size: .85rem; }

  /* Remove phantom gap at top of content */
  #editSessionDateModal .modal-body,
  #sessionDateModal .modal-body {
    padding-top: 0.75rem !important;
  }
}

/* ==== Date row (SAFE compact layout for all screens) ==== */
/* Replace the old negative-margin hack with a grid that never overflows */
.sessiondate-form .sessiondate-date-row {
  display: grid;
  grid-template-columns: auto 1fr auto; /* label | input | sun icon */
  align-items: center;
  gap: .5rem .75rem;
  margin-top: 0;       /* ensure visible on mobile */
  margin-bottom: .75rem;
}

.sessiondate-form .sessiondate-date-row .form-label { margin-bottom: 0 !important; }
.sessiondate-form .sessiondate-date-row .form-control {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1.2;
  min-width: 0; /* prevent overflow in grid */
}

/* On very narrow screens, allow the label to wrap instead of pushing things off-screen */
@media (max-width: 420px) {
  .sessiondate-form .sessiondate-date-row { grid-template-columns: minmax(0, auto) 1fr auto; }
}

/* Safety: if a skeleton remains inside the frame, collapse it visually */
#editSessionDateModal .modal-body turbo-frame .d-flex.align-items-center.justify-content-center {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Brand badge helpers */
.badge-brand { background-color: var(--brand-primary) !important; color: #fff !important; }
.badge-brand-subtle {
  background-color: rgba(60, 114, 126, .12) !important;
  color: var(--brand-primary) !important;
  border: 1px solid rgba(60, 114, 126, .28) !important;
}

/* Availability block styling */
.availability-block-added {
  background-color: #6d8c91;
  padding: 10px;
  border-radius: 5px;
}
.availability-block-added input,
.availability-block-added label,
.availability-block-added button { background-color: transparent; }

/* --- Fix mobile date-picker inside Bootstrap modals --- */
#sessionDateModal .modal-dialog,
#editSessionDateModal .modal-dialog {
  /* disable container queries/containment for these modals */
  container-type: normal !important;   /* overrides .modal-dialog { container-type: inline-size; } */
  contain: none !important;
  transform: none !important;          /* guard against any future transforms */
}

/* make sure nothing overlays the date input */
#sessionDateModal input[type="date"],
#editSessionDateModal input[type="date"] {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* keep the date row safely below the sticky header on phones */
@media (max-width: 576px) {
  #sessionDateModal .modal-body,
  #editSessionDateModal .modal-body {
    padding-top: 0.75rem !important;
  }

  #sessionDateModal .sessiondate-form .sessiondate-date-row,
  #editSessionDateModal .sessiondate-form .sessiondate-date-row {
    margin-top: 0 !important;
    margin-bottom: .5rem !important;
    display: grid;
    grid-template-columns: auto 1fr auto; /* Label | Input | Sun icon */
    align-items: center;
    gap: .5rem;
  }
}

/* Ensure the native calendar button receives taps on iOS/Android */
.sessiondate-form input[type="date"]::-webkit-calendar-picker-indicator {
  pointer-events: auto;       /* some resets set this to none */
  opacity: 1;                 /* unblock visibility if a reset dims it */
  display: block;             /* guard against 'display:none' resets */
  position: relative;
  z-index: 2;                 /* sit above any background decorations */
  cursor: pointer;
}

/* Make sure the date input itself is the top tap target */
.sessiondate-form .sessiondate-date-row input[type="date"] {
  position: relative;
  z-index: 2;
  min-width: 0; /* prevent overflow in tight flex/grids */
}

/* Prevent the sun icon wrapper from ever overlapping the input on phones */
.sessiondate-form .sessiondate-date-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sessiondate-form .sessiondate-date-row .form-control {
  flex: 1 1 auto;  /* grow/shrink safely */
  min-width: 0;
}

.sessiondate-form .sessiondate-date-row > span {
  flex: 0 0 auto;  /* do NOT shrink into the input */
  position: relative;
  z-index: 1;      /* below the input’s indicator */
}

/* If any prior styles applied transforms/containment to the dialog, undo them
   for both Add and Edit modals so mobile browsers can show native pickers. */
#sessionDateModal .modal-dialog,
#editSessionDateModal .modal-dialog {
  container-type: normal !important;
  contain: none !important;
  transform: none !important;
}

/* Remove earlier negative margins that could push the row under the header */
@media (max-width: 576px) {
  #sessionDateModal .sessiondate-form .sessiondate-date-row,
  #editSessionDateModal .sessiondate-form .sessiondate-date-row {
    margin-top: 0 !important;
    margin-bottom: .5rem !important;
  }
}
/* app/assets/stylesheets/sign-in.css */

/* Center everything and prevent awkward scrolling */
.auth-page {
  min-height: 100svh;           /* mobile-safe viewport unit */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;           /* small breathing room, still fits */
  background: var(--bs-body-bg, #f8f9fa);
}

/* Fixed, pleasant max-width so it never hugs the left on mobile */
.auth-box {
  width: 100%;
  max-width: 420px;             /* adjust to taste (400–480px is typical) */
  margin: 0 auto;
}

/* Logo sizing */
.auth-page .centered-logo { width: clamp(96px, 18vw, 140px); height: auto; }

/* Round the outer card and ensure inner edges clip to the curve */
.auth-card {
  border-radius: 2rem;
  overflow: hidden;

  /* Enable container queries on the card */
  container-type: inline-size;
  container-name: auth;
}

/* Give the inner white area the same curve */
.auth-card .card-body { border-radius: inherit; }

/* --- Container query-driven refinements --- */
@container auth (max-width: 360px) {
  .auth-card .card-body { padding: 1rem 1.25rem; }
  .auth-card .form-control-lg { font-size: 0.95rem; }
  .auth-card .btn { padding-block: .7rem; }
}

@container auth (min-width: 420px) {
  .auth-card .card-body { padding: 1.5rem 1.75rem; }
}

@container auth (min-width: 560px) {
  .auth-card .card-body { padding: 2rem 2.25rem; }
  .auth-card .h4, .auth-card h1, .auth-card .card-title { font-size: 1.35rem; }
}

/* Keep inputs comfortably large on phones, but tone down on desktops */
@media (min-width: 992px) {
  .auth-card .form-control-lg {
    font-size: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}

/* ---- Password toggle (eye button) ---- */
.password-field {
  position: relative;
}

.password-field .password-reveal-btn {
  position: absolute;
  right: .625rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: .25rem;
  line-height: 1;
  background: transparent;
  color: #9aa0a6;                 /* lighter by default */
  cursor: pointer;
  transition: color .15s ease;
  -webkit-tap-highlight-color: transparent; /* remove iOS blue tap highlight */
}

/* Hover/focus: only change color, no blue box */
.password-field .password-reveal-btn:hover,
.password-field .password-reveal-btn:focus,
.password-field .password-reveal-btn:focus-visible,
.password-field .password-reveal-btn:active {
  color: #6c757d;                  /* medium on hover/focus/active */
  outline: none;                   /* remove default outline */
  box-shadow: none;                /* remove blue-ish focus ring */
  border-radius: .375rem;          /* harmless, keeps hit area neat */
}

/* Darker when pressed (i.e., password visible) */
.password-field .password-reveal-btn[aria-pressed="true"] {
  color: #343a40;                  /* darkest when showing */
}

/* Ensure the button stays tappable without shifting layout */
.password-field .form-control {
  padding-right: 2.25rem;          /* space for the eye */
}
/* app/assets/stylesheets/sign-up.css */

/* Center everything and prevent awkward scrolling */
.auth-page {
  min-height: 100svh;           /* mobile-safe viewport unit */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;           /* small breathing room, still fits */
  background: var(--bs-body-bg, #f8f9fa);
}

/* Fixed, pleasant max-width so it never hugs the left on mobile */
.auth-box {
  width: 100%;
  max-width: 420px;             /* adjust to taste (400–480px is typical) */
  margin: 0 auto;
}

/* Logo sizing */
.auth-page .centered-logo { width: clamp(96px, 18vw, 140px); height: auto; }

/* Round the outer card and ensure inner edges clip to the curve */
.auth-card {
  border-radius: 2rem;   /* bigger outer curve */
  overflow: hidden;      /* makes inner corners appear rounded */

  /* Enable container queries on the card */
  container-type: inline-size;
  container-name: auth;
}

/* Inner white area mirrors the curve */
.auth-card .card-body { border-radius: inherit; }

/* --- Container query-driven refinements --- */
@container auth (max-width: 360px) {
  .auth-card .card-body { padding: 1rem 1.25rem; }
  .auth-card .form-control-lg { font-size: 0.95rem; }
  .auth-card .btn { padding-block: .7rem; }
}

@container auth (min-width: 420px) {
  .auth-card .card-body { padding: 1.5rem 1.75rem; }
}

@container auth (min-width: 560px) {
  .auth-card .card-body { padding: 2rem 2.25rem; }
  .auth-card .h4, .auth-card h1, .auth-card .card-title { font-size: 1.35rem; }
}

/* Keep inputs comfortably large on desktops */
@media (min-width: 992px) {
  .auth-card .form-control-lg {
    font-size: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}

/* ---- Password toggle (eye button) ---- */
.password-field { position: relative; }

.password-field .password-reveal-btn {
  position: absolute;
  right: .625rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: .25rem;
  line-height: 1;
  background: transparent;
  color: #9aa0a6;                 /* lighter by default */
  cursor: pointer;
  transition: color .15s ease;
  -webkit-tap-highlight-color: transparent; /* remove iOS blue tap highlight */
}

/* Hover/focus/active: only color change, no blue ring */
.password-field .password-reveal-btn:hover,
.password-field .password-reveal-btn:focus,
.password-field .password-reveal-btn:focus-visible,
.password-field .password-reveal-btn:active {
  color: #6c757d;
  outline: none;
  box-shadow: none;
  border-radius: .375rem;
}

/* Darker when pressed (i.e., password visible) */
.password-field .password-reveal-btn[aria-pressed="true"] {
  color: #343a40;                  /* darkest when showing */
}

/* Ensure the button stays tappable without shifting layout */
.password-field .form-control {
  padding-right: 2.25rem;          /* space for the eye */
}
/* app/assets/stylesheets/signature_pad.css */
.signature-pad canvas {
  width: 100%;
  height: 100px;
  touch-action: none;
}
/* app/assets/stylesheets/verify.css */

/* Scope everything so sign-in styles are unaffected */
.verify-page.auth-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bs-body-bg, #f8f9fa);
}

.verify-page .auth-box {
  width: 100%;
  max-width: 560px; /* wider only on verify page */
  margin: 0 auto;
}

.verify-page .centered-logo {
  width: clamp(96px, 18vw, 140px);
  height: auto;
}

.verify-page .auth-card {
  border-radius: 2rem;
  overflow: hidden;
  container-type: inline-size;
  container-name: verify-card;
}

.verify-page .auth-card .card-body {
  border-radius: inherit;
}

/* Tighter padding on very small cards */
@container verify-card (max-width: 420px) {
  .verify-page .auth-card .card-body { padding: 1rem 1.25rem; }
  .verify-page .auth-card .btn { padding-block: .7rem; }
}

/* Default card padding for mid sizes */
@container verify-card (min-width: 421px) and (max-width: 639px) {
  .verify-page .auth-card .card-body { padding: 1.5rem 1.75rem; }
}

/* Roomier on wider cards */
@container verify-card (min-width: 640px) {
  .verify-page .auth-card .card-body { padding: 2rem 2.25rem; }
  .verify-page .auth-card .h4,
  .verify-page .auth-card h1,
  .verify-page .auth-card .card-title { font-size: 1.35rem; }
}

/* Subtle icon badge */
.verify-page .verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(60,114,126,.08); /* Orbit cyan hint */
  color: var(--bs-primary, #0d6efd);
}
.watermarks-index-view {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the cards horizontally */
  gap: 15px; /* Adds space between the cards */
  margin-top: 20px; /* Optional: Add some margin at the top */
}

.watermark-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
  width: 100%;  /* Ensure card takes full width of the grid column */
  max-width: 240px; /* Limit the maximum width to avoid stretching */
  font-size: 1rem;
}

.watermark-preview-container {
  position: relative;
  width: 100%;
  height: auto; /* Let the image height adjust dynamically */
  margin-bottom: 0.5rem;
  border-radius: 6px;
  overflow: hidden;
}

.watermark-preview-img {
  display: block;
  width: 100%;
  height: auto; /* Adjust the height based on width */
  object-fit: cover; /* Ensure image covers the container */
}

.positioned-watermark {
  position: absolute;
  z-index: 3;
  color: white;
  opacity: 0.5;
  font-family: Arial, sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  filter: blur(1px);
  font-size: 0.95rem;
}

.watermark-tiled-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.card-footer {
  padding: 0.25rem;
  background: #f8f9fa;
}

.btn-xs {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
}
/* watermarks.css */

/* ──────────────────────────────────────────────────────────────
   Flex layout for previewing watermark images side by side
   ────────────────────────────────────────────────────────────── */
.watermark-preview-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;             /* space between images */
  flex-wrap: wrap;       /* wrap to new line on small screens */
}

.watermark-preview-container {
  position: relative;
  border: 1px solid #ccc;
  margin-bottom: 1.5px;
  display: inline-block;
  width: auto;
  height: auto;
}

.watermark-preview-container img {
  display: block;
  width: 100%;
  height: 100%;
}

.positioned-watermark {
  position: absolute;
  z-index: 3;
  color: white;
  opacity: 0.5;
  font-family: Arial, sans-serif;
  font-size: 30px;
}

/* Ensure that positioning works for top-left, top-right, bottom-left, bottom-right */
.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

/* Tiled layer */
.watermark-tiled-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: none;
}

/* ──────────────────────────────────────────────────────────────
   Public gallery tiles: remove inline baseline gap & stretching
   ────────────────────────────────────────────────────────────── */
.album-photos .photo-tile > a[data-glightbox="true"] {
  display: block !important;   /* inline -> block removes baseline gap */
  line-height: 0 !important;
}

.album-photos .watermark-preview-container {
  display: block !important;   /* not inline-block inside masonry */
  line-height: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;        /* no gray border */
}

.album-photos .watermark-preview-container img,
.album-photos .photo-tile img {
  display: block !important;
  width: 100% !important;
  height: auto !important;     /* never stretch vertically */
}

/* Ensure star is positioned relative to the actual image area */
.album-photos .photo-tile { position: relative !important; overflow: hidden; }
.album-photos .favorite-toggle { bottom: 12px !important; right: 6px !important; }

/* ──────────────────────────────────────────────────────────────
   PUBLIC GRID MIRROR OVERRIDES
   ────────────────────────────────────────────────────────────── */

/* Remove inline baseline gap and any fixed-height/aspect on wrappers */
.album-photos .photo-tile > a[data-glightbox="true"] {
  display: block !important;
  line-height: 0 !important;
}
.album-photos .watermark-preview-container {
  display: block !important;
  line-height: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
}
.album-photos .masonry-item,
.album-photos .photo-tile,
.album-photos .watermark-preview-container,
.album-photos .photo-tile > a[data-glightbox="true"],
.album-photos img.img-fluid {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
.album-photos .masonry-item::before,
.album-photos .masonry-item::after,
.album-photos .photo-tile::before,
.album-photos .photo-tile::after {
  content: none !important;
  display: none !important;
}

/* Image controls height */
.album-photos .watermark-preview-container img,
.album-photos .photo-tile img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  /* IMPORTANT: square corners */
  border-radius: 0 !important;
}

/* Overlays pinned to the actual photo edge */
.album-photos .photo-tile { position: relative !important; overflow: hidden !important; }
.album-photos .favorite-toggle { bottom: 12px !important; right: 6px !important; }

/* ===== MOBILE-ONLY: make star & select pill visible without hover ===== */
@media (max-width: 576px) {
  /* Select pill (when JS inserts it): always show */
  .photo-select,
  .photo-select-checkbox {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Favorite star: always visible, interactive */
  .favorite-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Since pill is present on mobile, keep the star shifted left */
  .photo-tile:has(.photo-select) .favorite-toggle {
    right: calc(6px + var(--select-size, 20px) + 2px) !important;
  }
}

/* ===== DESKTOP: when pill exists/appears, shift star so they sit side-by-side ===== */
@media (min-width: 577px) {
  /* If this tile contains a pill at all, position the star with space for it */
  .photo-tile:has(.photo-select) .favorite-toggle {
    right: calc(6px + var(--select-size, 20px) + 2px) !important;
  }
  /* Ensure the same when hovering the masonry item (common hover target) */
  .masonry-item:hover .photo-tile:has(.photo-select) .favorite-toggle {
    right: calc(6px + var(--select-size, 20px) + 2px) !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   FINAL: force square corners everywhere (desktop + mobile)
   ────────────────────────────────────────────────────────────── */

/* wrappers should not clip/round */
.album-photos .masonry-item,
.album-photos .photo-tile,
.album-photos .watermark-preview-container,
.video-thumbnail-wrapper,
.album-photos .photo-tile > a[data-glightbox="true"] {
  border-radius: 0 !important;
  overflow: visible !important; /* don't clip corners */
}

/* images must be square too */
.album-photos .watermark-preview-container img,
.album-photos .photo-tile img,
.album-photos img.img-fluid,
.album-photos .img-fluid,
.video-thumbnail-container img.video-thumbnail {
  border-radius: 0 !important;
}

/* nuke any theme utility that sneaks in rounding */
.album-photos img.rounded,
.album-photos .rounded {
  border-radius: 0 !important;
}
/* ===== Page shell & centered board ===== */
.wf-shell {
  background: #f3f4f6; /* soft gray */
  min-height: 100vh;
  padding: 20px 0;
}

.wf-board {
  max-width: 1100px;      /* narrower than default container */
  margin: 0 auto;
}

.wf-panel {
  background: #fff;
  border: 1px solid #e7e7ea;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  padding: 16px;
  font-size: 0.95rem;     /* slight global shrink */
}

/* Tighten header controls just a bit */
.wf-panel .h4 { font-size: 1.1rem; }
.wf-panel .wf-input-compact .form-control-sm,
.wf-panel .wf-input-compact .form-select-sm {
  height: 30px;
  padding-top: .15rem;
  padding-bottom: .15rem;
}

/* ===== Columns & cards (existing styles with small tweaks) ===== */
.wf-column {
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:.6rem;
  overflow:hidden;
}

.wf-col-header {
  padding:.6rem .9rem;
  font-weight:600;
  border-bottom:1px solid #eee;
  background:#fafafa;
}

.wf-cards {
  padding:.6rem;
  display:grid;
  gap:.6rem;
}

.wf-card {
  border:1px solid #eee;
  border-radius:.6rem;
  box-shadow:0 1px 6px rgba(0,0,0,.04);
  transition:transform .08s ease, box-shadow .2s ease, opacity .18s ease;
}

.wf-card:hover {
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.wf-empty {
  padding:1rem; color:#777; text-align:center; font-size:.95rem;
}

.wf-hide { opacity:.25; transform:scale(.98); }

/* Hidden drawer items */
.wf-hidden-item { border:1px solid #eee; }

/* Inputs on small screens wrap nicely */
.wf-input-group { min-width: 300px; }
@media (max-width: 575.98px) {
  .wf-input-group { min-width: 100%; }
  .wf-col-header { font-size:.95rem; }
  .wf-cards { gap:.6rem; }
}

/* Compact inputs */
.wf-input-compact .wf-num { max-width: 80px; }
.wf-input-compact .wf-unit { width: 92px; }

/* Inline status (Saved / Saving / Error) */
.wf-status { font-size: .8rem; line-height: 1rem; transition: opacity .25s ease-in-out; }
.wf-status:not(.wf-status-hide) { opacity: 1; }
.wf-status-hide { opacity: 0; }

/* Hidden drawer groups */
.wf-hidden-section .fw-semibold { font-size: 0.95rem; }
.wf-hidden-list {
  max-height: 240px;   /* ~2 cards visible, then scroll */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;  /* avoid scrollbar overlap */
}

/* Smaller column badges (optional but tidy) */
#wf-count-upcoming, #wf-count-editing, #wf-count-delivered {
  font-size: .75rem;
  padding: .25em .5em;
  vertical-align: middle;
}

/* Nicer offcanvas background against gray shell */
#hiddenDrawer .offcanvas-body { background: #fafbfc; }

/* ===== Responsive widths & paddings ===== */
@media (max-width: 991.98px) {
  .wf-board { max-width: 840px; }
}

@media (max-width: 767.98px) {
  .wf-panel { padding: 12px; }
  .wf-panel .h4 { font-size: 1rem; }
  .wf-cards { gap: .5rem; }
  .wf-card .card-body { padding: .65rem .8rem; }
  .wf-input-compact .wf-num { max-width: 72px; }
  .wf-input-compact .wf-unit { width: 86px; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
.pac-container {
    z-index: 9999; /* Ensure the autocomplete dropdown appears above the modal */
}

/* session_categories.css */
#session_category_form .session-category-packages {
    height: auto; /* Adjust this as needed */
    overflow-y: auto; /* Enable scrolling if necessary */
}

#session_category_form .session-category-packages[disabled] {
    opacity: 0.5; /* Visually indicate the field is disabled */
}

.contract_template_draggable {
    cursor: move;
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #ced4da; /* Slightly darker border for visibility */
    padding: 10px;
    margin-bottom: 5px;
}

.signature-box {
    position: relative;
    border: 2px solid #ccc;
    height: 100px; /* Adjust height as necessary */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-placeholder {
    color: #ccc;
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
}

.questionnaire-answer-box {
    background-color: #f8f9fa;
    margin-top: 5px;
    padding: 10px;
}

#photoCarousel .carousel-item img {
    max-width: 100%; /* Make image max out at 100% of its container width */
    max-height: 1080px; /* Maximum height for the image */
    object-fit: contain; /* This will make sure the image is scaled properly */
    width: auto; /* Ensures the width is responsive */
    height: auto; /* Ensures the height is responsive */
    margin: auto; /* Center the image horizontally */
    display: block; /* Remove inline nature of images to allow margin auto to work */
}

.filepond--root {
    position: relative; /* Make sure your FilePond root is positioned relatively */
}

.filepond--warning {
    display: contents;
    text-align: center;
    width: 100%; /* Take up the full width */
    margin-top: 10px; /* Add some space above the message */
}

.filepond--warning-message {
    transition: opacity 0.5s ease-in-out; /* example duration */
}

/* Responsive styles for the map container */
@media (max-width: 767px) {
    #location-map {
        height: 300px; /* Adjust height for smaller devices */
    }
}

@media (min-width: 768px) {
    #location-map {
        height: 400px; /* Larger height for tablets and desktops */
    }
}

/* Styles for the location details modal */
.modal-content {
    border-radius: 0.5rem; /* Rounded corners for a modern look */
}

.location-details-modal .modal-body {
    padding: 1.5rem; /* Better padding for readability */
}

.location-details-modal .modal-content {
    overflow-x: hidden;
    max-width: 100%;
}

.location-details-item {
    display: inline-flex;
    justify-content: start;
    align-items: center;
    width: 100%;
}

.location-details-button {
    margin-left: 10px; /* Adjust the spacing as needed */
}

.highlight-new-timeoff-blocks {
    background-color: #7CC1D7;
    /*border: 1px solid #ffcc00; /* Yellow border */
}

.fc-event-time {
    display: none; /* Hide the time text */
}

/* Ensure the event harness occupies the full width of its container */
.fc-timegrid-event-harness {
  width: 100% !important;
  left: 0 !important;
}

/* Ensure the event itself also stretches to full width */
.fc-timegrid-event,
.fc-v-event {
  width: 100% !important;
  left: 0 !important;
}

/* Specific class for the partial session if needed */
.fc-timegrid-event-harness.fc-timegrid-event-harness-inset {
  width: 100% !important;
  left: 0 !important;
}


.time-off-partial-day .fc-event-title {
    font-weight: normal; /* Make the font weight normal */
    color: white !important; /* Ensure the text color is white */
}

.time-off-partial-day {
    background-color: #33DB98 !important; /* Ensure the background color matches the "Time Off" events */
}

.photo-session-partial .fc-event-title {
    font-weight: normal; /* Make the font weight normal */
    color: white !important; /* Ensure the text color is white */
}

.photo-session-partial {
    background-color: #189ab4 !important; /* Ensure the background color is blue */
}





/* General styles for the carousel images to ensure proper scaling */
#photoCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevent images from being cut off */
}

/* app/assets/stylesheets/application.css */



/* Ensure table rows are hidden on small screens */
@media (max-width: 576px) {
  .customer-table-row {
    display: none !important;
  }
}

/* Ensure cards are hidden on larger screens */
@media (min-width: 577px) {
  .customer-card {
    display: none !important;
  }
}

.move-minisession-custom-button {
  width: auto;
  max-width: 400px; /* Increase width */
  padding: 0.75rem 1.5rem; /* Increase padding for height */
  font-size: 1.25rem; /* Increase font size */
  line-height: 1.5;
  border-radius: 0.3rem;
  display: inline-block;
}
