/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Gravitas+One&family=Inter:wght@400;500;600;700;800&display=swap');




@media (max-width: 900px) {
  .file-btn {
    font-size: 14px;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap');





/* Create Inter using Inter with display optical sizing */
.inter-display, 
[class*="inter-display"] {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 32;
}


:root {
  --bg: #0c0d0e;
  --panel: #131417;
  --text: #202D19;
  --muted: #a7a7b4;
  --accent: #babec7;
  --line: #ff3b3b;
  --overlay-bg: rgba(15, 16, 20, 0.78);
  --overlay-border: rgba(255, 255, 255, 0.08);
  --poster-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  /* Overlay Title font-size control (desktop default) */
  --overlay-title-size: 38px;
  /* Overlay Title fixed width controls */
  --overlay-title-width-desktop: 400px; /* fixed width on desktop */
  --overlay-title-width-mobile: 320px;  /* fixed width on mobile */
  /* Overlay Subtitle font-size control (desktop default) */
  --overlay-subtitle-size: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;

}

/* Global font family definition with Inter styling */
* {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 28;
}

/* ===== Export overlay to block interactions during rendering ===== */
#export-overlay {
  position: fixed;
  inset: 0;
  display: none; /* toggled to flex when active */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: rgba(10, 12, 16, 0.25);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

#export-overlay .export-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.25);
  border-top-color: #25692A; /* accent color */
  animation: mm-spin 0.9s linear infinite;
}

@keyframes mm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body {
  margin: 0;
  background: #f2f2f2 url('../img/paper-texture.jpg') repeat center center;
  background-size: cover;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 28;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.poster-area {
  flex: 1 0 auto;
}

.site-footer,
.main-footer {
  flex-shrink: 0;
}

.site-footer,
.main-footer {
  flex-shrink: 0;
  margin-top: auto; /* This pushes the footer to the bottom */
}

/* Intro */
.intro {
  position: relative;
  min-height: 600px;
  /* or your desired height */
  display: grid;
  place-items: center;
  
  z-index: 50;
  text-align: center;
  background: #f2f2f2 url('../img/paper-texture.jpg') repeat center center;
  background-size: cover;
}

.intro-card {
  width: min(94vw, 720px);
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--poster-shadow);
}

.intro-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #25692A;
   font-family: "Plus Jakarta Sans", sans-serif;

}

.intro-card p {
  margin: 6px 0 16px;
  color: #242424;
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
  /* Add this line */
}

.file-btn {

  display: inline-grid;
  place-items: center;
  padding: 12px 18px;
background: linear-gradient(180deg, #25692A 0%, #367D3A 100%);

  color: #ffffff;
  border-radius:205px;
  cursor: pointer;
  font-weight: 400;
  box-shadow: 0 4px 4px rgb(144 144 144 / 80%);
  font-family: "Inter", sans-serif !important;
}

.file-btn input {
  display: none;
}

.secondary {
  background: #ffffff;
  border: 0px solid #2b2f36;
  color: #000000;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: not-allowed;
  box-shadow: 0 4px 4px rgb(144 144 144 / 80%);
}

.small {
  font-size: 12px;
  color: var(--muted);
  display:none;
}

.editor {
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  gap: clamp(24px, 6vw, 126px);

  padding: 0px;
  position: relative;

}



#stravaBtn {
  cursor: pointer;
  border-radius:25px;
  background-color:#fc5200;
  padding:0px 8px 0px 3px;
}

#stravaBtn>img {

  height:36px !important;
}

.strava-comp{
  height:30px;
  margin-top:25px;
  
}

.hidden {
  display: none;
}

/* UNIFIED TYPOGRAPHY FOR CONTROL PANEL */
.controls,
.controls *,
.controls input,
.controls button,
.controls select,
.controls label,
.controls .style-btn,
.controls .route-style-btn,
.controls .margin-btn,
.controls .activity-btn,
.controls .file-btn,
.ai-panel,
.ai-panel *,
.ai-panel input,
.ai-panel button {
  font-family: "Inter", sans-serif !important;
}

.controls {
  position: relative;
  margin-top: 8%;
  margin-bottom: 8%;
  margin-left: 20px;
  margin-right: 10px;
  background: #FCFCFC;
  border: 0px solid #373737;
  border-radius: 12px;

  height: 94%;

   width: 475px;
}

#formatSelect {
  color: #4e4e4e;
}


.group {
  margin-bottom: 16px;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3e3e3e;
  font-size: 14px;
  margin-bottom: 15px !important;
}

.small-inline {
  font-weight: 500;
  color: var(--muted);
  margin-right: 8px;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

input[type="text"],
select,
input[type="color"] {
  background: #f2f2f2;
  border: 0px solid #2a2e35;
  color: #000 !important;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  font-family: "Inter", sans-serif !important;
}

/* Unified placeholder styling for all inputs */
input[type="text"]::placeholder,
input::placeholder,
textarea::placeholder,
#ai-landmark-name::placeholder,
#ai-landmark-type::placeholder,
#ai-region-name::placeholder {
  color: #757575 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
}

