/* =========================================================
  Yellow Bay
   ========================================================= */

:root{
  --brand-blue:#2d566d;
  --brand-blue-2:#234a60;
  --brand-orange:#f28c1a;
  --bg:#f5f7fa;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow: 0 10px 24px rgba(15, 23, 42, .10);
  --radius:16px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

a{color:inherit; text-decoration:none;}
a:hover{text-decoration:none;}
.muted{color:var(--muted);}

.container{
  width:min(1120px, calc(100% - 32px));
  margin-inline:auto;
}

.topbar{
  background:linear-gradient(90deg, var(--brand-blue-2), var(--brand-blue));
  border-bottom:1px solid rgba(255,255,255,.10);
  padding:18px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.logo{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  font-family: "Montserrat", sans-serif;
  font-size:2.2em;
  font-weight:700;
  font-style:italic;
  line-height:1;
}
.logo { color: #ffffff; }
.logo-yellow { color: var(--brand-orange); }
.logo-white { color: #ffffff; }

.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav a{
  color:#ffffff;
  font-weight:650;
}
.nav a:hover{
  color:var(--brand-orange);
}
.sep{ color:rgba(255,255,255,.85); }

.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  color:#fff;
}
.brand-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:10px;height:10px;
  border-radius:999px;
  background:var(--brand-orange);
  box-shadow:0 0 0 4px rgba(242,140,26,.18);
}

.page{
  padding:22px 0 44px;
}

.footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  color:var(--muted);
  background:#fff;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  user-select:none;
  transition:transform .04s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active{transform:translateY(1px);}

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

.btn--primary{
  background:var(--brand-orange);
  color:#1f2937;
  border-color:rgba(0,0,0,.05);
}
.btn--primary:hover{filter:brightness(.98);}

input, select, button, textarea{
  font:inherit;
}

.field{
  height:48px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
}
.field:focus{
  border-color:rgba(242,140,26,.65);
  box-shadow:0 0 0 4px rgba(242,140,26,.18);
}

.hero{
  background:linear-gradient(90deg, var(--brand-blue-2), var(--brand-blue));
  color:#fff;
  border-radius:24px;
  padding:34px 0;
  box-shadow:var(--shadow);
  margin:18px 0 26px;
}

.hero-inner{
  display:grid;
  gap:18px;
}

.hero-copy h1{
  margin:0;
  font-size:42px;
  font-style: italic;
  line-height:1.05;
  letter-spacing:-.6px;
}
.hero-sub{
  margin:10px 0 0;
  max-width:60ch;
  color:rgba(255,255,255,.85);
  font-weight:600;
}

.hero-search{
  display:grid;
  grid-template-columns: 1.2fr 220px 220px 160px;
  gap:12px;
  align-items:center;
}

.hero-search .field{
  border-color:rgba(255,255,255,.15);
  background:#fff;
}

.hero-search button{
  height:48px;
  border-radius:12px;
  border:none;
  background:var(--brand-orange);
  font-weight:800;
  cursor:pointer;
}
.hero-search button:hover{filter:brightness(.98);}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:2px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-weight:650;
  font-size:13px;
}

.section-title{
  margin:18px 0 10px;
  font-size:26px;
  letter-spacing:-.2px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 1px 0 rgba(15,23,42,.04);
}

.categories { margin: 22px 0 34px; }

.categories-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.categories-link{
  color:#2563eb;
  font-weight:700;
}
.categories-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.cat-carousel{
  position: relative;
  min-height: 420px;
}

.cat-grid{
  display:grid;
  grid-template-rows: repeat(3, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 56px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}

.cat-grid::-webkit-scrollbar{ height: 10px; }
.cat-grid::-webkit-scrollbar-thumb{ background: #d7dde5; border-radius: 999px; }
.cat-grid::-webkit-scrollbar-track{ background: transparent; }

.cat-tile{
  scroll-snap-align: start;
  display:grid;
  grid-template-columns: 90px 1fr;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:#fff;
  padding: 8px 10px;
  min-height: 60px;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}

.cat-tile:hover{
  transform: translateY(-1px);
  border-color: rgba(45,86,109,.35);
  box-shadow: 0 10px 20px rgba(15,23,42,.07);
}

.cat-img{
  height: 80px;
  width: 90%;
  border-radius: 12px;
  background: #f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.cat-img__pic{
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.cat-title{
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -.2px;
  color: var(--text);
  margin-left: 1px;
}

.cat-nav{
  position:absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  z-index: 2;
}

.cat-nav:hover{
  border-color: rgba(45,86,109,.35);
}

.cat-nav--left{ left: 10px; }
.cat-nav--right{ right: 10px; }

.listing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
}

.listing-card{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
  transition:transform .06s ease, box-shadow .15s ease;
}
.listing-card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(15,23,42,.10);
}

.listing-image{
  display:block;
  height:180px;
  background:linear-gradient(180deg, #eef2f7, #f8fafc);
  color:#94a3b8;
  font-size:13px;
}

.listing-image:hover{
  text-decoration:none;
}

.listing-image__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.listing-body{ padding: 14px; }

.price{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  color:#111827;
}
.price::before{
  content:"€";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;height:26px;
  border-radius:10px;
  background:rgba(242,140,26,.14);
  color:var(--brand-orange);
  font-weight:900;
}

.title{
  display:block;
  margin:10px 0 6px;
  font-weight:800;
  text-decoration:none;
  color:var(--text);
}
.title:hover{ text-decoration:underline; }

.site-footer{
  margin-top: 44px;
  background: linear-gradient(90deg, var(--brand-blue-2), var(--brand-blue));
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-inner{
  padding: 26px 0;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-logo{
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .2px;
  line-height: 1;
  margin-bottom: 10px;
}

.footer-logo-yellow{ color: var(--brand-orange); }
.footer-logo-white{ color: #fff; }

.footer-text{
  margin: 0;
  max-width: 42ch;
  color: rgba(255,255,255,.82);
  font-weight: 600;
  line-height: 1.5;
}

.footer-title{
  font-weight: 850;
  margin-bottom: 10px;
  color: rgba(255,255,255,.96);
}

.footer-link{
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,.88);
  font-weight: 650;
  opacity: .95;
}

.footer-link:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link-inline{
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

.footer-link-inline:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sep{
  opacity: .55;
  margin: 0 8px;
}

.logout-form {
  display: inline-block;
  margin: 0;
}

.logout-btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.logout-btn:hover {
  text-decoration: underline;
}

.nav span,
.logout-btn {
  color: #ffffff;
}

.post-ad-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 16px;
  border-radius:12px;
  background:var(--brand-orange);
  color:#1f2937 !important;
  font-weight:800;
}

.post-ad-link:hover{
  filter:brightness(.98);
  color:#111827 !important;
}

.listing-form-page,
.account-page,
.listing-detail-page{
  max-width: 980px;
  margin: 0 auto;
}

.form-shell{
  max-width: 920px;
  margin: 0 auto;
}

.form-header{
  margin-bottom: 18px;
}

.form-card{
  padding: 24px;
}

.listing-form{
  display:block;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label{
  font-weight:700;
}

.span-2{
  grid-column: 1 / -1;
}

.textarea{
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top: 22px;
  flex-wrap:wrap;
}

.primary-btn,
.secondary-btn,
.danger-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
}

.primary-btn{
  background:var(--brand-orange);
  color:#1f2937;
}

.secondary-btn{
  background:#fff;
  color:var(--text);
  border-color:var(--border);
}

.danger-btn{
  background:#b91c1c;
  color:#fff;
}

.error{
  color:#b91c1c;
  font-size:14px;
  font-weight:600;
}

.error-box{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:16px;
}

.dangerzone{
  margin-top: 18px;
  padding-top: 18px;
  border-top:1px solid var(--border);
}

.account-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom: 18px;
  flex-wrap:wrap;
}

.account-card{
  padding:18px;
  margin-bottom: 22px;
}

.dashboard-list{
  display:grid;
  gap:14px;
}

.dashboard-item{
  padding:18px;
  display:grid;
  grid-template-columns: 120px 1fr auto;
  align-items:center;
  gap:16px;
}

.dashboard-item__image{
  display:block;
  width:120px;
  height:90px;
  border-radius:12px;
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid var(--border);
}

.dashboard-item__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.dashboard-item__image--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:13px;
}

.dashboard-item__content{
  min-width:0;
}

.dashboard-item__title{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.dashboard-item__title:hover{
  text-decoration:underline;
}

.dashboard-item__actions{
  display:flex;
  gap:10px;
}

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

.listing-detail-card{
  padding:24px;
}

.listing-gallery{
  margin-bottom:20px;
}

.listing-gallery__main{
  width:100%;
  height:420px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#f3f4f6;
}

.listing-gallery__main img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.listing-gallery__thumbs{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));
  gap:10px;
}

.listing-gallery__thumb{
  height:84px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#f3f4f6;
}

.listing-gallery__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.listing-detail-image{
  width:100%;
  height:360px;
  margin-bottom:20px;
  border-radius:18px;
  overflow:hidden;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
}

.listing-detail-image--placeholder{
  color:#94a3b8;
  font-weight:600;
}

.listing-detail-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}

.listing-detail-price{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:10px 16px;
  border-radius:14px;
  background:rgba(242,140,26,.12);
  color:#111827;
  font-weight:900;
  font-size:22px;
}

.detail-separator{
  margin:22px 0;
  border:none;
  border-top:1px solid var(--border);
}

.listing-description h3{
  margin:0 0 10px;
}

.detail-actions{
  margin-top: 22px;
}

.existing-images-preview{
  margin-top:12px;
}

.existing-images-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
  gap:12px;
}

