:root {
  @media (min-width: 961px) {
    --nav-width: -webkit-fill-available;
  }

  @media (max-width: 960px) {
    --nav-width: auto;
  }

  /* COLORS */
  --primary_color: #ed89ed;
  --secondary_color: #99f599;
  --primary_txt_color: #7d177d;
  --primary_darker_txt_color: #410141;
  --secondary_txt_color: #099e09;
  --secondary_darker_txt_color: #035803;
  --primary_background_color: #fcf1fc;
  --secondary_background_color: #fafffa;
  --secondary_darker_background_color: #d8fcd8;
  --secondary_darkest_background_color: #cadfcb;
  --mint-background: #8db863;
  --success_color: #099e09;
  --success_background_color: #cbfccb;
  --error_color: rgb(135 6 6);
  --error_background_color: rgb(252, 236, 236);
  --warning_color: rgb(240, 163, 22);
  --warning_background_color: rgb(248, 225, 182);

  /* GRID */
  --grid-columns: auto;
  --grid-rows: auto;
  --grid-column-gap: 0.3em;
  --grid-row-gap: 0.3em;
  --grid-margin-top: 0;
  --grid-border: 0;
  --grid-background-color: transparent;

  /* FONT SIZES */
  --max-font-size: 20px;
  --min-font-size: 10px;

  /* FONT SCALES */
  --font-xs: calc(var(--min-font-size) + 2px);
  --font-sm: calc(var(--min-font-size) + 3px);
  --font-md: calc(var(--min-font-size) + 4px);
  --font-lg: calc(var(--min-font-size) + 5px);
  --font-xl: calc(var(--min-font-size) + 6px);

  /* SPACING */
  --h-padding: 1em;
  --gradient-pink-white: linear-gradient(to right, #fdbef5, #ffffff);
  --gradient-overlay-start: rgba(227, 251, 200, 0.24);
  --gradient-overlay-mid: rgba(235, 245, 233, 0.58);
  /* MISC */
}
@font-face {
  font-family: "Rembank";
  src: url("/fonts/Rembank.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Comfortaa";

body, html {
  font-family: 'Montserrat', Arial, sans-serif;
}
  src: url("/fonts/Comfortaa-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

/* HEADER PAGE */
.headerDiv {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5em;
  padding: 0 var(--h-padding);
}

.headerDiv img#bgimage {
  opacity: 0.3;
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.headerTitleNoAnim,
.headerTitle {
  display: flex;
}

.headerTitleNoAnim img,
.headerTitle img {
  width: 50px;
  cursor: pointer;
}

.headerTitleName,
.headerTitleName h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.headerTitleName strong#headerclr3,
.headerTitleName strong,
.headerTitleName span,
.headerTitleName h1 span {
  font-size: 25px;
  color: var(--primary_txt_color);
  font-family: "Montserrat", Verdana;
  /* font-family: "Brush Script MT", cursive; */
}

.headerTitleName strong#headerclr4,
.headerTitleName strong#headerclr2,
.headerTitleName span#headerclr4,
.headerTitleName span#headerclr2,
.headerTitleName h1 span#headerclr2 {
  color: var(--secondary_darker_txt_color);
}

.navDiv {
  position: relative;
  width: var(--nav-width);
  z-index: 5;
}

.sm {
  z-index: 2;
}

.sm-mint {
  background: transparent;
}

.sm-mint ul a,
.sm-mint ul ul a,
.sm-mint a {
  color: var(--secondary_txt_color);
  font-weight: bold;
}

.sm-mint a:active {
  color: var(--primary_color);
  font-weight: bold;
}

.sm-mint a:focus {
  color: var(--secondary_darker_txt_color);
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: var(--grid-columns);
  grid-template-rows: var(--grid-rows);
  grid-column-gap: var(--grid-column-gap);
  grid-row-gap: var(--grid-row-gap);
  margin-top: var(--grid-margin-top);
  border: var(--grid-border);
  background-color: var(--grid-background-color);
}

.pageTitle {
  width: -webkit-fill-available;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--h-padding);
}

.pageTitle strong,
.pageTitle h1,
.pageTitle h2 {
  color: var(--secondary_darker_txt_color);
  font-weight: bold;
  text-align: center;
  font-size: var(--max-font-size);
  font-family: "Comfortaa", cursive;
  margin: 0; /* Reset default heading margins */
  padding: 0; /* Reset default heading padding */
}

.pageFilter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5em;
}

.pageFilter button {
  position: relative; /* For badge positioning */
}

.pageFilter img {
  cursor: pointer;
}

/* Active filters badge */
.filter-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #d32f2f;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  min-width: 24px; /* Prevent shrinking */
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none; /* Don't interfere with button clicks */
}