/* Firefox placeholder styling */
input[type="text"]::-moz-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
#ai-landmark-name::-moz-placeholder,
#ai-landmark-type::-moz-placeholder,
#ai-region-name::-moz-placeholder {
  color: #757575 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
}

/* WebKit placeholder styling */
input[type="text"]::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
#ai-landmark-name::-webkit-input-placeholder,
#ai-landmark-type::-webkit-input-placeholder,
#ai-region-name::-webkit-input-placeholder {
  color: #757575 !important;
  font-family: "Inter", sans-serif !important;
}

input[type="text"],
select {
  width: 100%;
}

input[type="radio"] {
  transform: translateY(1px);
}

/* Input with color picker container */
.input-with-color {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-color input[type="color"] {
  border: 1px solid #666666 !important;
  box-shadow: none !important;
  outline: none !important;
  background: none !important;
  padding: 0 !important;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
  flex-shrink: 0;
}

.input-with-color input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}

.input-with-color input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.input-with-color input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

.input-with-color input[type="text"] {
  flex: 1;
}

.input-with-color .btn-group {
  flex: 1;
}


.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Poster area: 100vh */
.poster-area {
  min-height: 90vh;
  /* or your desired minimum */
  display: grid;
  place-items: center;
}

.poster-wrapper {
  width: 100%;
  max-width: 1100px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.poster {
  font-family: "Bebas Neue", sans-serif;
 margin-top: -15px;
  margin-left: 0;
  position: relative;
  height: 85vh;
  aspect-ratio: 1 / 1.4142;
  width: auto;
  max-width: 100%;
  max-height: 100vh;
  overflow: hidden;
  border-radius: 0px;
  border: 0px solid #ffffff;
  background: #0b0c0e;
}

.map {
  position: absolute;
  inset: 0;
}

/* Overlay inside poster */
.overlay {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: 20vh;
  /* or your preferred fixed height */
  background: #ffffff00 !important;
  border: 0px solid var(--overlay-border);
  border-radius: 0px;
  padding: 0px 0px;
  z-index: 3;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}



#overlay-background {
  background: #0B1820;
  width: 100%;
  height: 100%;
  position: absolute;
opacity:0 !important;
border: none !important;
border-width: 0px !important;
}

#metricsColor{
  margin-top:-8px;
}

.metric {
 
  width: auto; /* Changed from 400px to auto to fit content */
  margin-bottom: 5px;
  display: inline-block; /* Ensure proper width calculation */
}

.mentric-text {
  width: 100%;
  position: absolute;

}

.metric-label {
  color: var(--muted);
  display: none;
}

.metric-value {
 
  font-weight: 700;
  font-size: 20px;
}

.icon[data-icon="distance"] {
  -webkit-mask-image: url('../img/info-01.svg');
  mask-image: url('../img/info-01.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

.icon[data-icon="elevation"] {
  -webkit-mask-image: url('../img/info-02.svg');
  mask-image: url('../img/info-02.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

.icon[data-icon="duration"] {
  -webkit-mask-image: url('../img/info-03.svg');
  mask-image: url('../img/info-03.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

.icon[data-icon="pace"] {
  -webkit-mask-image: url('../img/info-04.svg');
  mask-image: url('../img/info-04.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

.icon {

  margin-right: 0px;
  width: 28px;
  height: 28px;
  padding: 9px;
  display: inline-block;
  margin-left: 0px;
  /* color for masks comes from currentColor on parent; no background-image used */
}

.detail-icon{
  width:15px;
}

.metric {
  display: flex;
  align-items: center;
  /* vertical alignment */
  gap: 11px;
  /* space between icon and text, adjust as needed */
}

.icon {
  flex-shrink: 0;
  /* prevent icon from shrinking */
  /* your existing icon styles */
}

.metric-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.credits {
  position: absolute !important;
  right: 0px;
  bottom: 35px;
  font-size: 12px;
  margin-top: -22px;
  padding-right: 5vh;
  color: #8a8a8a;
  display: none;
}

/* Offscreen export containers */
.offscreen {
  position: fixed;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#export-map {
  width: 1px;
  height: 1px;
}

/* Mapbox map clean state: no interactivity cursor feedback */
.mapboxgl-canvas {
  cursor: default !important;
}

.mapboxgl-ctrl {
  display: none !important;
}

#watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.00;
  font-size: 1.7vw;
  color: #000000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;


}

#watermark-overlay span {
  display: inline-block;
  transform: rotate(-45deg);
}

.watermark {
  display: none;
}

#lineColor {

  padding: 6px 10px;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border: 1px solid transparent !important;
}


#lineColor {
  border: 1px solid #666666 !important;
  box-shadow: none !important;
  outline: none !important;
  background: none !important;
  padding: 0 !important;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
}

#lineColor::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}

#lineColor::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

#lineColor::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}


#margin-overlay,
#margin-overlay-inner {
  position: absolute;

  pointer-events: none;
  z-index: 4;
  border: 7px solid white;
  border-radius: 0px;
  box-sizing: border-box;
  transition: border-width 0.2s, top 0.2s, left 0.2s, right 0.2s, bottom 0.2s;
}

#margin-overlay {

  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;

}

#margin-overlay-inner {

  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;

}

.group>label.label {
  margin-bottom: 4px;
  display: block;
}


.btn-group,
.margin-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0.8em;
}

