/* Linear Listings Filter Styles */
:root{
  --primary-color:  #333f48;
  --radius: 5px;
}

#ll-single-container{
  margin-top: 5rem;
}
.ll-single-header{
  margin-bottom: 2rem;
  font-size:2rem;
}

.single-header-row{
	margin-bottom:3rem;
	display:flex;
	align-items:center;
}
.single-header-row a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #333f48;
  height:fit-content;
}

.single-header-row a span {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: center / contain no-repeat
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'>\
<path fill='currentColor' d='m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z'/>\
</svg>");
  transform: scaleX(-1); /* your SVG points right; flip to “back” */
  transition: transform .18s ease;
}

.ll-title span {
  font-family: "Epilogue";
  text-transform:uppercase;
  color:var(--primary-color);
  font-size:1.6rem;
  font-weight:600;
  letter-spacing:3.8px;
}

.ll-ico-pin {
  height:3.5rem;
  overflow:visible;
  margin-right:1rem;
}

.ll-dev-name{
	margin-bottom:2rem;
}

/* clickable address link */
.ll-title--map{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  text-decoration:none;
  color:inherit;
  overflow:hidden;
}

/* underline only on hover/focus */
.ll-title--map span{
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}

/* the "open in new tab" icon (hidden by default) */
.ll-title--map::after{
  content:"";
  inline-size:2rem;        /* ≈16px */
  block-size:2rem;
  margin-bottom:1rem;
  background:currentColor; /* icon color follows text color */
  opacity:0;
  transform:translateY(2px);
  transition:opacity .1s ease, transform .1s ease;

  /* use the SVG as a mask so it can take currentColor */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17"><path d="M15 2v7.5h-1v-5.668l-9.334 9.334-0.707-0.707 9.459-9.459h-5.918v-1h7.5zM11 16h-10v-10h6.574v-1h-7.574v12h12v-7.714h-1v6.714z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17"><path d="M15 2v7.5h-1v-5.668l-9.334 9.334-0.707-0.707 9.459-9.459h-5.918v-1h7.5zM11 16h-10v-10h6.574v-1h-7.574v12h12v-7.714h-1v6.714z"/></svg>') no-repeat center / contain;
}

/* show underline + icon on hover/focus */
.ll-title--map:hover span,
.ll-title--map:focus-visible span{
  border-bottom-color:currentColor;
  text-underline-offset:2px; /* optional: nicer underline offset on supporting browsers */
}

.ll-title--map:hover::after,
.ll-title--map:focus-visible::after{
  opacity:1;
  transform:translateY(0);
}


.ll-single-meta{
  display:flex;
  gap:1.2rem;
  align-items:center;
  margin-top:2rem;
  color:var(--primary-color);
}
.ll-single-meta .ll-meta{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-size:1.6rem;
}
.ll-single-meta .ll-ico{
  width:1.6rem; height:1.6rem;
}


.images-container{
	display:grid;
	grid-template-columns:60% 1fr;
	gap:2rem;
	overflow:hidden;
}

/* Centered spinner while high-res is loading */
@keyframes ll-spin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.ll-splide-main .splide__slide,
.ll-splide-fs   .splide__slide { position: relative; }

.splide__slide.ll-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);         /* base centering */
  animation: ll-spin .8s linear infinite;   /* keeps the translate during spin */
  pointer-events: none;
  z-index: 5;
}

.splide__slide.ll-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.12);
  pointer-events: none;
  z-index: 4;
}




/* =========================
   Details list
   ========================= */
.ll-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
}
.ll-details dt { opacity: 0.7; }
.ll-details dd { margin: 0; }

/* Back link row */
.ll-back-row { margin-top: 1.5rem; }
.ll-back { text-decoration: none; }

/* =========================
   Page layout
   ========================= */
.ll-two-col {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 5rem;
  margin-top:5rem;
}
.ll-left  { min-width: 0; }
.ll-right { min-width: 0; }

/* Ensure counter anchors correctly */
.ll-splide-main { 
	position: relative;
	aspect-ratio: 5 / 3;
    background: #f5f5f5;
}

/* =========================
   Static thumbnails row
   ========================= */
.ll-thumb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  height: fit-content;
}
.ll-thumb {
  all: unset;
  aspect-ratio:4/3;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  cursor:pointer;
}
.ll-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .6s 
  cubic-bezier(.22, .61, .36, 1);
}

.ll-thumb:hover img{
  transform: scale(1.06);
}