.filterItemInline {
  min-width: 300px;
  width: -webkit-fill-available;
  position: relative;
  border-left: 8px solid transparent;
  background: transparent;
  border-radius: 0 4px 4px 4px;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  margin-bottom: 1em;
  padding: 0.5em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.filterItemInlineContents {
  background: rgba(141, 184, 99, 0.2);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin: 0.5em;
  padding: 0.5em;
  position: relative;
  max-width: 400px;
  width: -webkit-fill-available;
}

.filterItemInlineContents input {
  width: -webkit-fill-available;
}

.filterItemInline strong {
  color: var(--secondary_txt_color);
  margin-left: 1em;
  font-size: calc(var(--min-font-size) + 5px);
  position: relative;
}

.filterItemInlineButtons {
  margin-top: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Accessibility: Error states and focus indicators */
.error {
  display: none;
  color: #d32f2f;
  font-size: 0.9em;
  padding: 0.25em 1em;
  margin: 0.25em 0;
}

.error:not(:empty) {
  display: block;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border: 2px solid #d32f2f !important;
  background: rgba(211, 47, 47, 0.05);
}

/* High contrast focus indicators for accessibility */
input:focus,
button:focus,
select:focus {
  outline: 2px solid #2D5016 !important;
  outline-offset: 2px;
}

/* Filter result preview (live count as user types) */
.filter-result-preview {
  margin: 1em 0;
  padding: 0.75em 1em;
  background: rgba(141, 184, 99, 0.1);
  border-radius: 4px;
  text-align: center;
  color: #2D5016;
  font-weight: 500;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-result-preview:empty {
  display: none; /* Hide when empty */
}

.filter-result-preview img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 0.5em;
}

/* Filter result announcement (screen reader live region after applying) */
.filter-results-announcement {
  margin: 0.5em 0;
  padding: 0.5em;
  text-align: center;
  color: var(--secondary_txt_color);
  font-weight: 500;
}

/* Filter chips component styling */
.filter-chips-container {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5em;
  background: white;
  min-height: 44px; /* Touch target (mobile HCI compliant) */
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 100%;
}

.filter-chips-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  min-height: 0; /* Allow empty state */
}

/* Individual chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.8em;
  background: linear-gradient(135deg, #8DB863 0%, #2D5016 100%);
  color: white;
  border-radius: 16px;
  font-size: 0.9em;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.filter-chip-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip-remove {
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  min-width: 20px; /* Prevent shrinking */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.filter-chip-remove:hover,
.filter-chip-remove:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Input field within chips */
.filter-chips-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 150px;
  font-size: 1em;
  padding: 0.25em;
  background: transparent;
}

.filter-chips-input:focus {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .filter-chip {
    font-size: 0.85em;
    padding: 0.5em 0.7em;
  }

  .filter-chip-text {
    max-width: 150px;
  }

  .filter-chips-input {
    min-width: 120px;
    font-size: 0.9em;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .filter-chip {
    transition: none;
  }

  .filter-chip:hover {
    transform: none;
  }
}

.filterItemMain {
  align-items: center;
  justify-items: end;
}

.filterItemMain span {
  width: -webkit-fill-available;
}

.myInterestsDiv {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.myInterestsDiv em {
  color: var(--primary_txt_color);
  font-weight: bold;
  text-align: center;
  font-size: var(--min-font-size);
}

.myInterestsDiv img {
  width: 25px;
  cursor: pointer;
}

.MainContentsDisplay {
  width: -webkit-fill-available;
  padding-right: 1em;
  padding-left: 1em;
  padding-bottom: 1em;
  overflow-y: auto;
  /* overflow: hidden; */
}

.rootItems {
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
}

.errorItemMain {
  display: block;
}

.errorItemMain label,
.errorItemMain strong {
  color: var(--error_color);
}

.errorItemMain a {
  text-decoration: none;
  color: var(--secondary_darker_txt_color);
  font-weight: bold;
}

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

#modalContent {
  height: -webkit-fill-available;
}

#modalContent strong {
  color: var(--secondary_darker_txt_color);
}