.margin-group {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
}

.margin-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 0px;
}

.margin-btn-group .margin-btn img {

  height: 22px;
  object-fit: contain;
}


.style-btn,
.route-style-btn,
.margin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f3f3f3;
  color: #a6a6a6;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 13px;
  font-family: "Inter", sans-serif !important;
}

.style-btn img,
.route-style-btn img,
.margin-btn img {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.style-btn:hover,
.route-style-btn:hover,
.margin-btn:hover,
.style-btn.active,
.route-style-btn.active,
.margin-btn.active {
  border-color: #35991E;
  color: #35991E;
}

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 120px;
  height: 4px;
  background: #e6e6e6;
  border-radius: 2px;
  outline: none;
  margin: 0 10px;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #35991E;
  border: 0px solid #babec7;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]:focus::-webkit-slider-thumb {
  background: #35991E;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #35991E;
  border: 2px solid #babec7;
  cursor: pointer;
}

input[type="range"]::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #35991E;
  border: 2px solid #babec7;
  cursor: pointer;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-ms-fill-lower {
  background: #7093cf;
}

input[type="range"]::-ms-fill-upper {
  background: #23262b;
}

input[type="range"]:focus::-ms-fill-lower {
  background: #23262b;
}

input[type="range"]:focus::-ms-fill-upper {
  background: #23262b;
}

/* Activity button group styling */
.activity-btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0.9em;
  width: 95%;
}

/* Activity button styling, matching .style-btn, but fill width equally */
.activity-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7.2px 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f3f3f3;
  color: #a6a6a6;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 13px;
  min-width: 0;
  margin-top: 4px;
  font-family: "Inter", sans-serif !important;
}

.activity-btn:hover,
.activity-btn.active {
  border-color: #35991E;
  color: #35991E;
}



#toggleIconBtn {
  display: none;
}

.lang-switch {
  position: fixed;
  z-index: 8000;
  top: 20px;
  left: 37px;
  display: none;

}

.lang-btn {
  border: solid;
  padding: 5px 15px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  background: #7b7e87;
  color: #394348;
  font-size: 14px;
  cursor: pointer;
}

.lang-btn:hover {
  background: #aaadb4;
}

.lang-btn.active {
  border-color: #02EFB6;
  background: #babec7;
  color: #001018;
}

.ai-panel {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.ai-panel > input {
  opacity: 0.4;
  background-color: #e3e3e3 !important;
  color: #000 !important;
  font-family: "Inter", sans-serif !important;
}

.ai-panel > input::placeholder {
  color: #757575 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
}

.ai-panel > input::-moz-placeholder {
  color: #757575 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
}

.ai-panel > input::-webkit-input-placeholder {
  color: #757575 !important;
  font-family: "Inter", sans-serif !important;
}

/* Specific AI input field styling - Override ai-panel opacity */
#ai-landmark-name,
#ai-landmark-type,
#ai-region-name {
  color: #000 !important;
  opacity: 1 !important;
  background-color: #F2F2F2 !important;
  font-family: "Inter", sans-serif !important;
}

#ai-landmark-name::placeholder,
#ai-landmark-type::placeholder,
#ai-region-name::placeholder {
  color: #757575 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
}

#ai-landmark-name::-moz-placeholder,
#ai-landmark-type::-moz-placeholder,
#ai-region-name::-moz-placeholder {
  color: #757575 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
}

#ai-landmark-name::-webkit-input-placeholder,
#ai-landmark-type::-webkit-input-placeholder,
#ai-region-name::-webkit-input-placeholder {
  color: #757575 !important;
  font-family: "Inter", sans-serif !important;
}

#ai-image-container-sub {
  position: absolute;
  bottom: -40% !important;
}

#ai-image-container-sub img {
  width: 130%;

  left: -15%;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

#ai-loading{
  color: #25692A;

}

/* #ai-image-container .tint {
  position: absolute;
  inset: 0;
  background: #0b1820;
  mix-blend-mode:hard-light; 
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
} */

/* #ai-image-container img {
  filter: sepia(1) hue-rotate(-30deg) saturate(5) brightness(1.2);
} */

.text-block,
#metrics,
.credits {
  position: relative;
  /* Ensure stacking context */
  z-index: 10 !important;
  /* Higher than #ai-image-container */
}

.poster-bg-btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0.5em;
}

.poster-bg-btn {
  flex: 1 1 0;
  padding: 8px 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f3f3f3;
  color: #a6a6a6;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 13px;
}