.ll-thumb-more { 
	position: relative;
}
.ll-thumb-more-label {
  position: absolute;
  inset: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-weight: 600;
  color:#fff;
  font-size:3rem;
  z-index: 1;
}

.ll-thumb-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(51,63,72,.45) 0 100%);
  z-index: 1;
}

.ll-thumb-more:hover {
  
}

/* =========================
   Counters
   ========================= */
.ll-counter {
  position: absolute;
  z-index: 10;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  user-select: none;
  pointer-events: none; /* purely informational */
}
/* Main slider: bottom-right */
.ll-counter--main { right: 1rem; bottom: 1rem; }
/* Fullscreen: on backdrop, 70px from top, a bit from left */
.ll-counter--fs { left: 2rem; top: 7rem; z-index: 100001; }

/* Make main slider fill its height and scale images properly */
.ll-splide-main { position: relative; }

.ll-splide-main .splide__track,
.ll-splide-main .splide__list,
.ll-splide-main .splide__slide {
  height: 100%;
}

.ll-splide-main .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ll-splide-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   Fullscreen overlay / lightbox
   ========================= */
.ll-fs-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  opacity: 0;
  pointer-events: none;
  align-items: center;          /* vertical centering */
  justify-content: center;      /* horizontal centering */
  padding: 2rem;
  z-index: 99999;
  transition: opacity .2s ease;
}
.ll-fs-wrap.ll-opening {
  display: flex;
  opacity: 0;
  pointer-events: none;
}
.ll-fs-wrap.ll-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.ll-fs-close {
  position: absolute;
  top: 8rem;
  right: 1.8rem;
  font-size: 2.8rem;
  background: none;
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 100000;
  pointer-events: auto;
}

/* Constrain the fullscreen slider to the viewport */
.ll-splide-fs {
  width: 100%;
  height: 100%;
  max-width: calc(100vw - 4rem);   /* 40px = wrapper padding x2 */
  max-height: calc(100vh - 4rem);
}

/* Make the track/list/slide fill height and center image */
.ll-splide-fs .splide__track,
.ll-splide-fs .splide__list,
.ll-splide-fs .splide__slide { height: 100%; }

.ll-splide-fs .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-splide-fs img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;          /* keep full image visible */
  display: block;
}

/* =========================
   Agent & facts
   ========================= */

.single-object-footer{
	background-color: var(--primary-color);
	position:relative;
}

.single-object-footer svg.top-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  max-width: 280px;
  height: auto;
}

.ll-agent {
  margin-top:5rem;
  display: flex;
  flex-direction:column;
  background-color: var(--primary-color);
  color:#fff;
  padding:5rem;
}

.ll-agent-heading{
  text-align: center;
  text-transform: uppercase;
  font-size:4rem;
  font-weight:200;
  margin-bottom:5rem;
}

.ll-agent-top{
  display:flex;
  gap:3rem;
  align-items:flex-start;
  width: fit-content;
}
.ll-agent-avatar {
  width: 50%;
  max-width:32rem;
  object-fit: cover;
}
.ll-agent-name{
  font-size:3rem;
  text-transform: uppercase;
}
.ll-agent-title{
  font-size:1.2rem;
  text-transform: uppercase;
  letter-spacing:3.6px;
}
.ll-agent-tel{
	margin-top:5rem;
}

.ll-agent-meta{
  font-size:1.5rem;
}
.ll-agent-meta div{
  margin:1.2rem 0;
}

div.ll-agent-tel{
	margin-top:3rem;
}
.ll-agent-email a{
  color:#fff;
}

.ll-listiny-type{
  font-size:2rem;
  margin-bottom:3rem;
}
.ll-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 0;
  margin-top: 1.8rem;
}

.ll-facts-extra{
  margin-top:6rem;
}

.ll-facts dt { 
	
}
.ll-facts dd { 
	margin: 0; 
  text-align: right;
}

.ll-facts dt,
.ll-facts dd{
  font-size:1.5rem;
  border-bottom:1px solid #000;
  padding-bottom: .5rem;
  color:#000;
}

aside .ll-price{
  margin-bottom: 3rem;
  font-size: 4rem;
  font-weight: 600;
  text-align:right;
}

.ll-price-ppm{
	display:block;
	font-size:1.8rem;
	margin-top:0.8rem;
	font-weight:500;
}

aside .ll-deal-status{
  margin-bottom: 3rem;
  font-size: 2.6rem;
  font-weight: 500;
}

/*description*/

.ll-description{
  margin:3rem 0;
}
.ll-description p{
  margin-bottom:1rem;
  line-height:1.7;
  font-size: 1.6rem;
}