/* Contact Sales Modal - Modern Styling */
.contactUsDiv {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  padding: 0.5em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.contactUsIntro {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 0 0.5em 0;
  padding: 0.75em;
  background-color: #f8f9fa;
  border-left: 3px solid #4CAF50;
  border-radius: 4px;
}

.contactUsField {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 100%;
}

.contactUsField label {
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25em;
  display: flex;
  align-items: center;
}

.contactUsField label::before {
  content: "•";
  color: #4CAF50;
  font-weight: bold;
  margin-right: 0.5em;
  font-size: 1.2em;
}

.contactUsInput {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #fff;
  font-family: inherit;
}

.contactUsInput:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contactUsInput:hover {
  border-color: #bbb;
}

.contactUsInput::placeholder {
  color: #999;
  font-style: italic;
}

.contactUsTextarea {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #fff;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.contactUsTextarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contactUsTextarea:hover {
  border-color: #bbb;
}

.contactUsTextarea::placeholder {
  color: #999;
  font-style: italic;
}

.contactUsFieldTextarea {
  flex: 1;
}

/* Required field indicator */
.contactUsInput:required:invalid,
.contactUsTextarea:required:invalid {
  border-color: #ddd;
}

.contactUsInput:required:valid,
.contactUsTextarea:required:valid {
  border-color: #ddd;
}

/* Error state */
.contactUsInput.error,
.contactUsTextarea.error {
  border-color: #f44336;
  background-color: #ffebee;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .contactUsDiv {
    gap: 1em;
    padding: 0.5em;
  }

  .contactUsIntro {
    font-size: 0.9em;
    padding: 0.65em;
    margin-bottom: 0.25em;
  }

  .contactUsField label {
    font-size: 0.95em;
  }

  .contactUsInput,
  .contactUsTextarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.65em;
  }

  .contactUsTextarea {
    min-height: 120px;
  }

  /* Touch-friendly modal buttons */
  .ui-dialog .ui-button {
    min-height: 44px;
    padding: 0.75em 1em;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .contactUsDiv {
    gap: 0.85em;
    padding: 0.35em;
  }

  .contactUsIntro {
    font-size: 0.85em;
    padding: 0.6em;
  }

  .contactUsField {
    gap: 0.4em;
  }

  .contactUsField label {
    font-size: 0.9em;
    margin-bottom: 0.2em;
  }

  .contactUsInput,
  .contactUsTextarea {
    padding: 0.6em;
  }

  .contactUsTextarea {
    min-height: 100px;
  }
}

@media (max-width: 374px) {
  .contactUsDiv {
    gap: 0.75em;
    padding: 0.25em;
  }

  .contactUsIntro {
    font-size: 0.8em;
    padding: 0.5em;
    line-height: 1.4;
  }

  .contactUsField label {
    font-size: 0.85em;
  }

  .contactUsField label::before {
    font-size: 1em;
    margin-right: 0.4em;
  }

  .contactUsInput,
  .contactUsTextarea {
    padding: 0.55em;
  }

  .contactUsTextarea {
    min-height: 90px;
  }

  .ui-dialog .ui-button {
    font-size: 0.9rem;
    padding: 0.6em 0.8em;
  }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .contactUsTextarea {
    min-height: 80px !important;
  }

  .contactUsDiv {
    gap: 0.75em;
  }

  .contactUsIntro {
    padding: 0.5em;
    margin-bottom: 0.25em;
  }
}

/* Contact modal button enhancements */
.ui-dialog[aria-describedby*="Contact"] .ui-button-text,
.ui-dialog:has(.contactUsDiv) .ui-button-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 374px) {
  .ui-dialog[aria-describedby*="Contact"] .ui-button-text,
  .ui-dialog:has(.contactUsDiv) .ui-button-text {
    font-size: 0.85rem;
  }
}

