/*
Theme Name: Benedicts
Author: Kubiak Creative
Author URI: https://kubiakcreative.com
Description: Custom Theme by Kubiak Creative - Requires The7 theme to be installed for base structure. 09-24
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/* ----------------------------------- BREAKPOINTS -----------------------------------
   768px  = tablet portrait
   992px  = tablet landscape / small desktop
   1200px = desktop
   ------------------------------------------------------------------------------------ */



:root {
    --teal:         #008379;
    --dark-teal:    #00423d;
    --pink:         #FF9E82;
    --mint:         #A9E5BB !important;
    --mint-pale:    rgba(169, 229, 187, 0.2);
    --dark:         #2f2f2f;
    --brandfont: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

.teal       {  color: var(--teal) !important}
.dark-teal  {  color: var(--dark-teal) !important}
.pink       {  color: var(--pink) !important}
.mint       {  color: var(--mint) !important}
.mint-pale  {  color: var(--mint-pale) !important}
.pale       {  color: var(--mint-pale) !important}
.dark       {  color: var(--dark) !important}

.bg-teal        { background-color: var(--teal) }
.bg-dark-teal   { background-color: var(--dark-teal) }
.bg-pink        { background-color: var(--pink) }
.bg-mint        { background-color: var(--mint) }
.bg-mint-pale   { background-color: var(--mint-pale) }
.bg-pale        { background-color: var(--mint-pale) }
.bg-dark        { background-color: var(--dark) }

::selection {
    color: var(--mint);
    background: var(--dark-teal);
}

.hide { display: none !important }

body {
    font-family: var(--brandfont);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: auto;
}

/* FIX .vc_column-inner  padding issue */
.vc_row-has-fill + .vc_row-full-width + .vc_row > .vc_column_container > .vc_column-inner {padding-top: 0}
.vc_row-has-fill > .vc_column_container > .vc_column-inner {padding-top: 0}



/* ----------------------------------- TYPOGRAPHY ----------------------------------- */

h1, h2, h3, h4 { font-family: var(--brandfont) !important; text-transform: uppercase; }

h1 { color: var(--dark-teal); }
h1 strong { color: var(--teal); }
h2 { margin-bottom: 30px; }
h2, h3, h4, h5, h6 { color: var(--teal); }

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover { 
    color: var(--mint);
}

.balance p { text-wrap: balance; }

.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4, .dark-bg h5, .dark-bg p, .dark-bg a { color: white;}
.white p, .white a, .white, .white h1, .white h2, .white h3, .white h4, .white h5, .white h6 { color: white;}

.text-center { text-align: center;}
@media (min-width: 992px) { .text-center { text-align: inherit;} }
@media (min-width: 992px) { .text-right-desktop { text-align: right;} }

.preheader-rule {
    position: relative;
    color: var(--pink);
}
.preheader-rule::before {
    position: absolute;
    content:'';
    left: -1020px;
    top:50%;
    width: 1000px;
    height: 1px;
    background: var(--pink);
}

.preheader-rule { margin-bottom: 10px}
@media (min-width: 992px) { .preheader-rule { margin-bottom: 30px}}

/* Paragraph Styles */
p { margin-bottom: 25px;}
p.large-x1 { font-size: 1.2rem; line-height: 1.6rem; margin-bottom: 20px; }
p.large-x2 { font-size: 1.4rem; line-height: 1.6rem; margin-bottom: 30px; }
p.preheader { font-weight: 500; }
p.preheader + h4, p.preheader + h3, p.preheader + h2, p.preheader + h1 { margin-top: 0; }
.p-no-margin { margin-bottom: 0; padding-bottom: 0; }
@media (min-width: 992px) {
    p.large-x1 { font-size: 1.2rem;line-height: 1.6rem;}
    p.large-x2 { font-size: 1.9rem; line-height: 2.2rem;}
}

body blockquote {
      background: var(--mint-pale) !important;
}

body blockquote,
body blockquote p,
body .entry-content blockquote,
body .post-content blockquote,
body .wpb_text_column blockquote,
body .vc_column-inner blockquote {
  font-style: italic !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: var(--teal) !important;
  font-size: 1.1rem !important;
  line-height: 1.8rem !important;;
  text-transform: none !important;
}

/* ----------------------------------- RESPONSIVE ALIGNMENT ----------------------------------- */

.center-mobile, .center-mobile .wpb_content_element { text-align: center;}
@media (min-width: 768px) {.center-mobile, .center-mobile .wpb_content_element { text-align: inherit;}}
.center-tablet, .center-tablet .wpb_content_element { text-align: center;}
@media (min-width: 992px) {.center-tablet, .center-tablet .wpb_content_element  { text-align: inherit;}}
.center-desktop, .center-desktop .wpb_content_element { text-align: center;}
@media (min-width: 1200px) {.center-desktop, .center-desktop .wpb_content_element { text-align: inherit;}}

.right-tablet, .right-tablet .wpb_content_element { text-align: inherit; justify-content: inherit;}
@media (min-width: 992px) {.right-tablet, .right-tablet .wpb_content_element  { text-align: right; justify-content: flex-end;}}

.reverse-tablet { display: flex; flex-direction: row; }
@media (min-width: 768px) {.reverse-tablet { display: flex; flex-direction: row-reverse; }}
.reverse-desktop { display: flex; flex-direction: row; }
@media (min-width: 992px) {.reverse-desktop { display: flex; flex-direction: row-reverse; }}




/* ----------------------------------- GENERAL ----------------------------------- */

.delay { animation-delay: 0.25s }
.delay2 { animation-delay: 0.5s }

#the7-body {
    border-top: solid 5px var(--mint)
}