.existing-image-tile{
  height:100px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#f3f4f6;
}

.existing-image-tile img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media (max-width: 980px){
  .topbar{ padding:16px 18px; }
  .logo{ font-size:24px; }
  .hero-copy h1{font-size:36px;}
  .hero-search{grid-template-columns: 1fr 1fr; }
  .hero-search button{grid-column: 1 / -1;}
  .cat-grid{
    grid-auto-columns: 100px;
    padding: 14px 48px;
  }
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

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

  .span-2{
    grid-column: auto;
  }

  .dashboard-item{
    grid-template-columns: 1fr;
    align-items:flex-start;
  }

  .dashboard-item__image{
    width:100%;
    height:180px;
  }

  .listing-gallery__main{
    height:300px;
  }
}

@media (max-width: 520px){
  .hero{border-radius:18px;}
  .hero-copy h1{font-size:30px;}
  .hero-search{grid-template-columns: 1fr;}
  .btn{height:38px;}
  .cat-nav{ display:none; }
  .cat-grid{ padding: 12px; }
  .cat-tile{ grid-template-columns: 96px 1fr; }
  .cat-img{ height: 64px; border-radius: 12px; }
  .footer-grid{
    grid-template-columns: 1fr;
  }
}


.listing-gallery{
  margin-bottom:20px;
}