/* Video Modal Styles */
.ui-dialog video {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: #000;
  pointer-events: auto;
  transform: none !important;
  transition: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}

/* Prevent any hover/active states on video or modal */
.ui-dialog video:hover,
.ui-dialog video:active,
.ui-dialog video:focus {
  transform: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}

.ui-dialog:hover,
.ui-dialog:active {
  transform: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}

/* Modal layering and drag behavior */
.ui-dialog {
  position: fixed !important;
  z-index: 1000 !important;
  touch-action: none;
  transform: none !important;
  transition: none !important;
}

.ui-dialog-titlebar {
  cursor: move;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
  z-index: 10;
}

.ui-dialog-titlebar-close {
  position: relative;
  z-index: 11;
}

/* Prevent modal content from interfering with drag */
.ui-dialog-content {
  touch-action: auto;
  pointer-events: auto;
  overflow: auto;
  transform: none !important;
  transition: none !important;
}

/* Ensure modal overlay is on correct layer */
.ui-widget-overlay {
  position: fixed !important;
  z-index: 999 !important;
}

@media (max-width: 767px) {
  .ui-dialog video {
    width: 100%;
  }

  /* Video modal button */
  .ui-dialog:has(video) .ui-button {
    min-height: 44px;
    padding: 0.75em 1em;
    font-size: 1rem;
  }

  /* Disable dragging on mobile to prevent page scaling */
  .ui-dialog {
    position: fixed !important;
  }
}

@media (max-width: 600px) {
  .ui-dialog video {
    max-height: 60vh;
  }
}

@media (max-width: 374px) {
  .ui-dialog:has(video) .ui-button {
    font-size: 0.9rem;
    padding: 0.6em 0.8em;
  }
}

