/* ==========================================================================
   CITY EXPLORE (/experience-hanoi & /entertainment)
   Editorial Luxury Theme - Synchronized with Visit Hanoi Red & Heritage Design
   ========================================================================== */

.city-explore {
  color: #1f242d;
  background-color: #ffffff;
  font-family:
    "Be Vietnam Pro",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.city-explore i.fa-solid,
.city-explore i.fa-regular,
.city-explore i.fa-brands {
  font-family: "Font Awesome 6 Free" !important;
}

/* Unified Horizontal Margins matching /events and /kham-pha */
.city-wide-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .city-wide-container {
    padding: 0 80px;
  }
}

@media (max-width: 640px) {
  .city-wide-container {
    padding: 0 18px;
  }
}

/* 1. Hero Banner Enhancements */
.city-hero-banner {
  min-height: 560px !important;
}

.city-hero-banner .am-thuc-hero-bg {
  object-fit: fill !important;
  object-position: center top !important;
}

.city-hero-banner .am-thuc-hero-content-wrap {
  max-width: 100% !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

@media (min-width: 1025px) {
  .city-hero-banner .am-thuc-hero-content-wrap {
    padding-left: 80px !important;
    padding-right: 80px !important;
  }
}

@media (max-width: 640px) {
  .city-hero-banner {
    min-height: 400px !important;
  }

  .city-hero-banner .am-thuc-hero-content-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

.city-hero-subtitle {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(15px, 1.4vw, 17.5px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 10px 0 0;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Common Section Typography */
.city-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #d01c1c;
  margin-bottom: 8px;
}

.city-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  color: #7b2020;
  line-height: 1.15;
  margin: 0 0 10px;
}

.city-section-subtitle {
  font-size: 15.5px;
  color: #5a6270;
  line-height: 1.65;
  max-width: 720px;
  margin: 0;
}

.city-section-head--center {
  text-align: center;
  margin-bottom: 38px;
}

.city-section-head--center .city-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.city-section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.city-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fdf2f2;
  border: 1px solid rgba(208, 28, 28, 0.16);
  color: #9b181d;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.city-explore-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(123, 32, 32, 0.25);
  color: #7b2020 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(123, 32, 32, 0.06);
}

.city-explore-all-btn:hover {
  background: #7b2020;
  border-color: #7b2020;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(123, 32, 32, 0.22);
}

.city-explore-all-btn i {
  transition: transform 0.22s ease;
}

.city-explore-all-btn:hover i {
  transform: translateX(4px);
}

/* 2. Explore by Preference Section (Balanced 2-Column Layout) */
.city-preference-section {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%);
  border-bottom: 1px solid rgba(123, 32, 32, 0.08);
}

.city-pref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.city-pref-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 700;
  color: #7b2020;
  margin: 0 0 12px;
  line-height: 1.15;
}

.city-pref-desc {
  font-size: 15.5px;
  color: #555e6b;
  line-height: 1.68;
  max-width: 680px;
  margin: 0 0 28px;
}

.city-pref-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.city-pref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 18px;
  border-radius: 20px;
  background: #f9f6f0;
  border: 1px solid rgba(123, 32, 32, 0.1);
  text-decoration: none !important;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.city-pref-card:hover,
.city-pref-card.is-selected {
  background: #fff8f6;
  border-color: rgba(123, 32, 32, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(123, 32, 32, 0.1);
}

.city-pref-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(123, 32, 32, 0.2);
  color: #7b2020;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 14px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.city-pref-card.is-selected .city-pref-icon-circle,
.city-pref-card:hover .city-pref-icon-circle {
  background: #7b2020;
  border-color: #7b2020;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(123, 32, 32, 0.28);
}

.city-pref-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #241818;
  margin-bottom: 4px;
  line-height: 1.3;
}

.city-pref-card.is-selected .city-pref-card-title,
.city-pref-card:hover .city-pref-card-title {
  color: #7b2020;
}

.city-pref-card-sub {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 12px;
}

.city-pref-card-bar {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: transparent;
  transition:
    background 0.25s ease,
    width 0.25s ease;
}

.city-pref-card.is-selected .city-pref-card-bar,
.city-pref-card:hover .city-pref-card-bar {
  background: #7b2020;
  width: 36px;
}

