:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f4f2;
  --text: #1f2a2a;
  --muted: #6a7473;
  --border: rgba(18, 28, 27, 0.12);

  --brand: #5f8f7d;          /* grün ähnlich Screenshot */
  --brand-2: #507d6d;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --radius-lg: 22px;
  --radius-md: 16px;

  --container: 1120px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;

  --h1: clamp(38px, 4vw, 64px);
  --h2: clamp(26px, 2.5vw, 34px);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.page{ min-height: 60vh; }

/* --- Header --- */
.header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  height: 76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--sp-3);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand__logo{ width: 42px; height: 32px; }
.brand__name{
  font-family: 'Calibri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 30px;
}
.brand__name--map {
  color: #5a7a68;
}
.brand__name--mates {
  color: #7ba286;
}
.brand__name-img {
  height: 32px;
  width: auto;
}

.nav{
  display:flex;
  gap: 26px;
  align-items:center;
  color: rgba(31,42,42,.78);
  font-weight: 500;
  font-size: 15px;
}
.nav__link{
  position: relative;
  padding: 10px 0;
}
.nav__link::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:6px;
  height:2px;
  background: transparent;
  border-radius: 999px;
  transform: scaleX(.7);
  transition: .2s ease;
}
.nav__link:hover{ color: rgba(31,42,42,1); }
.nav__link:hover::after{ background: rgba(95,143,125,.35); transform: scaleX(1); }

.header__actions{
  display:flex;
  align-items:center;
  gap: 12px;
}

.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.6);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: .2s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.icon{ width: 20px; height: 20px; fill: rgba(31,42,42,.82); }

/* Cart badge */
.icon-btn--cart {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 3px 12px rgba(231, 76, 60, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.9);
  animation: cartBadgePulse 0.3s ease-out;
  border: 2px solid white;
}

@keyframes cartBadgePulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.header__cta{ padding: 12px 18px; }

.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.6);
  cursor:pointer;
}
.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(31,42,42,.75);
  margin: 4px auto;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor:pointer;
  user-select:none;
}
.btn--pill{ border-radius: 999px; }
.btn--lg{ padding: 14px 22px; font-size: 16px; }

.btn--primary{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(95,143,125,.26);
}
.btn--primary:hover{ transform: translateY(-1px); filter: brightness(1.02); }

.btn--ghost{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(18, 28, 27, 0.12);
  color: rgba(31,42,42,.92);
}
.btn--ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.btn-text {
  background: none;
  border: none;
  color: inherit;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.btn-text:hover {
  opacity: 0.7;
}
.btn-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
}
.input:focus{ border-color: rgba(95,143,125,.6); box-shadow: 0 0 0 4px rgba(95,143,125,.15); }

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* --- Alerts --- */
.alert {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert--success {
  background: linear-gradient(135deg, rgba(95, 143, 125, 0.15) 0%, rgba(95, 143, 125, 0.08) 100%);
  border: 1px solid rgba(95, 143, 125, 0.3);
  color: var(--brand-2);
}

.alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* --- Hero --- */
.hero{
  position: relative;
  min-height: calc(100vh - 76px);
  display:flex;
  flex-direction:column;
}

.hero__media{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 40px;
}
.hero__half{
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}
.hero__half--left{ background-position: 35% 50%; }
.hero__half--right{ background-position: 55% 50%; }

.hero__veil{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.05) 0%,
    rgba(255,255,255,.15) 45%,
    rgba(255,255,255,.05) 100%
  );
  pointer-events: none;
}

.hero__content{
  position:relative;
  z-index: 2;
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(40px, 6vw, 80px) 0;
}

.hero__center{
  text-align:center;
  max-width: 720px;
  padding: 0 var(--sp-2);
}

.hero__title{
  margin: 0 0 14px;
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: rgba(31,42,42,.92);
}
.hero__subtitle{
  margin: 0 auto 26px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(31,42,42,.70);
}

.hero__actions{
  display:flex;
  gap: 14px;
  justify-content:center;
  align-items:center;
  flex-wrap: wrap;
}

/* --- Trustbar --- */
.trustbar{
  position:relative;
  z-index: 2;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
}
.trustbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
  font-size: 14px;
  color: rgba(31,42,42,.78);
  flex-wrap: wrap;
}
.trust{
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}
.trust__icon{
  width: 34px;
  height: 24px;
  border-radius: 8px;
  background: rgba(95,143,125,.12);
  border: 1px solid rgba(95,143,125,.25);
  position: relative;
}
.trust__icon--star::after{
  content:"★";
  position:absolute; inset:0;
  display:grid; place-items:center;
  color: rgba(160, 129, 58, .95);
  font-size: 14px;
}
.trust__icon--truck::after{
  content:"🚚";
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-size: 14px;
}
.trust__icon--clock::after{
  content:"⏱";
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-size: 14px;
}
.trust__icon--eu::after{
  content:"EU";
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-weight: 700;
  font-size: 12px;
  color: rgba(31,42,42,.8);
}