.border-top-mint {
    border-top: solid 5px var(--mint)
}

.border-bottom-mint {
    border-bottom: solid 5px var(--mint)
}

.teal-overlay {
    position: relative;
}

.rule-before {
    padding-top:35px;
    border-top: solid 1px var(--teal)
}

.teal-overlay::after { 
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 131, 120, 0.85);
    display: block !important;
}

.page-title.content-left,
.page-header {
    padding-top:100px;
    padding-bottom: 0px
}

@media (min-width: 992px) {
    .page-title.content-left,
    .page-header {
        padding-top:160px;
        padding-bottom: 10px
    }
}

.wpb_single_image .vc_single_image-wrapper.vc_box_rounded,
.wpb_single_image .vc_single_image-wrapper.vc_box_rounded img {
    border-radius: 30px !important;
}

#footer a:hover { 
    color: var(--mint);
}

#footer.footer-outline-decoration {
    border-top-width: 5px;
}

.footer .widget {
    margin-bottom: 0 !important;
}



/* ----------------------------------- ROW / BOX SIZING ----------------------------------- */

.min-height-800 { min-height: 800px;}
.min-height-600 { min-height: 600px;}
.min-height-500 { min-height: 500px;}
.min-height-400 { min-height: 400px;}
.max-width-300 { max-width: 300px;}
.max-width-250 { max-width: 250px;}

.min-height-banner { min-height: 300px;}
@media (min-width: 768px) { .min-height-banner { min-height: 600px;}}

.row-padding { padding-top: 50px; padding-bottom: 50px;}
@media (min-width: 992px) { .row-padding { padding-top: 100px; padding-bottom: 100px;}}

.row-margin-top { margin-top: 70px; }
.row-margin-bottom { margin-bottom: 70px; }

@media (min-width: 992px) {
    .row-margin-top { margin-top: 100px;}
    .row-margin-bottom { margin-bottom: 100px; }
}

.box-padding .vc_column-inner { padding: 35px; }
@media (min-width: 992px) { .box-padding .vc_column-inner { padding: 75px;} }


/* ----------------------------------- LINKS / BUTTONS ----------------------------------- */

.link-underline a {
    position: relative;
    display: block;
    text-decoration: 0;
        transition: 0.2s ease;
}

.link-underline a::before {
    position: absolute;
    content:'';
    left: 0;
    bottom: -10px;
    height: 1px;
    width: 100%;
    background: #999999;
}

.link-underline a::after {
    position: absolute;
    content:'';
    left: 0;
    bottom: -12px;
    height: 5px;
    width: 10%;
    background: var(--red);
    transition: all 1s ease;
}

.link-underline a:hover::after {
    width: 100%;
}