.city-pref-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-pref-art-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 16px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(201, 154, 73, 0.13) 0%,
    rgba(255, 255, 255, 0) 72%
  );
}

.city-pref-art-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 3. Featured & Category Sections */
.city-featured-section {
  display: none !important;
}

.city-category-section {
  padding: 58px 0;
  background: #faf8f5;
  border-top: 1px solid rgba(123, 32, 32, 0.06);
}

.city-category-section.is-alt-bg {
  background: #ffffff;
}

/* 4. Story Cards Grid (_Cards.cshtml) */
.city-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.city-story-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(123, 32, 32, 0.09);
  box-shadow: 0 10px 28px rgba(24, 18, 18, 0.06);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.city-story-card:hover {
  transform: translateY(-7px);
  border-color: rgba(208, 28, 28, 0.26);
  box-shadow: 0 20px 42px rgba(123, 32, 32, 0.14);
}

.city-story-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #efe9e0;
}

.city-story-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.city-story-card:hover .city-story-card__thumb img {
  transform: scale(1.07);
}

.city-story-card__badge {
  display: none !important;
}

.city-story-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.city-story-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #6e7683;
}

.city-story-card__loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.city-story-card__loc i {
  color: #d01c1c;
  flex-shrink: 0;
}

.city-story-card__loc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-story-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fdf2f2;
  color: #9b181d;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.city-story-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-story-card__title a {
  color: #1f242d !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.city-story-card__title a:hover {
  color: #d01c1c !important;
}

.city-story-card__desc {
  font-size: 13.8px;
  color: #5b6370;
  line-height: 1.62;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.city-story-card__footer {
  padding-top: 13px;
  border-top: 1px solid #f2ece4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-story-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #7b2020 !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.city-story-card__cta:hover {
  color: #d01c1c !important;
  gap: 11px;
}

/* 5. Interactive Map Explorer (_Map.cshtml) */
.city-map-section {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid rgba(123, 32, 32, 0.08);
}

.city-map-explorer {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 24px;
  background: #fcfaf7;
  border: 1px solid rgba(123, 32, 32, 0.12);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(24, 18, 18, 0.06);
}

.city-map-sidebar {
  display: flex;
  flex-direction: column;
  max-height: 490px;
}

.city-map-sidebar__head {
  padding: 8px 12px 14px;
  border-bottom: 1px solid #ece3d8;
  margin-bottom: 10px;
}

.city-map-sidebar__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #7b2020;
}

.city-map-places-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.city-map-place-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ebe3d8;
  cursor: pointer;
  transition: all 0.22s ease;
}

.city-map-place-item:hover,
.city-map-place-item.is-active {
  border-color: #d01c1c;
  background: #fff7f6;
  box-shadow: 0 6px 18px rgba(208, 28, 28, 0.1);
}

.city-map-place-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5efe8;
  color: #7b2020;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.city-map-place-item.is-active .city-map-place-num,
.city-map-place-item:hover .city-map-place-num {
  background: #d01c1c;
  color: #ffffff;
}

.city-map-place-info {
  flex: 1;
  min-width: 0;
}

.city-map-place-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #241818;
  margin: 0 0 4px;
  line-height: 1.35;
}

.city-map-place-addr {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
}

.city-map-place-addr i {
  color: #d01c1c;
  margin-top: 2px;
}

.city-map-place-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #7b2020 !important;
  text-decoration: none !important;
}

.city-map-place-link:hover {
  color: #d01c1c !important;
}

.city-map-stage {
  border-radius: 16px;
  overflow: hidden;
  min-height: 490px;
  border: 1px solid #e6ddd2;
}

.city-map {
  width: 100%;
  height: 490px;
}

.city-pin-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: #7b2020;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-custom-map-pin.is-active .city-pin-bubble {
  background: #d01c1c;
  transform: rotate(-45deg) scale(1.14);
}

.city-pin-bubble span {
  transform: rotate(45deg);
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
}

.city-map-popup-card {
  padding: 4px 2px;
  font-family: "Be Vietnam Pro", sans-serif;
}

.city-map-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: #241818;
  margin: 0 0 4px;
}

.city-map-popup-addr {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 10px;
}