.listing-gallery__main-wrap{
  position:relative;
}

.listing-gallery__main{
  width:100%;
  height:420px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#f3f4f6;
}

.listing-gallery__main img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:none;
  border-radius:999px;
  background:rgba(15, 23, 42, 0.72);
  color:#fff;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
}

.gallery-nav--left{
  left:14px;
}

.gallery-nav--right{
  right:14px;
}

.gallery-nav:hover{
  background:rgba(15, 23, 42, 0.88);
}

.listing-gallery__thumbs{
  margin-top:12px;
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:4px;
}

.listing-gallery__thumb{
  flex:0 0 auto;
  width:110px;
  height:84px;
  border-radius:12px;
  overflow:hidden;
  border:2px solid transparent;
  background:#f3f4f6;
  padding:0;
  cursor:pointer;
}

.listing-gallery__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.listing-gallery__thumb.is-active{
  border-color:var(--brand-orange);
}

@media (max-width: 720px){
  .listing-gallery__main{
    height:300px;
  }

  .gallery-nav{
    width:40px;
    height:40px;
    font-size:24px;
  }

  .listing-gallery__thumb{
    width:90px;
    height:72px;
  }
}


.preview-section-title{
  margin:14px 0 10px;
  font-size:16px;
  font-weight:800;
  color:var(--text);
}

.selected-images-preview{
  margin-top:14px;
}

.selected-images-grid,
.existing-images-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
  gap:12px;
}

.selected-image-tile,
.existing-image-tile{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  padding:8px;
}

.selected-image-order,
.existing-image-order{
  font-size:13px;
  font-weight:800;
  color:var(--brand-blue);
  margin-bottom:8px;
}

.selected-image-thumb,
.existing-image-tile img{
  width:100%;
  height:110px;
  object-fit:cover;
  display:block;
  border-radius:10px;
  background:#f3f4f6;
}

.selected-image-meta{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
  word-break:break-word;
}

.legal-page{
  max-width: 900px;
  margin: 0 auto;
}

.legal-card{
  padding: 28px;
}

.legal-card h1{
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -.4px;
  color: var(--brand-orange);
}

.legal-section{
  margin-top: 24px;
}

.legal-section h2{
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--brand-blue);
}

.legal-section p{
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.legal-section a{
  color: var(--brand-blue);
  font-weight: 700;
}

.legal-section a:hover{
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px){
  .legal-card{
    padding: 20px;
  }

  .legal-card h1{
    font-size: 28px;
  }
}


.footer-bottom--center{
  justify-content: center;
  text-align: center;
}

.footer-bottom--center .footer-bottom-left{
  width: 100%;
  text-align: center;
}