/* =============================================================
   Single City page redesign (single-city.php)
   Every selector below targets either a class this file's own markup
   defines (ms-city-*), or a REAL class name confirmed by reading the
   actual PHP that outputs it (city-hotels.php, city-attractions.php,
   comments.php, comments-list.php, comments-form.php) — none guessed.
   ============================================================= */

:root {
  --ms-city-blue: #24315f;
  --ms-city-blue-l: #2d5bff;
  --ms-city-accent: #c9832d;
  --ms-city-dark: #111827;
  --ms-city-grey: #667085;
  --ms-city-line: #dbe3ef;
  --ms-city-bg: #f6f8fc;
  --ms-city-surface: #ffffff;
  --ms-city-surface-soft: #f9fbff;
  --ms-city-radius: 18px;
}

/* ── Hero strip ── */
.ms-city-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(120deg, #1f2a52 0%, var(--ms-city-blue) 55%, #18213d 100%);
  padding: 36px 0 34px;
}
.ms-city-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.ms-city-hero-inner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 12ch;
}
.ms-city-hero-inner h1 span {
  color: #f4c16b;
}

.ms-city-page {
  background: transparent;
  padding: 30px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Shared shell: keep structure, remove card heaviness */
.ms-city-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* =============================================================
   OVERVIEW: custom gallery + stats + description
   ============================================================= */
.ms-city-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
/* Explicit placement (not relied on DOM order or implicit RTL grid
   auto-placement): gallery always renders on the right, info/description
   always on the left, regardless of page text direction. */
.ms-city-overview-grid .ms-city-info {
  order: 1;
}
.ms-city-overview-grid .ms-city-gallery {
  order: 2;
}

.ms-city-gallery-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #e4ebf5 0%, #edf2f8 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.ms-city-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-city-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.ms-city-gallery-arrow:hover {
  background: rgba(15, 23, 42, 0.8);
}
/* prev = chevron-left icon → belongs on the left edge;
   next = chevron-right icon → belongs on the right edge. */
.ms-city-gallery-prev {
  left: 10px;
}
.ms-city-gallery-next {
  right: 10px;
}
.ms-city-gallery-counter {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.56);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.ms-city-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ms-city-gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.65;
  border: 1px solid transparent;
  transition:
    opacity 0.15s,
    border-color 0.15s;
}
.ms-city-gallery-thumb:hover {
  opacity: 0.9;
}
.ms-city-gallery-thumb.active {
  opacity: 1;
  border-color: var(--ms-city-blue-l);
}
.ms-city-gallery-empty {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: var(--ms-city-bg);
}

.ms-city-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ms-city-stats {
  display: flex;
  gap: 14px;
}
.ms-city-stat {
  flex: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.ms-city-stat-value {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: var(--ms-city-blue);
  letter-spacing: -0.03em;
}
.ms-city-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ms-city-grey);
  margin-top: 7px;
}
.ms-city-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ms-city-grey);
  padding: 12px 14px;
  border: 1px solid var(--ms-city-line);
  border-radius: 14px;
  background: var(--ms-city-surface);
}
.ms-city-address svg {
  flex-shrink: 0;
  color: var(--ms-city-blue-l);
}
.ms-city-description {
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
  text-align: start;
}
.ms-city-description p:last-child {
  margin-bottom: 0;
}

/* =============================================================
   HOTELS / ATTRACTIONS sections — restyling city-hotels.php's and
   city-attractions.php's REAL output classes (confirmed by reading
   both files), scoped under .ms-city-section instead of the old,
   now-unused .ms-city-detail-page wrapper.
   ============================================================= */
.ms-city-section {
  overflow: visible;
  padding: 28px 0 0;
  border-top: 1px solid rgba(219, 227, 239, 0.95);
}
.ms-city-section > summary {
  padding: 0 0 16px;
  cursor: pointer;
  border-bottom: 0;
  list-style: none;
}
.ms-city-section > summary::-webkit-details-marker {
  display: none;
}
.ms-city-section .wbhtl-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: var(--ms-city-blue);
}
.ms-city-section .wbhtl-title span {
  color: var(--ms-city-accent);
}

