@import url('https://fonts.cdnfonts.com/css/titillium-web');
@import url('https://fonts.cdnfonts.com/css/russo-one');

.llp-wrap {
  padding: 28px 0;
}

.llp-title {
  font-family: 'Russo One', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #001e5a;
}

.llp-filterbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #00479f;
  border: 1px solid #001e5a;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  flex-direction: row-reverse;
}

.llp-searchbar {
  font-family: 'Titillium Web', sans-serif;
  width: 100%;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  /* border-bottom: 1px solid rgba(17, 24, 39, .10); */
  padding: 6px 8px;
  background: transparent;
  /* min-width: 320px; */
}

.llp-search-input {
  font-family: 'Titillium Web', sans-serif;
  all: unset;
  padding: .5rem 0rem !important;
  border: none !important;
  outline: none;
  height: 32px;
  flex: 1 1 auto;
  font-weight: 700;
  background-color: transparent;
  color: #fff;
}

.llp-search-input::placeholder {
  font-family: 'Titillium Web', sans-serif;
  color: #fff;
  font-weight: 700;
}

.llp-search-btn,
.llp-search-btn:hover,
.llp-search-btn:active,
.llp-search-btn:focus {
  border: none;
  background: #fbaa1a !important;
  border-radius: 10px;
  width: 100px;
  height: 50px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.llp-search-btn svg {
  width: 30px;
  height: 30px
}

.llp-filterlabel {
  font-family: 'Titillium Web', sans-serif;
  width: 160px;
  font-weight: 700;
  color: #fff;
}

.llp-state-select {
  font-family: 'Titillium Web', sans-serif;
  width: 250px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-weight: 700;
  color: #001e5a;
  /* min-width: 220px; */
}

@media (max-width: 820px) {
  .llp-filterbar {
    flex-wrap: wrap
  }

  .llp-searchbar {
    margin-left: 0;
    min-width: 100%
  }
}

.llp-grid {
  display: grid;
  grid-template-columns: .5fr 1fr;
  gap: 20px;
  align-items: start;
}

.llp-results {
  max-height: 70vh;
  overflow: auto;
  padding-right: 18px;
}

.llp-loading {
  display: none;
  padding: 10px 2px;
  color: #5b6773;
  font-weight: 600;
}

.llp-empty {
  display: none;
  padding: 14px 2px;
  color: #5b6773;
  font-weight: 600;
}

.llp-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  margin-bottom: 18px;
  overflow: hidden;
}

.llp-card.is-active {
  outline: 3px solid rgba(59, 130, 246, .15);
}

.llp-card-head {
  display: flex;
  gap: 14px;
  padding: 14px 14px 10px;
  align-items: flex-start;
}

.llp-thumb {
  width: 100px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f1f5f9;
}

.llp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
   background-position: center center;
  background-repeat: no-repeat;
  display: block;
}

.llp-thumb-fallback {
  width: 100%;
  height: 100%;
  background: #eef2f6;
}

.llp-head-text {
  flex: 1 1 auto;
}

.llp-card-title {
  font-family: 'Russo One', sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height:20px;
  color: #001e5a;
  margin: 2px 0 6px;
}

.llp-address {
  color: #334155;
  font-weight: 600;
  font-size: 14px;
}

.llp-addr-row {
  color: #000;
  display: flex;
  gap: 8px;
  align-items: center;
  line-height: 1.3;
}

.llp-pin {
  opacity: .85
}

.llp-slider {
  position: relative;
  background: #f8fafc;
}

.llp-slide-img {
  width: 100%;
  height: 260px !important;
  object-fit: cover;
  display: block;
}

.llp-slide-btn:hover,
.llp-slide-btn:active,
.llp-slide-btn:focus {
  position: absolute;
  top: 50%;
  /* transform: translateY(-50%); */
  width: 40px;
  height: 40px;
  color: #f8fafc;
  border-radius: 12px;
  background: #001e5a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  cursor: pointer;
/*   font-size: 27px; */
  font-weight: 900;
  line-height: 1;
  display: flex;
  place-items: center;
  align-items: center;
  align-content: center;
  flex-direction: row;
}

.llp-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  color: #001e5a;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, .12);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  cursor: pointer;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  place-items: center;
  align-items: center;
  align-content: center;
  flex-direction: row;
}

.llp-slide-prev {
  left: 12px;
}

.llp-slide-next {
  right: 12px;
}

.llp-desc {
  padding: 12px 14px 0;
  color: #001e5a;
  font-size: 14px;
  line-height: 1.55;
}

.llp-meta {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.llp-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #001e5a;
  font-weight: 700;
}

.llp-meta-row a {
  color: #001e5a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, .35);
}

.llp-ico {
  margin-top: 2px;
  width: 15px;
  display: inline-block;
  opacity: 1;
}

.llp-actions {
  padding: 0 14px 14px;
}

.llp-view {
  border: none;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-weight: 900;
  padding: 0;
}

.llp-view:hover {
  opacity: .85
}

.llp-map {
  width: 100%;
  height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .08);
}

.llp-iw {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 8px 16px 8px 0px;
  width: 100%;
}

.llp-iw-img {
  width: 170px;
  max-width: 220px;
  margin: 0 0 8px;
}

.llp-iw-img img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.llp-iw-title {
  width: auto;
  font-weight: 900;
  margin: 0 0 6px;
}

