:root {
  --ss-green: #1f6b3b;
  --ss-surface: #f4fbf6;
  --ss-green-gradient: linear-gradient(90deg, #79AE6F 0%, #6FC3A2 50%, #A8E6CF 100%);
}

html,
body {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe,
canvas {
  max-width: 100%;
}

.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Shared public footer link style */

#mainHeader {
  width: 100%;
}

#mainHeader > nav:first-of-type {
  min-height: 6rem;
}

#mainHeader > nav:nth-of-type(2) {
  min-height: 4rem;
}

@media (max-width: 1279.98px) {
  #mainHeader > nav:first-of-type {
    display: none;
  }

  #mainHeader > nav:nth-of-type(2) {
    display: grid;
  }
}

@media (min-width: 1280px) {
  #mainHeader > nav:first-of-type {
    display: grid;
  }

  #mainHeader > nav:nth-of-type(2),
  #mobileMenu {
    display: none;
  }
}

#mainHeader .nav-btn-contact,
#mainHeader .nav-btn-signin {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}

#mainHeader button.nav-btn-signin,
#mainHeader button.nav-btn-contact {
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

#mainHeader a.nav-btn-signin,
#mainHeader a.nav-btn-contact {
  background: transparent;
}

#mainHeader .nav-btn-signin svg,
#mainHeader .nav-btn-contact svg,
#mainHeader .nav-btn-signin span,
#mainHeader .nav-btn-contact span {
  opacity: 1;
}

@media (max-width: 767.98px) {
  #mainHeader > nav:nth-of-type(2) {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #mainHeader .nav-btn-signin,
  #mainHeader .nav-btn-contact {
    font-size: 0.875rem;
    padding: 0.5rem 0.9rem;
  }
}

footer.ss-green-gradient a {
  color: #14532d !important;
  text-decoration: none !important;
}

footer.ss-green-gradient a:visited {
  color: #14532d !important;
  text-decoration: none !important;
}

footer.ss-green-gradient a:hover {
  color: #0f3f23 !important;
  text-decoration: underline !important;
}