a.dt-btn-link.link-text {
    font-size: 1em !important;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

a.dt-btn-link.link-text::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900; /* required for FA6 Free solid glyphs to render */
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a.dt-btn-link.link-text.search::before {
    content: "\f002"; /* fa-magnifying-glass */
    font-size: 1.2em;
    color: var(--pink);
}

.dt-btn.search i:before {
    color: var(--pink);
    font-size: 1.2em;
}

a.dt-btn-link.link-text.arrow::before {
    content: "\f061"; /* fa-arrow-right */
    color: var(--pink);
    order: 1; /* visually after the text, even though it's a ::before */
}

a.dt-btn-link.link-text.download::before {
    content: "\f019"; /* fa-download */
    color: var(--pink);
}

.dark-bg .link-underline a::before {background: rgba(255, 255, 255, 0.5);}
.dark-bg .link-underline a::after {background: #ffffff;}


/* ----------------------------------- SNIPPET BREADCRUMBS ----------------------------------- */

.breadcrumbs-row .benedicts-breadcrumbs ol {
    padding: 10px 0;
    font-size: 0;
}

@media (min-width: 992px) {
    .breadcrumbs-row .benedicts-breadcrumbs ol {
    padding: 30px 0 0;
    font-size: 14px;
    }
}

.benedicts-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--teal);
}
.benedicts-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}
.benedicts-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.5;
}
.benedicts-breadcrumbs a {
    text-decoration: none;
}
.benedicts-breadcrumbs a:hover {
    text-decoration: underline;
}
.benedicts-breadcrumbs [aria-current="page"] {
    opacity: 0.7;
}


/* ----------------------------------- PADDED BOX FLOAT OFFSETS ----------------------------------- */

.relative {
    position: relative;
}

.padded-rounded-box {
    width: 100%;
    position: relative;
}

@media (min-width: 992px) {
    .padded-rounded-box {
        position: absolute;
        top: 0;
        z-index: 2;
        border-radius: 30px;
        background-color: white;
        padding: 50px;
        width: 50%;
        top:-30px;
        right: 0
    }

    .reverse-desktop .padded-rounded-box {
        left: 0;
    }
}

/* ----------------------------------- IMAGE FLOAT OFFSETS HOMEPAGE ----------------------------------- */

.padded-rounded-box-home {
    border-radius: 30px;
    background-color: white;
    z-index: 1
}

.offset-image-home {
    position: relative;
    margin-top: 30px;
    bottom: 0;
    height: auto;
    z-index: -1;
}

@media (min-width: 992px) {
    .offset-image-home { width: 200%; position: absolute;}
    .padded-rounded-box-home { padding: 0 0 50px 50px; margin-bottom: 200px; }
}
@media (min-width: 1200px) {
    .offset-image-home { width: 140%;}
}

/* ----------------------------------- NAVIGATION ----------------------------------- */

ul#top-menu li.property-search {
    padding-left: 28px;
}

ul#top-menu li.property-search::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    content: "\f002";
    position: absolute;
    left: 0;
    top:40%;
    font-size: 1.2em;
    color: var(--pink);
}

.top-line-space {
   height: 0 !important; /* MAKE MENU FLOAT ON NON-TRANSPARENT HEADINGS */
   min-height: 0 !important;
}

ul#top-menu {
    text-transform: uppercase;
    letter-spacing: 2px;
}

ul#top-menu li a:hover,
ul#top-menu li a:focus,
ul#top-menu li.active a {
    color: var(--dark-teal);
    opacity: 1;
}

.sticky-top-line-on ul#top-menu li a {
    color: white 
}

/* When Light Theme Header */
.light-preset-color ul#top-menu li a:hover *,
.light-preset-color ul#top-menu li a:focus *,
.light-preset-color ul#top-menu li.act a *,
.light-preset-color ul#top-menu li.act > a,
/* When Scrolled (Floating) */
.sticky-top-line-on ul#top-menu li a:hover *,
.sticky-top-line-on ul#top-menu li a:focus *,
.sticky-top-line-on ul#top-menu li.act a *,
.sticky-top-line-on ul#top-menu li.act > a {
    color: var(--mint);
    opacity: 1;
}

.sticky-top-line-on .menu-line::before {
    background: var(--mint) !important;
}

/* Popout Menu */
ul#primary-menu li {
    border-bottom: solid 1px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

ul#primary-menu li a * {
    transition: all 0.2s ease;
}

.mini-widgets {
    padding: 0 15px !important;
}


/* ----------------------------------- VIMEO SHORTCODE ----------------------------------- */

.vimeo-bg-wrap {
  position: relative;
  overflow: hidden;
}

.vimeo-bg-ultra-widescreen {
  aspect-ratio: 43 / 18; /*21:9 */
}

.vimeo-bg-widescreen {
  aspect-ratio: 16 / 9;
}

.vimeo-bg-square {
  aspect-ratio: 1 / 1;
}

.vimeo-bg-standard {
  aspect-ratio: 4 / 3;
}

.vimeo-bg-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* prevents clicks reaching the player at all */
}


/* ----------------------------------- TEAM PROFILE ----------------------------------- */

.team-author {
    padding-bottom: 5px;
    display: flex;
    flex-direction: column-reverse;
}