.poster-bg-btn.active,
.poster-bg-btn:hover {
  border-color: #35991E;
  color: #35991E;
}

#ai-bg-btn img {
  opacity:0.4 !important;
}


#ai-bg-btn.active img {
  filter: none !important;
   opacity:1 !important;
}

#ai-bg-btn:hover img {
  filter: none !important;
   opacity:1 !important;
}


#ai-bg-btn.active,
#ai-bg-btn:hover {
  border-color: #9622DB;
  color: #9622DB;

    
}



#ai-generate-btn {

  flex: 1 1 0;
  padding: 8px 0;
  border: 2px solid #babec7;
  border-radius: 8px;
  background: #171A1C;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
margin-top:13px;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  border: 0px solid #02EFB6;
  border-radius: 30px;
  background: linear-gradient(180deg, #740CB0 0%, #AD1FFF 98.08%);
}


#ai-generate-btn:hover {
  border-color: #02EFB6;
  background: #23262b;
  color: #fff;
}

/* AI Regenerate Button - White with purple text and border */
#ai-regenerate-btn {
  flex: 1 1 0;
  padding: 8px 0;
  border: 1px solid #A31CF1;
  border-radius: 30px;
  background: #ffffff;
  color: #A31CF1;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-size: 15px;
  margin-top: 13px;
  font-family: "Inter", sans-serif !important;
}

#ai-regenerate-btn:hover {
  background: #f8f0ff;
  border-color: #8e19d1;
  color: #8e19d1;
}

.metric-toggle-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0.5em;
}

.metric-toggle-btn {
  flex: 1 1 0;
  padding: 8px 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f3f3f3;
  color: #a6a6a6;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 13px;

}

.metric-toggle-btn.active,
.metric-toggle-btn:hover {
  border-color: #35991E;
  color: #35991E;
}



.move-btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0.5em;
}

.move-btn {
  width: 140px;
  flex: 1 1 0;
  padding: 4px 6px;
  border: 0px solid #babec7;
  border-radius: 18px;
  background: #dadbdf;
  color: #515050;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.move-btn.active,
.move-btn:hover {
  border-color: #02EFB6;
  background: #23262b;
  color: #fff;
}

/* Move panel styles removed - replaced with drag-and-drop */

.controls {
  scrollbar-width: thin;
  padding: 20px 10px 20px 30px;
  max-height: 85vh;
  margin-top: 20px;
  scrollbar-color: #e2e2e2 #fcfcfc;
  /* thumb color, track color */
  border-radius: 18px;
}

/* For Webkit browsers (Chrome, Edge, Safari) */
.controls::-webkit-scrollbar {

  width: 0px;
  background: #23262b;
  /* track color */
  border-radius: 18px;
}

.controls::-webkit-scrollbar-thumb {
  background: #369acb;
  /* thumb color */
  border-radius: 18px;
}

.controls::-webkit-scrollbar-thumb:hover {
  background: #FC5200;
  /* thumb color on hover */
  border-radius: 18px;
}

#strava-picker {
  display: block !important;
  opacity: 1 !important;
  z-index: 99999 !important;
}





.icon-with-tooltip {
  position: absolute;
  display: flex;
  align-items: center;
  left:535px;
  top:93%;
  z-index: 9990999;
  cursor:pointer;
  opacity:0.7
}



.ai-panel-title {
  font-size: 13px;
  color: #9116d9;
  margin-bottom: 18px;
}

/* Theme Filtered Toggle */
.theme-filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1em;
  padding: 0;
}

.theme-filter-label {
  font-family: "Inter", sans-serif !important;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  flex: 1;
}

.theme-toggle-wrapper {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 70px;
  height: 32px;
  padding: 2px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #f3f3f3;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-family: "Inter", sans-serif !important;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: #A31CF1;
}

.theme-toggle-btn[data-active="true"] {
  border-color: #A31CF1;
  background: #f8f0ff;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 32px;
  height: 26px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 2;
}

.theme-toggle-btn[data-active="true"] .toggle-slider {
  transform: translateX(34px);
}

.toggle-state {
  position: relative;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  color: #a6a6a6;
  transition: color 0.3s;
  pointer-events: none;
  width: 32px;
  text-align: center;
}

.toggle-state.off {
  margin-left: 2px;
}

.toggle-state.on {
  margin-right: 2px;
}

.theme-toggle-btn[data-active="false"] .toggle-state.off {
  color: #A31CF1;
}

.theme-toggle-btn[data-active="true"] .toggle-state.on {
  color: #A31CF1;
}

#ai-panel-collapsible {
  margin-bottom: 30px;
  background: #fafafa;
  padding: 15px 15px 15px 15px;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
}