/*form*/

/* ---------- Contact form (agent) ---------- */

.ll-agent-form {
  --fg: #e9eef2;
  --muted: rgba(233,238,242,.7);
  --line: rgba(255,255,255,.6);
  --accent: #ffffff;

  font-size: 16px;
  color: var(--fg);
  display:flex;
  flex-direction: column;
}

.ll-agent-form .ll-hp {           /* honeypot: keep for bots only */
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.ll-agent-wrap{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap: 5rem;
}

/* Field wrapper */
.ll-form-field {
  position: relative;
  margin: 1rem 0;
}

/* Inputs & textarea */
.ll-form-field input,
.ll-form-field textarea {
  width: 100%;
  padding: 1.2rem 0 1.2rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line)!important;
  color: var(--fg)!important;
  outline: none;
  font: inherit;
  resize: vertical;
}

/* hide real placeholder if you added placeholder=" " */
.ll-form-field input::placeholder,
.ll-form-field textarea::placeholder {
  color: transparent;
}

/* Label sits like a placeholder initially */
.ll-form-field > label {
  position: absolute;
  top: 6px;
  left: 0;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s ease, opacity .18s ease;
}

/* Float the label on focus or when field has content
   (requires placeholder=" " on inputs/textarea) */
.ll-form-field:focus-within > label,
.ll-form-field:has(input:not(:placeholder-shown)) > label,
.ll-form-field:has(textarea:not(:placeholder-shown)) > label {
  transform: translateY(-14px) scale(.85);
  opacity: .9;
}

/* Nicer focus line */
.ll-form-field input:focus,
.ll-form-field textarea:focus {
  border-bottom-color: var(--accent);
}

/* Inline field errors */
.ll-field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #ffb4b4;
}

/* Consent row */
.ll-form-consent {
  margin: 14px 0 22px;
}
.ll-form-consent > label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  cursor: pointer;
  color: var(--muted);
}
.ll-form-consent a{
  color:#fff;
}

/* Custom round checkbox (like your reference) */
.ll-form-consent input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  border-radius: 9999px;
  background: transparent;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ll-form-consent input[type="checkbox"]::after{
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--accent);
  transform: scale(0);
  transition: transform .15s ease;
}
.ll-form-consent input[type="checkbox"]:checked::after{
  transform: scale(1);
}
.ll-form-consent input[type="checkbox"]:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

/* Submit button (ghost style + subtle arrow) */
.ll-form-submit,
#ll-search-button
{
  position:relative;
  display:inline-block;
  color: var(--fg);
  border:1px solid var(--fg);
  padding:2rem 10rem 2rem 2rem;
  cursor:pointer;
  margin-left:auto;
  background:none;
  font-size:2rem;
  text-transform: uppercase;
  border-radius:50px;
}

/* arrow */
.ll-form-submit::before,
#ll-search-button::before
{
  content:"";
  position:absolute;
  top:50%;
  right:3.5rem;                 /* distance from ring */
  width:5.6rem;
  height:1.2rem;
  background-repeat:no-repeat;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56.71' height='12.298' viewBox='0 0 56.71 12.298'%3E%3Cpath fill='none' stroke='%23fff' stroke-miterlimit='10' d='M0 6.149h55.979m-6.166 5.791 3.08-2.9 3.086-2.9-3.086-2.889-3.08-2.889'/%3E%3C/svg%3E");
  transform:translate(0,-50%);
  transition:transform .2s ease;
}

/* ring */
.ll-form-submit::after,
#ll-search-button::after
{
  content:"";
  position:absolute;
  top:50%;
  right: 2rem;
  width:4rem;
  height:4rem;
  border:1.5px solid #fff;
  border-radius:50%;
  transform: translateY(-50%) scale(1);
  transform-origin: 100% 50%; 
  transition: transform .22s ease;
}

/* hover motion */
.ll-form-submit:hover::before,
#ll-search-button:hover::before
{
  transform:translate(4px,-50%);
}
.ll-form-submit:hover::after,
#ll-search-button:hover::after
{
   transform: translateY(-50%) scale(1.12);
}

/* Result message */

.ll-agent-bottom{
  position:relative;
  max-width: 50rem;
}

.ll-agent-bottom .ll-form-message {
  display: none;
  width:100%;
  font-size:2.2rem;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1rem;
  z-index: 1;
  line-height: 1.4;
}

.ll-agent-bottom.is-success .ll-form-message {
  display: flex;
}

