/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

p:last-child {
  margin-bottom: 0 !important;
}
.removeMargin p {
    margin-block-end: 0 !important;
}
.squareImg img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
ol:has(+ p), 
ul:has(+ p),
p:has(+ ul),
p:has(+ ol) {
  margin-bottom: 12px !important;
}
.elementor .elementor-widget-text-editor a,
.elementor .elementor-widget-theme-post-content p a {
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 5px;
}
.elementor .elementor-widget-text-editor a:hover,
.elementor .elementor-widget-text-editor a:focus,
.elementor .elementor-widget-theme-post-content p a:hover,
.elementor .elementor-widget-theme-post-content p a:focus {
    text-decoration: none;
}
.plainLink a {
	color: inherit !important;
	text-decoration: none !important;
}
.plainLink a:hover {
	color: inherit !important;
	text-decoration: none !important;
}
.plainLink a:focus {
	color: inherit !important;
	text-decoration: none !important;
}
.elementor-icon {
	vertical-align:middle;
}
.elementor-icon-wrapper {
	line-height: 0;
}
.elementor-widget-image a {
	width: 100%;
}
.elementor-widget-off-canvas {
	--e-off-canvas-animation-duration: 300ms;
}
.elementor-widget-bathrooms, 
.elementor-widget-bedrooms, 
.elementor-widget-reception-rooms, 
.elementor-widget-council-tax-band,
.back-to-search a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Button Styles */

.buttonTwo .elementor-button {
    background-color: var(--e-global-color-66cab6c);
    color: var(--e-global-color-2ed72a3);
    border-color: var(--e-global-color-2ed72a3);
}
.buttonTwo .elementor-button:hover,
.buttonTwo .elementor-button:focus {
	background-color: var(--e-global-color-2ed72a3);
	color: var(--e-global-color-accent);
}
/* Property Hive enquiry form/popups */
.fancybox-content {
	background-color: white;
}
.fancybox-content button, .fancybox-content button:hover, .fancybox-content button:focus, .fancybox-toolbar button, .fancybox-toolbar button:hover, .fancybox-toolbar button:focus {
	background-color: transparent !important;
	border: none !important;
	color: black !important;
}
.fancybox-toolbar button,
.fancybox-button--close {
    display: flex !important;
    align-items: center !important;    /* vertical centering */
    justify-content: center !important; /* horizontal centering */
    padding: 0 !important;              /* remove default button padding */
}

.fancybox-toolbar button svg,
.fancybox-button--close svg {
    width: 0;
    height: 0;
    display: none !important; /* ensures proper alignment */
}
/* Property Hive media viewer lightbox */
.fancybox-container .fancybox-navigation button {
	border: none !important;
	background-color: var(--e-global-color-accent) !important;
	border: none !important;
	color: white !important;
}
.fancybox-button .fancybox-close-small button {
	color: var(--e-global-color-accent) !important;
}
/* Property Hive calculators */
[class$="-calculator"] label, .property-enquiry-form label {
    margin-bottom: 6px;
    display: block;
}
[class$="-calculator"] input[type="text"], .property-enquiry-form input {
    margin-bottom: 20px;
}
[class$="-calculator"] button, .property-enquiry-form input[type="submit"], .property-enquiry-form button {
    margin: 20px 0;
}
[class$="-calculator"] input,
[class$="-calculator"] select {
	border-color: var(--e-global-color-0fb4893) !important;
	border-radius: 0 !important;
}

/* Property search bar */
.property-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 20px;
}

.property-search-form .control {
  padding: 0 !important;
}

.property-search-form.clear::after {
  display: none;
}