.team-author p {
    font: var(--the7-h6-font);
    text-transform: var(--the7-h6-text-transform) !important;
    color: var(--mint) !important;    
}

.team-author .team-author-name {
    font: var(--the7-h4-font);
    text-transform: var(--the7-h4-text-transform);
    border-top: solid 1px var(--teal);
    padding-top: 10px;
    margin-top:5px;
}

.team-desc p {
    margin-bottom: 5px;
}

.team-desc .soc-ico {
    order: 2 !important;
}


/* ----------------------------------- BLOG / NEWS ----------------------------------- */

.filter-categories a {

    letter-spacing: 1px;
}

.post .post-thumbnail-rollover {
    border-radius: 30px;
}

.post  .post-entry-content {
    display: flex;
    flex-direction: column;
}

.post .post-entry-content .entry-title {
    order: 2;
    border-top: solid 2px var(--mint);
    padding-top: 20px;
}

.post .post-entry-content h3.entry-title a {
    font: var(--the7-h3-font) !important;
    text-transform: var(--the7-h3-text-transform) !important;
}

.post .post-entry-content .entry-meta {
    order: 1
}

.post .post-entry-content .entry-meta .data-link {
    color: var(--pink);
    text-transform: uppercase;
    font: var(--the7-h6-font) !important;
    letter-spacing: 1.2px;
}

/* HOMEPAGE */

.news-homepage article {
    position: relative; /* positioning context for the content box */
}

.news-homepage .post-thumbnail-wrap {
    width: 75%; /* let the thumbnail fill the full article width now content floats on top */
}

.news-homepage .post-entry-content {
    position: absolute !important;
    top: -30px;
    right: 5%;
    width: 40%;
    background: white;
    padding: 50px !important;
    border-radius: 30px ;
    font-size: 1rem !important;
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .news-homepage article {
        flex-direction: column; /* stack thumbnail above content instead of side-by-side */
    }

    .news-homepage .post-thumbnail-wrap {
        width: 100%; /* thumbnail takes full width on its own row */
    }

    .news-homepage .post-entry-content {
        position: static !important; /* back into normal document flow */
        bottom: auto;
        right: auto;
        width: 100%;
        border-radius: 0; /* optional — square corners often look better full-width; drop this line to keep rounded corners */
    }
}

.news-homepage .post-entry-content .entry-title    { order: 1; }
.news-homepage .post-entry-content .entry-meta     { order: 2; }
.news-homepage .post-entry-content .entry-excerpt  { order: 3; }
.news-homepage .post-entry-content .post-details   { order: 4; align-self: flex-start; }


.news-homepage .post .post-entry-content .entry-title {
    border-top: none
}
.news-homepage .post-entry-content h3.entry-title:before    { 
    content: 'Latest News';
    display: block;
    font: var(--the7-h6-font);
    text-transform: var(--the7-h6-text-transform);
    letter-spacing: 1px;
    color: var(--mint);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: solid 1px var(--mint)
}

.news-homepage .post-entry-content .entry-excerpt {
    font-size: var(--the7-text-big-font-size);
}

.news-homepage a.post-details .details-type-link {
font-size: 1em !important;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-homepage a.post-details  {
    font-size: 1em !important;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-homepage a.post-details::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900; /* required for FA6 Free solid glyphs to render */
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f061"; /* fa-arrow-right */
    color: var(--pink);
    order: 1; /* visually after the text, even though it's a ::before */
}

.news-homepage a.post-details i {
    display: none;
}



/* ----------------------------------- CASE STUDIES ----------------------------------- */

.portfolio-shortcode .entry-title {
    order: 2;
    border-top: solid 2px var(--mint);
    padding-top: 20px;

}

.portfolio-shortcode h3.entry-title a {
    font: var(--the7-h3-font) !important;
    text-transform: var(--the7-h3-text-transform) !important;
}


.portfolio-shortcode .portfolio-categories {
    color: var(--pink);
    text-transform: uppercase;
    font: var(--the7-h6-font) !important;
    letter-spacing: 1.2px;
}


.case-study-values ul {
    list-style-type: none;
    margin: 0;
    padding: 0
}

.case-study-values ul li {
    border-bottom: solid 1px var(--mint);
    padding: 8px 2px;
    margin: 0
}

.case-study-values b,
.case-study-values strong {
    font-weight: 700;
    color: var(--teal);
    display: inline-block;
}

@media (min-width: 480px) {
    .case-study-values b,
    .case-study-values strong {
        min-width: 200px;
    }
}

.project-list-media figure {
    border-radius: 15px;
}

/* HOMEPAGE FEED */

.casestudy-carousel .post-thumbnail-rollover {
    position: relative;
}

.casestudy-carousel .post-thumbnail-rollover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 66, 61, 0) 50%, rgba(0, 66, 61, 1) 90%);
    opacity: 1; /* resting state */
    transition: opacity 0.3s ease;
}