.ll-agent-bottom.is-success .ll-form-message::before {
  content: "";
  position: absolute;
  bottom: 80%;
  left: 50%;
  transform: translate(-50%, -6px);
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 1;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 122.88 109.76'%3E%3Cpath fill='%23b6f2c6' fill-rule='evenodd' clip-rule='evenodd' d='M0,52.88l22.68-0.3c8.76,5.05,16.6,11.59,23.35,19.86C63.49,43.49,83.55,19.77,105.6,0h17.28 C92.05,34.25,66.89,70.92,46.77,109.76C36.01,86.69,20.96,67.27,0,52.88L0,52.88z'/%3E%3C/svg%3E");
}

.ll-agent-bottom.is-success .ll-agent-form {
  visibility: hidden;
  pointer-events: none;
  position:relative;
}
.ll-form-message.ll-success{ 
  color:#b6f2c6; 
}
.ll-form-message.ll-error{ color:#ffb4b4; }


/* fix autofill*/

/* Base */
.ll-agent input,
.ll-agent textarea {
  background: var(--primary-color);
  color: #fff;
}

/* Firefox built-in validity UI */
.ll-agent input:-moz-ui-valid,
.ll-agent input:-moz-ui-invalid {
  background: var(--primary-color) !important;
  box-shadow: none !important;
}

/* Generic validity states (other browsers) */
.ll-agent input:valid,
.ll-agent input:invalid {
  background: var(--primary-color) !important;
}

/* Chrome/Safari autofill tint */
.ll-agent input:-webkit-autofill,
.ll-agent input:-webkit-autofill:hover,
.ll-agent input:-webkit-autofill:focus,
.ll-agent textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--primary-color) inset !important;
  box-shadow: 0 0 0 1000px var(--primary-color) inset !important;
  -webkit-text-fill-color: #fff;
  transition: background-color 99999s ease-in-out 0s; /* suppress flash */
}

.s-o-loan-offers{
	display:grid;
	grid-template-columns: 60%;
	gap:2rem;
	margin:3rem 0;
	margin-right:auto;
}

.loan-offers-logos{
	height: fit-content;
	display:flex;
	flex-wrap:wrap;
	gap:5px;
}
.loan-offers-logos a{
	height:100%;
	width: 10rem;
}
.loan-offers-logos a img{
	height:100%;
	object-fit:cover;
}


/* =========================
   Responsive
   ========================= */

@media only screen and (max-width: 1024px) {
	
	.s-o-loan-offers{
	grid-template-columns: 1fr;
	margin-top:6rem;
}
	
	.images-container{
		grid-template-columns:1fr;
	}
	.ll-thumb-row{
		grid-template-columns:1fr 1fr 1fr 1fr;
	}
	
  .ll-two-col {
  grid-template-columns:1fr;
	  gap:2rem;
	  position:relative
	}
	
	aside .ll-price{
		position:absolute;
		top:0;
		right:2rem;
		font-size:2.8rem;
	}
	.ll-dev-name{
		padding-right:12rem;
	}
	
	.ll-agent-wrap {
  grid-template-columns: 1fr;
}
	.ll-agent-bottom{
		max-width:70rem;
	}
	.single-object-footer .ll-agent {
    max-width: 700px;
  }
	
}

@media only screen and (max-width: 768px) {
	
	.loan-offers-logos a{
	width: 8rem;
}
	
	aside .ll-price{
	 font-size:2.22rem;	
	}
}

@media only screen and (max-width: 600px) {
	
	.ll-price-ppm{
	font-size:1.5rem;
}
	
  .ll-ico-pin{
		height:2.5rem;
	}	
	
  .ll-thumb-more {
  font-size:1.2rem;
	}
	.ll-agent-top{
		gap:1rem;
	}
	
	.ll-agent{
		padding:3rem 2rem;
	}
	.ll-thumb-row{
		grid-template-columns:1fr 1fr;
	}
	.ll-agent-heading{
		font-size:2.8rem;
	}
}

@media only screen and (max-width: 468px) {
	
	.loan-offers-logos a{
	width: 6rem;
}
	
	.ll-agent-top{
		flex-direction:column;
		width:100%;
	}
	.ll-agent-avatar{
		width:100%;
		max-width:none;
	}
}
@media only screen and (max-width: 405px) {
	.ll-form-consent{
		font-size:80%;
	}
}
@media only screen and (max-width: 385px) {
	.ll-card-price{
		font-size:1.4rem;
	}
	.loan-offers-logos a{
	width: 5rem;
}
}