.city-map-popup-actions {
  display: flex;
  gap: 8px;
}

.city-map-popup-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.city-map-popup-btn.primary {
  background: #7b2020;
  color: #ffffff !important;
}

.city-map-popup-btn.secondary {
  background: #f3efe8;
  color: #3d2a2a !important;
}

/* 6. Hidden blocks per user request (.city-category-pill, .city-map-section, .city-tips-section) */
.city-category-pill,
.city-map-section,
.city-tips-section {
  display: none !important;
}

.city-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.city-tip-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid rgba(123, 32, 32, 0.1);
  box-shadow: 0 10px 26px rgba(24, 18, 18, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.city-tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(123, 32, 32, 0.12);
}

.city-tip-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.city-tip-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fdf2f2;
  color: #d01c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.city-tip-card__num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9b181d;
  background: #fcf4e8;
  padding: 4px 12px;
  border-radius: 999px;
}

.city-tip-card__title {
  font-size: 18.5px;
  font-weight: 700;
  color: #241818;
  margin: 0 0 10px;
  line-height: 1.35;
}

.city-tip-card__desc {
  font-size: 14.2px;
  color: #5b6370;
  line-height: 1.65;
  margin: 0;
}

/* 7. Category Listing Page (List.cshtml) */
.city-listing-section {
  padding: 44px 0 80px;
  background: #faf8f5;
  min-height: 60vh;
}

.city-listing-hub {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(123, 32, 32, 0.12);
  box-shadow: 0 12px 32px rgba(123, 32, 32, 0.06);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.city-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #f5efe8;
  color: #4a3a3a !important;
  font-size: 13.8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.22s ease;
}

.city-filter-pill:hover {
  background: #ebe0d4;
  color: #7b2020 !important;
}

.city-filter-pill.is-active {
  background: #7b2020;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(123, 32, 32, 0.24);
}

.city-listing-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-listing-search__input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.city-listing-search__input-wrap i {
  position: absolute;
  left: 18px;
  color: #d01c1c;
  font-size: 15px;
}

.city-listing-search__input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 42px 0 46px;
  border-radius: 999px;
  border: 1.5px solid #e4dcd3;
  background: #fcfaf7;
  font-size: 14.5px;
  color: #1f242d;
  outline: none;
  transition: all 0.22s ease;
}

.city-listing-search__input-wrap input:focus {
  background: #ffffff;
  border-color: #d01c1c;
  box-shadow: 0 0 0 4px rgba(208, 28, 28, 0.1);
}

.city-listing-search__clear {
  position: absolute;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eee8e0;
  color: #5a4a4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none !important;
}

.city-listing-search__btn {
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #e01e26 0%, #9b181d 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(208, 28, 28, 0.24);
  transition: all 0.22s ease;
}

.city-listing-search__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(208, 28, 28, 0.34);
}

.city-listing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.city-listing-summary__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #7b2020;
  margin: 0;
}

.city-listing-summary__badge {
  padding: 6px 16px;
  border-radius: 999px;
  background: #fdf0ef;
  border: 1px solid rgba(208, 28, 28, 0.18);
  color: #9b181d;
  font-size: 13.5px;
  font-weight: 700;
}

.city-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}

.city-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e0d5c8;
  color: #7b2020 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.22s ease;
}

.city-page-btn:hover {
  background: #7b2020;
  border-color: #7b2020;
  color: #ffffff !important;
}

.city-page-indicator {
  font-size: 14px;
  font-weight: 600;
  color: #5b6370;
}

.city-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px dashed #dfd5c8;
  color: #6b7280;
}

.city-empty-state i {
  font-size: 32px;
  color: #7b2020;
  margin-bottom: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .city-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-pref-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .city-pref-right {
    display: none;
  }

  .city-map-explorer {
    grid-template-columns: 1fr;
  }

  .city-map-sidebar {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .city-pref-cards-row {
    grid-template-columns: 1fr;
  }

  .city-cards-grid,
  .city-tips-grid {
    grid-template-columns: 1fr;
  }

  .city-listing-search {
    flex-direction: column;
    align-items: stretch;
  }

  .city-listing-search__btn {
    justify-content: center;
  }

  .city-map,
  .city-map-stage {
    height: 360px;
    min-height: 360px;
  }
}