.casestudy-carousel .post-thumbnail:hover .post-thumbnail-rollover::before {
    opacity: 0.8; /* hover state — same gradient, just more visible */
}

.casestudy-carousel article.post .post-entry-content {
    position: absolute !important;
    top: 0;
}

.casestudy-carousel article.post .post-entry-content:before {
    content: 'Case Study';
    font: var(--the7-h6-font);
    text-transform: var(--the7-h6-text-transform);
    letter-spacing: 1px;
    color: var(--mint);
    margin-bottom: 10px;
}

.casestudy-carousel article.post .post-entry-content h3.entry-title a {
    color: white;
}

.casestudy-carousel article.post .post-entry-content h3.entry-title a:hover {
    color: var(--mint) !important;
}

/* ==========================================================================
   Benedicts – Property Hive
   ========================================================================== */

h1.page-title {
    display: none;
}

.single-property #container {
    max-width: 1400px;
    padding: 75px 0;
}

.page-title-head .property-floor-area {
    display: inline-block !important;
    font-weight: 500;
    color: var(--teal) !important;
    margin-top: 4px;
}

.post-type-archive-property #main {
    padding-bottom:75px
}
/* ==========================================================================
   Benedicts – Property Hive detail page
   ========================================================================== */

/* Benedicts – FlexSlider arrows styled to match the homepage (owl-nav) arrows */
ul.flex-direction-nav {
  /* Estimated from the homepage screenshot, adjust if needed */
  --arrow-size:   48px;
  --arrow-bg:     #a9e6c3;
  --arrow-color:  #fff;
  --arrow-radius: 0;
  --arrow-edge:   20px;
  --arrow-icon:   28px;
  --icon-prev:    "\f052";   /* left */
  --icon-next:    "\f053";   /* right */


  a {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--arrow-size);
    height: var(--arrow-size);
    margin: calc(var(--arrow-size) / -2) 0 0;
    background: var(--arrow-bg);
    border-radius: var(--arrow-radius);
    color: var(--arrow-color);
    font-size: 0;              /* hides "Previous" / "Next" text */
    opacity: 1;                /* FlexSlider hides them until hover by default */
    text-decoration: none;
  }

  a:hover { background: var(--teal); }

  .flex-prev { left: var(--arrow-edge); }
  .flex-next { right: var(--arrow-edge); }

  /* The7's own icon font: prev = arrow-29-3, next = arrow-29-2 */
  a::before {
    font-family: "icomoon-the7-font";
    font-size: var(--arrow-icon);
    line-height: 1;
    content: var(--icon-prev);
  }

  a.flex-next::before { content: var(--icon-next); }
}  


.property h1 {
    font-weight: 400;
    color: var(--dark-teal);
}

.property h4 {
    font: var(--the7-h4-font);
}

.property .entry-summary .floor-area {
    font: var(--the7-h2-font);
    font-weight: 400;
    color: var(--the7-h2-color);
    text-transform: var(--the7-h2-text-transform);
    margin-bottom: 30px;
}

.property .entry-summary .price {
    font: var(--the7-h4-font);
    color: var(--the7-h4-color);
    margin-bottom: 30px;
}

.property .entry-summary .property_meta ul li {
    display: inline-block;
    color: var(--dark-teal);
    padding: 0 10px;
    border-right: solid 1px var(--mint)
}

.property .entry-summary .property_meta ul li:last-child {
    border-right: none
}

.property .entry-summary .property_meta ul li:first-child {
    padding-left: 0
}

@media (max-width: 992px) {
    .property .entry-summary .property_meta ul li {
        display: block;
        padding: 0;
        border: none
    }
}

.description .description-title{
    font: var(--the7-h5-font);
    color: var(--the7-h5-color);
    text-transform: var(--the7-h5-text-transform);
    letter-spacing: var(--the7-h5-letter-spacing);
    word-spacing: var(--the7-h5-word-spacing);
    text-decoration: var(--the7-h5-text-decoration);
}

.property .features ul {
    list-style-type: disc;
    margin: revert;
    padding: 0 20px;
}

.property .summary-entry,
.property .summary,
.property .property_actions, 
.property .features,
.property .description {
    margin-bottom: 30px !important;
}

