/* ARKA · piesele noi ale catalogului: orele liniștite, distanța, cardul de fidelitate, harta, notificările,
   evenimentele, asistentul, „propune un loc”. Aceleași culori și forme ca benefits.css. */

/* ---------- toolbar: list / map ---------- */
.view-toggle{display:flex;flex-shrink:0;border:1px solid var(--line);background:#fff;border-radius:14px;padding:4px;gap:4px}
.view-toggle button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border:0;border-radius:10px;background:transparent;font-size:.875rem;font-weight:500;color:var(--muted)}
.view-toggle button svg{width:18px;height:18px}
.view-toggle button[aria-pressed=true]{background:var(--green);color:#fff}
.chip-now i{width:9px;height:9px;border-radius:50%;background:#7aa83a;box-shadow:0 0 0 3px #7aa83a2b}
.chip-now[aria-pressed=true] i{background:var(--lime);box-shadow:0 0 0 3px #def38940}

/* ---------- on the card ---------- */
.offer-distance{display:inline-flex;align-items:center;gap:3px;margin-left:auto;padding-left:8px;font-weight:500;color:var(--green);white-space:nowrap}
.offer-distance svg{width:15px;height:15px}
.offer-now,.offer-later{display:inline-flex;align-self:flex-start;align-items:center;gap:7px;margin-top:10px;padding:5px 11px 5px 9px;border-radius:100px;font-size:.8125rem;font-weight:600;line-height:1.35}
.offer-now{background:var(--lime);color:var(--green)}
.offer-now i{width:8px;height:8px;border-radius:50%;background:var(--green);flex-shrink:0}
.offer-later{background:var(--green-soft);color:#3f5a37}
.offer-later svg{width:15px;height:15px}
.offer-card.is-now{border-color:#c9de86}

/* ---------- the loyalty card ---------- */
.stamp-card{margin-top:12px;padding:11px 12px;border:1px dashed #c5d2bc;border-radius:14px;background:#fbfcf8}
.stamp-card p{font-size:.8125rem;margin-top:8px;line-height:1.45}
.stamp-card p strong{color:var(--ink);font-weight:600}
.stamp-card.next{border-style:solid;border-color:#c9de86;background:#f6fbe4}
.stamp-row{display:flex;flex-wrap:wrap;gap:7px}
.stamp{width:26px;height:26px;border-radius:50%;border:1.5px solid #c5d2bc;background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.stamp svg{width:15px;height:15px}
.stamp.on{background:var(--green);border-color:var(--green)}
.stamp.reward{border-style:dashed;border-color:#9bb76a;color:#6d863c}
.stamp.reward.on{background:var(--lime);border-style:solid;border-color:#b8d35c;color:var(--green)}
.stamp-card.big{padding:16px 18px;margin:18px 0 4px}
.stamp-card.big .stamp{width:34px;height:34px}
.stamp-card.big .stamp svg{width:18px;height:18px}
.stamp-card.big p{font-size:.875rem}
.stamp-hint{display:flex;gap:8px;align-items:flex-start;margin-top:14px;font-size:.875rem;color:#435a3b}
.stamp-hint svg{width:18px;height:18px;color:#6d863c;margin-top:2px}

/* ---------- in the offer's window ---------- */
.hours-note{display:flex;gap:10px;align-items:flex-start;margin:16px 0 0;padding:12px 14px;border-radius:12px;background:var(--green-soft);font-size:.875rem;color:#3f5a37}
.hours-note svg{width:19px;height:19px;margin-top:1px}
.hours-note.now{background:#f1f9d7;color:var(--green)}
.hours-note strong{font-weight:600}
.link-button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:4px 0;color:var(--green);font-weight:600;font-size:.875rem;text-decoration:underline;text-underline-offset:3px;min-height:32px}
.link-button svg{width:16px;height:16px}
.offer-where .offer-distance{margin:0;padding:0}

/* ---------- the map ---------- */
.map-wrap{position:relative;border-radius:22px;overflow:hidden;border:1px solid var(--line);background:#e9eee6;isolation:isolate}
.catalog-map{height:min(68vh,620px);min-height:380px;width:100%;background:#e9eee6;font-family:inherit}
.catalog-map:focus-visible{outline:3px solid #648b31;outline-offset:-3px}
.map-locate{position:absolute;top:14px;right:14px;z-index:500;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid #ffffffd0;border-radius:100px;background:#fffffff2;box-shadow:0 6px 18px #0e251a1f;font-size:.875rem;font-weight:600;color:var(--green)}
.map-locate svg{width:18px;height:18px}
.map-note{position:absolute;left:14px;top:14px;z-index:500;max-width:min(420px,calc(100% - 190px));margin:0;padding:9px 13px;border-radius:12px;background:#fffffff2;box-shadow:0 6px 18px #0e251a14;font-size:.8125rem;color:#435a3b;line-height:1.45}
.map-note .link-button{font-size:.8125rem;min-height:24px;padding:0}
.map-pin-wrap{background:none;border:0}
.map-pin{position:absolute;transform:translate(-50%,calc(-100% - 7px));display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:34px;padding:0 11px;border-radius:100px;background:var(--green);color:#fff;font-size:.8125rem;font-weight:700;white-space:nowrap;box-shadow:0 6px 16px #0e251a40;border:2px solid #fff;cursor:pointer;transition:transform .25s cubic-bezier(.16,1,.3,1),background .2s}
.map-pin::after{content:"";position:absolute;left:50%;bottom:-8px;width:12px;height:12px;background:inherit;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:translateX(-50%) rotate(45deg);border-bottom-right-radius:3px}
.map-pin b{position:relative;z-index:1;font-weight:700}
.map-pin.is-now{background:var(--lime);color:var(--green)}
.map-pin.many{min-width:38px;padding:0 10px}
.leaflet-marker-icon:focus-visible .map-pin,.leaflet-marker-icon.selected .map-pin{transform:translate(-50%,calc(-100% - 7px)) scale(1.14);background:#0d2a20;color:#fff}
.leaflet-marker-icon.selected .map-pin.is-now{background:#c7e24f;color:var(--green)}
.leaflet-marker-icon:focus-visible{outline:none}
.leaflet-container{font-family:inherit}
.leaflet-control-attribution{font-size:.6875rem;background:#ffffffd9!important;border-radius:8px 0 0 0;padding:2px 8px!important}
.leaflet-control-attribution a{color:var(--green)}
.leaflet-bar{border:0!important;box-shadow:0 6px 18px #0e251a1f!important;border-radius:12px!important;overflow:hidden}
.leaflet-bar a{width:40px!important;height:40px!important;line-height:40px!important;color:var(--green)!important;font-size:20px!important}
.leaflet-top.leaflet-left{top:auto;bottom:14px}
.leaflet-top.leaflet-left .leaflet-control{margin:0 0 0 14px}
.map-peek{position:absolute;left:14px;right:14px;bottom:14px;z-index:600;max-width:460px;margin-left:auto;background:#fff;border-radius:20px;box-shadow:0 18px 50px #0e251a33;padding:14px 14px 10px;max-height:min(62%,420px);overflow:auto}
.peek-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:2px 4px 10px}
.peek-head strong{display:block;font-size:1.0625rem;letter-spacing:-.02em}
.peek-head span{display:block;font-size:.8125rem;color:var(--muted)}
.peek-close{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.peek-close svg{width:18px;height:18px}
.peek-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.peek-offer{width:100%;display:flex;align-items:center;gap:12px;padding:8px;border:1px solid #edf0e9;border-radius:14px;background:#fbfcf8;text-align:left}
.peek-offer:hover{border-color:#c5d2bc}
.peek-offer>svg{transform:rotate(-90deg);width:18px;height:18px;color:var(--muted);flex-shrink:0}
.peek-photo{width:64px;height:64px;border-radius:10px;object-fit:cover;flex-shrink:0}
.peek-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1}
.peek-text strong{font-size:.9375rem;line-height:1.3;font-weight:600}
.peek-badge{font-size:.75rem;font-weight:700;background:var(--lime);color:var(--green);border-radius:6px;padding:1px 7px}
.peek-text .offer-now,.peek-text .offer-later{margin-top:4px;font-size:.75rem;padding:3px 9px 3px 7px}

/* ---------- notifications ---------- */
.notify-banner{display:flex;align-items:center;gap:22px;margin-top:40px;padding:22px 26px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.notify-bell{width:54px;height:54px;border-radius:16px;background:var(--lime);color:var(--green);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.notify-bell svg{width:26px;height:26px}
.notify-banner h2{font-size:1.25rem;letter-spacing:-.03em}
.notify-banner p{font-size:.9375rem;margin-top:4px}
.notify-actions{display:flex;gap:6px;margin-left:auto;flex-shrink:0}
.button-text{background:transparent;border-color:transparent}
.notify-form{display:grid;gap:10px;margin-top:16px}
.switch-row{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:.9375rem;cursor:pointer}
.switch-row input{width:22px;height:22px;accent-color:var(--green);flex-shrink:0}

/* ---------- the city's events ---------- */
.events-section{margin-top:56px}
.events-list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:14px;overflow-x:auto;padding:4px 2px 14px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.event-card{display:flex;gap:14px;padding:16px;border:1px solid var(--line);border-radius:20px;background:#fff;scroll-snap-align:start;min-width:0}
.event-date{width:58px;height:64px;border-radius:14px;background:var(--green);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;line-height:1.1}
.event-date b{font-size:1.5rem;font-weight:700;letter-spacing:-.03em}
.event-date span{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--lime)}
.event-body{min-width:0;display:flex;flex-direction:column}
.event-when{align-self:flex-start;font-size:.75rem;font-weight:700;color:var(--green);background:var(--lime);border-radius:6px;padding:1px 7px;margin-bottom:5px}
.event-body h3{font-size:1.0625rem;letter-spacing:-.025em}
.event-body p{font-size:.8125rem;margin-top:3px}
.event-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:auto;padding-top:8px}

/* ---------- the assistant ---------- */
.ask-card{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:56px;padding:34px 40px;border-radius:24px;background:radial-gradient(120% 140% at 100% 0,#2c5a45 0,#16382d 55%);color:#fff;overflow:hidden}
.ask-card::before{content:"✳";position:absolute;right:-20px;bottom:-60px;font-size:220px;line-height:1;color:#def38914;pointer-events:none}
.ask-card .eyebrow{color:var(--lime)}
.ask-card h2{color:#fff;margin-top:8px;font-size:clamp(1.55rem,2.4vw,2rem)}
.ask-card p{color:#d6e2d9;margin-top:8px;max-width:560px}
.ask-card .button{position:relative;z-index:1;flex-shrink:0}
.button-lime{background:var(--lime);color:var(--green)}

/* ---------- propose a place ---------- */
.propose-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:34px;align-items:end;margin-top:56px;padding:32px 36px;border-radius:24px;border:1px solid var(--line);background:#fff}
.propose-section h2{margin-top:8px;font-size:clamp(1.45rem,2.2vw,1.85rem)}
.propose-section p{margin-top:6px}
.propose-form{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.propose-form label{display:grid;gap:5px;font-size:.8125rem;font-weight:600;color:var(--ink)}
.propose-form input,.invite-link input{min-height:50px;border:1px solid var(--line);border-radius:14px;padding:0 15px;font-size:1rem;background:#fbfcf8;color:var(--ink);width:100%}
.propose-form input:focus,.invite-link input:focus{border-color:#8fae5d;background:#fff}

/* ---------- invite ---------- */
.invite-link{margin-top:16px}
.invite-stats{margin-top:12px;font-size:.875rem}

/* ---------- small screens ---------- */
@media (max-width:900px){
  .propose-section{grid-template-columns:1fr;gap:18px}
  .ask-card{flex-direction:column;align-items:flex-start;padding:30px}
}
@media (max-width:760px){
  .catalog-tools{flex-wrap:wrap}
  .view-toggle{order:3;width:100%}
  .view-toggle button{flex:1;justify-content:center}
  .catalog-map{height:62vh;min-height:360px}
  .leaflet-control-zoom{display:none}   /* on a phone the map zooms with two fingers; the buttons would cover the card below */
  .map-note{right:14px;max-width:none;top:68px}
  .map-peek{left:10px;right:10px;bottom:10px;max-width:none}
  .notify-banner{flex-direction:column;align-items:flex-start;gap:14px;padding:20px}
  .notify-actions{margin-left:0;width:100%}
  .notify-actions .button-dark{flex:1}
  .propose-form{grid-template-columns:1fr}
  .propose-section{padding:24px 20px}
  .events-list{grid-auto-columns:minmax(250px,86%)}
}

/* ---------- motion, only for whoever did not ask for less ---------- */
@media (prefers-reduced-motion:no-preference){
  .offer-now i,.chip-now i{animation:fx-pulse 2.2s ease-out infinite}
  .stamp-new{animation:fx-stamp .9s .35s cubic-bezier(.2,1.6,.4,1) both}
  .map-peek:not([hidden]){animation:fx-peek .45s cubic-bezier(.16,1,.3,1) both}
  .map-pin{animation:fx-drop .55s cubic-bezier(.2,1.4,.4,1) both}
  .map-pin.is-now::before{content:"";position:absolute;inset:-6px;border-radius:100px;border:2px solid #b8d35c;opacity:0;animation:fx-ring 2.4s ease-out infinite}
  .event-card,.notify-banner,.ask-card,.propose-section{transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s}
  .event-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px #0e271c17}
  .notify-bell svg{animation:fx-ring-bell 4s 1.2s ease-in-out infinite;transform-origin:50% 10%}
}
@keyframes fx-pulse{0%{box-shadow:0 0 0 0 #16382d55}70%{box-shadow:0 0 0 7px #16382d00}100%{box-shadow:0 0 0 0 #16382d00}}
@keyframes fx-stamp{0%{transform:scale(2.2) rotate(-18deg);opacity:0}60%{transform:scale(.9) rotate(4deg);opacity:1}100%{transform:none;opacity:1}}
@keyframes fx-peek{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes fx-drop{from{opacity:0;margin-top:-14px}to{opacity:1;margin-top:0}}
@keyframes fx-ring{0%{opacity:.8;transform:scale(.9)}100%{opacity:0;transform:scale(1.35)}}
@keyframes fx-ring-bell{0%,88%,100%{transform:rotate(0)}91%{transform:rotate(12deg)}94%{transform:rotate(-10deg)}97%{transform:rotate(6deg)}}

/* „Ce ți-a adus ARKA”: her month at the top of "Economiile mele" (benefits-value.js) */
.value-host:empty{display:none}
.value-card{position:relative;overflow:hidden;margin:0 0 22px;padding:28px 28px 22px;border-radius:26px;background:linear-gradient(140deg,#163a30 0%,#245446 62%,#2f6a57 100%);color:#fffdfa;box-shadow:0 18px 50px #0e271c2e}
.value-card::before{content:"";position:absolute;width:420px;height:420px;right:-140px;top:-170px;border-radius:50%;background:radial-gradient(circle,#def3892e,#def38900 70%);pointer-events:none}
.value-card h2{margin:2px 0 0;font-size:clamp(24px,3vw,32px);color:#fffdfa;letter-spacing:-.03em}
.value-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.value-eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;color:#def389}
.value-sample{font-size:12px;font-weight:600;padding:5px 10px;border-radius:999px;background:#ffffff1f;color:#fffdfa}
.value-main{display:grid;gap:2px;margin:18px 0 16px}
.value-amount{font-size:clamp(46px,8vw,72px);line-height:1;font-weight:700;color:#def389;letter-spacing:-.04em}
.value-main span{font-size:16px;color:#e6efe9}.value-main small{font-size:13px;color:#b9cfc3}
.value-stats{display:flex;flex-wrap:wrap;gap:10px}
.value-stats div{flex:1 1 120px;padding:12px 14px;border-radius:16px;background:#ffffff14;border:1px solid #ffffff1c}
.value-stats b{display:block;font-size:24px;line-height:1.1;color:#fffdfa}.value-stats span{font-size:13px;color:#cfe0d6}
.value-compare{margin:14px 0 0;font-size:14px;color:#e6efe9}
.value-bars{display:flex;align-items:flex-end;gap:10px;height:96px;margin:18px 0 6px}
.value-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.value-bar span{display:block;width:100%;max-width:46px;margin-top:auto;height:var(--h);min-height:4px;border-radius:8px 8px 4px 4px;background:#ffffff38;transform-origin:bottom}
.value-bar.now span{background:#def389}
.value-bar small{font-size:11px;color:#b9cfc3;text-transform:lowercase}
.value-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.value-note{margin:12px 0 0;font-size:12px;color:#a9c2b5}
.value-empty p{color:#e6efe9;margin:8px 0 0}
.value-preview{display:block;width:100%;max-width:360px;margin:12px auto 4px;border-radius:18px;box-shadow:0 10px 30px #0e271c33}
@media (prefers-reduced-motion:no-preference){.value-bar span{animation:valueGrow .9s cubic-bezier(.2,.8,.2,1) both}.value-bar:nth-child(2) span{animation-delay:.05s}.value-bar:nth-child(3) span{animation-delay:.1s}.value-bar:nth-child(4) span{animation-delay:.15s}.value-bar:nth-child(5) span{animation-delay:.2s}.value-bar:nth-child(6) span{animation-delay:.25s}}
@keyframes valueGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (max-width:560px){.value-card{padding:22px 18px 18px;border-radius:22px}.value-stats div{flex-basis:96px}}