.ms-city-section .wbhtl-location {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: transparent;
}
.ms-city-section .wbhtl-location > [class*="col-md-"] {
  float: none;
}
.ms-city-section .wbhtl-map {
  flex: 1 1 62%;
}
.ms-city-section .wbhtl-map-convas {
  width: 100%;
  height: 100% !important;
  min-height: 420px;
  background: linear-gradient(180deg, #edf3fb 0%, #f8fbff 100%);
  border-radius: 20px;
  overflow: hidden;
}
.ms-city-section .wbhtl-city-detail-hotels-list,
.ms-city-section .wbhtl-city-detail-attraction-list {
  flex: 1 1 38%;
  border-right: 1px solid rgba(219, 227, 239, 0.95);
}
.ms-city-section .wbhtl-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ms-city-section .wbhtl-top {
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
  padding: 12px 10px 10px;
}
.ms-city-section .wbhtl-top > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-city-section .wbhtl-top > ul > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 0;
  background: transparent;
  border-bottom: 1px solid rgba(219, 227, 239, 0.82);
  border-radius: 0;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.ms-city-section .wbhtl-top > ul > li:hover {
  border-bottom-color: rgba(37, 99, 235, 0.18);
}
.ms-city-section .wbhtl-img-frame {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eaf0f7;
}
.ms-city-section .wbhtl-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ms-city-section .wbhtl-hotel-title {
  flex: 1 1 100%;
  font-size: 14px;
  font-weight: 750;
  color: var(--ms-city-dark);
  text-decoration: none;
  order: -1;
  margin-bottom: 2px;
  line-height: 1.45;
}
.ms-city-section .wbhtl-hotel-title:hover {
  color: var(--ms-city-blue-l);
}
.ms-city-section .wbhtl-stars,
.ms-city-section .wbhtl-room,
.ms-city-section .wbhtl-score {
  font-size: 11px;
  color: var(--ms-city-grey);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ms-city-section .wbhtl-discount {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.3;
}
/* Only the percentage matters here; the "Discount" label below it just
   adds bulk to an already-small badge on this page's compact hotel list. */
.ms-city-section .wbhtl-discount .wbhtl-title {
  display: none;
}
.ms-city-section .wbhtl-show-all-maps {
  display: block;
  text-align: center;
  padding: 14px 12px;
  background: linear-gradient(135deg, var(--ms-city-blue-l), var(--ms-city-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 18px 18px;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.ms-city-section .wbhtl-show-all-maps:hover {
  filter: brightness(1.04);
  color: #fff;
}

/* =============================================================
   COMMENTS — restyling the real classes from comments-list.php and
   comments-form.php (both read in full before writing this).
   ============================================================= */
.ms-city-comments {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ms-city-comments .wbhtl-comments .wbhtl-title,
.ms-city-comments .wbhtl-send-comment .wbhtl-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ms-city-blue);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ms-city-comments .wbhtl-comments ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ms-city-comments .WbhtlCommentsDiv {
  background: transparent;
  border-radius: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(219, 227, 239, 0.82);
}
.ms-city-comments .wbhtl-name-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ms-city-comments .wbhtl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ms-city-dark);
}
.ms-city-comments .wbhtl-date a {
  font-size: 11px;
  color: var(--ms-city-grey);
  text-decoration: none;
}
.ms-city-comments .wbhtl-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #334155;
}
.ms-city-comments .comment-awaiting-moderation {
  font-size: 11px;
  color: var(--ms-city-accent);
  margin: 0 0 4px;
}
.ms-city-comments .wbhtl-like-unlike {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.ms-city-comments .wbhtl-like-unlike a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ms-city-grey);
  text-decoration: none;
  cursor: pointer;
}
.ms-city-comments .wbhtl-like-unlike a.active {
  color: var(--ms-city-blue-l);
  font-weight: 700;
}
.ms-city-comments .wbhtl-satisfaction .wbhtl-stars {
  display: inline-flex;
  gap: 2px;
  margin-top: 6px;
}
.ms-city-comments .wbhtl-satisfaction .icon-star {
  color: #cbd5e1;
  font-size: 13px;
}
.ms-city-comments .wbhtl-satisfaction .icon-star.active {
  color: var(--ms-city-accent);
}
.ms-city-comments .no-comments {
  font-size: 13px;
  color: var(--ms-city-grey);
}

/* Comment form (comments-form.php) */
.ms-city-comments .wbhtl-send-comment {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-comment-text {
  width: 100%;
  min-height: 90px;
  padding: 14px;
  border: 1px solid var(--ms-city-line);
  border-radius: 14px;
  background: var(--ms-city-surface);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-top: 14px;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-bottom > [class*="col-md-"] {
  float: none;
  flex: 1 1 180px;
  min-width: 0;
}
/* The satisfaction/newsletter columns are small and shouldn't stretch. */
.ms-city-comments .wbhtl-send-comment .wbhtl-bottom > .wbhtl-satisfaction {
  flex: 0 0 90px;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-bottom > .checkbox {
  flex: 1 1 220px;
}
/* The submit button column: never shrink/wrap the button, push it to
   the end of the row instead of squeezing it into a 1/12 grid column. */
.ms-city-comments .wbhtl-send-comment .wbhtl-bottom > .wbhtl-left {
  flex: 0 0 auto;
  margin-inline-start: auto;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-text {
  font-size: 11px;
  color: var(--ms-city-grey);
  margin-bottom: 5px;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-text-input,
.ms-city-comments .wbhtl-send-comment .Hwbhtl2-cm {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ms-city-line);
  border-radius: 12px;
  background: var(--ms-city-surface);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-satisfaction .Hwbhtl2-cm {
  width: 70px;
}
.ms-city-comments .wbhtl-send-comment .checkbox {
  font-size: 12px;
  color: var(--ms-city-grey);
  display: flex;
  align-items: center;
  padding-bottom: 9px;
}
.ms-city-comments .wbhtl-send-comment .checkbox label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-left button {
  height: 38px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ms-city-blue-l), var(--ms-city-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(45, 91, 255, 0.16);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-left button .wbhtl-text {
  margin-bottom: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.ms-city-comments .wbhtl-send-comment .wbhtl-left button:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 24px rgba(45, 91, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ms-city-overview-grid {
    grid-template-columns: 1fr;
  }
  .ms-city-section .wbhtl-location {
    flex-direction: column;
  }
  .ms-city-section .wbhtl-city-detail-hotels-list,
  .ms-city-section .wbhtl-city-detail-attraction-list {
    border-right: none;
    border-top: 1px solid var(--ms-city-line);
  }
  .ms-city-section .wbhtl-map-convas {
    min-height: 280px;
  }
  .ms-city-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .ms-city-hero {
    padding: 28px 0 26px;
  }
  .ms-city-hero-inner h1 {
    max-width: 13ch;
    font-size: clamp(24px, 8vw, 32px);
  }
  .ms-city-page {
    padding: 22px 0 44px;
    gap: 24px;
  }
  .ms-city-overview-grid {
    gap: 20px;
  }
  .ms-city-stats {
    gap: 10px;
  }
  .ms-city-stat {
    padding: 14px 12px;
  }
  .ms-city-stat-value {
    font-size: 22px;
  }
  .ms-city-comments .wbhtl-send-comment .wbhtl-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .ms-city-comments .wbhtl-send-comment .wbhtl-bottom > [class*="col-md-"] {
    width: 100%;
  }
}
