/* ═══════════════════════════════════════════════════════════════════════════
 * am-thuc.css — Giao diện Bản Đồ Ẩm Thực Phan Thiết (Wide-Screen Magazine UI)
 * Thiết kế chuẩn 1460px thoáng rộng, ảnh ngang 16:10 sắc nét, không bị bó hẹp
 * ═══════════════════════════════════════════════════════════════════════════ */

.fm-wrap {
  background: #f4f7fb;
  padding: 24px 0 72px;
  color: #1e293b;
}

.fm-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 0. Thanh điều hướng nhanh đầu trang (Quick Jump Bar) ── */
.fm-quick-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(15, 43, 71, 0.04);
}

.fm-qnav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.fm-qnav-item:hover {
  background: #eff6ff;
  color: #0f2b47;
  border-color: #bfdbfe;
  text-decoration: none;
}

.fm-qnav-item.active {
  background: #0f2b47;
  color: #ffffff;
}

.fm-qnav-item.fm-qnav-alt {
  margin-left: auto;
  background: #fff1f0;
  color: #e84038;
  border-color: #fecaca;
}

.fm-qnav-item.fm-qnav-alt:hover {
  background: #e84038;
  color: #ffffff;
}

/* ── 1. Ba thẻ phân vùng địa lý ── */
.fm-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.fm-zone-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--z-color, #e84038);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 43, 71, 0.05);
  font-family: inherit;
}

.fm-zone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 43, 71, 0.11);
}

.fm-zone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.fm-zone-ic {
  font-size: 28px;
}

.fm-zone-dist {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--z-color, #e84038);
  background: rgba(232, 64, 56, 0.08);
  padding: 5px 12px;
  border-radius: 99px;
}

.fm-zone-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0 0 8px;
}

.fm-zone-card p {
  font-size: 14px;
  line-height: 1.58;
  color: #475569;
  margin: 0 0 14px;
  flex: 1;
}

.fm-zone-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 13.5px;
  color: #334155;
}

.fm-zone-cta {
  font-weight: 800;
  color: var(--z-color, #e84038);
}

/* ── 2. Thanh công cụ lọc & Tìm kiếm nhanh (Filter & Search Toolbar) ── */
.fm-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 26px;
  box-shadow: 0 6px 22px rgba(15, 43, 71, 0.05);
}

.fm-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.fm-search-wrap {
  position: relative;
  flex: 1 1 420px;
  max-width: 680px;
}

.fm-search-ic,
svg.fm-search-ic,
span.fm-search-ic,
.fm-search-wrap svg,
.fm-search-wrap span.fm-search-ic {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.fm-search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14.5px;
  color: #0f172a;
  background: #f8fafc;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.fm-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #0f2b47;
  box-shadow: 0 0 0 3px rgba(15, 43, 71, 0.1);
}

.fm-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #334155;
}

.fm-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.fm-reset-btn:hover {
  background: #fecaca;
}

.fm-filter-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fm-filter-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f2b47;
  min-width: 105px;
}

.fm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.fm-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 15px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.fm-pill:hover {
  background: #e2e8f0;
  color: #0f2b47;
}

.fm-pill.active {
  background: #0f2b47;
  border-color: #0f2b47;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 43, 71, 0.2);
}

/* ── 3. Buồng lái Bản Đồ Tương Tác Cỡ Lớn (Wide Map Cockpit) ── */
.fm-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 56px;
}

.fm-map-stage {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 43, 71, 0.08);
}

.fm-map-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: #0f2b47;
  color: #ffffff;
}

.fm-map-zooms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fm-map-topbar-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-right: 4px;
}

.fm-zoom-btn,
.fm-layer-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.fm-zoom-btn:hover,
.fm-layer-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.fm-zoom-btn.active {
  background: #e84038;
  border-color: #e84038;
  color: #ffffff;
}

.fm-map-layers {
  display: flex;
  gap: 6px;
}

.fm-layer-btn.active {
  background: #facc15;
  border-color: #facc15;
  color: #0f2b47;
}

.fm-map-canvas {
  width: 100%;
  height: 560px;
  flex: 1;
  background: #dbeafe;
  z-index: 1;
}

.fm-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 11px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
}

.fm-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fm-map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Cột Danh bạ định vị nhanh bên phải Bản đồ */
.fm-side-dir {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 660px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 43, 71, 0.07);
}