.llp-iw-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.llp-iw-close {
  float: right;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.llp-service {
  margin: 0 14px 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

.llp-service-title {
  font-size: 12px;
  color: #64748b;
  text-transform: none;
  font-weight: 800;
  margin-bottom: 4px;
}

.llp-service-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

@media (max-width: 980px) {
  .llp-grid {
    grid-template-columns: 1fr;
  }

  .llp-map {
    height: 50vh;
  }

  .llp-results {
    max-height: unset;
    padding-right: 0;
  }

  .llp-slide-img {
    height: 240px;
  }
}

.gm-style-iw-ch {
  display: none !important;
}

.gm-style-iw.gm-style-iw-c {
  padding: 15px 0 0 15px;
}

.gm-style-iw-chr {
  /* right: 13px; */
  position: absolute;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  overflow: visible;
  justify-content: flex-end;
}

.gm-style-iw-d {
  max-width: 200px !important;
}

/* .gm-style-iw .gm-style-iw-c {
  max-width: 200px !important;
} */
.llp-wrap {
  padding: 28px 6 !important;
}

.gm-style-iw-t div {
  text-align: center;
  max-width: 200px !important;
}

.gm-style-iw-d::-webkit-scrollbar {
  display: none;
}

/* =========================================
   LLP CUSTOM LAYOUT OVERRIDES
   Map on top + posts horizontal scroll
   ========================================= */
.llp-grid{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.llp-right{
  order:1; /* map first */
  min-width:100%;
}

.llp-left{
  order:2; /* cards second */
  min-width:100%;
}

.llp-map{
  width:100%;
  height:520px;
}

/* Horizontal post cards (not slider) */
.llp-results{
  max-height:none;
  overflow-x:auto;
  overflow-y:hidden;
  padding-right:0;
  padding-bottom:8px;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
}

.llp-cards{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 36px) / 3); /* 3 visible on desktop */
  gap:18px;
  align-items:stretch;
}

.llp-card{
  margin-bottom:0;
  min-width:0;
  scroll-snap-align:start;
}

/* Keep card content width behavior stable */
.llp-card-head{
  min-width:0;
}

.llp-results::-webkit-scrollbar{
  height:8px;
}
.llp-results::-webkit-scrollbar-thumb{
  background:rgba(0,30,90,.25);
  border-radius:999px;
}
.llp-results::-webkit-scrollbar-track{
  background:rgba(0,0,0,.04);
  border-radius:999px;
}

@media (max-width: 1100px){
  .llp-cards{
    grid-auto-columns:calc((100% - 18px) / 2); /* 2 visible */
  }

  .llp-map{
    height:430px;
  }
}

@media (max-width: 767px){
  .llp-cards{
    grid-auto-columns:100%; /* 1 visible */
  }

  .llp-map{
    height:320px;
  }
}
button.llp-slide-btn.llp-slide-prev {
	width:30px !important;
	height:30px !important;
    background-color: transparent;
    padding: 0px !important;
    border: none !important;
    /* color: transparent !important; */
}
button.llp-slide-btn.llp-slide-next {
	width:30px !important;
	height:30px !important;
    background-color: transparent;
    padding: 0px !important;
    border: none !important;
}
/* =========================================
   FINAL UX PATCHES
   ========================================= */

/* Post cards carousel controls */
.llp-results-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px 0 30px 0px;
}

.llp-results-btn{
  width:120px !important;
  height:50px !important;
  border-radius:999px !important;
  background:#00479f !important;
  border:1px solid #00479f !important;
  color:#fff !important;
  place-items:center !important;
  cursor:pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, opacity 220ms ease !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.08) !important;
}

.llp-results-btn:hover,
.llp-results-btn:focus-visible{
  background:#fff !important;
  color:#00479f !important;
  border:1px solid #00479f !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.14) !important;
  outline:none !important;
}

.llp-results-btn:active{
	background:#fff !important;
  color:#001e5a !important;
  transform: translateY(0);
}

.llp-results-btn__icon{
  width:18px;
  height:18px;
  display:block;
  line-height:0;
}

.llp-results-btn__icon svg{
  width:18px;
  height:18px;
  display:block;
}

.llp-results-btn__icon--right{
  transform: rotate(180deg);
}

/* Pin hover → corresponding post highlight + others dim */
.llp-card{
  transition: opacity 220ms ease, filter 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.llp-cards.has-pin-hover .llp-card{
  opacity: .5;
  filter: blur(.5px);
}

.llp-cards.has-pin-hover .llp-card.is-pin-hover{
  opacity: 1;
  filter: none;
  border: 2px solid #001e5a;
  box-shadow: 0 12px 30px rgba(0, 30, 90, .12);
}

/* Active (clicked) card style stays subtle */
.llp-card.is-active{
  outline: none;
  border: 2px solid rgba(0, 30, 90, .55);
  box-shadow: 0 12px 30px rgba(0, 30, 90, .10);
}

/* Slightly smoother horizontal cards movement */
.llp-results{
  scroll-behavior: smooth;
}

/* Only show post nav if there is horizontal overflow (JS can still use it on mobile) */
@media (max-width: 767px){
  .llp-results-btn{
    width:36px;
    height:36px;
  }
}


/* =========================================
   FINAL MINOR FIXES: true slider feel + hidden scrollbar + drag cursor
   ========================================= */
.llp-results{
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */
  cursor: grab;
}
.llp-results::-webkit-scrollbar{
  display: none;              /* Chrome/Safari */
  height: 0;
}
.llp-results.is-dragging{
  cursor: grabbing;
  scroll-snap-type: none;
}
.llp-results.is-dragging .llp-cards,
body.llp-dragging-cards{
  user-select: none;
  -webkit-user-select: none;
}
.llp-results .llp-card{
  will-change: transform;
}
.llp-slider .llp-slide-img {
    object-fit: cover !important;
}
