/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


#container {
    padding: 0 20px;
}

.summary-contents {
	font-weight:300;
}

.flexslider {
    margin: 0;
    background: #fff;
    border: 0;
    position: relative;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
    zoom: 1;
}

.flexslider .slides img {
    width: 100%;
    display: block;
    height: 400px;
    object-fit: cover;
}
.thumbnails.flexslider img {
    height: 80px!important;
    object-fit: cover;
}

.thumbnails.flexslider li {
	width: auto !important;
}

.thumbnails.flexslider {
	margin:7px 0;
}

.price {
	color: #ff6b3d;
    font-size: calc((((100vw - 768px) / (1024 - 768)) * (30 - 30)) + 30px);
    font-weight: bold;
}

.price-qualifier {
    font-size: 13px;
    color: #333;
}

.single-property ol, .single-property ul {
    margin-left: 0;
    margin-bottom: 0;
}

.flexslider  ul li, .property_meta ul li {
	list-style:none;
}


.property_meta, .property_actions, .features, .property-full-description.summary{
    border-top: 1px solid #dedee2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0 2px;
    margin-top: 15px;
}

.property_meta {
	display: block;
}

.property_meta ul {
    display: flex;
    gap: 10px;
    justify-content: start; /* spreads items evenly with space between */
    width: 100%; /* full width container */
    padding: 0;
    margin: 0;
    list-style: none;
}

.property_meta ul > li {
    flex: 1;              /* each item takes equal available width */
    text-align: left;   /* center content inside each item */
    min-width: 0;         /* prevents overflow */
}



@media (max-width: 690px) {
  .property_meta ul li, .property_meta ul.primary-meta li:first-child  {
    flex: 0 0 31%;
    max-width: 33%;
  }

    .property_meta .secondary-meta li  {
    flex: 0 0 48%;
    max-width: 48%;
  }

}


@media (max-width: 500px) {
  .property_meta ul li, .property_meta ul li:first-child  {
    flex: 0 0 48%;
    max-width: 48%;
  }

  .property_meta ul, .secondary-meta {
    justify-content: space-between; /* spreads items evenly with space between */
}

}






h1.property_title, .post-type-archive h1 {
	font-size: 24px;
    line-height: 32px;
}

.flex-direction-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* Allow clicks only on children */
}

.flex-direction-nav li {
  pointer-events: auto; /* Enable clicking on arrows */
}

.flex-direction-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  font-size: 0; /* Hide text */
  text-indent: -9999px; /* Hide text for accessibility */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.flex-direction-nav a::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(-135deg);
}

.flex-direction-nav .flex-next::before {
  transform: rotate(45deg);
}

/* Hover effects */
.flex-direction-nav a:hover {
  background-color: #000;
}

.flex-direction-nav a:hover::before {
  border-color: #fff;
}


.flex-direction-nav a.flex-next:before {
     content: ''; 
}

.flex-direction-nav a {
	transition: all .5s!important;
	-webkit-transition:all .5s!important;
}

@media (max-width: 999px) {



  .property-wrap,
  #sticky-sidebar {
    width: 100%;
    float: none;
    margin:0 0 10px 0;
  }

      .property_meta .secondary-meta li {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (min-width: 999px) {
  .property-wrap {
    width: 73%;
    padding-right:2%;
    float: left;
    box-sizing: border-box;
        padding: 20px 0;
  }

    .property_meta ul.secondary-meta > li {
    flex: 30%;
}

}


#sticky-sidebar.sticky {
    z-index: 10;
}

.sticky-spacer {
    display: none;
}

#sticky-sidebar {
    width: 25%;
    float: right;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, .2);
    padding: 24px;
    transition: top 0.1s ease;
    z-index: 1;
    position: relative;
    background-color: #fff;
    margin-top:10px;
}

#sticky-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://globalinvestmentproperty.co.uk/wp-content/uploads/2024/01/GIP_Colour_Blk@10x.png);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}


#sticky-sidebar h3, .fancybox-container h4 {
    font-size:22px;

}

#sticky-sidebar p {
    padding-bottom: 0;
}

#sticky-sidebar .property_actions {
    border:0;
}

@media (min-width: 767px) {
  #sticky-sidebar.sticky {
    position: fixed;
    top: 20px;
    right: 0;
    width: 300px; /* adjust as needed */
  }



}


@media (max-width: 999px) {
  .property-wrap,
  #sticky-sidebar {
    width: 100%;
    float: none;
    margin:0 0 10px 0;
  }
}


.property_actions ul {
	padding-left: 0;
	margin-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px; /* space between items */
}

.property_actions ul li {
	list-style: none;
	text-align: center;
	color: #fff;
	display: flex;
}

