/* =========================================================
   UniDash - Popular Cuisines (reference-matching)
   File: assets/css/popular-cuisines.css
   Note: control button visuals come from promo-carousel.css
   ========================================================= */

.ud-pc-section{
  background: var(--ud-primary);
  padding: 26px 0 22px;
}

/* Keep content aligned with site width */
.ud-pc-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 14px;
  padding-right: 14px;
}

/* ---------- HEADER ---------- */
.ud-pc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.ud-pc-head-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.ud-pc-icon{
  width:54px;
  height:54px;
  border-radius:6px;
  display:grid;
  place-items:center;
  flex:0 0 54px;
}

/* inline SVG sizing */
.ud-pc-icon svg{
  width:34px !important;
  height:34px !important;
  display:block;
}
.ud-pc-icon-img{
  width:34px;
  height:34px;
  display:block;
}

.ud-pc-title{
  margin:0;
  color:#fff;
  font-weight:750;
  font-size:30px;
  line-height:1.1;
}

.ud-pc-subtitle{
  margin:4px 0 0;
  color:rgba(255,255,255,0.88);
  font-size:16px;
  font-weight:500;
}

.ud-pc-explore{
  background:#fff;
  color:#11b24a;
  font-weight:700;
  padding:11px 18px;
  border-radius:4px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.ud-pc-explore:hover{ filter:brightness(0.97); }

.ud-pc-explore-arrow{
  font-size:20px;
  line-height:0;
  font-weight:700;
}

/* ---------- CAROUSEL ---------- */
.ud-pc-carousel-wrap{
  position:relative;
}

.ud-pc-carousel{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:8px 2px 14px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.ud-pc-carousel::-webkit-scrollbar{ display:none; }

.ud-pc-carousel.is-single{
  justify-content:center;
  overflow-x:hidden;
}

/* ✅ Cut ONLY right side (top-right angle only) */
.ud-pc-card{
  flex:0 0 360px;
  height:255px;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  background:var(--ud-surface-soft);
  scroll-snap-align:start;

  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    0 100%
  );
}

.ud-pc-bg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Keep category photography free of dark overlays. */
.ud-pc-card-overlay{
  position:absolute;
  inset:0;
  background:transparent;
}

.ud-pc-card-title{
  position:absolute;
  left:18px;
  top:16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--ud-text-strong);
  font-weight:700;
  font-size:28px;
  line-height:1.05;
  text-align:left;
  max-width:calc(100% - 36px);
}

.ud-pc-card-bar{
  width:5px;
  height:26px;
  background:#11b24a;
  flex:0 0 5px;
}

.ud-pc-card-text{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ✅ Reuse promo-carousel controls; only position them here */
.ud-pc-control{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
}

/* ---------- DOTS ---------- */
.ud-pc-pager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding-top:2px;
}

.ud-pc-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--ud-border-subtle);
  cursor:pointer;
}

.ud-pc-dot.active{
  width:18px;
  height:6px;
  border-radius:999px;
  background:#11b24a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px){
  .ud-pc-title{ font-size:26px; }
  .ud-pc-card{ flex-basis:320px; height:235px; }
}

@media (max-width: 640px){
  .ud-pc-title{ font-size:22px; }
  .ud-pc-subtitle{ font-size:14px; }
  .ud-pc-explore{ padding:9px 12px; font-size:13px; }

  .ud-pc-card{ flex-basis:290px; height:210px; }
  .ud-pc-card-title{ font-size:22px; }
  .ud-pc-card-bar{ height:22px; }

  .ud-pc-control--prev{ left:-2px; }
  .ud-pc-control--next{ right:-2px; }
}