.fm-side-head {
  padding: 16px 18px 12px;
  background: #0f2b47;
  color: #ffffff;
}

.fm-side-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.fm-side-head p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.fm-side-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-side-list::-webkit-scrollbar {
  width: 6px;
}

.fm-side-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.fm-side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.16s ease;
}

.fm-side-item:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.fm-side-item.active {
  border-color: #e84038;
  background: #fff1f0;
  box-shadow: 0 2px 10px rgba(232, 64, 56, 0.12);
}

.fm-side-thumb {
  width: 64px !important;
  height: 64px !important;
  border-radius: 10px;
  object-fit: cover !important;
  flex-shrink: 0;
  background: #0f2b47;
}

.fm-side-info {
  flex: 1;
  min-width: 0;
}

.fm-side-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 11.5px;
}

.fm-side-num {
  color: #ffffff;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
}

.fm-side-star {
  color: #d97706;
  font-weight: 800;
}

.fm-side-star small {
  color: #64748b;
  font-weight: 600;
}

.fm-side-dist {
  margin-left: auto;
  color: #0369a1;
  font-weight: 700;
}

.fm-side-title {
  margin: 0 0 4px;
  font-size: 13.8px;
  font-weight: 800;
  color: #0f2b47;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-side-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #059669;
  font-weight: 700;
}

.fm-side-jump {
  color: #e84038 !important;
  font-weight: 800;
  font-size: 11.5px;
  text-decoration: none;
  background: #fff1f0;
  padding: 2px 8px;
  border-radius: 6px;
}

.fm-side-jump:hover {
  background: #e84038;
  color: #ffffff !important;
}

/* Custom Pins trên bản đồ Leaflet */
.fm-pin-custom {
  background: transparent;
  border: none;
}

.fm-pin-bubble {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  background: var(--pin-bg, #e84038);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fm-pin-bubble:hover {
  transform: rotate(-45deg) scale(1.22);
  z-index: 999;
}

/* Hiệu ứng Dấu Ghim Đỏ Nổi Bật khi được chọn (Pulsing Red Pin) */
.fm-pin-bubble.is-active {
  --pin-bg: #dc2626 !important;
  background: #dc2626 !important;
  transform: rotate(-45deg) scale(1.38) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 20px rgba(220, 38, 38, 0.85), 0 8px 18px rgba(0, 0, 0, 0.5) !important;
  animation: fm-pulse-red 1.6s infinite ease-out;
  z-index: 99999 !important;
}

@keyframes fm-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8), 0 0 0 3px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(220, 38, 38, 0), 0 0 0 3px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 0 3px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

.fm-pin-bubble span {
  transform: rotate(45deg);
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1;
}

.fm-pin-nw-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f2b47;
  border: 3px solid #facc15;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(15, 43, 71, 0.55);
  line-height: 1;
}

.fm-pin-nw-inner span {
  font-size: 8.5px;
  font-weight: 800;
  color: #facc15;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Popup trong bản đồ có ảnh ngang đẹp mắt */
.fm-popup {
  min-width: 240px;
  font-family: system-ui, -apple-system, sans-serif;
}

.fm-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #0f2b47;
}

.fm-popup-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.fm-popup-star {
  color: #d97706;
  font-weight: 800;
}

.fm-popup-dist {
  color: #0369a1;
  font-weight: 700;
}

.fm-popup h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0 0 5px;
  line-height: 1.3;
}

.fm-popup-must {
  font-size: 12.5px;
  color: #334155;
  margin: 0 0 6px;
  line-height: 1.4;
}

.fm-popup-meta {
  font-size: 12.5px;
  font-weight: 800;
  color: #059669;
  margin-bottom: 10px;
}

.fm-popup-btns {
  display: flex;
  gap: 8px;
}

.fm-popup-btns a {
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.fm-pop-scroll {
  background: #f1f5f9;
  color: #0f2b47 !important;
}

.fm-pop-gmap {
  background: #e84038;
  color: #ffffff !important;
}

/* ── 4. Lưới 3 Cột (Magazine Grid) Danh sách 48 Quán Ăn ── */
.fm-cards-section {
  margin-bottom: 64px;
}

.fm-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.fm-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 43, 71, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  scroll-margin-top: 90px;
}

.fm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 43, 71, 0.11);
}