/* Video Overlay Styles */
.video-overlay {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.video-close-btn:hover {
  background: #fff !important;
  transform: scale(1.1) !important;
}

.video-close-btn:active {
  transform: scale(0.95) !important;
}

/* Mobile adjustments for video overlay */
@media (max-width: 767px) {
  .video-container {
    width: 95vw !important;
    max-width: 95vw !important;
  }

  .video-overlay video {
    max-width: 95vw !important;
    max-height: 70vh !important;
  }

  .video-close-btn {
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 24px !important;
  }
}

@media (max-width: 600px) {
  .video-overlay video {
    max-height: 60vh !important;
  }
}

/* Landscape video adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .video-overlay video {
    max-height: 85vh !important;
  }

  .video-close-btn {
    top: 5px !important;
    right: 5px !important;
  }
}

/* Prevent body interaction during modal drag */
body.ui-draggable-dragging {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Completely disable all transforms and scaling on video modals */
/* EXCEPTION: Flickity carousels and SVG arrows need transforms - exclude them */
.ui-dialog:has(video),
.ui-dialog:has(video) *:not(.flickity-slider):not(.flickity-viewport):not(.flickity-button-icon):not(svg):not(path):not(.carousel-cell),
.ui-dialog:has(video) video,
.ui-dialog:has(video) .ui-dialog-content,
.ui-dialog:has(video) .ui-dialog-titlebar {
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  transform: none !important;

  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;

  zoom: 1 !important;
  scale: 1 !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Ensure draggable cursor shows on title bar */
.ui-dialog.ui-draggable .ui-dialog-titlebar {
  cursor: move;
}

/* Prevent resize handles from appearing */
.ui-dialog .ui-resizable-handle {
  display: none !important;
}

/* Ensure modal stays within viewport during drag */
.ui-dialog.ui-draggable {
  max-width: 95vw !important;
  max-height: 95vh !important;
}

/* Lock modal dimensions during drag to prevent expansion */
.ui-dialog.ui-draggable-dragging {
  width: auto !important;
  height: auto !important;
  transform: none !important;
  transition: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}

.ui-dialog.ui-draggable-dragging .ui-dialog-content {
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  transition: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}

/* Prevent video from triggering resize during drag */
.ui-dialog.ui-draggable-dragging video {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
  transform: none !important;
  transition: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}

/* Lock video modal size - prevent any dimension changes */
.ui-dialog:has(video) {
  box-sizing: border-box !important;
}

.ui-dialog:has(video).ui-draggable-dragging {
  box-sizing: border-box !important;
}

.ui-dialog:has(video) .ui-dialog-content {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* Prevent jQuery UI from applying auto-sizing */
.ui-dialog:has(video).ui-dialog-dragging,
.ui-dialog:has(video).ui-draggable-dragging {
  width: inherit !important;
  height: inherit !important;
}

/* Lock all child elements during drag */
.ui-dialog:has(video).ui-draggable-dragging * {
  width: inherit;
  height: inherit;
  flex-shrink: 0 !important;
}

.custom-combobox {
  position: relative;
  display: inline-block;
}
.custom-combobox-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: -1px;
  padding: 0;
}
.custom-combobox-input {
  margin: 0;
  padding: 5px 10px;
}

.autocomplete-cb {
  position: relative;
  z-index: 300;
}

.ui-widget span:focus-within {
  border: 1px solid var(--primary_txt_color);
}

.loadingSpinner {
  display: flex;
  position: fixed;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  z-index: 200;
  background-image: url(/images/pattern_load.gif);
  background-repeat: no-repeat;
  background-size: cover;
  top: calc(50% - 60px);
  left: calc(50% - 60px);
}

.loadingSpinner strong {
  color: white;
  position: absolute;
  font-size: var(--max-font-size);
  z-index: 200;
}

.myProfileDiv {
  display: flex;
  align-items: center;
}

.myProfileDiv img {
  cursor: pointer;
}

.myProfileDiv p {
  font-family: "Montserrat", Verdana;
}

.reserveInterestsList {
  margin-bottom: 1em;
}

.reserveInterestsList p,
.reserveInterestsList article {
  color: var(--secondary_txt_color);
  border-bottom: 1px solid var(--primary_txt_color);
}

.reservationExpireNotice p,
.reserveInterestsStatus p {
  font-size: calc(var(--min-font-size) + 2px);
  color: var(--warning_color);
}

.reservationExpireNotice article {
  color: var(--secondary_txt_color);
  font-size: calc(var(--min-font-size) + 2px);
}

.pageBookmarks {
  display: flex;
  padding-left: 1em;
  padding-right: 1em;
  overflow-x: auto;
}

.pageBookmarksItem {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 130px;
  min-width: fit-content;
  min-height: 44px;
  padding: 0.5em;
  border: 1px solid var(--mint-background);
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

.pageBookmarksItem a {
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  font-size: calc(var(--min-font-size) + 2px);
  color: var(--secondary_darker_txt_color);
}

.pageBookmarksItem:hover {
  background: #8db863;
  color: #fff;
  box-shadow: none;
}

/* Focus indicators for keyboard navigation (WCAG 2.4.7) */
.pageBookmarksItem a:focus {
  outline: 3px solid var(--primary_color);
  outline-offset: 2px;
  border-radius: 4px;
}

.pageBookmarksItem a:focus-visible {
  outline: 3px solid var(--primary_color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(237, 137, 237, 0.2);
}

.pageBookmarksItem:hover a:focus-visible {
  outline: 3px solid var(--primary_darker_txt_color);
}

/* Active bookmark highlighting (Phase 2) */
.pageBookmarksItem.active {
  background: var(--secondary_color);
  border-color: var(--secondary_darker_txt_color);
  box-shadow: 0 2px 8px rgba(141, 184, 99, 0.3);
}

.pageBookmarksItem.active a {
  color: var(--primary_darker_txt_color);
  font-weight: 900;
}

/* Scroll feedback animation (Phase 2) */
.pageBookmarksItem.scrolling {
  animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(141, 184, 99, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(141, 184, 99, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pageBookmarksItem.scrolling {
    animation: none;
  }
}

/* Mobile optimization (Phase 2) */
@media (max-width: 767px) {
  .pageBookmarksItem {
    font-size: calc(var(--min-font-size) + 3px);
    padding: 0.7em 1em;
  }
}

@media (max-width: 374px) {
  .pageBookmarksItem {
    min-height: 48px;
    padding: 0.7em;
    font-size: 16px; /* Prevent iOS auto-zoom */
  }
}

.welcomeHeader {
  position: relative;
  margin-bottom: 1em;
}

.welcomeHeader pre {
  position: absolute;
  border-bottom: 5px;
  border-style: groove;
  border-color: var(--primary_txt_color);
  width: -webkit-fill-available;
  bottom: 0.5em;
  opacity: 0.2;
  z-index: -1;
}

.welcomeHeader p {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Verdana;
  font-size: var(--max-font-size);
  color: var(--primary_txt_color);
  font-weight: bold;
}

.welcomeHeader button {
  font-size: calc(var(--min-font-size) + 1px);
}

.welcome a {
  width: fit-content;
}

.welcome button,
.welcome a,
.welcomea {
  display: block;
  font-family: "Comfortaa", Verdana;
  font-size: calc(var(--min-font-size) + 1px);
  margin-bottom: 1em;
  font-weight: bold;
  text-decoration: none;
  border: 3px;
  padding: 0.5em;
  border-style: outset;
  border-color: white;
  background-color: var(--secondary_darker_background_color);
}

.welcomep,
.welcomer {
  font-family: "Montserrat", Verdana;
  font-size: calc(var(--max-font-size) + 1px);
  margin-top: 1em;
}

.welcomer {
  text-align: right;
}

body {
  position: relative;
  margin: 0;
  top: 0;
  left: 0;
  height: 100vh;
  width: -webkit-fill-available;
  font-family:
    "Comfortaa", "Brush Script MT", cursive, Verdana, Arial, sans-serif;
  scroll-behavior: smooth;
}

p,
pre,
a,
article,
h1,
h2,
h3,
h4,
h5,
strong {
  margin: 0;
  padding: 0;
}

img {
  width: 28px;
}

input {
  border: 0;
  font-size: 1em;
}

input:focus {
  border: 0;
  border-radius: 0px;
  border-bottom: 1px solid var(--primary_txt_color);
  outline-style: unset;
}

/* UTILITY CLASSES */
.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.item-hub-image {
  max-height: 150px;
  max-width: 150px;
  min-height: 150px;
  min-width: 150px;
  margin-bottom: 1em;
  cursor: pointer;
}

input::placeholder {
  color: var(--mint-background);
}


/* TOUR PROGRESS INDICATOR */
.tour-progress-container {
  margin-bottom: 1em;
  text-align: center;
  padding: 0.25em 0.5em;
}

.tour-progress-bar {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 0.85em;
  height: 8px;
  background: linear-gradient(to right, 
    rgba(237, 137, 237, 0.15), 
    rgba(153, 245, 153, 0.15));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Gentle shimmer animation for progress bar background */
@media (prefers-reduced-motion: no-preference) {
  .tour-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    animation: shimmer 3s infinite;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.tour-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--primary_color) 0%, 
    #f5a9f5 50%, 
    var(--secondary_color) 100%);
  border-radius: 12px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Gentle pulse animation for active progress fill */
@media (prefers-reduced-motion: no-preference) {
  .tour-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4)
    );
    animation: progress-glow 2s ease-in-out infinite;
  }
}

@keyframes progress-glow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.tour-progress-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65em;
  padding: 0.25em 0;
}

.tour-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(237, 137, 237, 0.2), 
    rgba(153, 245, 153, 0.2));
  border: 2px solid rgba(125, 23, 125, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.tour-dot.active {
  background: linear-gradient(135deg, 
    var(--primary_color), 
    #f5a9f5);
  border-color: var(--primary_darker_txt_color);
  box-shadow: 
    0 2px 4px rgba(125, 23, 125, 0.3),
    0 0 8px rgba(237, 137, 237, 0.4);
  transform: scale(1.15);
}

/* Gentle pulse for active dot */
@media (prefers-reduced-motion: no-preference) {
  .tour-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    border: 2px solid var(--primary_color);
    transform: translate(-50%, -50%);
    animation: dot-pulse 2s ease-in-out infinite;
    opacity: 0;
  }
}

@keyframes dot-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* TOUR DIALOG ENHANCEMENTS */
.tour-dialog {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(237, 137, 237, 0.1);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--primary_color), var(--secondary_color)) border-box;
}

.tour-dialog .ui-dialog-content {
  padding: 0.5em !important;
  color: var(--primary_txt_color);
  line-height: 1.6;
  background: linear-gradient(135deg,
    var(--primary_background_color) 0%,
    var(--secondary_background_color) 100%);
  position: relative;
}

/* Tour message container with icon */
.tour-message-container {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin: 0;
  padding: 1.25em 1.5em;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, var(--primary_color), var(--secondary_color));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* Icon styling */
.tour-message-icon {
  font-size: 2.5em;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-message-icon {
    animation: none;
  }
}

/* Message text styling */
.tour-message-text {
  flex: 1;
  font-size: 1.05em;
  font-weight: 500;
  color: var(--primary_darker_txt_color);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Style strong tags */
.tour-message-text strong {
  font-weight: 700;
  color: var(--primary_txt_color);
  background: linear-gradient(135deg, rgba(237, 137, 237, 0.15), rgba(153, 245, 153, 0.15));
  padding: 0.1em 0.35em;
  border-radius: 4px;
  white-space: nowrap;
}

/* Style em/italic tags for plant names */
.tour-message-text em {
  font-style: italic;
  color: var(--secondary_txt_color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(153, 245, 153, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Subtle shine effect on message container */
@media (prefers-reduced-motion: no-preference) {
  .tour-message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    animation: message-shine 5s ease-in-out infinite;
    animation-delay: 1.5s;
  }
}

@keyframes message-shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Decorative corner accent */
.tour-message-container::after {
  content: '✦';
  position: absolute;
  right: 1em;
  bottom: 0.75em;
  font-size: 1.2em;
  color: var(--primary_color);
  opacity: 0.2;
}

@media (max-width: 768px) {
  .tour-message-container {
    gap: 0.85em;
    padding: 1.1em 1.3em;
  }

  .tour-message-icon {
    font-size: 2.2em;
  }

  .tour-message-text {
    font-size: 1em;
    letter-spacing: 0;
  }
}

@media (max-width: 600px) {
  .tour-message-container {
    gap: 0.75em;
    padding: 1em 1.15em;
  }

  .tour-message-icon {
    font-size: 2em;
  }

  .tour-message-text {
    font-size: 0.95em;
  }

  .tour-message-container::after {
    font-size: 1em;
    right: 0.75em;
    bottom: 0.6em;
  }
}

.tour-dialog .ui-dialog-titlebar {
  background: linear-gradient(135deg,
    var(--primary_background_color) 0%,
    var(--secondary_background_color) 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, var(--primary_color), var(--secondary_color)) 1;
  color: var(--primary_txt_color);
  font-weight: 700;
  padding: 0.85em 1.15em;
  position: relative;
}

/* Decorative corner accent */
.tour-dialog .ui-dialog-titlebar::before {
  content: '🌿';
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  opacity: 0.6;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.tour-dialog .ui-dialog-title {
  font-size: 1.15em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
  font-weight: 700;
}

@media (max-width: 600px) {
  .tour-dialog .ui-dialog-titlebar::before {
    font-size: 1.1em;
    right: 0.8em;
  }

  .tour-dialog .ui-dialog-title {
    font-size: 1.05em;
  }
}

/* TOUR MOBILE UX */
.tour-dialog .ui-button {
  min-height: 48px;
  min-width: 48px;
  font-size: 16px;  /* Prevents iOS auto-zoom */
  padding: 0.75em 1.5em;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.tour-dialog .ui-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tour-dialog .ui-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Disable transforms for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tour-dialog .ui-button:hover,
  .tour-dialog .ui-button:active {
    transform: none;
  }
  
  .tour-dot.active {
    transform: none;
  }
}

@media (max-width: 960px) {
  .tour-dialog .ui-button {
    font-size: 16px;  /* Critical: prevents iOS zoom on focus */
    padding: 0.65em 1.25em;
  }
}

@media (max-width: 600px) {
  .tour-dialog .ui-button {
    padding: 0.6em 1em;
    min-height: 44px;
  }
}

/* SCREEN READER ONLY */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