/* Lightweight utility compatibility layer after switching to Bootstrap */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-self-center { justify-self: center; }
.justify-self-end { justify-self: end; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-6 { bottom: 1.5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-\[1fr_auto_1fr\] { grid-template-columns: 1fr auto 1fr; }
.grid-cols-\[44px_1fr_44px\] { grid-template-columns: 44px 1fr 44px; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.z-50 { z-index: 50; }
.z-\[90\] { z-index: 90; }
.z-\[100\] { z-index: 100; }
.z-\[110\] { z-index: 110; }
.z-\[115\] { z-index: 115; }
.z-\[120\] { z-index: 120; }
.z-\[121\] { z-index: 121; }
.z-\[200\] { z-index: 200; }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-\[\#14532d\] { color: #14532d; }
.text-\[\#14532d\]\/80 { color: rgba(20, 83, 45, 0.8); }
.text-\[\#14532d\]\/70 { color: rgba(20, 83, 45, 0.7); }
.bg-black\/35 { background-color: rgba(0, 0, 0, 0.35); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }
.bg-white\/12 { background-color: rgba(255, 255, 255, 0.12); }
.bg-white\/14 { background-color: rgba(255, 255, 255, 0.14); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-black\/0 { background-color: rgba(0, 0, 0, 0); }
.bg-black\/25 { background-color: rgba(0, 0, 0, 0.25); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }
.bg-\[\#1f7782\] { background-color: #1f7782; }
.bg-ssLight { background-color: #f4fbf6; }
.shadow-soft { box-shadow: 0 12px 30px rgba(31, 107, 59, 0.16); }
.ring-1 { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); }
.ring-white\/25 { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drop-shadow-lg { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.drop-shadow-\[0_2px_8px_rgba\(0\,0\,0\,0\.5\)\] { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)); }

.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/30:hover { background-color: rgba(255, 255, 255, 0.3); }
.hover\:text-emerald-200:hover { color: #a7f3d0; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-amber-600:hover { background-color: #d97706; }
.hover\:bg-sky-600:hover { background-color: #0284c7; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-emerald-100:hover { background-color: #d1fae5; }
.hover\:bg-emerald-800:hover { background-color: #065f46; }
.hover\:text-slate-600:hover { color: #475569; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-emerald-300:hover { color: #6ee7b7; }
.hover\:text-emerald-700:hover { color: #047857; }
.hover\:underline:hover { text-decoration: underline; }

.focus\:outline-none:focus { outline: 0; }
.focus\:bg-white:focus { background-color: #fff; }
.focus\:border-emerald-500:focus { border-color: #10b981; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.focus\:ring-emerald-500:focus { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35); }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }
.group:hover .group-hover\:bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

.file\:mr-3::file-selector-button { margin-right: 0.75rem; }
.file\:py-1::file-selector-button { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.file\:px-3::file-selector-button { padding-left: 0.75rem; padding-right: 0.75rem; }
.file\:rounded-full::file-selector-button { border-radius: 9999px; }
.file\:border-0::file-selector-button { border: 0; }
.file\:text-sm::file-selector-button { font-size: 0.875rem; }
.file\:font-medium::file-selector-button { font-weight: 500; }
.file\:bg-emerald-100::file-selector-button { background-color: #d1fae5; }
.file\:text-emerald-700::file-selector-button { color: #047857; }
.hover\:file\:bg-emerald-200:hover::file-selector-button { background-color: #a7f3d0; }

@media (min-width: 576px) {
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex { display: flex; }
  .sm\:grid { display: grid; }
  .sm\:hidden { display: none; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:hidden { display: none; }
  .xl\:grid { display: grid; }
  .xl\:pt-0 { padding-top: 0; }
  .xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .xl\:col-span-5 { grid-column: span 5 / span 5; }
  .xl\:col-span-7 { grid-column: span 7 / span 7; }
}

/* Extended utility compatibility for existing templates */
.inline { display: inline; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.self-start { align-self: flex-start; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }

.w-auto { width: auto; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-28 { width: 7rem; }
.w-\[96vw\] { width: 96vw; }

.h-1\.5 { height: 0.375rem; }
.h-2\.5 { height: 0.625rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-\[360px\] { height: 360px; }
.h-\[55vh\] { height: 55vh; }
.h-\[75vh\] { height: 75vh; }

.max-h-\[88vh\] { max-height: 88vh; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-h-\[92vh\] { max-height: 92vh; }
.max-h-\[94vh\] { max-height: 94vh; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[760px\] { max-width: 760px; }
.max-w-\[90vw\] { max-width: 90vw; }
.max-w-\[92vw\] { max-width: 92vw; }
.max-w-\[1880px\] { max-width: 1880px; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-16 { padding-top: 4rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-4 { padding-left: 1rem; }
.pr-4 { padding-right: 1rem; }
.pr-5 { padding-right: 1.25rem; }
.pr-11 { padding-right: 2.75rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

.gap-0\.5 { gap: 0.125rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }

.border { border: 1px solid #e2e8f0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-dashed { border-style: dashed; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-emerald-100 { border-color: #d1fae5; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-600 { border-color: #059669; }
.border-red-200 { border-color: #fecaca; }
.border-t-transparent { border-top-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-\[10\%\] { border-radius: 10%; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[2\.1rem\] { font-size: 2.1rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-sans { font-family: Inter, system-ui, sans-serif; }
.font-display { font-family: "Playfair Display", Georgia, serif; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.tracking-\[0\.16em\] { letter-spacing: 0.16em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }

.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-emerald-100 { color: #d1fae5; }
.text-emerald-200 { color: #a7f3d0; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #064e3b; }
.text-teal-50 { color: #f0fdfa; }
.text-teal-100\/70 { color: rgba(204, 251, 241, 0.7); }
.text-teal-100\/80 { color: rgba(204, 251, 241, 0.8); }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-sky-700 { color: #0369a1; }

.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-sky-500 { background-color: #0ea5e9; }
.bg-stone-100 { background-color: #f5f5f4; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.line-clamp-2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.transition { transition: all 0.2s ease; }
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.duration-200 { transition-duration: 0.2s; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }

.opacity-0 { opacity: 0; }
.scale-95 { transform: scale(0.95); }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.resize-none { resize: none; }

.top-3 { top: 0.75rem; }
.top-4 { top: 1rem; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.inset-x-0 { left: 0; right: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-emerald-700 { --tw-gradient-from: #047857; --tw-gradient-to: #059669; }
.from-emerald-800 { --tw-gradient-from: #065f46; --tw-gradient-to: #047857; }
.from-black\/45 { --tw-gradient-from: rgba(0, 0, 0, 0.45); --tw-gradient-to: rgba(0, 0, 0, 0.2); }
.via-black\/28 { --tw-gradient-to: rgba(0, 0, 0, 0.2); }
.to-black\/35 { --tw-gradient-to: rgba(0, 0, 0, 0.35); }
.to-emerald-600 { --tw-gradient-to: #059669; }
.to-emerald-700 { --tw-gradient-to: #047857; }
.to-emerald-900 { --tw-gradient-to: #064e3b; }
.via-emerald-700 { --tw-gradient-to: #047857; }

/* ── Admin visual fallback (ensures layout/theme consistency) ── */
body.admin-page {
  background: #f1f5f9;
  color: #1e293b;
}

body.admin-login-page {
  background: #f5f5f4;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

.admin-shell > aside {
  display: none;
  background: #1f7782;
  color: #f0fdfa;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-shell > aside a {
  color: inherit;
  text-decoration: none;
}

.admin-shell > aside a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-shell > aside a[class*="bg-white/12"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
}

.admin-shell > .flex-1 {
  flex: 1;
  min-width: 0;
}

.admin-shell > .flex-1 > header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}

.admin-shell main {
  width: 100%;
}

@media (min-width: 576px) {
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:mx-4 { margin-left: 1rem; margin-right: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .sm\:py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .sm\:mt-3 { margin-top: 0.75rem; }
  .sm\:mt-5 { margin-top: 1.25rem; }
  .sm\:mt-8 { margin-top: 2rem; }
  .sm\:mt-10 { margin-top: 2.5rem; }
  .sm\:mb-10 { margin-bottom: 2.5rem; }
  .sm\:mb-14 { margin-bottom: 3.5rem; }
  .sm\:text-xs { font-size: 0.75rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:rounded-2xl { border-radius: 1rem; }
  .sm\:h-\[440px\] { height: 440px; }
  .sm\:h-\[70vh\] { height: 70vh; }
  .sm\:min-h-\[450px\] { min-height: 450px; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:w-52 { width: 13rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-base { font-size: 1rem; }
  .md\:text-5xl { font-size: 3rem; }

  .admin-shell > aside {
    display: flex;
    width: 13rem;
  }
}

@media (min-width: 992px) {
  .lg\:w-56 { width: 14rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:text-sm { font-size: 0.875rem; }
  .lg\:text-lg { font-size: 1.125rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:min-h-\[500px\] { min-height: 500px; }

  .admin-shell > aside {
    width: 14rem;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }
  .xl\:px-24 { padding-left: 6rem; padding-right: 6rem; }
  .xl\:h-\[500px\] { height: 500px; }
}

/* ── Navbar scroll transition ── */
#mainHeader {
  background: transparent;
  border-bottom: none;
}

#mainHeader.header-scrolled {
  background: linear-gradient(
    90deg,
    rgba(121, 174, 111, 0.95) 0%,
    rgba(111, 195, 162, 0.95) 50%,
    rgba(168, 230, 207, 0.95) 100%
  );
  box-shadow: 0 2px 16px rgba(31, 107, 59, 0.15);
}

.ss-green-gradient {
  background: var(--ss-green-gradient);
}

/* Default (transparent) – white text over hero image */
#mainHeader .nav-link {
  color: #fff;
}

#mainHeader .nav-link:hover {
  color: #d1fae5;
}

/* Scrolled – dark text over #79AE6F background */
#mainHeader.header-scrolled .nav-link {
  color: #14532d;
}

#mainHeader.header-scrolled .nav-link:hover {
  color: #052e16;
}

#mainHeader.header-scrolled .nav-btn-contact {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(20, 83, 45, 0.6);
  color: #14532d;
}

#mainHeader.header-scrolled .nav-btn-contact:hover {
  background: rgba(255, 255, 255, 0.55);
}

#mainHeader.header-scrolled .nav-btn-signin {
  border-color: rgba(20, 83, 45, 0.6);
  color: #14532d;
}

#mainHeader.header-scrolled .nav-btn-signin:hover {
  background: rgba(255, 255, 255, 0.2);
}

#mainHeader.header-scrolled img.rounded-full {
  border-color: #5a9050;
}

/* Keep the brand mark readable over bright video and gradient areas */
.nav-logo-wrap {
  position: relative;
  border-radius: 16px;
  padding: 0.2rem 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 36, 24, 0.36), rgba(14, 36, 24, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.nav-logo-wrap-mobile {
  padding: 0.12rem 0.5rem;
  border-radius: 12px;
}

.nav-logo-wrap:hover,
.nav-logo-wrap:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(14, 36, 24, 0.46), rgba(14, 36, 24, 0.22));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.nav-logo-img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-logo-wrap:hover .nav-logo-img,
.nav-logo-wrap:focus-visible .nav-logo-img {
  transform: scale(1.03);
}

#mainHeader.header-scrolled .nav-logo-wrap {
  background: linear-gradient(135deg, rgba(17, 68, 40, 0.36), rgba(17, 68, 40, 0.18));
  border-color: rgba(20, 83, 45, 0.3);
}

.photo-marquee {
  background: linear-gradient(180deg, #f4fbf6 0%, #ecf8ef 100%);
  padding: 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
}

.photo-marquee::-webkit-scrollbar {
  display: none;
}

.safe-fab {
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.photo-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: photo-scroll var(--photo-scroll-duration, 34s) linear infinite !important;
  transform: translateX(0);
  will-change: transform;
}

.photo-marquee.is-dragging {
  cursor: grabbing;
}

/* ── Gallery lightbox controls ── */
#lightbox {
  padding: 1rem;
}

#lightboxImg {
  max-width: min(92vw, 1280px);
  max-height: min(88vh, 900px);
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

#lightbox button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
}

#lbPrev,
#lbNext {
  width: 66px;
  height: 66px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  background: rgba(2, 6, 23, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#lbPrev:hover,
#lbNext:hover {
  background: rgba(22, 101, 52, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
}

#lightbox > button[onclick*="closeLightbox"] {
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: rgba(2, 6, 23, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

#lightbox > button[onclick*="closeLightbox"]:hover {
  background: rgba(22, 101, 52, 0.82);
  border-color: rgba(167, 243, 208, 0.85);
}

@media (max-width: 640px) {
  #lightbox {
    padding: 0.5rem;
  }

  #lightboxImg {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 10px;
  }

  #lbPrev,
  #lbNext {
    width: 52px;
    height: 52px;
    font-size: 2.4rem;
  }

  #lbPrev {
    left: 0.5rem;
  }

  #lbNext {
    right: 0.5rem;
  }

  #lightbox > button[onclick*="closeLightbox"] {
    top: 0.5rem;
    right: 0.5rem;
    width: 42px;
    height: 42px;
    font-size: 1.9rem;
  }
}

.photo-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 34vw, 460px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.15);
  background: #fff;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes photo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1279.98px) {
  .photo-card {
    flex-basis: clamp(230px, 78vw, 360px);
  }

  .photo-card {
    scroll-snap-align: start;
    flex-basis: min(80vw, 320px);
  }

  #mobileMenu {
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .safe-fab {
    right: 0.9rem;
    bottom: calc(0.9rem + env(safe-area-inset-bottom));

    
  }
}

@media (min-width: 1280px) {
  .photo-card {
    flex-basis: min(32vw, 460px);
  }
}

/* ── Mobile menu animations ── */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu a,
#mobileMenu button,
#mobileMenu span {
  color: #fff !important;
}

#mobileMenu button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  text-align: left;
  font: inherit;
}

#mobileMenu a:hover,
#mobileMenu button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ── Auth modal responsive ── */
.auth-modal-shell {
  animation: authModalIn 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  #authModal > div {
    margin: 0.75rem;
    max-height: 95vh;
    overflow-y: auto;
  }

  .photo-card {
    flex-basis: 82vw;
    border-radius: 10px;
  }

  .photo-track {
    gap: 0.75rem;
  }

  #uploadModal,
  #momentViewModal,
  #authModal,
  #reviewModal {
    padding: 0.5rem;
  }

  #uploadModal > div,
  #momentViewModal > div,
  #authModal > div,
  #reviewModalPanel {
    width: 100%;
    max-height: 94dvh;
    border-radius: 1rem;
  }

  #momentViewContent .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #momentViewContent img {
    height: 9rem;
  }
}

@media (max-width: 420px) {
  .safe-fab {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: center;
  }
}

/* ── Small phones ── */
@media (max-width: 360px) {
  .photo-card {
    flex-basis: 90vw;
  }
}

/* ── Gallery grid cards ── */
.photo-card-grid {
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.1);
  transition: box-shadow 0.3s ease;
}

.photo-card-grid:hover {
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.18);
}

/* ── Gallery filter buttons ── */
.gallery-filter-btn {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.gallery-filter-btn:hover {
  color: #1f6b3b;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.gallery-filter-btn.active {
  background: #1f6b3b;
  color: #fff;
  border-color: #1f6b3b;
}

/* ── Gallery filter animation ── */
.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden-item {
  opacity: 0;
  transform: scale(0.92);
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ── Amenity cards ── */
.amenity-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
}

/* ── Attraction cards ── */
.attraction-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-3px);
}

/* ── Floating contact button ── */
#floatingContact {
  animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── Parallax / scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax background shift */
.parallax-bg {
  transition: background-position 0.1s linear;
}

/* ── Floating contact button ── */
#floatingContact {
  animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