/* Khung ảnh ngang cố định 235px — KHÔNG BAO GIỜ bị kéo giãn dọc */
.fm-card-media {
  position: relative;
  width: 100%;
  height: 235px;
  flex-shrink: 0;
  background: #0f2b47;
  overflow: hidden;
}

.fm-card-media > img.fm-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fm-card:hover .fm-card-media > img.fm-main-img {
  transform: scale(1.03);
}

.fm-badge-highlight {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-badge-rating {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #facc15;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 9px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.fm-badge-rating small {
  color: #e2e8f0;
  font-weight: 600;
}

.fm-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fm-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.fm-tag-cat {
  font-weight: 700;
  color: #0f2b47;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 7px;
}

.fm-tag-dist {
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 7px;
}

.fm-card-title {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f2b47;
  margin: 2px 0;
  line-height: 1.35;
}

.fm-card-meta {
  font-size: 13.5px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.fm-meta-row {
  line-height: 1.45;
}

.fm-card-meta strong {
  color: #059669;
}

.fm-card-space {
  font-size: 12.5px;
  color: #0369a1;
  font-weight: 600;
}

.fm-card-must {
  background: #fffbeb;
  border-left: 3.5px solid #f59e0b;
  padding: 9px 12px;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.5;
}

.fm-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Hộp thu gọn Thực đơn & Đánh giá giúp lưới thẻ đều tăm tắp */
.fm-card-menu,
.fm-card-extra,
.fm-dish-more {
  background: #fffdf9;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
}

.fm-card-extra,
.fm-dish-more {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.fm-card-menu summary,
.fm-card-extra summary,
.fm-dish-more summary {
  font-weight: 800;
  color: #c2410c;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fm-card-extra summary,
.fm-dish-more summary {
  color: #0f2b47;
}

.fm-card-menu summary::-webkit-details-marker,
.fm-card-extra summary::-webkit-details-marker,
.fm-dish-more summary::-webkit-details-marker {
  display: none;
}

.fm-card-menu summary::after,
.fm-card-extra summary::after,
.fm-dish-more summary::after {
  content: "▾";
  font-size: 14px;
  opacity: 0.75;
}

.fm-card-menu[open] summary::after,
.fm-card-extra[open] summary::after,
.fm-dish-more[open] summary::after {
  content: "▴";
}

.fm-card-menu ul {
  margin: 8px 0 2px;
  padding-left: 18px;
  color: #431407;
  line-height: 1.65;
}

.fm-card-extra-body,
.fm-dish-more-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-card-rev {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 8px 11px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.fm-card-tip {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.fm-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.fm-btn-locate,
.fm-btn-gmap,
.fm-btn-article {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.fm-btn-locate {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f2b47;
}

.fm-btn-locate:hover {
  background: #e2e8f0;
}

.fm-btn-gmap {
  background: #0f2b47;
  color: #ffffff !important;
}

.fm-btn-gmap:hover {
  background: #1e3a5f;
  text-decoration: none;
}

.fm-btn-article {
  background: #fff1f0;
  color: #e84038 !important;
  border: 1px solid #fecaca;
}

.fm-btn-article:hover {
  background: #e84038;
  color: #ffffff !important;
  text-decoration: none;
}

/* ── 5. Bách khoa toàn thư 24 Món Đặc Sản Chi Tiết (Lưới 3 cột) ── */
.fm-dishes-sec {
  margin-bottom: 64px;
}

.fm-dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.fm-dish-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 43, 71, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-dish-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 43, 71, 0.1);
}

.fm-dish-head {
  border-bottom: 1px solid #f1f5f9;
}

.fm-dish-img {
  position: relative;
  width: 100%;
  height: 230px;
  background: #0f2b47;
  overflow: hidden;
}

.fm-dish-img > img.fm-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-dish-num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e84038;
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.fm-dish-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 43, 71, 0.9);
  color: #fde047;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.fm-dish-title-box {
  padding: 16px 20px 14px;
  background: #f8fafc;
}

.fm-dish-title-box h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0 0 8px;
  line-height: 1.35;
}

.fm-dish-quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #334155;
}

.fm-dish-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.fm-dish-block {
  background: #f8fafc;
  border-left: 3px solid #0ea5e9;
  padding: 10px 13px;
  border-radius: 0 10px 10px 0;
}

.fm-dish-block.fm-dish-sauce {
  background: #fffbeb;
  border-left-color: #d97706;
}

.fm-dish-block.fm-dish-how {
  background: #f0fdf4;
  border-left-color: #16a34a;
}

.fm-dish-block h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0 0 5px;
}