.property_actions ul li a {
	font-weight: 700;
	background: #ff6b3d;
	font-size: 15px; /* 1.6rem also works */
	text-align: left;
	width: auto;
	padding: 5px 20px;
	color: #fff !important;
	display: inline-block;
	border-radius: 24px;
	cursor: pointer;
	text-decoration: none !important;
}

.property_actions ul li a:hover {background:#000;}

.features ul {padding-left:0;margin-left:20px}

.features ul li {list-style: none}

.features ul li:before {
	content: "\f058 ";
    font-family: FontAwesome;
    margin:0 5px 0 -15px;
    color:#00cc00
}

.features ul li {margin-bottom:0px}

.features h4 {
  flex-basis: 100%;
  width: 100%;
}

/* On screens wider than 690px and if more than 5 list items */
@media (min-width: 690px) {
  .features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }
  
  /* Optional: only apply two columns if more than 5 items */
  .features ul li:nth-child(n+6) {
    /* no special styles needed here; grid handles layout */
  }
}

.summary-contents-wrapper {
    position: relative;
}

.summary-contents {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}

.summary-contents.expanded {
    max-height: 9999px;
}

.toggle-summary {
    display: inline-block;
    margin-top: 10px;
    color: #ff6b3d;
    cursor: pointer;
    text-decoration: underline;
}


/* Optional: fade effect at the bottom before expanding */
.summary-contents::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 80px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.summary-contents.expanded::after {
    display: none;
}


.primary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* space between items */
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-meta li {
    flex: 0 0 100px; /* fixed width or adjust as needed */
    text-align: center;
    color: #333;
}

.primary-meta .meta-label {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #555;
}

.primary-meta .meta-icon-value i.fa {
    color: #ff6b3d;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    padding: 0 10px 0 0;
}


.primary-meta .meta-value {
    font-size: 15px;
    color: #222;
}


.single-property .fancybox-button svg {
    display: block;
    height: 100%;
    overflow: visible;
    position: relative;
    width: 100%;
    color: #fff;
}

.property_meta ul.secondary-meta {
    font-size: 12px;
    margin-top: 20px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap:0;
}

.results {
    font-size: 14px;
    display: inline-block;
    margin:4px 0;
    text-decoration: underline;
}



.propertyhive-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on small screens */
  margin: 20px auto;
  gap: 10px;
}

.propertyhive-ordering select {
     font-size: 13px;
}

.propertyhive-result-count {

  margin: 0;
  padding:0;
}

@media (max-width: 600px) {
  .propertyhive-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .propertyhive-ordering,
  .propertyhive-result-count {
    width: 100%;
  }
}


/* Remove default bullets and spacing */
ul.properties {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* 2 per row below 999px */
@media (max-width: 998px) {
    .propertyhive-properties-shortcode ul.properties > li,
    .propertyhive ul.properties li {
        flex: 0 0 calc(50% - 20px);
    }
}

/* 1 per row below 690px */
@media (max-width: 689px) {
    .propertyhive-properties-shortcode ul.properties > li,
    .propertyhive ul.properties li {
        flex: 1 1 100%;
    }
}


@media (max-width: 690px) {
  .propertyhive ul.properties li {
    flex-direction: column; /* Stack thumbnail above details */
  }

  .propertyhive ul.properties li .thumbnail {
    width: 100%;
    border-radius: 15px 15px 0 0; /* Rounded top corners only */
  }



  .propertyhive ul.properties li .details {
    width: 100%;
    padding: 10px;
  }

    .propertyhive ul.properties li {
    gap: 0;
}

}


.propertyhive-pagination {
  text-align: center;
  margin: 40px 0;
}

.propertyhive-pagination .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
}

.propertyhive-pagination .page-numbers li {
  display: inline;
}

.propertyhive-pagination .page-numbers a,
.propertyhive-pagination .page-numbers span {
  display: inline-block;
  padding: 2px 16px;
  border-radius: 50px;
  background-color: #f0f0f0;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}

.propertyhive-pagination .page-numbers a:hover {
  background-color: #e71282;
  color: white;
}

.propertyhive-pagination .page-numbers .current {
  background-color: #e71282;
  color: white;
  font-weight: 600;
}



.property-availability-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

/* Green for "For Sale" and "To Let" */
.property-availability-badge.availability-for-sale,
.property-availability-badge.availability-to-let {
    background-color: #19a419;
}

/* Red for others */
.property-availability-badge.availability-sold,
.property-availability-badge.availability-under-offer,
.property-availability-badge.availability-sold-stc,
.property-availability-badge.availability-let-agreed,
.property-availability-badge.availability-let {
    background-color: #e72e2e;
}


.flexslider .slides li {
    position: relative;
}