/* --- Sections / Cards --- */
.section{
  padding: var(--sp-5) 0;
}
.section--alt{ background: var(--surface-2); }
.section--tight{ padding: var(--sp-4) 0; }

.section__title{
  margin: 0 0 18px;
  font-size: var(--h2);
  letter-spacing: -0.02em;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.card{
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.card__title{
  font-weight: 700;
  margin-bottom: 8px;
}

/* --- Products --- */
.pagehead{ margin-bottom: 18px; }
.pagehead__title{
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  font-size: 34px;
}

.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.product-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  transition: .2s ease;
}
.product-card:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.10); }

.product-card__img{
  position:relative;
  aspect-ratio: 4/3;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(95,143,125,.20), rgba(0,0,0,.03));
}
.product-card__img img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.badge{
  position:absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.10);
  font-size: 12px;
  font-weight: 700;
}

.product-card__body{ padding: 16px; }
.product-card__title{
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.product-card__meta{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.price{ font-weight: 800; }

/* --- Product Detail --- */
.backlink{
  display:inline-block;
  margin-bottom: 16px;
  color: rgba(31,42,42,.78);
}
.backlink:hover{ color: rgba(31,42,42,1); }

.detail{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp-4);
  align-items: start;
}
.detail__media{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  background: #fff;
}
.detail__img{
  width:100%;
  height: 520px;
  object-fit: cover;
}
.detail__title{
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-size: 40px;
}
.detail__price{
  font-size: 22px;
  font-weight: 800;
  margin: 16px 0;
}
.list{ padding-left: 18px; color: rgba(31,42,42,.78); }
.detail__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* --- Checkout --- */
.checkout{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-3);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.line-items{ margin-top: 10px; display:flex; flex-direction:column; gap: 12px; }
.line-item{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.line-item__price{ font-weight: 700; white-space: nowrap; }
.total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 14px;
  font-size: 16px;
}

/* --- Order Confirmation --- */
.order-confirmation {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(95, 143, 125, 0.15) 0%, rgba(95, 143, 125, 0.08) 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 3px solid rgba(95, 143, 125, 0.3);
}

.order-confirmation__title {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.order-detail-row:last-child {
  border-bottom: none;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge--pending {
  background: rgba(255, 193, 7, 0.2);
  color: #f57c00;
}

.status-badge--processing {
  background: rgba(33, 150, 243, 0.2);
  color: #1976d2;
}

.status-badge--completed {
  background: rgba(76, 175, 80, 0.2);
  color: #388e3c;
}

.status-badge--cancelled {
  background: rgba(244, 67, 54, 0.2);
  color: #d32f2f;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

.map-config-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.map-config-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
}

.map-config-item svg {
  flex-shrink: 0;
}

/* --- Search Overlay --- */
.search[hidden]{ display:none !important; }
.search{
  position: fixed;
  inset: 0;
  z-index: 60;
}
.search__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
}
.search__panel{
  position:relative;
  max-width: 720px;
  margin: 8vh auto 0;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  padding: 16px;
}
.search__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}
.search__form{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* --- Search Results --- */
.search__results {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.search__results-content {
  max-height: 400px;
  overflow-y: auto;
}

.search__result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.search__result-item:hover {
  background: rgba(95, 143, 125, 0.06);
}

.search__result-item:last-child {
  border-bottom: none;
}

.search__result-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search__result-info {
  flex: 1;
  min-width: 0;
}

.search__result-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text);
}

.search__result-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search__result-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.search__no-results {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.search__no-results p {
  margin: 0;
}

.search__result-item--page {
  border-left: 3px solid var(--brand);
}

.search__result-item--faq {
  border-left: 3px solid #f39c12;
}

.search__result-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 143, 125, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--brand);
}

/* Site results in full page */
.site-result-card:hover {
  background: rgba(95, 143, 125, 0.08) !important;
}

.site-results-grid {
  max-width: 600px;
}

