/* ========================================================================
 * SAYYARATI V84.51 — TOURISM DIRECTORY COMPACT LAYOUT
 * ------------------------------------------------------------------------
 * This file is the final layout authority for:
 *   /tourism?tab=hotels
 *   /tourism?tab=tourist_places
 *   /tourism?tab=religious_sites
 *
 * Why it exists:
 * Older lifestyle styles changed the hero from a row to a column but kept
 * justify-content: space-between. That distributed the icon, title and add
 * button across a tall card and created a large empty area. The rules below
 * replace that behaviour with a fixed grid whose height follows its content.
 * ====================================================================== */

body.lifestyle-v77-body .lifestyle-v77{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  width:min(1180px,100%)!important;
  margin:0 auto!important;
  padding-top:16px!important;
}
body.lifestyle-v77-body .lifestyle-v77 > *{
  margin-top:0!important;
  margin-bottom:0!important;
}

/* ------------------------------------------------------------------------
 * Hero: icon + title + contextual add action in one compact row.
 * ---------------------------------------------------------------------- */
body.lifestyle-v77-body .lifestyle-v77__hero{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) auto!important;
  grid-template-areas:"icon copy action"!important;
  align-items:center!important;
  justify-content:initial!important;
  align-content:center!important;
  gap:14px!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:14px 16px!important;
  border-radius:22px!important;
  overflow:visible!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero-copy{
  grid-area:copy!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero-copy .lifestyle-v77__eyebrow{
  display:inline-flex!important;
  margin:0!important;
  padding:4px 9px!important;
  font-size:10px!important;
  line-height:1.15!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero-copy h1{
  margin:0!important;
  color:#14213d!important;
  font-size:clamp(22px,3vw,31px)!important;
  font-weight:1000!important;
  line-height:1.18!important;
  white-space:normal!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero-icon{
  grid-area:icon!important;
  position:static!important;
  align-self:center!important;
  justify-self:center!important;
  order:initial!important;
  width:68px!important;
  height:68px!important;
  min-width:68px!important;
  min-height:68px!important;
  flex:0 0 68px!important;
  margin:0!important;
  border-radius:19px!important;
  transform:none!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero-icon img{
  display:block!important;
  width:58px!important;
  height:58px!important;
  max-width:58px!important;
  max-height:58px!important;
  margin:auto!important;
  object-fit:contain!important;
}

/* Both user-project and administration add actions use the same slot. */
body.lifestyle-v77-body .lifestyle-v77__hero > .section-context-add-v8419,
body.lifestyle-v77-body .lifestyle-v77__hero > .section-admin-add-v8418{
  grid-area:action!important;
  position:static!important;
  inset:auto!important;
  align-self:center!important;
  justify-self:end!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  max-width:190px!important;
  min-height:42px!important;
  height:auto!important;
  margin:0!important;
  padding:8px 13px!important;
  border-radius:13px!important;
  transform:none!important;
  white-space:normal!important;
  line-height:1.25!important;
  text-align:center!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero > .section-context-add-v8419 svg,
body.lifestyle-v77-body .lifestyle-v77__hero > .section-admin-add-v8418 svg{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}

/* Wizard containers are overlays and must never participate in hero sizing. */
body.lifestyle-v77-body .lifestyle-v77__hero > .content-wizard-v8419,
body.lifestyle-v77-body .lifestyle-v77__hero > .admin-public-wizard-v8418{
  grid-area:auto!important;
}
body.lifestyle-v77-body .lifestyle-v77__hero > .content-wizard-v8419[hidden],
body.lifestyle-v77-body .lifestyle-v77__hero > .admin-public-wizard-v8418[hidden]{
  display:none!important;
}

/* ------------------------------------------------------------------------
 * Tabs, filters and results: compact vertical rhythm with no phantom space.
 * ---------------------------------------------------------------------- */
body.lifestyle-v77-body .lifestyle-v77__tabs{
  position:relative!important;
  top:auto!important;
  width:100%!important;
  margin:0!important;
  padding:8px!important;
  gap:8px!important;
  border-radius:20px!important;
}
body.lifestyle-v77-body .lifestyle-v77__tabs a{
  min-height:112px!important;
  height:auto!important;
  padding:10px 7px!important;
  border-radius:17px!important;
}
body.lifestyle-v77-body .lifestyle-v77__tabs .life-tab-icon{
  width:60px!important;
  height:60px!important;
  min-width:60px!important;
  min-height:60px!important;
  flex-basis:60px!important;
  border-radius:18px!important;
}
body.lifestyle-v77-body .lifestyle-v77__tabs .life-tab-icon img{
  width:54px!important;
  height:54px!important;
  max-width:54px!important;
  max-height:54px!important;
  object-fit:contain!important;
}
body.lifestyle-v77-body .lifestyle-v77__tabs .life-tab-label{
  font-size:13px!important;
  line-height:1.3!important;
}
body.lifestyle-v77-body .lifestyle-v77__filters{
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:12px!important;
  border-radius:19px!important;
}
body.lifestyle-v77-body .lifestyle-v77__results{
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
body.lifestyle-v77-body .lifestyle-v77__results-head{
  margin:0 0 10px!important;
}
body.lifestyle-v77-body .lifestyle-v77__grid,
body.lifestyle-v77-body .hotel-directory-grid-v8417{
  margin-top:0!important;
}

/* ------------------------------------------------------------------------
 * Tablet and phone.
 * ---------------------------------------------------------------------- */
@media(max-width:760px){
  body.lifestyle-v77-body .lifestyle-v77{
    gap:11px!important;
    padding:10px 9px 112px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero{
    grid-template-columns:52px minmax(0,1fr) auto!important;
    gap:9px!important;
    min-height:0!important;
    padding:10px 11px!important;
    border-radius:18px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-copy{
    align-items:flex-start!important;
    gap:1px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-copy .lifestyle-v77__eyebrow{
    display:none!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-copy h1{
    font-size:19px!important;
    line-height:1.2!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-icon{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    flex-basis:50px!important;
    border-radius:15px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-icon img{
    width:44px!important;
    height:44px!important;
    max-width:44px!important;
    max-height:44px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero > .section-context-add-v8419,
  body.lifestyle-v77-body .lifestyle-v77__hero > .section-admin-add-v8418{
    position:static!important;
    align-self:center!important;
    justify-self:end!important;
    width:auto!important;
    max-width:122px!important;
    min-height:36px!important;
    margin:0!important;
    padding:7px 9px!important;
    border-radius:11px!important;
    font-size:10.5px!important;
    white-space:normal!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero > .section-context-add-v8419 svg,
  body.lifestyle-v77-body .lifestyle-v77__hero > .section-admin-add-v8418 svg{
    width:15px!important;
    height:15px!important;
    flex-basis:15px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__tabs,
  body.lifestyle-v77-body .lifestyle-v77-tourism .lifestyle-v77__tabs{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    overflow:visible!important;
    gap:6px!important;
    padding:6px!important;
    border-radius:17px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__tabs a{
    min-width:0!important;
    min-height:104px!important;
    height:auto!important;
    padding:8px 3px!important;
    border-radius:15px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__tabs .life-tab-icon{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    flex-basis:56px!important;
    border-radius:17px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__tabs .life-tab-icon img{
    width:50px!important;
    height:50px!important;
    max-width:50px!important;
    max-height:50px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__tabs .life-tab-label{
    font-size:11.5px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__filters{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:10px!important;
    border-radius:17px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__filters input,
  body.lifestyle-v77-body .lifestyle-v77__filters select,
  body.lifestyle-v77-body .lifestyle-v77__filters .btn{
    min-height:45px!important;
  }
}

@media(max-width:390px){
  body.lifestyle-v77-body .lifestyle-v77__hero{
    grid-template-columns:46px minmax(0,1fr)!important;
    grid-template-areas:"icon copy" "action action"!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero > .section-context-add-v8419,
  body.lifestyle-v77-body .lifestyle-v77__hero > .section-admin-add-v8418{
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    margin-top:2px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-icon{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    flex-basis:44px!important;
  }
  body.lifestyle-v77-body .lifestyle-v77__hero-icon img{
    width:39px!important;
    height:39px!important;
    max-width:39px!important;
    max-height:39px!important;
  }
}
