/* Hamakom Blog Design 1.8.0 - travel style (passport stamps, boarding pass, luggage tags) */
.hbd-travel,
.hbd-travel-home,
.hbd-travel-scope {
  --hbt-deep: var(--hbd-deep, #0c6671);
  --hbt-ink: var(--hbd-ink, #123f42);
  --hbt-soft: var(--hbd-soft, #f2faf8);
  --hbt-soft-2: var(--hbd-soft-2, #e9f7f4);
  --hbt-muted: var(--hbd-muted, #6f8183);
  --hbt-line: var(--hbd-line, rgba(18, 63, 66, 0.11));
  --hbt-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------- passport stamp on cards ---------- */
.hbd-card__mediawrap { position: relative; }
.hbd-stamp {
  position: absolute;
  left: 16px;
  bottom: -24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  box-sizing: border-box;
  border: 2px solid var(--hbt-deep);
  border-radius: 50%;
  outline: 1px solid var(--hbt-deep);
  outline-offset: -7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--hbt-deep);
  transform: rotate(-10deg);
  pointer-events: none;
  text-align: center;
  line-height: 1.1;
  transition: transform .25s ease;
}
.hbd-card:hover .hbd-stamp { transform: rotate(-4deg) scale(1.04); }
.hbd-stamp__top { max-width: 58px; overflow: hidden; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; direction: ltr; }
.hbd-stamp__code { font-family: var(--hbt-mono); font-size: 19px; font-weight: 700; direction: ltr; }
.hbd-stamp__date { font-size: 8px; font-weight: 800; letter-spacing: .06em; direction: ltr; }
.hbd-stamp--name .hbd-stamp__code { max-width: 58px; font-family: inherit; font-size: 12px; font-weight: 800; white-space: normal; direction: rtl; }
.hbd-card--compact .hbd-stamp { width: 60px; height: 60px; left: 12px; bottom: -18px; outline-offset: -6px; }
.hbd-card--compact .hbd-stamp__code { font-size: 15px; }
.hbd-card--compact .hbd-stamp__top,
.hbd-card--compact .hbd-stamp__date { font-size: 7px; }

/* ---------- luggage-tag category chip ---------- */
.hbd-chip--tag {
  gap: 7px;
  align-items: center;
  padding: 6px 12px 6px 11px;
  border-radius: 6px 999px 999px 6px;
}
.hbd-chip--tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .75;
}

.hbd-travel .hbd-category-nav a { border-radius: 8px 23px 23px 8px; }
.hbd-travel .hbd-category-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .55;
}

/* ---------- airport code on destination chips ---------- */
.hbd-code {
  font-family: var(--hbt-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--hbt-deep);
  direction: ltr;
}

/* ---------- dotted flight path in section headings ---------- */
.hbd-travel .hbd-section-heading > div { order: 0; }
.hbd-travel .hbd-section-heading > a { order: 2; }
.hbd-travel .hbd-section-heading::before,
.hbd-travel .hbd-section-heading::after {
  content: "";
  order: 1;
  align-self: center;
  margin-top: 26px;
}
.hbd-travel .hbd-section-heading::before {
  flex: 1 1 60px;
  min-width: 40px;
  height: 4px;
  background: radial-gradient(circle, rgba(12, 102, 113, .35) 1.4px, transparent 1.8px) right center / 9px 4px repeat-x;
}
.hbd-travel .hbd-section-heading::after {
  flex: 0 0 22px;
  height: 22px;
  margin-inline-start: -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c6671' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(225 12 12)'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/g%3E%3C/svg%3E") center / 22px no-repeat;
}
@media (max-width: 760px) {
  .hbd-travel .hbd-section-heading::before,
  .hbd-travel .hbd-section-heading::after { display: none; }
}

/* ---------- boarding pass (lead article) ---------- */
.hbd-featured-grid--pass { grid-template-columns: 1fr; }
.hbd-featured-grid--pass .hbd-featured-grid__side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .hbd-featured-grid--pass .hbd-featured-grid__side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hbd-pass {
  display: flex;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--hbt-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(18, 63, 66, .10);
  color: var(--hbt-ink);
  font-family: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hbd-pass:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(18, 63, 66, .13); }
.hbd-pass__media { flex: 0 0 36%; display: block; overflow: hidden; background: var(--hbt-deep); }
.hbd-pass__image { width: 100%; height: 100% !important; object-fit: cover; transition: transform .35s ease; }
.hbd-pass:hover .hbd-pass__image { transform: scale(1.03); }
.hbd-pass__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 30px 34px; }

.hbd-route { display: flex; align-items: center; gap: 14px; }
.hbd-route__end { display: flex; flex-direction: column; gap: 2px; }
.hbd-route__end--to { align-items: flex-end; }
.hbd-route__end small { color: var(--hbt-muted); font-size: 12px; }
.hbd-route__end b { font-family: var(--hbt-mono); font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1; letter-spacing: .06em; direction: ltr; }
.hbd-route__end--to b { color: var(--hbt-deep); }
.hbd-route__line { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; color: var(--hbt-deep); }
.hbd-route__line i { flex: 1 1 auto; border-top: 2px dotted rgba(12, 102, 113, .35); }
.hbd-route__line .hbd-plane { flex: 0 0 auto; transform: rotate(225deg); }

.hbd-pass__title { margin: 0 0 8px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.hbd-pass__title a { color: inherit !important; text-decoration: none; }
.hbd-pass__excerpt { margin: 0; color: var(--hbt-muted); font-size: 16px; line-height: 1.7; }

.hbd-pass__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--hbt-line); }
.hbd-pass__fields div { min-width: 0; }
.hbd-pass__fields dt { color: var(--hbt-muted); font-size: 11px; }
.hbd-pass__fields dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; }