/* --- Footer --- */
.footer{
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
}
.footer__brand{ font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.footer__title{ font-weight: 800; margin-bottom: 10px; }
.footer__link{ display:block; color: rgba(31,42,42,.75); padding: 6px 0; }
.footer__link:hover{ color: rgba(31,42,42,1); }

/* --- Responsive --- */
@media (max-width: 980px){
  .nav{ 
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    flex-direction: column;
    gap: 0;
    padding: 10px var(--sp-3) 16px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  
  .nav.nav--open {
    display: flex !important;
  }
  
  .nav__link{
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  
  .burger{ display: inline-grid; place-items:center; }
  .products{ grid-template-columns: repeat(2, 1fr); }
  .grid3{ grid-template-columns: 1fr; }
  .detail{ grid-template-columns: 1fr; }
  .detail__img{ height: 420px; }
  .checkout{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .header__inner{ height: 70px; }
  .brand__name{ font-size: 22px; }
  .brand__name-img { height: 24px; }
  .header__cta{ display:none; }
  .hero__subtitle{ font-size: 16px; }
  .trustbar__inner{ justify-content: flex-start; }
  .products{ grid-template-columns: 1fr; }
  
  .nav {
    top: 70px;
  }
  
  /* Mobile: show only left hero image */
  .hero__media {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .hero__half--right {
    display: none;
  }
}

/* Remove duplicate nav--open definition */

/* --- Custom Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 28, 27, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-overlay--visible {
  opacity: 1;
}

.modal {
  background: white;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay--visible .modal {
  transform: scale(1);
}

.modal__content {
  padding: 32px;
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.modal__message {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 28px 0;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal__actions .btn {
  min-width: 100px;
  padding: 12px 20px;
  font-size: 15px;
}

.modal__btn-confirm {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.modal__btn-confirm:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .modal {
    margin: 20px;
  }
  
  .modal__content {
    padding: 24px;
  }
  
  .modal__title {
    font-size: 20px;
  }
  
  .modal__actions {
    flex-direction: column-reverse;
  }
  
  .modal__actions .btn {
    width: 100%;
  }
}

/* --- Map Editor --- */
.editor-page {
  padding: 0;
  min-height: calc(100vh - 76px);
  background: var(--surface-2);
}

.editor {
  display: grid;
  grid-template-columns: 1fr 420px;
  height: calc(100vh - 76px);
  overflow: hidden;
}

.editor__canvas {
  position: relative;
  background: #e0e0e0;
}

.map-container {
  width: 100%;
  height: 100%;
  touch-action: none;
}

.map-container canvas {
  outline: none;
}

.maplibregl-canvas {
  outline: none;
}

.map-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.map-control-btn {
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.map-control-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background: var(--brand);
  color: white;
}

.editor__panel {
  background: white;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.editor__header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.editor__title {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.editor__subtitle {
  margin: 0;
  font-size: 14px;
}

.editor__content {
  flex: 1;
  padding: 20px 24px;
}

.editor-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.editor-section:last-child {
  border-bottom: none;
}

.editor-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.editor-section__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.icon-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.icon-library .icon-btn {
  width: 100%;
  height: 50px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  cursor: grab;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.icon-library .icon-btn:active {
  cursor: grabbing;
}

.icon-library .icon-btn:hover {
  border-color: var(--brand);
  background: rgba(95, 143, 125, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-library .icon-btn.dragging {
  opacity: 0.5;
}

.icon-btn--custom {
  position: relative;
}

.icon-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc3545;
  color: white;
  border: 2px solid white;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}

.icon-btn--custom:hover .icon-remove {
  display: flex;
}

.icon-remove:hover {
  background: #c82333;
}

.decorations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
}

.decoration-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.decoration-item:hover {
  background: rgba(95, 143, 125, 0.08);
}

.decoration-item--selected {
  background: rgba(95, 143, 125, 0.15);
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(95, 143, 125, 0.2);
}

/* Drop zone */
.drop-zone {
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: var(--surface-2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.drop-zone:hover {
  border-color: var(--brand);
  background: rgba(95, 143, 125, 0.05);
}

.drop-zone--active {
  border-color: var(--brand);
  background: rgba(95, 143, 125, 0.1);
  border-style: solid;
}

.decoration-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.decoration-item__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decoration-item__remove {
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.decoration-item__remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Leaflet decoration overrides */
.decoration-icon {
  background: transparent !important;
  border: none !important;
}

.decoration-image {
  background: transparent !important;
  border: none !important;
}

.decoration-wrapper {
  transition: none !important;
}

.resize-handle {
  transition: opacity 0.2s ease;
}

.resize-handle:hover {
  transform: scale(1.2);
}

/* Modal */
.modal {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  display: none;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.modal-content p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 100px;
}

.search-box {
  position: relative;
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.search-result {
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: var(--surface-2);
}

.quick-locations {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.location-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.location-chip:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.style-card {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.style-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.style-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(95, 143, 125, 0.2);
}

.style-preview {
  width: 100%;
  height: 80px;
  background: #ddd;
  position: relative;
}

.style-preview--streets {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.style-preview--vintage {
  background: linear-gradient(135deg, #f4e4d4 0%, #d4c4b4 100%);
}

.style-preview--dark {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.style-preview--light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

.style-name {
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.text-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zoom-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) 50%, #ddd 50%, #ddd 100%);
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zoom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.marker-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.marker-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 14px;
}

.marker-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(95, 143, 125, 0.15);
}

.marker-delete {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.marker-delete:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.05);
}

.editor__actions {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  background: white;
  position: sticky;
  bottom: 0;
}

.editor__actions .btn {
  flex: 1;
}

/* Responsive Editor */
@media (max-width: 980px) {
  .editor {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editor__canvas {
    height: 50vh;
    min-height: 400px;
  }

  .editor__panel {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .editor__canvas {
    height: 40vh;
    min-height: 300px;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .quick-locations {
    flex-direction: column;
  }

  .location-chip {
    width: 100%;
  }

  .editor__actions {
    flex-direction: column;
  }
}

/* Notification animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}