#strava-picker {
  position: fixed;
  top: 20vh;
  left: 50%;
  transform: translateX(-50%);

  color: #171a1c;
  padding: 2.5em 2em 2em 2em;
  z-index: 9999;
  border-radius: 18px;

  min-width: 340px;
  max-width: 96vw;
  font-family: 'Inter', Arial, sans-serif;
  text-align: left;


  background: #ffffff !important;
  border: 0px solid #1f2227;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--poster-shadow);
}

#strava-picker h3 {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-size: 1.25em;
  font-weight: 700;
  color: #02EFB6;
  letter-spacing: 0.01em;
}

#strava-picker ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5em 0;
}

/* Strava Activity Picker Styling */
#strava-picker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  width: min(90vw, 500px);
  max-height: 70vh;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

#strava-picker::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  z-index: -1;
}

.test-mode-badge{
  display:none;
}

.strava-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 24px;
  border-bottom: 0px solid #e0e0e0;
  background: #ffffff;
  
}

.strava-picker-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #25692A !important;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.test-mode-badge {
  background: #ff6b35;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.strava-picker-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  margin-top:-18px;
}

.strava-picker-close:hover {
  background: #f0f0f0;
  color: #333;
}

.strava-activities-list {
  max-height: 50vh;
  overflow-y: auto;
  padding: 16px 24px 24px 24px;
}

.strava-activity {
  background: #ffffff;
  border: 1px solid #adadad;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strava-activity:hover {
  border-color: #35991e;
  
  box-shadow: 0 2px 8px rgba(37, 105, 42, 0.1);
  transform: translateY(-1px);
}

.strava-activity:last-child {
  margin-bottom: 0;
}

.activity-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.activity-details {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #666;
}

.activity-date,
.activity-distance,
.activity-duration {
  display: flex;
  align-items: center;
  font-weight: 400;
}

.activity-date::before {
  content: "📅";
  margin-right: 4px;
  font-size: 12px;
}

.activity-distance::before {
  content: "📏";
  margin-right: 4px;
  font-size: 12px;
}

.activity-duration::before {
  content: "⏱️";
  margin-right: 4px;
  font-size: 12px;
}

.no-activities {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 32px 24px;
  margin: 0;
}

/* Scrollbar styling for activities list */
.strava-activities-list::-webkit-scrollbar {
  width: 6px;
}

.strava-activities-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.strava-activities-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.strava-activities-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

@media print {

  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  /* Hide everything except poster */
  body>*:not(.poster),
  .poster~* {
    display: none !important;
  }

  .poster {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 900px !important;
    /* or your fixed width */
    height: 1273px !important;
    /* or your fixed height */
    box-shadow: none !important;
    background: #fff !important;
    z-index: 9999 !important;
  }

  .poster>* {
    /* Ensure all children are visible and fixed size */
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  #margin-overlay,
  a #margin-overlay-inner {
    display: block !important;
    opacity: 1 !important;
    border-color: #fff !important;
    z-index: 10 !important;
  }
}

/* ===== Header & Footer (light, minimal, matches screenshots) ===== */
:root {
  --brand-green: #35991E;
  --text-900: #111827;
  --text-700: #374151;
  --text-500: #6b7280;
  --surface: #ffffff;
  --line: #e5e7eb;
  --container-w: 1200px;
  /* max content width */
}

