/* ================= BLOCK: HERO CITY DETAIL ================= */
.c-hero-city-detail {
  position: relative;
  width: 100%;
  padding-top: var(--pt-o-d);
  padding-right: var(--pr-o-d);
  padding-bottom: var(--pb-o-d);
  padding-left: var(--pl-o-d);
  background-color: var(--bg-val);
  box-sizing: border-box;
}

.c-hero-city-detail * {
  box-sizing: border-box;
}

/* White Box Wrapper */
.c-hero-city-detail__wrap {
  position: relative;
  background-color: var(--wrap-bg);
  border-radius: var(--rad-tl-d) var(--rad-tr-d) var(--rad-br-d) var(--rad-bl-d);
  box-shadow: var(--wrap-shad-d);
  overflow: hidden; 
  background-image: linear-gradient(rgba(45, 60, 55, 0.7), rgba(45, 60, 55, 0.7)), var(--bg-img);
  background-size: cover;
  background-position: center;
}

/* Constrained Inner Grid */
.c-hero-city-detail__max-width {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  
  padding-top: calc(var(--pt-i-d) + var(--is-first-offset));
  padding-right: var(--pr-i-d);
  padding-bottom: var(--pb-i-d);
  padding-left: var(--pl-i-d);
  
  display: grid;
  grid-template-columns: var(--gc-l) var(--gc-r);
  gap: var(--gap-grid-d);
  
  align-items: flex-end;
  min-height: var(--min-h-d);
  
  position: relative;
  z-index: 1; /* Above Shape */
}

/* ================= LEFT COL (TEXTS) ================= */
.c-hero-city-detail__col-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--gap-head-d);
  text-align: var(--al-txt-d);
}

.c-hero-city-detail__head {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.c-hero-city-detail__tag-wrap {
  display: flex;
  align-items: center;
  justify-content: var(--al-txt-d);
  gap: 8px;
}

/* Country Flag */
.c-hero-city-detail__flag {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.c-hero-city-detail__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 800px;
  background-color: var(--c-tagdot);
}
.c-hero-city-detail__tag {
  font-family: var(--ff-tag-d);
  font-size: var(--fs-tag-d);
  font-weight: var(--fw-tag-d);
  line-height: var(--lh-tag-d);
  color: var(--c-htag);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.c-hero-city-detail__title {
  font-family: var(--ff-tit-d);
  font-size: var(--fs-tit-d);
  font-weight: var(--fw-tit-d);
  line-height: var(--lh-tit-d);
  color: var(--c-htit);
  letter-spacing: -3px;
  margin: 0;
}
.c-hero-city-detail__title em {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.c-hero-city-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-head-d);
}

.c-hero-city-detail__desc {
  font-family: var(--ff-des-d);
  font-size: var(--fs-des-d);
  font-weight: var(--fw-des-d);
  line-height: var(--lh-des-d);
  color: var(--c-desc);
}
.c-hero-city-detail__desc p { margin: 0 0 8px 0; }
.c-hero-city-detail__desc p:last-child { margin: 0; }

/* Buttons */
.c-hero-city-detail__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: var(--al-b-dir-d);
  justify-content: var(--al-b-jus-d);
  gap: var(--gap-btn-d);
}

