@import url("../vendor/flatpickr/flatpickr.min.css");
/* Evenku Web - estilos base
   Inspirado en la estética de la app: negro + amarillo + inputs tipo "pill"
*/

/* Poppins (local, WOFF2). Sin fallbacks intencionados */
@font-face{
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "Poppins";
  src: url("../fonts/Poppins-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

:root{
  --black:#0b0b0b;
  --yellow:#f5b000;
  --yellow-dark:#d79a00;
  --text:#1b1b1b;
  --muted:#6e6e6e;
  --bg:#ffffff;
  --card:#ffffff;
  --border:#d9d9d9;
  --danger:#d13232;
  --warn:#c48a00;
  --shadow: 0 6px 18px rgba(0,0,0,.08);
}

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #fff;
}


*, *::before, *::after{
  box-sizing: border-box;
}

body{
  font-family: "Poppins";
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

.container{
  width: 100%;
  margin: 0;
  padding: 0;
}

.topbar{
  background: var(--black);
  color: #fff;
}

.topbar-inner{
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.brand-logo{
  height: 34px;
  width: auto;
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px;
  margin-left: auto;
}

.nav-link{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link.is-active{
  background: rgba(255,255,255,.35);
}

.userbox{
  display:flex;
  align-items:center;
  gap: 10px;
}

.userbox-name{
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  color: rgba(255,255,255,.92);
}
.userbox-role{
  display:block;
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

.h1{
  font-size: 36px;
  letter-spacing: .5px;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.muted{ color: var(--muted); }

.page-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #000;
}

.page-actions{ display:flex; gap: 10px; }

.btn{
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}

.btn-primary{
  background: var(--yellow);
  color:#141414;
}
.btn-primary:hover{ background: var(--yellow-dark); }

.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost:hover{ border-color: rgba(255,255,255,.65); }

.container .btn-ghost{
  color:#1a1a1a;
  border-color: var(--border);
}
.container .btn-ghost:hover{
  background:#fff;
}

.btn-warn{
  background: #fff3d1;
  border-color: #ffe3a0;
  color: #5b3e00;
}
.btn-danger{
  background: #ffe2e2;
  border-color: #ffbdbd;
  color: #7a0000;
}

.flash{
  padding: 12px 14px;
  border-radius: 12px;
  margin: 14px 0;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.flash-success{ border-color: #c6e8c6; background:#f2fff2; }
.flash-error{ border-color: #f3c0c0; background:#fff4f4; }

.form-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.form{
  display:block;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.form-row{ display:flex; flex-direction: column; gap: 6px; }
.form-row-full{ grid-column: 1 / -1; }

.label{
  font-weight: 600;
  font-size: 13px;
  color:#222;
}

.input, .select, .textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 14px;
  background:#fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0);
}

.textarea{
  border-radius: 18px;
  resize: vertical;
}

.input:disabled,
.select:disabled,
.date-text:disabled{
  opacity: .6;
  background:#f0f0f0;
  cursor: not-allowed;
}

.help{
  font-size: 12px;
  color: var(--muted);
}

.checkbox-row{ justify-content:center; }
.checkbox{
  display:flex;
  gap: 10px;
  align-items:center;
  padding-top: 6px;
}
.checkbox input{ transform: scale(1.1); }

.form-actions{
  margin-top: 18px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
}

.event-list{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.event-row{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-title{
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.event-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill{
  background: #f0f0f0;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color:#333;
}

.badge{
  display:inline-block;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}
.badge-active{ background:#e8ffe8; border:1px solid #b9eab9; color:#145514; }
.badge-cancel{ background:#fff0f0; border:1px solid #f3bcbc; color:#7a0000; }

.event-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.inline{ display:inline; }

.empty{
  background: #fff;
  border: 1px dashed #bbb;
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
}

.admin-filter{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.admin-filter .select{ min-width: 260px; }

/* -----------------------------
   LOGIN (solo interfaz)
   ----------------------------- */
.login-wrap{
  min-height: 100vh;
  background: #fff;
  display:flex;
  flex-direction: column;
}

.login-topbar{
  background: var(--black);
  width: 100%;
}

.login-topbar-inner{
  width: 100%;
  margin: 0;
  padding: 16px 0 16px 16px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.login-main{
  flex: 1;
  display:flex;
  flex-direction: column;
}

.login-hero{
  width: 100%;
  background-image: url("../img/city_landscape.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(410px, 56vh, 600px);
  display:flex;
}

.login-hero-inner{
  width: 100%;
  flex: 1;
  margin: 0;
  padding: 20px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-card{
  width: min(420px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--border);
    border-top: 6px solid var(--yellow);
border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Login panel refinements (UI only) */
.login-card .h1{
  font-size: 18px;
  letter-spacing: .2px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
  text-align: left;
  color: #141414;
}

.login-card .muted{
  margin: 0 0 18px;
}

.login-card .form{
  margin-top: 10px;
}

.login-card .form-row{
  gap: 8px;
}

.login-card .form-row + .form-row{
  margin-top: 14px;
}

.login-card .form-row-checkbox{
  margin-top: 12px;
}

.login-checkbox{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding-top: 0;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  user-select: none;
}

.login-checkbox input{
  margin: 0;
  transform: scale(1.05);
  cursor: pointer;
}

.login-card .flash{
  margin: 14px 0 0;
}

/* Button disabled until both fields have content */
.btn-primary:disabled{
  background: #e6e6e6;
  color: #8a8a8a;
  cursor: not-allowed;
}
.btn-primary:disabled:hover{
  background: #e6e6e6;
}

/* Focus: highlight border (no glow) */
.input:focus,
.select:focus,
.textarea:focus{
  outline: none;
  border-color: var(--yellow);
  box-shadow: none;
}
.login-card .form-actions{
  justify-content:flex-end;
}

.login-categories{
  background: #fff;
  width: 100%;
}

.login-categories-inner{
  width: 100%;
  margin: 0;
  padding: 34px 16px 44px;
}

.login-circles{
  display:flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
}

.login-circle{
  width: clamp(78px, 12vw, 102px);
  height: clamp(78px, 12vw, 102px);
  border-radius: 999px;
  border: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  user-select: none;
  white-space: nowrap;
}

.login-u2{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 10000;
}
.modal.is-open{ display:flex; }
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.modal-dialog{
  position: relative;
  background:#fff;
  border-radius: 18px;
  width: min(520px, calc(100vw - 24px));
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.08);
}
.modal-header{
  padding: 14px 16px 0;
}
.modal-body{
  padding: 12px 16px;
  color:#333;
  line-height: 1.35;
}
.modal-actions{
  padding: 0 16px 16px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
}

@media (max-width: 880px){
  .topbar-inner{ flex-wrap: wrap; }
  .nav{ order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .userbox{ margin-left: auto; }
  .grid-2{ grid-template-columns: 1fr; }
  .page-head{ flex-direction: column; align-items:flex-start; }
  .event-row{ flex-direction: column; }
  .event-actions{ justify-content:flex-start; }
}

.login-circle--cine{
  background-image: url("../img/cine_bubble.webp");
}
.login-circle--cultura{
  background-image: url("../img/cultura_bubble.webp");
}
.login-circle--deportes{
  background-image: url("../img/deportes_bubble.webp");
}
.login-circle--educativo{
  background-image: url("../img/educativo_bubble.webp");
}
.login-circle--familia{
  background-image: url("../img/familia_bubble.webp");
}
.login-circle--festivales{
  background-image: url("../img/festivales_bubble.webp");
}
.login-circle--fiestas{
  background-image: url("../img/fiestas_bubble.webp");
}
.login-circle--gaming{
  background-image: url("../img/gaming_bubble.webp");
}
.login-circle--musica{
  background-image: url("../img/musica_bubble.webp");
}
.login-circle--ocio{
  background-image: url("../img/ocio_bubble.webp");
}
.login-circle--sociedad{
  background-image: url("../img/sociedad_bubble.webp");
}
.login-circle--solidario{
  background-image: url("../img/solidario_bubble.webp");
}
.login-circle--mas{
  background-image: url("../img/mas_bubble.webp");
}

/* === Header strips (black + yellow) === */
:root{
  --page-max: 1300px;
}

.has-topbar .container{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 16px 40px;
}

.no-topbar .container{
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-header .topbar{
  width: 100%;
}

.wrap{
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
}

.wrap--black{
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.wrap--yellow{
  padding: 0 28px;
}

.topbar--black{
  background: var(--black);
  color: #fff;
}

.topbar--yellow{
  background: var(--yellow);
  color: #1a1a1a;
}

.userbox{
  display:flex;
  align-items:center;
  gap: 14px;
}

.userbox-name{
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
}

.logout-btn{
  padding-left: 20px;
  padding-right: 20px;
}

/* Yellow nav */
.nav2{
  display:flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.nav2-link{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 16px 10px 14px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.nav2-link:hover{
  background: rgba(0,0,0,.06);
}

.nav2-ic{
  display:inline-flex;
  width: 22px;
  height: 22px;
}

.nav2-ic svg{
  width: 22px;
  height: 22px;
  fill: #1a1a1a;
}

.nav2-link.is-active::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #000;
}

/* Responsive: stack nav items if needed */
@media (max-width: 720px){
  .wrap--yellow{ padding: 0 16px; }
  .nav2{ flex-direction: column; }
  .nav2-link{ justify-content:flex-start; padding-left: 14px; }
  .nav2-link.is-active::after{ left: 0; right: 0; }
}

/* === Page heading: lighter weight, underline first 3 letters === */
.h1{
  font-weight: 600;
}

.page-head{
  border-bottom: none;
  padding-bottom: 0;
  margin: 18px 0 14px;
  justify-content: flex-start;
}

.page-actions{
  display:none !important;
}

.page-head .h1{
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 0;
}

.page-head .h1::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 3ch;
  height: 4px;
  background:#000;
}

/* === Home filters: auto-submit, remove Apply button, date spacing === */
.admin-filter .btn,
.admin-filter button{
  display:none;
}

.admin-filter input[type="date"]{
  padding-right: 14px;
}


.btn-edit{
  background: #f0f0f0;
  border-color: #e1e1e1;
  color: #1a1a1a;
}
.btn-edit:hover{
  background: #e7e7e7;
}
.btn-warn:hover{
  background: #ffe7ad;
}
.btn-danger:hover{
  background: #ffcaca;
}

/* Home buttons */
.btn-edit{
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #0b3a73;
}
.btn-edit:hover{
  background: #c7ddff;
}
.btn-success{
  background: #ddf7e4;
  border-color: #bfecc9;
  color: #0f5a23;
}
.btn-success:hover{
  background: #c8f0d3;
}
.btn-warn:hover{ background: #ffe7ad; }
.btn-danger:hover{ background: #ffcaca; }

/* Toast (flash) */
.toast{
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 9999;
  display:flex;
  align-items:flex-start;
  gap: 10px;
}
.toast-msg{ flex: 1; font-weight: 500; color: #1a1a1a; }
.toast-close{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 18px;
  padding: 2px 4px;
  color: #444;
}
.toast.is-hide{ opacity: 0; transform: translateX(-50%) translateY(-6px); transition: 200ms ease; }

.toast-success{ border-color: #c6e8c6; background:#f2fff2; }
.toast-error{ border-color: #f3c0c0; background:#fff4f4; }
.toast-info{ border-color: var(--border); background:#fff; }

/* Yellow menu slightly bigger */
.nav2-link{
  font-size: 17px;
}
.nav2-ic, .nav2-ic svg{
  width: 24px;
  height: 24px;
}

/* Home actions: stable button widths */
.event-actions .btn{
  min-width: 96px;
  justify-content: center;
}

/* Home controls */
.home-controls{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 18px;
}
.home-controls .select{
  flex: 1;
  min-width: 260px;
}
@media (min-width: 820px){
  .home-controls .select{
    min-width: 0;
  }
  .home-controls{
    flex-wrap: nowrap;
  }
  .home-controls .select{
    width: 50%;
  }
  .home-controls input[type="hidden"]{ display:none; }
}


.load-more{ display:flex; justify-content:center; margin: 18px 0 0; }


/* Modal secondary button */
.btn-secondary{
  background: #efefef;
  border-color: #e1e1e1;
  color: #1a1a1a;
}
.btn-secondary:hover{
  background: #e6e6e6;
}


.modal-actions .btn{
  min-width: 112px;
}

/* Password page form spacing + button width */
.form-card .form-row + .form-row{
  margin-top: 14px;
}
.btn-wide{
  min-width: 140px;
}

/* Create/Edit event header: poster + title/description */
.event-header-grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  margin: 8px 0 22px;
}

.poster-picker{
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 10px;
  background: #e9edf0;
  border: 1px solid #d9dde1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  user-select: none;
}

.poster-picker:focus{
  outline: none;
  border-color: var(--yellow);
}

.poster-input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.poster-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 14px;
  color:#3b3b3b;
  text-align:center;
  font-weight: 500;
  letter-spacing: .8px;
}

.poster-icon{
  width: 0;
  height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 52px solid var(--yellow);
  position: relative;
}
.poster-icon::after{
  content:"";
  position:absolute;
  left: -6px;
  top: 52px;
  width: 12px;
  height: 46px;
  background: #d89b00;
}

.poster-text{
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
}

.poster-preview{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.event-title-desc .form-row + .form-row{
  margin-top: 18px;
}

.textarea-noresize{
  resize: none;
}

.req{
  color: #d10000;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Responsive: stack on small screens */
@media (max-width: 860px){
  .event-header-grid{
    grid-template-columns: 1fr;
  }
  .poster-picker{
    width: 100%;
    max-width: 420px;
    height: 320px;
    justify-self: center;
  }
}

/* Create event layout - step */
.poster-preview{ object-fit: contain; background:#fff; }

.poster-inner{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 14px;
}

.poster-svg{
  width: 96px;
  height: 96px;
  fill: #000;
}

.event-title-desc{
  height: 320px;
  display:flex;
  flex-direction: column;
}
.event-title-desc .form-row{ margin-top:0 !important; }
.event-title-desc .form-row + .form-row{ margin-top: 18px !important; }
.event-desc{ flex: 1 1 auto; height: 100%; resize:none; }

.event-body{ display:block; }

.section{ margin: 18px 0 6px; }
.section-title{
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}

.where-grid,
.price-cat-grid,
.when-grid{
  display:grid;
  gap: 18px;
}
.where-grid{ grid-template-columns: 1fr 1fr 1fr; }
.price-cat-grid{ grid-template-columns: 1fr 1fr 1fr; }
.when-grid{ grid-template-columns: 1fr 1fr 1fr 1fr; }

.section-title-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin: 0 0 10px;
  align-items:end;
}
.section-title-grid .section-title{ margin:0; }

/* Prevent stepped layout caused by generic .form-row + .form-row spacing rules */
.where-grid .form-row,
.price-cat-grid .form-row,
.when-grid .form-row{
  margin-top: 0 !important;
}
.where-grid .form-row + .form-row,
.price-cat-grid .form-row + .form-row,
.when-grid .form-row + .form-row{
  margin-top: 0 !important;
}

/* Date field: visible text input + hidden picker */
.date-field{ position: relative; }
.date-picker{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
.date-text{ cursor:pointer; }

@media (max-width: 980px){
  .where-grid{ grid-template-columns: 1fr 1fr; }
  .price-cat-grid{ grid-template-columns: 1fr 1fr; }
  .when-grid{ grid-template-columns: 1fr 1fr; }
  .section-title-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .where-grid{ grid-template-columns: 1fr; }
  .price-cat-grid{ grid-template-columns: 1fr; }
  .when-grid{ grid-template-columns: 1fr; }
  .section-title-grid{ grid-template-columns: 1fr; }
}

/* Icons inside inputs */
.icon-euro{
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M14 21c-4.1 0-7.5-2.9-8.3-6.8H3v-2h2.4c0-.4-.1-.8-.1-1.2s0-.8.1-1.2H3v-2h2.7C6.5 3.9 9.9 1 14 1c2.1 0 4 .7 5.5 1.9l-1.6 1.6C16.8 3.6 15.5 3 14 3c-3 0-5.5 2.1-6.2 5H16v2H7.5c-.1.4-.1.8-.1 1.2s0 .8.1 1.2H16v2H7.8c.7 2.9 3.2 5 6.2 5 1.5 0 2.8-.6 3.9-1.5l1.6 1.6C18 20.3 16.1 21 14 21z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
.icon-clock{
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-18a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm.5 5h-2v6l5.2 3.1 1-1.7-4.2-2.4V7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
.icon-calendar{
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm13 6H4v12h16V8zM6 10h4v4H6v-4zm6 0h4v4h-4v-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

/* Wider publish button */
.btn-wide{ min-width: 190px; }

/* Remove number spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
input[type=number]{ -moz-appearance: textfield; }

/* Create event: field titles inside grid */
.field-title{
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}
.field-no-title{
  padding-top: 28px;
}
@media (max-width: 980px){
  .field-no-title{ padding-top: 0; }
}

@media (max-width: 980px){ .field-no-title{ padding-top: 0; } }


/* Create event polish v7 */
.price-cat-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.price-cat-grid .field{ display:flex; flex-direction:column; }
.field-title{
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}
.field-title-ghost{ visibility: hidden; }

/* Ensure consistent title->control spacing across sections */
.section-title{ margin: 0 0 10px; }

/* Fix textarea fill alignment */
.event-title-desc{ height: 320px; display:flex; flex-direction:column; }
.event-title-desc .form-row:last-child{ flex:1 1 auto; }
.event-desc{
  flex:1 1 auto;
  height: 100% !important;
  min-height: 230px;
  resize: none;
}

/* Calendar icon: smaller so it doesn't look clipped */
.icon-calendar{
  background-size: 16px 16px;
  background-position: right 14px center;
}

/* Responsive */
@media (max-width: 980px){
  .price-cat-grid{ grid-template-columns: 1fr 1fr; }
  .field-title-ghost{ display:none; }
}
@media (max-width: 620px){
  .price-cat-grid{ grid-template-columns: 1fr; }
}

/* === Create event final layout === */
.event-header-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items:start;
  margin: 8px 0 22px;
}

.poster-picker{
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 10px;
  background: #e9edf0;
  border: 1px solid #d9dde1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  overflow:hidden;
}

.poster-picker:focus{
  outline:none;
  border-color: var(--yellow);
}

.poster-input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.poster-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 14px;
  text-align:center;
}

.poster-svg{
  width: 92px;
  height: 92px;
  fill: #000;
}

.poster-text{
  font-size: 14px;
  line-height: 18px;
  letter-spacing: .8px;
  font-weight: 500;
  text-transform: uppercase;
  color:#303846;
}

.poster-preview{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.event-title-desc{
  height: 320px;
  display:flex;
  flex-direction:column;
}
.event-title-desc .form-row{
  margin-top: 0 !important;
}
.event-title-desc .form-row + .form-row{
  margin-top: 18px !important;
}
.event-desc{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  resize:none;
}

.event-body{
  display:block;
}

.section{
  margin: 18px 0 6px;
}
.section-title,
.field-title{
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}
.field-title-ghost{
  visibility:hidden;
}

.where-grid,
.price-cat-grid,
.when-grid{
  display:grid;
  gap: 18px;
}
.where-grid{
  grid-template-columns: 1fr 1fr 1fr;
}
.price-cat-grid{
  grid-template-columns: 1fr 1fr 1fr;
}
.when-grid{
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.where-grid .field,
.price-cat-grid .field,
.when-grid .field{
  display:flex;
  flex-direction:column;
  margin-top: 0 !important;
}
.where-grid .field + .field,
.price-cat-grid .field + .field,
.when-grid .field + .field{
  margin-top: 0 !important;
}

.date-field{
  position:relative;
}
.date-picker{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.date-text{
  cursor:pointer;
}

/* Icons inside inputs */
.icon-euro,
.icon-clock,
.icon-calendar{
  padding-right: 40px;
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size: 16px 16px;
}
.icon-euro{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M14 21c-4.1 0-7.5-2.9-8.3-6.8H3v-2h2.4c0-.4-.1-.8-.1-1.2s0-.8.1-1.2H3v-2h2.7C6.5 3.9 9.9 1 14 1c2.1 0 4 .7 5.5 1.9l-1.6 1.6C16.8 3.6 15.5 3 14 3c-3 0-5.5 2.1-6.2 5H16v2H7.5c-.1.4-.1.8-.1 1.2s0 .8.1 1.2H16v2H7.8c.7 2.9 3.2 5 6.2 5 1.5 0 2.8-.6 3.9-1.5l1.6 1.6C18 20.3 16.1 21 14 21z'/%3E%3C/svg%3E");
}
.icon-clock{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-18a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm.5 5h-2v6l5.2 3.1 1-1.7-4.2-2.4V7z'/%3E%3C/svg%3E");
}
.icon-calendar{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm11 7H6v9h12V9zm-8 2h2v2h-2v-2zm4 0h2v2h-2v-2z'/%3E%3C/svg%3E");
}
.btn-wide{
  min-width: 210px;
}
.req{
  color:#d10000;
}
.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 980px){
  .where-grid,
  .price-cat-grid{
    grid-template-columns: 1fr 1fr;
  }
  .price-cat-grid .field-title-ghost{
    display:none;
  }
  .when-grid{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px){
  .event-header-grid{
    grid-template-columns: 1fr;
  }
  .poster-picker{
    width:100%;
    max-width:420px;
    justify-self:center;
  }
}
@media (max-width: 620px){
  .where-grid,
  .price-cat-grid,
  .when-grid{
    grid-template-columns: 1fr;
  }
}


/* Flatpickr local theme */
.flatpickr-calendar{
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-family: Poppins, sans-serif;
  overflow: hidden;
}
.flatpickr-months{
  background: #141414;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year{
  color: #fff;
  fill: #fff;
}
.flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover{
  background: rgba(255,255,255,.08);
}
.flatpickr-prev-month,
.flatpickr-next-month{
  fill: #fff;
  color: #fff;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover{
  color: var(--yellow);
}
span.flatpickr-weekday{
  color: #555;
  font-weight: 500;
}
.flatpickr-day{
  border-radius: 12px;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  background: var(--yellow);
  border-color: var(--yellow);
  color: #141414;
}
.flatpickr-day:hover{
  background: #f5f5f5;
}
.flatpickr-day.today{
  border-color: #141414;
}
.flatpickr-innerContainer{
  background: #fff;
}
.flatpickr-time{
  border-top: 1px solid var(--border);
}
.flatpickr-clear-button{
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f3f3f3;
  color: #141414;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.flatpickr-clear-button:hover{
  background: #ececec;
}

/* Flatpickr final polish */
.flatpickr-clear-button{
  padding: 8px 14px;
  min-height: 34px;
  line-height: 1.1;
}

.flatpickr-prev-month,
.flatpickr-next-month,
.flatpickr-prev-month svg,
.flatpickr-next-month svg,
.flatpickr-prev-month path,
.flatpickr-next-month path{
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover,
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg,
.flatpickr-prev-month:hover path,
.flatpickr-next-month:hover path{
  color: var(--yellow) !important;
  fill: var(--yellow) !important;
  stroke: var(--yellow) !important;
}


/* Required create-event fields: red border while empty */
.input.required-empty,
.select.required-empty,
.date-text.required-empty{
  border-color: #d10000 !important;
  box-shadow: inset 0 0 0 1px rgba(209,0,0,.08);
}

.select.required-empty:disabled{
  border-color: #d10000 !important;
  opacity: 1;
}

@media (max-width: 760px){
  .form-actions{
    flex-direction: column;
    align-items: stretch;
  }
}

/* keep marker visible inside input/select/date field */
.required-marker .input,
.required-marker .select,
.required-marker .date-text{
  padding-right: 28px;
}

@media (max-width: 760px){
  .form-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .required-note{
  margin-right: 0;
  font-size: 13px;
  color: #d10000;
  line-height: 1.3;
}
}

.form-actions-between{
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (max-width: 760px){
  .form-actions-between{
    flex-direction: column;
    align-items: stretch;
  }
  .required-note{
    margin-bottom: 10px;
  }
}


/* Required note color force */
.form-actions-between .required-note{
  color: #d10000 !important;
  display: flex;
  align-items: center;
}


/* Login password toggle (icon inside input) */
.password-field{
  position: relative;
}

.password-field-input{
  padding-right: 52px;
}

.password-toggle{
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #6f6f6f;
  cursor: pointer;
}

.password-toggle:hover{
  background: rgba(0, 0, 0, .05);
  color: #222;
}

.password-toggle:focus-visible{
  outline: none;
  background: rgba(245, 176, 0, .18);
  color: #222;
}

.password-toggle svg{
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.password-toggle-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-icon--show{
  display: none;
}

.password-toggle-icon--hide{
  display: inline-flex;
}

.password-toggle.is-visible .password-toggle-icon--show{
  display: inline-flex;
}

.password-toggle.is-visible .password-toggle-icon--hide{
  display: none;
}

/* Home event list: keep action buttons consistent across rows */
.event-main{
  flex: 1 1 auto;
  min-width: 0;
}

.event-actions{
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: flex-start;
  min-width: max-content;
}

.event-actions .inline{
  display: inline-flex;
  flex: 0 0 auto;
}

.event-actions .btn{
  white-space: nowrap;
}

@media (max-width: 880px){
  .event-actions{
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

@media (max-width: 420px){
  .event-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .event-actions .inline,
  .event-actions .btn{
    width: 100%;
  }

  .event-actions .btn{
    min-width: 0;
  }
}