.fm-dish-block p {
  font-size: 13.5px;
  line-height: 1.58;
  color: #334155;
  margin: 0;
}

.fm-dish-places {
  background: #fff1f2;
  border: 1px dashed #fda4af;
  border-radius: 10px;
  padding: 10px 14px;
}

.fm-dish-places h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #9f1239;
  margin: 0 0 6px;
}

.fm-dish-places ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #881337;
  line-height: 1.55;
}

.fm-dish-foot {
  margin-top: auto;
  padding-top: 8px;
}

.fm-dish-readmore {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #e84038 !important;
  text-decoration: none;
}

.fm-dish-readmore:hover {
  text-decoration: underline;
}

/* ── 6. Khối Lịch Trình Gợi Ý (Food Tour Itineraries) ── */
.fm-itineraries {
  margin-bottom: 60px;
}

.fm-sec-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
}

.fm-sec-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e84038;
  background: #fff1f0;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.fm-sec-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0 0 10px;
  line-height: 1.28;
}

.fm-sec-head p {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.62;
  margin: 0;
}

.fm-itin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fm-itin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 6px 20px rgba(15, 43, 71, 0.05);
}

.fm-itin-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0 0 8px;
}

.fm-itin-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.5;
}

.fm-itin-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm-itin-step {
  background: #f8fafc;
  border-left: 3.5px solid #e84038;
  padding: 11px 15px;
  border-radius: 0 10px 10px 0;
}

.fm-itin-time {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #e84038;
  margin-bottom: 3px;
}

.fm-itin-step p {
  margin: 0;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.55;
}

/* ── 7. Cụm bài viết chuyên sâu từng món ── */
.fm-deep-links {
  margin-bottom: 60px;
}

.fm-guide-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fm-guide-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fm-guide-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 43, 71, 0.09);
  text-decoration: none;
}

.fm-guide-item img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 12px;
  object-fit: cover !important;
  flex-shrink: 0;
}

.fm-guide-item span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #e84038;
  margin-bottom: 4px;
}

.fm-guide-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f2b47;
  margin: 0;
  line-height: 1.38;
}

/* ── 8. Khối CTA Đặt Villa ── */
.fm-cta-villa {
  background: linear-gradient(135deg, #0f2b47 0%, #1e3a5f 55%, #8a201b 100%);
  border-radius: 24px;
  padding: 44px 36px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 14px 36px rgba(15, 43, 71, 0.22);
}

.fm-cta-content {
  max-width: 780px;
  margin: 0 auto;
}

.fm-cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fde047;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.fm-cta-content h2 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.fm-cta-content p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 26px;
}

.fm-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.fm-btn-primary {
  background: #e84038;
  color: #ffffff !important;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15.5px;
  box-shadow: 0 4px 16px rgba(232, 64, 56, 0.4);
}

.fm-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
}

/* ── Mini Photo Gallery Strip on Restaurant & Dish Cards ── */
.fm-thumb-strip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  background: rgba(11, 26, 45, 0.78);
  padding: 4px;
  border-radius: 9px;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.fm-thumb-btn {
  width: 40px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #0f2b47;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.fm-thumb-btn:hover {
  transform: scale(1.08);
  border-color: #fde047;
}

.fm-thumb-btn.active {
  border-color: #e84038;
  box-shadow: 0 0 0 1px #ffffff;
}

.fm-thumb-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* ── Responsive cho Màn hình Laptop vừa, Tablet & Mobile ── */
@media (max-width: 1240px) {
  .fm-cards-grid,
  .fm-dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fm-cockpit {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media (max-width: 980px) {
  .fm-cockpit {
    grid-template-columns: 1fr;
  }
  .fm-map-canvas {
    height: 440px;
  }
  .fm-side-dir {
    height: 380px;
  }
  .fm-zones,
  .fm-guide-links {
    grid-template-columns: 1fr;
  }
  .fm-itin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .fm-container {
    padding: 0 14px;
  }
  .fm-cards-grid,
  .fm-dish-grid {
    grid-template-columns: 1fr;
  }
  .fm-filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .fm-qnav-item.fm-qnav-alt {
    margin-left: 0;
  }
  .fm-cta-villa {
    padding: 30px 20px;
  }
  .fm-cta-content h2,
  .fm-sec-head h2 {
    font-size: 23px;
  }
}