.hbd-pass__stub {
  position: relative;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 22px;
  border-right: 2px dashed rgba(18, 63, 66, .14);
  background: #fbfdfc;
}
.hbd-pass__stub::before,
.hbd-pass__stub::after {
  content: "";
  position: absolute;
  right: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hbt-soft);
}
.hbd-pass__stub::before { top: -12px; }
.hbd-pass__stub::after { bottom: -12px; }
.hbd-pass__stub-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hbd-pass__stub-head span { color: var(--hbt-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hbd-pass__stub-head b { font-family: var(--hbt-mono); font-size: 20px; direction: ltr; }
.hbd-pass__barcode {
  width: 140px;
  height: 50px;
  opacity: .78;
  background: repeating-linear-gradient(90deg, var(--hbt-ink) 0 2px, transparent 2px 4px, var(--hbt-ink) 4px 5px, transparent 5px 8px, var(--hbt-ink) 8px 11px, transparent 11px 13px);
}
.hbd-pass__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  background: var(--hbt-deep);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background .18s ease;
}
.hbd-pass__cta:hover { background: var(--hbt-ink); }

@media (max-width: 900px) {
  .hbd-pass { flex-direction: column; }
  .hbd-pass__media { flex-basis: auto; aspect-ratio: 16 / 9; }
  .hbd-pass__main { padding: 22px 20px; }
  .hbd-pass__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbd-pass__stub { flex-basis: auto; flex-direction: row; padding: 18px 20px; border-right: 0; border-top: 2px dashed rgba(18, 63, 66, .14); }
  .hbd-pass__stub::before,
  .hbd-pass__stub::after { top: -12px; bottom: auto; right: auto; }
  .hbd-pass__stub::before { right: -12px; }
  .hbd-pass__stub::after { left: -12px; }
  .hbd-pass__barcode { display: none; }
  .hbd-pass__cta { width: auto; padding: 0 22px; }
}

/* ---------- 1.8.1 ---------- */
.hbd-pass--lead { margin-bottom: 28px; }
.hbd-embed { background: transparent; }
.hbd-embed .hbd-section-heading h2 { font-size: clamp(28px, 3.2vw, 42px); }

/* Theme / Elementor global heading colors were winning over the card titles. */
.hbd-page .hbd-card .hbd-card__title,
.hbd-page .hbd-card .hbd-card__title a,
.hbd-page .hbd-pass .hbd-pass__title,
.hbd-page .hbd-pass .hbd-pass__title a,
.hbd-travel-scope .hbd-pass .hbd-pass__title a {
  color: var(--hbt-ink) !important;
}
.hbd-page .hbd-card .hbd-card__title a:hover,
.hbd-page .hbd-pass .hbd-pass__title a:hover { color: var(--hbt-deep) !important; }

@media (max-width: 560px) {
  .hbd-pass { border-radius: 22px; }
  .hbd-pass__main { gap: 14px; padding: 18px 16px; }
  .hbd-route { gap: 10px; }
  .hbd-route__end b { font-size: 26px; }
  .hbd-route__end small { font-size: 11px; }
  .hbd-route__line .hbd-plane { width: 20px; height: 20px; }
  .hbd-pass__title { font-size: 21px; }
  .hbd-pass__excerpt { font-size: 15px; line-height: 1.65; }
  .hbd-pass__fields { gap: 10px 12px; padding-top: 12px; }
  .hbd-pass__fields dd { font-size: 14px; }
  .hbd-pass__stub { gap: 12px; padding: 14px 16px; }
  .hbd-pass__stub-head { align-items: flex-start; text-align: right; }
  .hbd-pass__stub-head span { font-size: 11px; }
  .hbd-pass__stub-head b { font-size: 16px; }
  .hbd-pass__cta { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .hbd-stamp { width: 66px; height: 66px; left: 12px; bottom: -20px; }
  .hbd-stamp__code { font-size: 17px; }
}
.hbd-stamp--long .hbd-stamp__top { font-size: 7px; letter-spacing: .05em; }

/* Embedded in the homepage HTML block (.hm-home .hm-section h2 rules use !important). */
.hbd-embed .hbd-pass .hbd-pass__title {
  margin: 0 0 8px !important;
  font-size: clamp(22px, 2.3vw, 30px) !important;
  line-height: 1.3 !important;
  letter-spacing: -.015em !important;
}
.hbd-embed .hbd-card .hbd-card__title {
  margin: 12px 0 9px !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  letter-spacing: -.015em !important;
}
.hbd-embed .hbd-card--compact .hbd-card__title { font-size: 17px !important; }
@media (max-width: 560px) {
  .hbd-embed .hbd-pass .hbd-pass__title { font-size: 21px !important; }
}

/* ---------- 1.8.7: flight routes ----------
   Base layer: static dotted routes as a cached background image (no repaint, no JS).
   When assets/js/hbd-routes.js decides the device can afford it, it adds .hbd-routes-live,
   the static backgrounds go away and each section on screen gets its own small animated SVG. */
.hbd-routes main.hbd-page:not(.hbd-single),
.hbd-routes .hm-home .hm-section {
  background-image: url("../img/routes-a-static.svg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 1440px auto;
}
.hbd-routes .hm-home .hm-section { background-repeat: no-repeat; }
.hbd-routes .hm-home .hm-section:nth-of-type(even) { background-image: url("../img/routes-b-static.svg"); background-position: center 40px; }
@media (max-width: 760px) {
  .hbd-routes main.hbd-page:not(.hbd-single),
  .hbd-routes .hm-home .hm-section,
  .hbd-routes .hm-home .hm-section:nth-of-type(even) {
    background-image: url("../img/routes-m-static.svg");
    background-size: 100% auto;
    background-position: center top;
  }
  .hbd-routes .hm-home .hm-section,
  .hbd-routes .hm-home .hm-section:nth-of-type(even) { background-position: center bottom; }
}
.hbd-routes-live .hbd-routes main.hbd-page:not(.hbd-single),
.hbd-routes-live .hbd-routes .hm-home .hm-section,
.hbd-routes-live .hbd-routes .hm-home .hm-section:nth-of-type(even) { background-image: none; }
.hbd-route-host { position: relative; isolation: isolate; }
.hbd-route-live {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
  contain: strict;
}
@media print {
  .hbd-routes main.hbd-page, .hbd-routes .hm-home .hm-section { background-image: none !important; }
  .hbd-route-live { display: none; }
}
.hbd-route-plane {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 24px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hbd-route-plane svg { display: block; }
.hbd-route-plane.is-small { width: 22px; height: 22px; }
.hbd-route-plane.is-small svg { width: 22px; height: 22px; }
.hbd-route-live { will-change: opacity; }
@media print { .hbd-route-plane { display: none; } }

/* ---------- 1.9.3: compact cards in the /guides/ featured grid on phones ---------- */
@media (max-width: 767px) {
  .hbd-featured-grid--pass .hbd-featured-grid__side { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hbd-featured-grid__side .hbd-card--compact {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    align-items: stretch;
    min-height: 118px;
    overflow: hidden;
  }
  .hbd-featured-grid__side .hbd-card--compact .hbd-card__mediawrap { position: relative; height: 100%; min-height: 118px; }
  .hbd-featured-grid__side .hbd-card--compact .hbd-card__media {
    position: absolute; inset: 0;
    height: 100%; aspect-ratio: auto;
    border: 0; border-radius: 0;
  }
  .hbd-featured-grid__side .hbd-card--compact .hbd-card__image { width: 100%; height: 100% !important; object-fit: cover; }
  .hbd-featured-grid__side .hbd-card--compact .hbd-card__body {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    min-width: 0; padding: 12px 16px;
  }
  .hbd-featured-grid__side .hbd-card--compact .hbd-card__title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0; font-size: 16px; line-height: 1.4;
    word-break: normal; overflow-wrap: anywhere;
  }
  .hbd-featured-grid__side .hbd-card--compact .hbd-card__meta { display: flex; gap: 6px; margin: 0; font-size: 12px; }
  /* Stamp stays inside the photo instead of hanging off the bottom edge. */
  .hbd-featured-grid__side .hbd-card--compact .hbd-stamp {
    left: 8px; right: auto; bottom: 8px;
    width: 46px; height: 46px;
    border-width: 1.5px; outline-offset: 1px;
  }
  .hbd-featured-grid__side .hbd-card--compact .hbd-stamp__top,
  .hbd-featured-grid__side .hbd-card--compact .hbd-stamp__date { display: none; }
  .hbd-featured-grid__side .hbd-card--compact .hbd-stamp__code { font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 980px) {
  /* Two columns on tablets: keep the cards vertical so the text has room. */
  .hbd-featured-grid__side .hbd-card--compact { display: flex; flex-direction: column; }
}