div[id^="property-"] {
    position: relative; /* Positions .flag in the top right of hero image */
}

.flag {
    top: 10px;
    left: 10px;
    bottom: auto !important;
    right: auto !important;
    border-radius: 20px;
}

/* PROPERTY – Link action buttons */
.property_actions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 var(--ph-gap, 16px);
  padding: 0;
  list-style: none;

  li { margin: 0; list-style: none; }

  /* Only the buttons, not links inside the hidden lightbox forms */
  li > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    height: 48px;
    background: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s, color .2s;
  }

  li > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: var(--icon);
  }

  li > a:hover { background: #fff; color: var(--teal); }

  .action-make-enquiry    { --icon: "\f0e0"; }   /* envelope */
  .action-brochure        { --icon: "\f1c1"; }   /* file-pdf */
  .action-send-to-friend  { --icon: "\f1d8"; }   /* paper-plane */
  .action-floorplans      { --icon: "\f247"; }   /* object-group */

  /* Secondary buttons are outlined */
  .action-brochure > a,
  .action-send-to-friend > a { background: #fff; color: var(--teal); }

  .action-brochure > a:hover,
  .action-send-to-friend > a:hover { background: var(--teal); color: #fff; }
}

/* PROPERTY – property table */

.description-contents {
  overflow-x: auto;   /* scrolls sideways on small screens */

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    overflow: hidden;
    color: #4a4a4a;
  }

  th, td {
    padding: 14px 20px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e3e3e3;
  }

  th {
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* Sq Ft + Sq M */
  :is(th, td):nth-child(-n+3):nth-child(n+2) {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  tbody tr:nth-child(even) td { background: #f7f9f9; }
  tbody tr:hover td           { background: color-mix(in srgb, var(--teal) 8%, #fff); }

  /* Total row */
  tbody tr:last-child td {
    background: color-mix(in srgb, var(--teal) 10%, #fff);
    color: #222;
    font-weight: 600;
    border-bottom: 0;
  }
}

/* ==========================================================================
   Benedicts – Property Hive search listings
   ========================================================================== */


.propertyhive ul.properties li { box-sizing:border-box; width:45%; margin-left:10%; border-bottom:0; clear:none !important; }
.propertyhive ul.properties li:nth-child(2n+1) { clear:left !important; margin-left:0; }

@media (max-width:768px) {
	.propertyhive ul.properties li { clear:both !important; float:none !important; width:100% !important; margin-left:0 !important; }
}

/* CSS SPECIFIC TO CARD LAYOUT */
.propertyhive ul.properties li .thumbnail { float:none; width:100%; }
.propertyhive ul.properties li .thumbnail img { width:100%; border-radius: 30px;}
.propertyhive ul.properties li .details { float:none; width:100%;  }
.propertyhive ul.properties li .details::after { display: none;}
.propertyhive ul.properties li .details .price,
.propertyhive ul.properties li .details .commercial-rent,
.propertyhive ul.properties li .details .floor-area {
    font: var(--the7-h4-font);
    font-weight: 400;
}

.propertyhive ul.properties li .details {
    display: flex;
    flex-direction: column;
}
.propertyhive ul.properties li .details .floor-area  { order: 1; color: var(--dark-teal); }
.propertyhive ul.properties li .details .price { order: 9; }
.propertyhive ul.properties li .details .commercial-rent { order: 9; }



/* ==========================================================================
   Benedicts – Property Hive search bar
   ========================================================================== */


form.property-search-form {
    position: relative;
    background: transparent;
    z-index: 1;
}

form.property-search-form::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--teal);
    z-index: -1;
}

:root {
  --ph-bar:      var(--teal);
  --ph-button:   color-mix(in srgb, var(--teal) 65%, #000);
  --ph-border:   #dcdcdc;
  --ph-text:     #4a4a4a;
  --ph-radius:   3px;
  --ph-height:   54px;
  --ph-gap:      16px;
  /* Chevron: colour is URL-encoded (%23008379 = #008379), update if --teal changes */
  --ph-chevron:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23008379' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Form bar ---------- */

form.property-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--ph-gap);
  margin: 0 0 var(--ph-gap);
  padding: 20px;
  padding-top: 30px;
  background: var(--ph-bar);
  border-radius: var(--ph-radius);
  box-sizing: border-box;
}

form.property-search-form .control {
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
  padding: 0;
  position: relative;
}

form.property-search-form .control > label {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ---------- Fields: text inputs, selects, multiselect "closed" box, sort ---------- */

form.property-search-form .control input[type="text"],
form.property-search-form .control select,
form.property-search-form .ms-options-wrap > .selected,
.propertyhive-ordering select {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--ph-height);
  margin: 0;
  padding: 0 44px 0 20px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: none;
  box-sizing: border-box;
  color: var(--ph-text);
  font-size: 16px;
  line-height: normal;
  cursor: pointer;
}

/* Chevron on anything that drops down */
form.property-search-form .control select,
form.property-search-form .ms-options-wrap > .selected,
.propertyhive-ordering select {
  -webkit-appearance: none;
  appearance: none;
  background: #fff var(--ph-chevron) no-repeat right 18px center / 14px 9px;
}

form.property-search-form .control input[type="text"] { padding-right: 20px; cursor: text; }

/* Hide the plugin's own grey arrow */
form.property-search-form .ms-options-wrap > .selected::before,
form.property-search-form .ms-options-wrap > .selected::after {
  display: none !important;
}

form.property-search-form .control :is(input, select):focus,
form.property-search-form .ms-options-wrap.ms-active > .selected {
  outline: none;
  border-color: var(--teal);
}

/* ---------- Fix 'Current Location' text from absolute position ---------- */

.control.control-address_keyword {
    position: relative;
}

.current-location img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Search button ---------- */
form.property-search-form .control:has([type="submit"]) { flex: 0 0 200px; }

form.property-search-form [type="submit"] {
  display: block;
  width: 100%;
  height: var(--ph-height);
  margin: 0;
  padding: 0 24px;
  background: var(--ph-button);
  border: 0;
  border-radius: var(--ph-radius);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}

form.property-search-form [type="submit"]:hover {
  background: color-mix(in srgb, var(--teal) 50%, #000);
}

/* ---------- Multiselect dropdown panel ---------- */

form.property-search-form .ms-options-wrap { position: relative; }

form.property-search-form .ms-options-wrap > .ms-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: 0 !important;   /* plugin sets 200px inline */
  max-height: 320px !important;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

form.property-search-form .ms-options ul { margin: 0; padding: 4px 0; list-style: none; }

form.property-search-form .ms-options li {
  margin: 0;
  padding: 0;
  list-style: none;
  outline: none !important;
  border: 0 !important;
}

form.property-search-form .ms-options li label {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  margin: 0;
  padding: 12px 20px !important;
  color: var(--ph-text);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

form.property-search-form .ms-options li label:hover,
form.property-search-form .ms-options li.focused label {
  background: color-mix(in srgb, var(--teal) 10%, #fff);
}

form.property-search-form .ms-options li.selected label {
  background: color-mix(in srgb, var(--teal) 16%, #fff);
  font-weight: 500;
}

/* Reset theme checkbox styling and use the native one, tinted teal */
form.property-search-form .ms-options input[type="checkbox"] {
  position: static !important;
  float: none !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--teal);
  cursor: pointer;
}

form.property-search-form .ms-options input[type="checkbox"]::before,
form.property-search-form .ms-options input[type="checkbox"]::after,
form.property-search-form .ms-options label::before,
form.property-search-form .ms-options label::after {
  display: none !important;
}

/* ---------- Sort (left) + List/Map toggle (right) ---------- */
.propertyhive-ordering        { float: left; margin: 0 0 var(--ph-gap); }
.propertyhive-ordering select { min-width: 260px; }
ul.properties                 { clear: both; }

/* Finds the toggle by its map link, so no class names are needed */
ul:has(> li > a[href*="view=map"]) {
  float: right;
  display: flex;
  margin: 0 0 var(--ph-gap);
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  overflow: hidden;

  li { margin: 0; list-style: none; }

  a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: calc(var(--ph-height) - 2px);
    font-size: 0;               /* hides the link text, icon replaces it */
    color: var(--teal);
  }

  li:not(.active) a { background: #e3e3e3; }

  /* Icons: list = grid, map = pin. Coloured by the link's text colour. */
  a::before {
    content: "";
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
            mask: var(--icon) center / contain no-repeat;
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z'/%3E%3C/svg%3E");
  }

  a[href*="view=map"]::before {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  form.property-search-form { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  form.property-search-form .control,
  form.property-search-form .control:has([type="submit"]) { flex: 1 1 auto; width: 100%; }
  .propertyhive-ordering { width: calc(100% - 120px); }
  .propertyhive-ordering select { width: 100%; min-width: 0; }
}

/* ----------------------------------- CASE STUDY CATEGORY FILTER (GROUPED, LEFT-ALIGNED) ----------------------------------- */

.filter-categories {
    display: grid;
    grid-template-columns: repeat(5, max-content); /* bump this count when appending a new group */
    grid-template-rows: repeat(3, auto); /* raise this if a future group has more than 2 children */
    column-gap: 36px;
    row-gap: 0;
    justify-content: start;
    padding: 20px 0;
}

.filter-categories a {
    --fc-pad-left: 16px; /* used for padding only now — underline is fully disabled below */
    position: relative;
    display: block;
    padding: 3px 0 3px var(--fc-pad-left);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--teal);
    transition: color 0.15s ease;
}

/* Kill the theme's underline decoration completely, all screen sizes, all states */
.filter-underline-decoration .filter-categories a::after,
.filter-underline-decoration .filter-categories a:hover::after,
.filter-underline-decoration .filter-categories a.act::after {
    display: none !important;
}

/* Parent / standalone links are bold */
.filter-categories .show-all,
.filter-categories .agency,
.filter-categories .advisory,
.filter-categories .valuation,
.filter-categories .spare-slot {
    font-weight: 700;
}

/* Child links are regular weight */
.filter-categories .landlord-agency,
.filter-categories .tenant-agency,
.filter-categories .landlord,
.filter-categories .tenant {
    font-weight: 400;
}

/* ---- View all: first column, no divider, no left padding ---- */
.filter-categories .show-all {
    --fc-pad-left: 0px;
    grid-column: 1;
    grid-row: 1;
}

/* ---- Group: Agency ---- */
.filter-categories .agency          { grid-column: 2; grid-row: 1; }
.filter-categories .landlord-agency { grid-column: 2; grid-row: 2; }
.filter-categories .tenant-agency   { grid-column: 2; grid-row: 3; }

/* ---- Group: Advisory ---- */
.filter-categories .advisory { grid-column: 3; grid-row: 1; }
.filter-categories .landlord { grid-column: 3; grid-row: 2; }
.filter-categories .tenant   { grid-column: 3; grid-row: 3; }

/* ---- Group: Valuation (no children) ---- */
.filter-categories .valuation { grid-column: 4; grid-row: 1; }

/* ---- Group: Spare slot — placeholder for the next category added in WordPress ---- */
.filter-categories .spare-slot { grid-column: 5; grid-row: 1; }

/* ---- Dividers: every group except "View all" gets a left border ---- */
.filter-categories .agency,
.filter-categories .landlord-agency,
.filter-categories .tenant-agency,
.filter-categories .advisory,
.filter-categories .landlord,
.filter-categories .tenant,
.filter-categories .valuation,
.filter-categories .spare-slot {
    border-left: 2px solid var(--mint);
}

/* ---- Hover + active state (text colour only — underline already killed above) ---- */
.filter-categories a:hover,
.filter-categories a.act {
    color: var(--mint);
}

/* ----------------------------------- MOBILE: stack everything, correctly grouped, flush left ----------------------------------- */
@media (max-width: 767px) {
    .filter-categories {
        display: flex;
        flex-direction: column;
        row-gap: 6px;
        padding: 20px 0;
    }

    /* remove desktop grid placement and dividers */
    .filter-categories a {
        grid-column: auto;
        grid-row: auto;
        padding: 0;
    }
    .filter-categories .agency,
    .filter-categories .landlord-agency,
    .filter-categories .tenant-agency,
    .filter-categories .advisory,
    .filter-categories .landlord,
    .filter-categories .tenant,
    .filter-categories .valuation,
    .filter-categories .spare-slot {
        border-left: none;
    }

    /* explicit visual order — independent of HTML source order */
    .filter-categories .show-all        { order: 0; }
    .filter-categories .agency          { order: 10; margin-top: 10px; }
    .filter-categories .landlord-agency { order: 11; }
    .filter-categories .tenant-agency   { order: 12; }
    .filter-categories .advisory        { order: 20; margin-top: 10px; }
    .filter-categories .landlord        { order: 21;  }
    .filter-categories .tenant          { order: 22;  }
    .filter-categories .valuation       { order: 30; margin-top: 10px; }
    .filter-categories .spare-slot      { order: 40; margin-top: 10px; }
}

/* ----------------------------------- CONTACT FORM 7 — 2-COLUMN LAYOUT ----------------------------------- */

.cf-row {
    margin-bottom: 0px; /* matches CF7's default <p> spacing, adjust if your form looks tighter/looser elsewhere */
}

.cf-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}

.cf-field {
    margin-bottom: 0; /* the row's own margin-bottom handles vertical spacing instead */
}

@media (max-width: 767px) {
    .cf-row-2col {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
}