/* Utility container */
.container {
  width: min(100% - 48px);
  margin-inline: auto;
  padding: 10px 10% !important;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px; /* More balanced left/right padding to match source */
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-text {
  color: var(--text-900);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .1px;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.main-nav a {
  color: var(--text-900);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Language pill */
.lang-pill {
  border: 0;
  background: #25692A !important;
  color: #fff;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  gap: 0px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lang-pill .globe {
  width: 18px;
  height: 18px;
  display: block;
  margin-left:4px !important;
}

/* Responsive header */
@media (max-width: 900px) {
  :root { --overlay-title-size: 31px; --overlay-subtitle-size: 18px; }
  .site-header .container {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    row-gap: 8px;
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
    flex-wrap: wrap;
    gap: 16px;
  }

  .lang-pill {
    grid-area: lang;
    justify-self: end;
  }
}



/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 58px 0 58px ;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Grid: brand + three columns (Company, Legal, Socials) */
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Footer brand area */
.footer-brand .brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-brand .brand-text {
  color: var(--text-900);
  font-size: 22px;
  font-weight: 600;
}

.tagline {
  color: var(--text-700);
  font-size: 15px;
  line-height: 1.3;
  max-width: 34ch;
  margin: 0;
}

/* Footer columns */
.footer-col h4 {
  color: #B9B9B9;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.footer-col a {
  color: var(--text-900);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Copyright line */
.copyright {
  padding-top: 32px;
  color: var(--text-500);
  font-size: 16px;
}

/* Responsive footer */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tagline {
    font-size: 18px;
  }

  .footer-col h4 {
    font-size: 18px;
  }

  .footer-col a {
    font-size: 18px;
  }
}

.poster-area.full-height,
.poster-wrapper.full-height,
.editor.full-height,
.editor.full-height .poster,
.editor.full-height .poster-wrapper {
  min-height: 50vh !important;
  height: 50vh !important;
  max-height: 50vh !important;
  overflow-y: auto;
}

.editor.full-height .poster {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

.editor.full-height .controls {
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-pill {
  background: transparent;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Show globe icon when dropdown is active */
.lang-dropdown.active .lang-pill .globe {
  display: inline-block !important;
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #000000;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  z-index: 100;
  padding: 8px 0;
}

.lang-menu.hidden {
  display: none;
}

.lang-option {
  background: none;
  color: white;
  border: none;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.brand-logo {
  width: 130px;
}

.controls img:not(#style-choices img):not(.detail-icon) {
  filter: grayscale(1) brightness(0.6);
  opacity: 0.8;
}



.sub-controls {
  overflow-y: auto;
  max-height: 67vh;
  scrollbar-width: thin;
  scrollbar-color: #e2e2e2 #fcfcfc;
  border-radius: 0px;
  padding-right: 6px;
  
}

.sub-controls, .controls{
  overflow-x:hidden;
}

.sub-controls::-webkit-scrollbar {
  width: 10px !important;
  background: #fcfcfc !important;
  border-radius: 18px !important;
}

.sub-controls::-webkit-scrollbar-thumb {
  background: #369acb !important;
  border-radius: 18px !important;
}

.sub-controls::-webkit-scrollbar-thumb:hover {
  background: #FC5200 !important;
  border-radius: 18px !important;
}

/* Hide scrollbar arrows (Webkit only) */
.sub-controls::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sub-controls::-webkit-scrollbar-thumb {
  background: #369acb !important;
  border-radius: 50px !important;
  /* Try a larger value */
}

.btn-group.margin-btn-group img {
  width: 15px;

}

.back-controls {
  
  padding: 10px 0px;
  height: 95px;
 border-bottom: 1px solid #e0e0e0;
margin-bottom:15px;

}

.primary {
  padding: 6px 35px 6px 30px;
  border-radius: 10px;
  
  color: #ffffff;
  font-weight: 500;
  font-size:15px;
  cursor: pointer;
  border: 0px solid #02EFB6;
  border-radius: 30px;
 background: linear-gradient(180deg, #1c5821 0%, #367D3A 100%);



}

.primary:hover{
  background: #3ca042;
}



#backToUploadBtn {
  padding:0px;
  text-align:left;
  font-size: 16px;
  font-weight: 500;
  border-width: 0px;
  cursor: pointer;
  border-radius: 16px;
  background-color: #ffffff;
  color: #a5a7ab;
box-shadow:none;
  width:100%;
  margin-bottom:10px;
}

#backToUploadBtn:hover{
  color: #828282;
}

.poster-icons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 20;
  opacity: 1;
  margin-left:80%;
margin-top:-50px;
}



.back-controls button img {
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.5em;
  display: inline-block;
}

.poster-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.10));
  transition: filter 0.2s;
  display:none;
}

.poster-icon:hover,
.poster-icon:focus {
  filter: drop-shadow(0 2px 8px rgba(2, 239, 182, 0.25));
}

.icon-tooltip {
  display: none;
  position: absolute;
  top: 50%;
  right: 110%;
  transform: translateY(-80%);
  background: #818181;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight:400 !important;
  white-space: pre-line;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  min-width: 220px;
  max-width: 320px;
  z-index: 100;
  pointer-events: none;
  opacity:1 !important;
}

.icon-with-tooltip:hover .icon-tooltip,
.icon-with-tooltip:focus-within .icon-tooltip {
  display: block;
}

.input-hint {
  margin-left: 12px;
  font-size: 12px;
  color: #4c4d4f;
  margin-top: 25px;
  margin-bottom: 0px;
  font-weight:bold;
}


.primary img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  height:25px !important
}


/* ==== Product Options Card ================================================= */
:root{
  --po-bg: #fff;
  --po-border: #e5e7eb;
  --po-shadow: 0 8px 28px rgba(16,24,40,.08);
  --muted: #6b7280;
  --ink: #111827;
  --chip: #f5f6f7;
  --chip-border: #e6e8ec;
  --chip-active: #ffffff;
  --chip-ring: rgba(34,197,94,.25); /* green ring glow */
  --accent: #22c55e;
  --sale: #ef4444;                 /* red price */
}

.product-options{
  background: var(--po-bg);
  border: 1px solid var(--po-border);
  border-radius: 10px;
  padding: 28px;
  
  max-width: 720px;
  color: var(--ink);
}

/* Titles */
.po-title{
   display: block;
  font-weight: 5600;
  margin-bottom: 8px;
  color: #3e3e3e;
  font-size: 14px;
  margin-bottom: 15px !important;
}

/* Fieldsets */
.seg-fieldset, .cards-fieldset{
  border: 0; padding: 0; margin: 0 0 18px;
}

/* ---------- Segmented group (A2 / A3) ---------- */
.seg{
  display: flex; flex-wrap: wrap; gap: 14px;
  background: #fafafb;
  border: 0px solid var(--po-border);
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04) inset;
}
.cards input[type="radio"],
.seg input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  top: 0;
  left: 0;
}