.property-search-form .control-department {
  width: 100%;
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.property-search-form .control-department label {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: var(--e-global-typography-2247e4a-font-size);
	font-weight: var(--e-global-typography-2247e4a-font-weight) !important;
    text-transform: var(--e-global-typography-2247e4a-text-transform);
  font-weight: 400;
  padding-bottom: 15px;
  color: var(--e-global-color-primary);
  transition: color 0.2s ease;
}

.property-search-form .control-department input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.property-search-form .control-department label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--e-global-color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.property-search-form .control-department label:has(input[type="radio"]:checked) {
  color: var(--e-global-color-accent);
}

.property-search-form .control-department label:has(input[type="radio"]:checked)::after {
  opacity: 1;
}

.property-search-form .control:not(.control-department),
.property-search-form .control .control-location {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.property-search-form .control[style*="display: table-cell"] {
  display: flex !important;
}
.property-search-form .control[style*="display: none"],
.property-search-form .control[style*="display:none"] {
  display: none !important;
}

.property-search-form select,
.propertyhive-ordering select,
[class$="-calculator"] select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
	appearance: base-select;
  width: 100%;
  padding: 6px 28px 20px 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px top 16px / 10px;
  border: none;
  border-bottom: 1px solid var(--e-global-color-primary);
  border-radius: 0;
  color: var(--e-global-color-accent);
  font-size: var(--e-global-typography-text-font-size);
  opacity: 0.8;
  cursor: pointer;
  outline: none;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.property-search-form select:hover,
.property-search-form select:focus {
  opacity: 1;
  border-color: var(--e-global-color-primary);
}

.property-search-form input[type="submit"] {
  flex: 0 0 auto;
  align-self: flex-end;
}
/* Property Hive multiselect (Parish) – match the other selects */
.property-search-form .ms-options-wrap {
  width: 100%;
  position: relative;
}

.property-search-form .ms-options-wrap > .selected {
  width: 100%;
  padding: 6px 28px 20px 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px top 16px / 10px;
  border: none;
  border-bottom: 1px solid var(--e-global-color-primary);
  border-radius: 0;
  color: var(--e-global-color-accent);
  font-size: var(--e-global-typography-text-font-size);
  line-height: inherit;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.property-search-form .ms-options-wrap > .selected:hover,
.property-search-form .ms-options-wrap.ms-active > .selected {
  opacity: 1;
}

/* kill the plugin's triangle arrow */
.property-search-form .ms-options-wrap > .selected::after {
  display: none;
}

/* dropdown panel – mirror your ::picker(select) styling */
.property-search-form .ms-options-wrap > .ms-options {
  background: #fff;
  border: 1px solid var(--e-global-color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.property-search-form .ms-options-wrap > .ms-options > ul label {
  padding: 8px 12px 8px 40px;
  margin: 0;
  color: var(--e-global-color-accent);
	font-family: inherit !important;
    font-size: inherit !important;
	line-height: 1.5 !important;
}

.property-search-form .ms-options-wrap > .ms-options > ul li.selected label {
  background-color: var(--e-global-color-primary);
  color: #fff;
}
/* Custom dropdown fallback (custom-select.js) – only used where
   appearance: base-select isn't supported, e.g. iOS Safari before 27 */
.cs-wrap {
  position: relative;
  width: 100%;
}

.cs-wrap > select {
  pointer-events: none;
}

.cs-wrap:hover > select,
.cs-wrap.cs-open > select {
  opacity: 1;
}

.cs-button,
.cs-button:hover,
.cs-button:focus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-button:focus-visible {
  outline: 2px solid var(--e-global-color-primary);
  outline-offset: 2px;
}

/* dropdown panel – mirrors ::picker(select) */
.cs-list {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 100%;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--e-global-color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* options – mirror option / option:checked */
.cs-list li {
  padding: 8px 12px;
  margin: 0;
  color: var(--e-global-color-accent);
  font-family: inherit;
  font-size: var(--e-global-typography-text-font-size);
  line-height: 1.5;
  cursor: pointer;
}

.cs-list li.cs-active {
  background-color: rgba(0, 0, 0, 0.05);
}

.cs-list li[aria-selected="true"] {
  background-color: var(--e-global-color-primary);
  color: #fff;
}

/* checkbox – vertically centred in the row, with a gap before the text */
.property-search-form .ms-options-wrap > .ms-options > ul input[type="checkbox"] {
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
/* multiselect checkboxes – remove iOS native styling, draw a plain square */
.property-search-form .ms-options-wrap > .ms-options > ul input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--e-global-color-primary) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* checked: tick on white – shows clearly on the highlighted row */
.property-search-form .ms-options-wrap > .ms-options > ul input[type="checkbox"]:checked {
  border-color: #fff !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.8 6.5L9 1' stroke='%23C2B8AC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 8px !important;
}

/* white search form variant */
.searchFormWhite .property-search-form .ms-options-wrap > .selected {
  border-color: #FFFFFF99;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sub-menu.elementor-nav-menu--dropdown {
    background-color: var(--e-global-color-7d70df4) !important;
}
.elementor-sub-item {
    border: 0 !important;
    padding: 10px 20px !important;
}
.calcBlueBtn button {
    background-color: var(--e-global-color-text) !important;
    border: var(--e-global-color-text) !important;
    color: white !important;
}
img.ti-star {
    filter: saturate(0.5);
}
/* property search form (white version) */
.searchFormWhite .property-search-form .control-department label:has(input[type="radio"]:checked) {
  color: white;
}

.searchFormWhite .property-search-form .control-department label::after {
    background-color: white;
}
.searchFormWhite .property-search-form select,
.searchFormWhite .property-search-form select:hover,
.searchFormWhite .property-search-form select:focus {
    border-color: #FFFFFF99;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px top 16px / 10px;
}

/* hide default what3words on map widget */
.w3w_location,
h4:has(+ .w3w_location) {
    display: none;
}


@media (max-width: 767px) {
  .property-search-form {
    flex-direction: column;
    gap: 0;
  }

  .property-search-form .control-department {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
  }

  .property-search-form .control:not(.control-department) {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 40px;
  }

  .property-search-form input[type="submit"] {
    width: 100%;
  }
}

/* Signature Collection header swap */
body:not(.signature-context) .signature-header { display: none; }
body.signature-context .primary-header { display: none; }

/* Property search submit — match navy across all instances */
.property-search-form input[type="submit"] {
  background-color: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
  color: #fff;
}

/* Signature search results — white search band */
body.signature-context .e-con.elementor-element-2fe1da6,
body.signature-context .e-con.elementor-element-94e519b {
  background-color: #fff !important;
}

/* Signature vs standard — no JS, no flash */
body:not(.signature-context) .signature-header,
body:not(.signature-context) .signatureElement,
body.signature-context .primary-header,
body.signature-context .notSignatureElement {
  display: none !important;
}

/* fix the corrupted slide that breaks the carousel */
.elementor-widget-property-images .flexslider .slides > a.elementor-element-7682742 {
    display: none !important;
}

.images .flexslider {
    border: none !important;
}

/* Signature Collection badge, built from the marketing flag class Property Hive already adds */
.e-loop-item.marketing_flag-signature-property .images {
    position: relative;
}
.e-loop-item.marketing_flag-signature-property .images::after {
    content: "Signature Collection";
    position: absolute;
    top: auto;
	bottom:0;
    right: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 13px;
    padding: 7px 20px;
    box-sizing: border-box;
    background: #fff;
    color: #000;
}

.images .flexslider {
    margin: 0 0 20px !important;
}
.elementor-loop-container .elementor-heading-title {
    margin-bottom: 8px !important;
}
.elementor-loop-container .elementor-heading-title + * {
    margin-bottom: 4px !important;
}

/* Style Arrows over the images nicely */
.images .flexslider .flex-prev {
    left: 12px !important;
    right: auto !important;
}
.images .flexslider .flex-next {
    right: 12px !important;
    left: auto !important;
}
.images .flexslider .flex-prev,
.images .flexslider .flex-next {
    opacity: 0.9;
    background: rgba(194, 184, 172, 0.92);
    border-radius: 50%;
    text-indent: -9999px;
    transition: opacity 0.25s ease, background 0.25s ease;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}
.images .flexslider .flex-prev:hover,
.images .flexslider .flex-next:hover {
    background: rgb(174, 162, 148);
}
.images .flexslider:hover .flex-prev,
.images .flexslider:hover .flex-next {
    opacity: 1;
}
.images .flexslider .flex-prev::before,
.images .flexslider .flex-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: #fff;
    border-width: 0 2px 2px 0;
    text-indent: 0;
}
.images .flexslider .flex-prev::before {
    margin: -4px 0 0 -3px;
    transform: rotate(135deg);
}
.images .flexslider .flex-next::before {
    margin: -4px 0 0 -5px;
    transform: rotate(-45deg);
}

/* custom select field dropdown styling */
/* Opt into customizable select (Chrome 135+) */
select,
::picker(select) {
  appearance: base-select;
}

/* Style the dropdown panel - only styling the picker, not the select field */
::picker(select) {
  background-color: white !important;
  border: 1px solid var(--e-global-color-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Style the options in the dropdown */
option {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  padding: 8px 12px !important;
}

/* Style selected option */
option:checked {
  background-color: var(--e-global-color-primary) !important;
  color: white !important;
}

/* Hide the default picker icon arrow */
::picker-icon {
  display: none !important;
}


/* what3words block under the property map */
.elementor-widget-property-map h4 {
  margin-top: 32px;
  margin-bottom: 16px;
}
.elementor-widget-property-map .w3w_location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.elementor-widget-property-map .w3w_icon {
  flex: 0 0 auto;
  float: none !important;
  width: auto !important;
  margin: 0;
}
.elementor-widget-property-map .w3w_icon img {
  display: none;
}
.elementor-widget-property-map .w3w_icon::before {
  content: "///";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px;
  background: #E11F26;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 4px;
  line-height: 1;
}
.elementor-widget-property-map .w3w_three_words {
  float: none !important;
  line-height: 1.4;
}

/* Space between map and what3words */
.elementor-widget-property-map #property_map_canvas {
  margin-bottom: 24px;
}

/* Tappable what3words row */
.elementor-widget-property-map .w3w_location {
  position: relative;
}
.elementor-widget-property-map .w3w_link,
.elementor-widget-property-map .w3w_link:visited {
  color: inherit !important;
  text-decoration: none !important;
}
.elementor-widget-property-map .w3w_link:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.sortFilter .propertyhive-ordering select {
    color: #1a1a1a !important;
    opacity: 1 !important;
}