/*!
Theme Name: D&F Properties
Theme URI: https://cpmwebdesign.co.uk/
Author: CPM Webdesign
Author URI: 
Description: Custom WordPress theme built with Bootstrap 5 for D&F Properties. Designed for performance, clean UI, and strong on-page SEO with a fully responsive layout.
Version: 1.0.1
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dandfproperties
Tags: custom-theme, bootstrap-5, responsive-layout, seo-friendly, lightweight, custom-template

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

dandfproperties is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*
 * Custom css (https://cpmwebdesign.co.uk/)
 * 
 */

/*--------------------------------------------------------------
# vars
--------------------------------------------------------------*/
:root {
  --dfp-burgundy: #5F265F;
  --dfp-lt-burgundy: #661966;
  --dfp-stone: #ECE9E4;
  --dfp-gold: #AFA28F;
  --dfp-gradient: linear-gradient(-45deg, #871F87 0%, #661966 68%);
  --dfp-headings: "Montserrat", sans-serif;
  --dfp-body: "PT Sans", sans-serif;
  --dfp-bold: 700;
  --dfp-semi: 600;
  --dfp-med: 500;
  --dfp-reg: 400;
  --bs-border-radius: 1.25rem;
}

/*--------------------------------------------------------------
  Cookie
--------------------------------------------------------------*/
#cookie-law {
  text-align: center;
  background: #F7F6F4;
  color: #000;
  padding: 10px 5px 0;
  font-size: .875rem;
  width: 100%;
}

#cookie-law a {
  text-decoration: underline;
}

a.close-cookie-banner {
  background: #E6332A;
  padding: 5px 15px;
  color: white;
  border-radius: 2px;
  text-decoration: underline;
}

a.close-cookie-banner:hover {
  color: white;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/*--------------------------------------------------------------
# Body and containers
--------------------------------------------------------------*/

body {
  margin: 0;
  font-family: var(--dfp-body);
  font-weight: 400;
  font-style: normal;
  font-size: 1.06rem;
  line-height: 1.5;
  color: #2E2E2E;
  text-align: left;
  background-color: #fff;
  padding: 0;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('dist/images/page-bg.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.4;
}

.container {
  max-width: 1620px;
}

.burgundy-bg {
  background: var(--dfp-gradient);
  color: white;
}

.stone-bg {
  background: var(--dfp-stone);
}

.property-heading {
  border-radius: var(--bs-border-radius);
}

.overlap-container {
  margin-top: -225px;
}

/*--------------------------------------------------------------
typography
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--dfp-headings);
  font-weight: var(--dfp-med);
}

.h1,
.h2,
.h3,
.h4 {
  font-family: var(--dfp-headings);
  font-weight: var(--dfp-med);
}

[class^="display-"] {
  font-family: var(--dfp-headings);
  font-weight: var(--dfp-med);
}

/*--------------------------------------------------------------
Page top 
--------------------------------------------------------------*/

.hero-page,
.hero-home {
  color: white;
}

.hero-home {
  position: relative;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home-holder {
  position: relative;
  z-index: 2;
  text-align: center;
  /* or left */
}


.hero-page {
  margin-top: 100px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(to right,
      rgba(95, 38, 95, 1),
      rgba(140, 70, 140, 1)),
    url("dist/images/page-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

/*--------------------------------------------------------------
forms
--------------------------------------------------------------*/
.nf-field-label .nf-label-span,
.nf-field-label label {
  font-weight: 500;
  font-size: 0.875rem;
}

.label-above .nf-field-label {
  margin-bottom: 5px !important;
}

.field-wrap>div input {
  width: 100%;
  border-radius: 100px;
  border: thin solid white;
  padding: 0.5rem 1rem;
}

.nf-field-element textarea {
  border-radius: var(--bs-border-radius);
  border: thin solid white;
  padding: 0.5rem 1rem;
}

.nf-input-limit,
.nf-form-fields-required {
  display: none;
}

#ninja_forms_required_items,
.nf-field-container {
  clear: both;
  margin-bottom: 15px !important;
  position: relative;
}

/*--------------------------------------------------------------
Buttons 
--------------------------------------------------------------*/

.send-btn,
.btn {
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  min-width: 220px;
  text-transform: uppercase;
}

.send-btn,
.btn-primary {
  background: var(--dfp-lt-burgundy);
  border-color: var(--dfp-burgundy);
  color: white;
}

.btn-secondary {
  background: var(--dfp-gold);
  border-color: var(--dfp-gold);
  color: black;
}

.btn-primary.btn-outline {
  border-color: white;
}

/*--------------------------------------------------------------
lightbox
--------------------------------------------------------------*/
#property-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#property-lightbox.active {
  display: flex;
}

#property-lightbox-image {
  max-width: 90%;
  max-height: 90vh;
}

#property-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .7);
  border: 0;
  color: #fff;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 1001;
}

#property-lightbox-prev {
  left: 20px;
}

#property-lightbox-next {
  right: 20px;
}

