/* === THMM menu.css (cleaned) === */

.thmm{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;

  --thmm-top-color: #ffffff;
  --thmm-burger-color: #111827;
  --thmm-burger-bg: rgba(255,255,255,0.70);

  --thmm-maxw: 1400px;
  --thmm-mega-top: 90px;

  z-index: 10000;
}

/* Alignment from widget */
.thmm[data-align="right"]{ justify-content: flex-end; }
.thmm[data-align="left"]{ justify-content: flex-start; }
.thmm[data-align="center"]{ justify-content: center; }

/* Toggle align (MOBILE ONLY) */
@media (max-width: 1024px){
  .thmm.thmm-is-mobile[data-toggle-align="left"]{ justify-content: flex-start; }
  .thmm.thmm-is-mobile[data-toggle-align="center"]{ justify-content: center; }
  .thmm.thmm-is-mobile[data-toggle-align="right"]{ justify-content: flex-end; }
}

/* Burger */
.thmm-burger{
  display: none; /* enabled via .thmm-is-mobile */
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--thmm-burger-bg);
  cursor: pointer;
  padding: 10px;
  color: var(--thmm-burger-color);
  position: relative;
  z-index: 10002;

  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.thmm-burger:focus{
  outline: 2px solid rgba(90,60,220,0.35);
  outline-offset: 2px;
}

.thmm-burger__bar{
  display: block;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  border-radius: 2px;
}

/* Top menu */
.thmm-top{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 10002;
}
.thmm-top > li{ position: static; }

.thmm-top a.thmm-link{
  color: var(--thmm-top-color);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 20px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.thmm-top .thmm-caret{
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--thmm-top-color);
  transform: translateY(1px);
}

/* Mega */
.thmm-mega{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--thmm-mega-top);
  width: 100vw;
  display: none;
  z-index: 10001;
}
.thmm-item.is-open > .thmm-mega{ display: block; }

.thmm-mega__glass{
  position: relative;
  width: 100vw;
  background: rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  color: #1b2430;
}
.thmm-mega__glass::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(120,190,255,0.12), rgba(120,190,255,0.03));
  pointer-events: none;
}

.thmm-mega__inner{
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 18px 14px 22px;
  max-width: var(--thmm-maxw);
}

.thmm-mega__layout{
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

/* Countries */
.thmm-countries{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thmm-country{
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  color: #1b2430;
  text-decoration: none;
  font-weight: 850;
  font-size: 18px;
}
.thmm-country.is-active{ background: rgba(255,255,255,0.30); }

/* States */
.thmm-states{
  position: relative;
  max-height: none;
  overflow: visible;
  padding: 6px 8px;
}

/* 5 real columns (rendered by JS) */
.thmm-state-cols{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.thmm-state-col{
  margin: 0;
  padding: 0;
  list-style: none;
}
.thmm-state-col > li{
  margin: 0;
  padding: 4px 0;
}

.thmm-state{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #1b2430;
  font-weight: 750;
  font-size: 18px;
}
.thmm-state:hover{ background: rgba(255,255,255,0.22); }
.thmm-state .thmm-arrow{
  opacity: 0.75;
  font-weight: 900;
  margin-left: 10px;
}

/* Flyout */
.thmm-flyout{
  position: absolute;
  display: none;
  width: 320px;
  z-index: 20;
}
.thmm-flyout.is-open{ display: block; }

.thmm-flyout__box{
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px;
  max-height: 52vh;
  overflow: auto;
}

.thmm-city{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #1b2430;
  font-weight: 700;
}
.thmm-city:hover{ background: rgba(20,40,80,0.06); }

/* Blog mega */
.thmm-blog-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 190px)); /* smaller tiles, 4 per row */
  justify-content: start; /* change to center if you want centered rows */
  gap: 12px;
}

.thmm-blog-tile{
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  color: #1b2430;
}
.thmm-blog-tile img{
  width: 100%;
  aspect-ratio: 1 / 1;   /* square */
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.thmm-blog-tile__title{
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 10px;
  font-weight: 850;
}

.thmm-blog-cta{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.thmm-blog-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
  background: rgba(90, 60, 220, 0.95);
  color: #fff;
}

/* Mobile overlay */
.thmm-overlay{
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(8, 12, 18, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.thmm-overlay__page{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.10);
}
.thmm-overlay__topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.thmm-overlay__close,
.thmm-overlay__back{
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 850;
}
.thmm-overlay__content{
  padding: 12px 14px 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.thmm-mitem{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 10px;
}
.thmm-mitem a{
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  flex: 1;
  font-size: 16px;
}
.thmm-mbtn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.thmm-sublist{
  margin: 8px 0 12px 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.20);
}
.thmm-sublist a{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(0,0,0,0.12);
  margin: 8px 0;
  font-weight: 850;
}
.thmm-sublist.is-scroll{
  max-height: 45vh;
  overflow: auto;
}

/* Mobile mode controlled by JS class */
.thmm.thmm-is-mobile .thmm-burger{ display: inline-flex !important; }
.thmm.thmm-is-mobile .thmm-top{ display: none !important; }

/* Extra hardening for tablet/mobile burger visibility */
@media (max-width: 1024px){
  .thmm .thmm-burger{
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;

    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;

    background: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(0,0,0,0.10) !important;

    color: #111827 !important;

    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 12px !important;
  }

  .thmm .thmm-burger__bar{
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: currentColor !important;
    border-radius: 2px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .thmm .thmm-top{
    display: none !important;
  }
}
/* ===== Blog tiles: image LEFT, title RIGHT (force visible text) ===== */
.thmm-blog-tile{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.thmm-blog-tile img{
  flex: 0 0 150px;     /* smaller image so title has room */
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.thmm-blog-tile__title{
  flex: 1;            /* take remaining space */
  min-width: 0;       /* IMPORTANT: allow wrapping instead of clipping */
  padding: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
  color: #1b2430;
  white-space: normal;
  word-break: break-word;
}
/* 4 per row, but give each tile more room for right-side text */
.thmm-blog-grid{
  grid-template-columns: repeat(4, minmax(0, 300px));
}
/* When THMM overlay is open, hide ALL hotel card tag pills (broader selector) */
body.thmm-menu-open .chc-tag{
  display: none !important;
}