.c-hero-city-detail__btn1, .c-hero-city-detail__btn2 {
  width: var(--al-b-w-d);
  justify-content: center;
  font-family: var(--ff-btn-d);
  font-size: var(--fs-btn-d);
  font-weight: var(--fw-btn-d);
  line-height: var(--lh-btn-d);
  padding: 16px 24px;
  border-radius: 800px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.c-hero-city-detail__btn1 { background-color: var(--c-b1bg); color: var(--c-b1tx); border: 1px solid var(--c-b1bo); }
.c-hero-city-detail__btn1:hover { background-color: var(--c-b1bgh); color: var(--c-b1txh); border-color: var(--c-b1boh); }
.c-hero-city-detail__btn1:focus, .c-hero-city-detail__btn1:active { background-color: var(--c-b1bgf); color: var(--c-b1txf); border-color: var(--c-b1bof); outline: none; }

.c-hero-city-detail__btn2 { background-color: var(--c-b2bg); color: var(--c-b2tx); border: 1px solid var(--c-b2bo); }
.c-hero-city-detail__btn2:hover { background-color: var(--c-b2bgh); color: var(--c-b2txh); border-color: var(--c-b2boh); }
.c-hero-city-detail__btn2:focus, .c-hero-city-detail__btn2:active { background-color: var(--c-b2bgf); color: var(--c-b2txf); border-color: var(--c-b2bof); outline: none; }


/* ================= RIGHT COL (STATS) ================= */
.c-hero-city-detail__col-right {
  position: relative;
  z-index: 2;
  width: 100%;
}

.c-hero-city-detail__stats {
  display: grid;
  grid-template-columns: repeat(var(--st-cols-d), 1fr);
  gap: var(--gap-st-d);
}

.c-hero-city-detail__stat-card {
  background-color: var(--c-st-bg);
  border-radius: var(--st-rad-tl-d) var(--st-rad-tr-d) var(--st-rad-br-d) var(--st-rad-bl-d);
  padding: var(--st-pt-d) var(--st-pr-d) var(--st-pb-d) var(--st-pl-d);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-hero-city-detail__stat-num {
  font-family: var(--ff-snum-d);
  font-size: var(--fs-snum-d);
  font-weight: var(--fw-snum-d);
  line-height: var(--lh-snum-d);
  color: var(--c-st-num);
  letter-spacing: -2px;
  margin: 0 0 12px 0;
}

.c-hero-city-detail__stat-lbl-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-hero-city-detail__stat-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  color: var(--c-acc, #FEB700);
}

.c-hero-city-detail__stat-lbl {
  font-family: var(--ff-slbl-d);
  font-size: var(--fs-slbl-d);
  font-weight: var(--fw-slbl-d);
  line-height: var(--lh-slbl-d);
  color: var(--c-st-lbl);
}

/* ================= TABLET (<= 1024px) ================= */
@media (max-width: 1024px) {
  .c-hero-city-detail { 
    padding-top: var(--pt-o-t);
    padding-right: var(--pr-o-t);
    padding-bottom: var(--pb-o-t);
    padding-left: var(--pl-o-t);
  }
  .c-hero-city-detail__wrap { 
    border-radius: var(--rad-tl-t) var(--rad-tr-t) var(--rad-br-t) var(--rad-bl-t);
    box-shadow: var(--wrap-shad-t);
  }
  
  .c-hero-city-detail__max-width {
    padding-top: calc(var(--pt-i-t) + var(--is-first-offset-t));
    padding-right: var(--pr-i-t);
    padding-bottom: var(--pb-i-t);
    padding-left: var(--pl-i-t); 
    min-height: var(--min-h-t);
    display: flex;
    flex-direction: column;
    gap: var(--gap-head-t);
    justify-content: flex-end;
  }

  .c-hero-city-detail__col-left,
  .c-hero-city-detail__col-right,
  .c-hero-city-detail__info {
    display: contents;
  }

  .c-hero-city-detail__head { order: 1; width: 100%; gap: 32px; display: flex; flex-direction: column; text-align: var(--al-txt-t); }
  .c-hero-city-detail__desc { order: 2; width: 100%; text-align: var(--al-txt-t); }
  .c-hero-city-detail__stats { order: 3; width: 100%; display: grid; grid-template-columns: repeat(var(--st-cols-t), 1fr); gap: var(--gap-st-t); }
  .c-hero-city-detail__buttons { order: 4; width: 100%; display: flex; flex-direction: var(--al-b-dir-t); justify-content: var(--al-b-jus-t); gap: var(--gap-btn-t); margin-top: 8px; }

  .c-hero-city-detail__tag-wrap { justify-content: var(--al-txt-t); }
  .c-hero-city-detail__btn1, .c-hero-city-detail__btn2 { width: var(--al-b-w-t); }

  .c-hero-city-detail__stat-card {
    border-radius: var(--st-rad-tl-t) var(--st-rad-tr-t) var(--st-rad-br-t) var(--st-rad-bl-t);
    padding: var(--st-pt-t) var(--st-pr-t) var(--st-pb-t) var(--st-pl-t);
  }

  .c-hero-city-detail__tag { font-family: var(--ff-tag-t); font-size: var(--fs-tag-t); font-weight: var(--fw-tag-t); line-height: var(--lh-tag-t); }
  .c-hero-city-detail__title { font-family: var(--ff-tit-t); font-size: var(--fs-tit-t); font-weight: var(--fw-tit-t); line-height: var(--lh-tit-t); }
  .c-hero-city-detail__desc { font-family: var(--ff-des-t); font-size: var(--fs-des-t); font-weight: var(--fw-des-t); line-height: var(--lh-des-t); }
  .c-hero-city-detail__btn1, .c-hero-city-detail__btn2 { font-family: var(--ff-btn-t); font-size: var(--fs-btn-t); font-weight: var(--fw-btn-t); line-height: var(--lh-btn-t); }
  .c-hero-city-detail__stat-num { font-family: var(--ff-snum-t); font-size: var(--fs-snum-t); font-weight: var(--fw-snum-t); line-height: var(--lh-snum-t); }
  .c-hero-city-detail__stat-lbl { font-family: var(--ff-slbl-t); font-size: var(--fs-slbl-t); font-weight: var(--fw-slbl-t); line-height: var(--lh-slbl-t); }
}

/* ================= MOBILE (<= 768px) ================= */
@media (max-width: 768px) {
  .c-hero-city-detail { 
    padding-top: var(--pt-o-m);
    padding-right: var(--pr-o-m);
    padding-bottom: var(--pb-o-m);
    padding-left: var(--pl-o-m);
  }
  .c-hero-city-detail__wrap { 
    border-radius: var(--rad-tl-m) var(--rad-tr-m) var(--rad-br-m) var(--rad-bl-m);
    box-shadow: var(--wrap-shad-m);
  }
  .c-hero-city-detail__max-width {
    padding-top: calc(var(--pt-i-m) + var(--is-first-offset-m));
    padding-right: var(--pr-i-m);
    padding-bottom: var(--pb-i-m);
    padding-left: var(--pl-i-m); 
    gap: var(--gap-head-m);
    min-height: var(--min-h-m);
  }

  .c-hero-city-detail__head { text-align: var(--al-txt-m); }
  .c-hero-city-detail__desc { text-align: var(--al-txt-m); }
  .c-hero-city-detail__tag-wrap { justify-content: var(--al-txt-m); }
  
  .c-hero-city-detail__buttons { flex-direction: var(--al-b-dir-m); justify-content: var(--al-b-jus-m); gap: var(--gap-btn-m); }
  .c-hero-city-detail__btn1, .c-hero-city-detail__btn2 { width: var(--al-b-w-m); font-size: var(--fs-btn-m); }

  /* Mobile Slider (Bleed Effect) */
  .c-hero-city-detail__stats { 
    display: flex; /* Tablet Grid Overrides */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    
    width: calc(100% + var(--pr-i-m) + var(--pl-i-m));
    margin-left: calc(var(--pl-i-m) * -1);
    margin-right: calc(var(--pr-i-m) * -1);
    padding-left: var(--pl-i-m);
    padding-right: var(--pr-i-m);
    scroll-padding-left: var(--pl-i-m);
    gap: var(--gap-st-m);
  }
  .c-hero-city-detail__stats::-webkit-scrollbar { display: none; }

  .c-hero-city-detail__stat-card { 
    flex: 0 0 85%;
    min-width: 0;

    padding: var(--st-pt-m) var(--st-pr-m) var(--st-pb-m) var(--st-pl-m); 
    border-radius: var(--st-rad-tl-m) var(--st-rad-tr-m) var(--st-rad-br-m) var(--st-rad-bl-m); 
    user-select: none;
    max-width: 200px;
  }
  .c-hero-city-detail__stat-num { margin-bottom: 8px; }

  .c-hero-city-detail__tag { font-family: var(--ff-tag-m); font-size: var(--fs-tag-m); font-weight: var(--fw-tag-m); line-height: var(--lh-tag-m); }
  .c-hero-city-detail__title { font-family: var(--ff-tit-m); font-size: var(--fs-tit-m); font-weight: var(--fw-tit-m); line-height: var(--lh-tit-m); letter-spacing: -1.5px;}
  .c-hero-city-detail__desc { font-family: var(--ff-des-m); font-size: var(--fs-des-m); font-weight: var(--fw-des-m); line-height: var(--lh-des-m); }
  .c-hero-city-detail__btn1, .c-hero-city-detail__btn2 { font-family: var(--ff-btn-m); font-size: var(--fs-btn-m); font-weight: var(--fw-btn-m); line-height: var(--lh-btn-m); }
  .c-hero-city-detail__stat-num { font-family: var(--ff-snum-m); font-size: var(--fs-snum-m); font-weight: var(--fw-snum-m); line-height: var(--lh-snum-m); }
  .c-hero-city-detail__stat-lbl { font-family: var(--ff-slbl-m); font-size: var(--fs-slbl-m); font-weight: var(--fw-slbl-m); line-height: var(--lh-slbl-m); }
}