/*--------------------------------------------------------------
Property styles  
--------------------------------------------------------------*/
.property-gallery-thumb.active {
  border: 3px solid var(--dfp-burgundy);
}

.bg-success {
  color: white;
  border-radius: 100px;
}

.property-gallery-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.property-gallery-slide {
  flex: 0 0 auto;
  width: 100px;
}

.property-gallery-thumb {
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.property-gallery-thumb:hover {
  opacity: 0.8;
}

.property-content.contact-page-left {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.property-content.stone-bg {
  background: var(--dfp-stone);
}

.property-content {
  background: white;
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
}

.property-sidebar {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
}

.property-image-wrapper {
  position: relative;
}

.property-status-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  padding: 0.5rem 2rem;
  border-radius: var(--bs-border-radius);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-let-agreed {
  background: #C62828;
}

.status-available {
  background: #2E7D32;
}

.property-archive,
.property-single {
  margin-top: 120px;
}

.available-from {
  font-size: 1.25rem;
}

.available-from:before {
  position: relative;
  content: url("dist/images/calendars-large.svg");
  top: 0.75rem;
  padding-right: 0.75rem;
}

.bedrooms:before {
  position: relative;
  content: url("dist/images/bed-front.svg");
  top: 0.5rem;
  padding-right: 0.5rem;
}

.bathrooms:before {
  position: relative;
  content: url("dist/images/bath.svg");
  top: 0.5rem;
  padding-right: 0.5rem;
}

.toilets:before {
  position: relative;
  content: url("dist/images/toilet.svg");
  top: 0.5rem;
  padding-right: 0.5rem;
}

.feature-item:before {
  position: relative;
  content: url("dist/images/circle-check.svg");
  top: 0.25rem;
  padding-right: 0.5rem;
}

.table.table-price-bills> :not(caption)>*>* {
  padding: 1rem .5rem;
}

.feature-list {
  column-count: 3;
}

.no-bills-included:before {
  position: relative;
  content: url("dist/images/circle-xmark.svg");
  top: 0.25rem;
  padding-right: 0.25rem;
}

.yes-bills-included:before {
  position: relative;
  content: url("dist/images/circle-check-large.svg");
  top: 0.25rem;
  padding-right: 0.25rem;
}

.ask-agent:before {
  position: relative;
  content: url("dist/images/circle-exclamation.svg");
  top: 0.25rem;
  padding-right: 0.25rem;
}

.property-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 95px;
}


.property-navigation .nav-links {
  justify-content: space-between;
  gap: 2rem;
}

.property-navigation .nav-previous,
.property-navigation .nav-next {
  flex: 1;
}

.property-navigation a {
  text-decoration: none;
  color: inherit;
}

.property-navigation .nav-subtitle {
  display: block;
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}



/*--------------------------------------------------------------
archive property cards
--------------------------------------------------------------*/
.card {
  border-radius: var(--bs-border-radius);
}

.card .card-title {
  min-height: 50px;
}

.card .card-title a {
  font-weight: var(--dfp-bold);
  color: inherit;
}

.property-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 38px;
  padding: 1.25rem;
}