.seg-pill{
  display: inline-flex; align-items: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: #afafaf;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(0,0,0,.02);
  cursor: pointer;
  transition: .15s ease;
}
.seg-pill:hover{ background:#f9fafb; }
.seg input:checked + .seg-pill{
  background: var(--chip-active);
  border-color: #d1d5db;
color: var(--ink);
   border-color: #35991E;
  color: #35991E;
}

/* ---------- Card list (Type of Poster) ---------- */
.cards{
  background: #f7f7f8;
  border: 0px solid var(--po-border);
  border-radius: 20px;
  padding: 12px;
  display: grid; gap: 12px;
}

.cards input[type="radio"]{ position: absolute; appearance: none; opacity: 0; }

/* Each option is a label */
.card-option{
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-radius: 10px;
  background: #f3f4f6;                 /* light gray like screenshot */
  border: 1px solid #eceff1;
 opacity:0.5;
  cursor: pointer;
 
}

/* Main content wrapper maintains the grid layout */
.co-main-content {
  display: contents; /* This makes the children behave as direct grid children */
}

/* Detail button spans full width on second row */
.co-detail-button {
  grid-column: 1 / -1; /* Span all columns */
  display: flex;
  align-items: center;
  gap: 1px;
  margin-top: 8px;
  padding: 8px 5px 8px 11px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  font-size: 11.5px;
  color: #be9e10;
}

.co-detail-button .detail-icon {
  width: 13px;
  height: 13px;
  display:none;
}
.card-option:hover{ background:#eef2f5; }
.co-icon svg{ width:22px; height:22px; color:#818894; }
.co-label{ font-size: 14px; font-weight: 500; color: #afafaf; }
.co-price{ display:flex; align-items:center; gap:10px; font-size:18px; color:#9aa0a6; font-weight:700; }
.co-price .now{ color: var(--sale); }
.co-price .was{ color:#c7cbd2; }

/* Selected card pops up white with strong shadow and subtle ring */
.cards input:checked + .card-option{
  background:#ffffff;
  border-color: #35991E;
  opacity:1
  
}

/* Info pill below cards */
.info-pill{
  display:flex; align-items:center; gap:10px;
  padding: 12px 14px;
  background:#ffffff;
  border:1px solid #eceff1;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  color: #111827;
  font-size: 12px; font-weight: 400;
}
.info-pill .ip-icon svg{ width:18px; height:18px; color:#f2f2f2; }

/* Optional: make the Printed Poster look "sale" even when not selected */
.card-option.is-sale .now{ color: var(--sale); }

/* Responsive */
@media (max-width: 560px){
  .product-options{ padding: 20px; border-radius: 20px; }
  .po-title{ font-size: 14px; }
  .co-label, .co-price{ font-size: 16px; }
}



.drag-zoom-overlay {
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: rgb(32 34 38 / 72%);
  color: #fff;
  padding: 18px 32px;
  border-radius: 18px;
  font-size: 1.3em;
  font-weight: 600;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  pointer-events: none;
  transition: opacity 0.3s;
   font-family: "Inter", sans-serif;
}
.drag-zoom-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.drag-zoom-overlay img {
  filter: brightness(0) invert(1);
}
#formatSelect-group{
  display:none;
}

@media (max-width: 900px) {
  .editor {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
  }
  .poster-area {
    order: 1;
    width: 100%;
    min-height: 60vw;
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:60px;
  }
  .controls {
    order: 2;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    border-radius: 0 0 18px 18px;
    min-height: unset;
    height: auto;
    overflow: visible !important;
    max-height: none !important;
    padding-left:25px;
    padding-right:25px;
  }
  .sub-controls {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
 .poster {
    aspect-ratio: 1 / 1.4142;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 80vh;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 0 !important;
    border: none !important;  /* Add this */
    outline: none !important; /* Add this */
    box-shadow: none !important; /* Add this */
  }
  .mapboxgl-canvas {
    aspect-ratio: 1 / 1.4142;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 80vh !important;
    min-height: 320px !important;
    display: block;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .drag-zoom-overlay {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
  }

  .drag-zoom-overlay {
  
  
 
  padding: 12px 19px;
  border-radius: 18px;
  font-size: 1.0em;
  
}




  #stravaBtn {
  cursor: pointer;
  border-radius:20zpx;
  background-color:#fc5200;
  padding:4px 12px 4px 6px;
}

#stravaBtn>img {

  height:36px !important;
}

.intro-card h1 {
  margin: 0 0 18px;
  font-size: 22px;
  color: #25692A;
   font-family: "Plus Jakarta Sans", sans-serif;

}

.footer-grid{
  transform: scale(0.9);       /* 80% size */
  transform-origin: top left;  /* scale from top-left corner */
  

}



 #margin-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  #margin-choices .margin-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

    #style-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  #style-choices .style-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

/* Draggable overlay elements - positioned absolutely within poster */

  

/* --- Hard mobile overrides (placed at end to win cascade) --- */
@media (max-width: 900px) {
  /* Make absolutely sure the poster section is visible and sized */
  .editor {
    display: flex !important;
    flex-direction: column !important;
  }
  .poster-area {
    order: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 60vh !important;
    margin: 40px auto 0 !important;
  }
  .poster-wrapper {
    width: 94vw !important;
    margin: 0 auto !important;
  }
  .poster {
    aspect-ratio: 1 / 1.4142 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 320px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative !important;
  }
  /* Ensure the map fills the poster */
  #map,
  .map {
    position: absolute !important;
    inset: 0 !important;
  }
  .mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 80vh !important;
    min-height: 320px !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

#poster #metrics {
  position: absolute;
  bottom: 30%;
  left: 9%;
  z-index: 10;
  cursor: grab;
  cursor: -webkit-grab;
  user-select: none;
  margin: 0;
  padding: 0;
  width: auto; /* Fit content width */
  display: inline-block; /* Proper width calculation */
  transform-origin: top left;
}
  
  /* Apply the scale through a wrapper or different approach */
  #metrics * {
    font-size: 15px; /* Scale down font instead */
  }

  .metric{
    margin-bottom:0px;
  }
  
  /* Move panel styles removed - replaced with drag-and-drop */

}

.editor.hidden {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  background: #25692A;
  border-radius: 2px;
  transition: 0.3s;
}

 .main-nav.mobile-nav {
    display: none;
 
  }

@media (max-width: 560px) {

 
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .main-nav.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* adjust based on your header height */
    right: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 18px 24px;
    z-index: 1000;
    min-width: 160px;
    gap: 18px;
  }
  .main-nav.mobile-nav.open {
    display: flex;
  }

.site-header .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 18px 4px !important;
    flex-wrap: nowrap !important;
  }
  .brand-logo {
    width: 180px !important;
    min-width: 0;
  }
  .main-nav,
  .main-nav.mobile-nav {
    flex: 0 1 auto;
  }
  .lang-pill {
    font-size: 14px;
    height: 36px;
    padding: 0 10px;
  }

  .hamburger {
    /*margin-left: 8px;*/
    margin-left: auto; /* Push hamburger to the right */
    margin-right: 10px; /* Space between hamburger and language pill */
  }

}

.mapboxgl-canvas,
.mapboxgl-canvas-container,
.mapboxgl-canvas-container canvas,
#map,
#map canvas,
.poster .mapboxgl-canvas,
.poster #map,
.poster,
.poster-wrapper {
  border: none !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Remove the poster-wrapper filter that might be causing the shadow */
.poster-wrapper {
  filter: none !important;
}



@media (max-width: 900px) {
  .poster {
    aspect-ratio: 1 / 1.4142;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 80vh;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important; /* Add this */
    overflow: hidden !important; /* Add this */
  }
  
  .mapboxgl-canvas {
    aspect-ratio: 1 / 1.4142;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 80vh !important;
    min-height: 320px !important;
    display: block;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important; /* Add this */
  }
  
  /* Also ensure the map container has no background */
  #map {
    background: transparent !important;
    border: none !important;
    outline: none !important;
  }
}

@media (max-width: 900px) {
  .metric-toggle-btn {
    min-height: 28px; /* Minimum touch target size */
    padding: 8px 8px;
    font-size: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex: 1 1 0;
    min-width: 0;
  }
  
  .metric-toggle-group {
    gap: 6px;
    flex-wrap: nowrap;
  }
}

/* NOTE: removed duplicate accidental width:0 on .poster-area that hid the poster */

#price-frame {
    color: #EF4444;
}

.activity-device{
  margin-top:9px;
  font-size:14px;

  color: #676767;
}

#overlayTitle {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    cursor: grab;
    cursor: -webkit-grab;
    user-select: none;
    text-align: center;
    width: var(--overlay-title-width-desktop);
    max-width: var(--overlay-title-width-desktop);
    padding: 0;
    line-height: 43px;
    font-size: var(--overlay-title-size);
    font-family: "Gravitas One", serif !important;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
    -webkit-text-stroke: 0 transparent;
    text-shadow: none;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 900px) {
    #overlayTitle {
        width: var(--overlay-title-width-mobile) !important;
        max-width: var(--overlay-title-width-mobile) !important;
        line-height: 29px !important;
    }
}

#overlaySubtitle {
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    cursor: grab;
    cursor: -webkit-grab;
    user-select: none;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    font-size: var(--overlay-subtitle-size);
    font-family: "Inter", sans-serif !important;
    font-weight: 500;
    line-height: normal;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#metrics .metric-value {
  font-family: 'Inter', system-ui, Arial, sans-serif;
}
.metric-value .metric-number { font-weight: 600; }
.metric-value .metric-unit { font-weight: 500; margin-left: 0.25em; }