.available-from-card:before {
  position: relative;
  content: url("dist/images/calendars.svg");
  top: 0.5rem;
  padding-right: 0.5rem;
}

/*--------------------------------------------------------------
wp style overrides
--------------------------------------------------------------*/
.custom-logo-link img.custom-logo {
  width: 100px;
  height: auto;
}

img.custom-logo {
  width: 100px;
  height: auto;
  transition: width 0.3s ease;
}

.nav-scrolled img.custom-logo {
  width: 70px;
}

/*--------------------------------------------------------------
Navbar and Navigation
--------------------------------------------------------------*/


.dropdown-link>a::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-left: 18px;
  background: url("dist/images/chevron-down.svg") center/contain no-repeat;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.dropdown-link>a[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.menu-label {
  padding-top: 5px;
  color: black;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.offcanvas-body {
  background: white;
  padding: 5rem 3rem;
}

.bg-dark {
  background-color: #fff !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
  --bs-navbar-padding-y: 0;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link.active {
  color: black;
}

/* Wrapper to position bars */
.navbar-toggler .split {
  position: relative;
  width: 42px;
  height: 32px;
}

/* Base bars */
.navbar-toggler .icon-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.2s ease;
}

/* Position each bar */
.navbar-toggler .icon-bar:nth-child(1) {
  top: 0;
}

.navbar-toggler .icon-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggler .icon-bar:nth-child(3) {
  bottom: 0;
}


/* OPEN STATE (X) */
.navbar-toggler:not(.bend) .icon-bar:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}

.navbar-toggler:not(.bend) .icon-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggler:not(.bend) .icon-bar:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

.navbar-toggler .icon-bar {
  background-color: var(--dfp-burgundy);
}

.navbar-toggler {
  background: white
}

.navbar-toggler:not(:disabled):not(.disabled) {
  padding: 12px 12px 12px 13px;
  outline: none;
  border-radius: 0;
  border: none;
  z-index: 1050;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 3px;
}

/*--------------------------------------------------------------
# back to top
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
.association-images img {
  max-height: 110px;
  width: auto;
  margin: 1rem 0;
}

.site-footer {
  background: var(--dfp-stone);
}

footer [id^="nav_menu-"],
footer [id^="block-"] {
  margin: 0 auto;
  justify-content: center;
  display: flex;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer ul li {
  line-height: 2.75rem;
}

footer ul li a {
  text-decoration: none;
  color: inherit;
}


/*--------------------------------------------------------------
# tabs
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# break points
--------------------------------------------------------------*/
@media (max-width:1559px) {
  .feature-list {
    column-count: 3;
  }
}

/*--------------------------------------------------------------
# max-width:1280px
--------------------------------------------------------------*/
@media (max-width:1280px) {
  .feature-list {
    column-count: 2;
  }
}

/*--------------------------------------------------------------
# max-width:992px
--------------------------------------------------------------*/
@media (max-width:992px) {
  .menu-label {
    display: none;
  }

  .feature-list {
    column-count: 3;
  }

  .property-sidebar {
    position: static;
  }
}

/*--------------------------------------------------------------
# max-width:768px
--------------------------------------------------------------*/
@media (max-width:768px) {

  footer [id^="nav_menu-"],
  footer [id^="block-"] {
    justify-content: left;
  }

  .feature-list {
    column-count: 2;
  }
}

/*--------------------------------------------------------------
# max-width:596px
--------------------------------------------------------------*/
@media (max-width:596px) {
  .offcanvas {
    --bs-offcanvas-width: 100%;
  }

  .feature-list {
    column-count: 1;
  }
}

/* Small devices (landscape phones,576px and up)*/
@media (max-width:576px) {
  .association-images img {
    max-height: 70px;

  }
}

/* Medium devices (tablets,768px and up)*/
@media (min-width:768px) {}

/*Large devices (desktops,992px and up)*/
@media (min-width:992px) {}

/* Extra large devices (large desktops,1200px and up)*/
@media (min-width:1200px) {}